I am trying to use a version of bbswitch hacked for a T450s mentioned in this issue on bumblebee-project/bbswitch. It works well and now my Nvidia 940m card turns off properly.
To install it I run make load from it's root, which executes the following commands:
-rmmod bbswitch
insmod bbswitch.ko
I now would like to get that module replacing the existing bbswitch module at boot (rather than being a command I have to invoke). To do that I've written the following modprobe.d file:
/etc/modprobe.d/50-bbswitch.conf:
# Remove the old bbswitch
blacklist bbswitch
remove bbswitch
# Load the new bbswitch
install bbswitch.ko /bin/true
Problem is that it doesn't seem to be loading the new module. When I run dmesg | grep bbswitch I get:
[ 8.357206] bbswitch: version 0.7
The hacked bbswitch has the version code 0.8. So my install bbswitch.ko /bin/true line isn't actually loading the module. And it means that my blacklist... remove... lines aren't unloading the old bbswitch module.
Can anyone explain how to do this?