Bumblebee-Project / bbswitch

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

bbswitch can't be turned ON, constantly gets reset to OFF #179

Open leo-petrucci opened 6 years ago

leo-petrucci commented 6 years ago

I've been having a lot of trouble with using Bumblebee, a lot of them can be found over at the thread I've posted on Bumblebee's issues. Essentially, no matter what I do, if I blacklist the nvidia module I won't be able to use optirun.

Initially I thought I had just done something wrong with Bumblebee, but with more testing I got to try and turn on bbswitch manually. This is the result:

leonardo@leonardo-TM1703:~$ sudo tee /proc/acpi/bbswitch <<<ON
ON
leonardo@leonardo-TM1703:~$ cat /proc/acpi/bbswitch  
0000:01:00.0 OFF

From a few tests it looks like bbswitch is automatically getting reset to OFF.

Some more info. My grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force i915.modeset=1 nouveau.modeset=0 nogpumanager acpi_osi=! acpi_osi=\"Windows 2013\""

My blacklist:

blacklist nouveau
blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset
alias nouveau off
alias nvidia-drm off
alias nvidia-modeset off

Info about my system:

hostnamectl status
   Static hostname: leonardo-TM1703
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: eae114492c184daaa425a31e80c8849a
           Boot ID: 9270101873fe4095a1d287f2f1edaca2
  Operating System: Ubuntu 18.04.1 LTS
            Kernel: Linux 4.15.0-34-generic
      Architecture: x86-64

Optirun DOES run if blacklist nvidia is removed, but of course power use is through the roof if I do that.

At this point I'm fairly sure the issue is with bbswitch and not with Bumblebee, so any help would be greatly appreciated.