Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [Solved] Using bbswitch on Artix with Runit (Read 885 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Solved] Using bbswitch on Artix with Runit

Hello everyone,

I'm rocking an nvidia optimus laptop using nvidia-xrun to switch between using my intel and nvidia cards on Artix. Everything works fine, but bbswitch is not found when switching to an nvidia x session. I have installed the bbswitch package, and this is what is installed: bbswitch 0.8-322

On the Arch Linux forums, it says that bbswitch should be located in /proc/acpi/bbswitch, but there is no bbswitch there. In fact, I ran
Code: [Select]
sudo find / -name "bbswitch"
and I didn't find anything. Where would I find this to use with nvidia-xrun?

Thanks for all of your help! 



Re: Using bbswitch on Artix with Runit

Reply #1
Hello,
bbswitch is not a command but a kernel module.
to enable run as root
Code: [Select]
tee /proc/acpi/bbswitch <<< ON
to disable (you will probably need to unload nvidia driver from kernel before doing so)
Code: [Select]
tee /proc/acpi/bbswitch <<< OFF

 

Re: Using bbswitch on Artix with Runit

Reply #2
Thank you  @SGOrava, I was able to enable the kernel module and enable it at boot and all is well, AND I learned about kernel modules doing it!  :D