Artix Linux Forum

Init systems => runit => Topic started by: brandflake11 on 30 May 2020, 17:10:52

Title: [Solved] Using bbswitch on Artix with Runit
Post by: brandflake11 on 30 May 2020, 17:10:52
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! 


Title: Re: Using bbswitch on Artix with Runit
Post by: SGOrava on 31 May 2020, 10:24:12
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
Title: Re: Using bbswitch on Artix with Runit
Post by: brandflake11 on 01 June 2020, 14:34:30
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