Bumblebee-Project / bbswitch

Disable discrete graphics (currently nvidia only)
GNU General Public License v2.0
487 stars 78 forks source link

bbswitch does not work on boot #194

Open rhysperry111 opened 4 years ago

rhysperry111 commented 4 years ago

Hi, if I try to load bbswitch automatically (by creating an entry in /etc/modules-load.d/) my system fails to boot. It just hangs with the HP logo and does not respond to anything (even SysRq keys) If it inserted after boot (through modprobe) it seems to work perfectly fine. Here is the journal from a failed boot:

Feb 13 19:42:50 archlinux-laptop kernel: bbswitch: loading out-of-tree module taints kernel.
Feb 13 19:42:50 archlinux-laptop kernel: bbswitch: module verification failed: signature and/or required key missing - tainting kernel
Feb 13 19:42:50 archlinux-laptop kernel: bbswitch: version 0.8
Feb 13 19:42:50 archlinux-laptop kernel: bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
Feb 13 19:42:50 archlinux-laptop kernel: bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
Feb 13 19:42:50 archlinux-laptop kernel: bbswitch: detected an Optimus _DSM function
Feb 13 19:42:50 archlinux-laptop kernel: bbswitch: disabling discrete graphics
Feb 13 19:42:50 archlinux-laptop kernel: bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off
Feb 13 19:42:49 archlinux-laptop systemd-modules-load[326]: Inserted module 'bbswitch'

FULL LOG: https://pastebin.com/eS7rzWFe And here is the journal after inserting via modprobe:

Feb 13 19:46:08 archlinux-laptop sudo[1169]:     rhys : TTY=pts/0 ; PWD=/home/rhys ; USER=root ; COMMAND=/usr/bin/modprobe bbswitch
Feb 13 19:46:08 archlinux-laptop kernel: bbswitch: loading out-of-tree module taints kernel.
Feb 13 19:46:08 archlinux-laptop kernel: bbswitch: module verification failed: signature and/or required key missing - tainting kernel
Feb 13 19:46:08 archlinux-laptop kernel: bbswitch: version 0.8
Feb 13 19:46:08 archlinux-laptop kernel: bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
Feb 13 19:46:08 archlinux-laptop kernel: bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
Feb 13 19:46:08 archlinux-laptop kernel: bbswitch: detected an Optimus _DSM function
Feb 13 19:46:08 archlinux-laptop kernel: bbswitch: disabling discrete graphics
Feb 13 19:46:08 archlinux-laptop kernel: bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is off

Output of uname -a:

Linux archlinux-laptop 5.5.3-zen1-1-zen #1 ZEN SMP PREEMPT Tue, 11 Feb 2020 15:35:45 +0000 x86_64 GNU/Linux

I am using bbswitch-zen from the AUR (no DKMS)

I use wayland

I do not use my nVidia gpu (only intel), do not have the proprietary driver installed and I have blacklisted nouveau.

System info: https://bugs.launchpad.net/lpbugreporter/+bug/752542/comments/850