Hello. I have installed bumblebee. Bumblebee works fine to optirun softwares on my computer. However, I find that bumblebee cannot disable my discrete card when I don't use them. I find that bbswitch doesn't work well because ls: cannot access '/proc/acpi/bbswitch': No such file or directory and modprobe: ERROR: could not insert 'bbswitch': No such device. Any help will be appreciated. Thanks.
>>> uname -a
Linux tyq-pc 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
>>> sudo lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop)
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
08:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
>>> nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.25 Driver Version: 415.25 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... Off | 00000000:01:00.0 On | N/A |
| 0% 51C P0 67W / 250W | 710MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... Off | 00000000:08:00.0 Off | N/A |
| 0% 37C P8 8W / 250W | 2MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 30722 G /usr/lib/xorg/Xorg 369MiB |
| 0 31024 G /usr/bin/gnome-shell 110MiB |
| 0 31144 G /opt/teamviewer/tv_bin/TeamViewer 21MiB |
| 0 31293 G fcitx-qimpanel 8MiB |
| 0 31611 G ...uest-channel-token=13953743859873349437 193MiB |
| 0 31765 G gnome-control-center 2MiB |
+-----------------------------------------------------------------------------+
>>> sudo prime-select intel
>>> optirun nvidia-smi
Sun Dec 30 09:58:31 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.25 Driver Version: 415.25 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... Off | 00000000:01:00.0 Off | N/A |
| 40% 25C P5 17W / 250W | 0MiB / 11178MiB | 4% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... Off | 00000000:08:00.0 Off | N/A |
| 0% 37C P8 8W / 250W | 2MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
>>> nvidia-smi
NVIDIA-SMI couldn't find libnvidia-ml.so library in your system. Please make sure that the NVIDIA Display Driver is properly installed and present in your system.
Please also try adding directory that contains libnvidia-ml.so to your system PATH.
>>> sudo lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop)
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
08:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
>>> ls /proc/acpi/bbswitch
ls: cannot access '/proc/acpi/bbswitch': No such file or directory
>>> cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.15.0-43-generic root=UUID=38c8e2e0-7c02-4fab-b4f3-26e6d71a4107 ro quiet splash vt.handoff=7
>>> sudo apt list bbswitch-dkms
Listing... Done
bbswitch-dkms/xenial,now 0.8-3ubuntu1 amd64 [installed]
>>> sudo modprobe -v bbswitch
insmod /lib/modules/4.15.0-43-generic/updates/dkms/bbswitch.ko
modprobe: ERROR: could not insert 'bbswitch': No such device
>>> dmesg | tail
[57099.723741] wlxb8de5e556bbb: RX AssocResp from d4:ee:07:62:c2:7e (capab=0x431 status=0 aid=3)
[57099.750683] wlxb8de5e556bbb: associated
[57100.387204] IPv6: ADDRCONF(NETDEV_CHANGE): wlxb8de5e556bbb: link becomes ready
[57177.241214] bbswitch: version 0.8
[57177.241218] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[57177.241223] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[57177.241224] bbswitch: Found discrete VGA device 0000:08:00.0: \_SB_.PCI0.RP05.PXSX
[57177.241232] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[57177.241236] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[57177.241265] bbswitch: No suitable _DSM call found.
>>> git clone -b develop git://github.com/Bumblebee-Project/bbswitch.git
>>> sudo make
make -C /lib/modules/4.15.0-43-generic/build M="$(pwd)" modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-43-generic'
CC [M] /home/tyq/Tmp/bbswitch/bbswitch.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/tyq/Tmp/bbswitch/bbswitch.mod.o
LD [M] /home/tyq/Tmp/bbswitch/bbswitch.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-43-generic'
>>> sudo make load
rmmod bbswitch
rmmod: ERROR: Module bbswitch is not currently loaded
Makefile:19: recipe for target 'load' failed
make: [load] Error 1 (ignored)
insmod bbswitch.ko
insmod: ERROR: could not insert module bbswitch.ko: No such device
Makefile:19: recipe for target 'load' failed
make: *** [load] Error 1
>>> sudo make -f Makefile.dkms
mkdir -p '/usr/src/bbswitch-0.8'
cp Makefile bbswitch.c '/usr/src/bbswitch-0.8'
sed 's/#MODULE_VERSION#/0.8/' dkms/dkms.conf > '/usr/src/bbswitch-0.8/dkms.conf'
dkms build -m bbswitch -v 0.8
Module bbswitch/0.8 already built for kernel 4.15.0-43-generic/4
dkms install -m bbswitch -v 0.8
Module bbswitch/0.8 already installed on kernel 4.15.0-43-generic/x86_64
>>> dmesg | tail
[63835.062373] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[63835.062380] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[63835.062425] bbswitch: No suitable _DSM call found.
[64099.034320] bbswitch: version 0.8
[64099.034324] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[64099.034330] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[64099.034332] bbswitch: Found discrete VGA device 0000:08:00.0: \_SB_.PCI0.RP05.PXSX
[64099.034343] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[64099.034347] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[64099.034382] bbswitch: No suitable _DSM call found.
Hello. I have installed bumblebee. Bumblebee works fine to
optirun
softwares on my computer. However, I find that bumblebee cannot disable my discrete card when I don't use them. I find that bbswitch doesn't work well becausels: cannot access '/proc/acpi/bbswitch': No such file or directory
andmodprobe: ERROR: could not insert 'bbswitch': No such device
. Any help will be appreciated. Thanks.