bbswitch не работает на моем компьютере
Я установил шмель 3.2.1. Шмель отлично работает optirun
программное обеспечение на моем компьютере. Тем не менее, я считаю, что шмель не может отключить мою дискретную карту, когда я не использую их. Итак, я считаю, что bbswitch не работает хорошо, потому что ls: cannot access '/proc/acpi/bbswitch': No such file or directory
, modprobe: ERROR: could not insert 'bbswitch': No such device
а также bbswitch: No suitable _DSM call found
, Любая помощь будет оценена. Благодарю.
motherboard: gigabyte Z370 HD3
OS: Ubuntu 16.04
GPU: 1 Intel + 2 NVIDIA 1080Ti
Я также спросил здесь: https://github.com/Bumblebee-Project/bbswitch/issues/182, но в настоящее время нет ответа.
>>> 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.
Я пытался переустановить bbswitch-dkms. Это не работает
>>> sudo apt install --reinstall bbswitch-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 11.6 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/main amd64 bbswitch-dkms amd64 0.8-3ubuntu1 [11.6 kB]
Fetched 11.6 kB in 0s (128 kB/s)
(Reading database ... 510004 files and directories currently installed.)
Preparing to unpack .../bbswitch-dkms_0.8-3ubuntu1_amd64.deb ...
-------- Uninstall Beginning --------
Module: bbswitch
Version: 0.8
Kernel: 4.15.0-43-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
bbswitch.ko:
- Uninstallation
- Deleting from: /lib/modules/4.15.0-43-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
DKMS: uninstall completed.
------------------------------
Deleting module version: 0.8
completely from the DKMS tree.
------------------------------
Done.
Unpacking bbswitch-dkms (0.8-3ubuntu1) over (0.8-3ubuntu1) ...
Setting up bbswitch-dkms (0.8-3ubuntu1) ...
Loading new bbswitch-0.8 DKMS files...
Building only for 4.15.0-43-generic
Building initial module for 4.15.0-43-generic
Done.
bbswitch:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.0-43-generic/updates/dkms/
depmod....
DKMS: install completed.
Processing triggers for shim-signed (1.33.1~16.04.1+13-0ubuntu2) ...
Secure Boot not enabled on this system.
>>> sudo modprobe -vvv bbswitch
modprobe: INFO: ../libkmod/libkmod.c:364 kmod_set_log_fn() custom logging function 0x55e8c055f4b0 registered
modprobe: DEBUG: ../libkmod/libkmod-index.c:755 index_mm_open() file=/lib/modules/4.15.0-43-generic/modules.dep.bin
modprobe: DEBUG: ../libkmod/libkmod-index.c:755 index_mm_open() file=/lib/modules/4.15.0-43-generic/modules.alias.bin
modprobe: DEBUG: ../libkmod/libkmod-index.c:755 index_mm_open() file=/lib/modules/4.15.0-43-generic/modules.symbols.bin
modprobe: DEBUG: ../libkmod/libkmod-index.c:755 index_mm_open() file=/lib/modules/4.15.0-43-generic/modules.builtin.bin
modprobe: DEBUG: ../libkmod/libkmod-module.c:556 kmod_module_new_from_lookup() input alias=bbswitch, normalized=bbswitch
modprobe: DEBUG: ../libkmod/libkmod-module.c:562 kmod_module_new_from_lookup() lookup modules.dep bbswitch
modprobe: DEBUG: ../libkmod/libkmod.c:574 kmod_search_moddep() use mmaped index 'modules.dep' modname=bbswitch
modprobe: DEBUG: ../libkmod/libkmod.c:402 kmod_pool_get_module() get module name='bbswitch' found=(nil)
modprobe: DEBUG: ../libkmod/libkmod.c:410 kmod_pool_add_module() add 0x55e8c22496a0 key='bbswitch'
modprobe: DEBUG: ../libkmod/libkmod-module.c:202 kmod_module_parse_depline() 0 dependencies for bbswitch
modprobe: DEBUG: ../libkmod/libkmod-module.c:583 kmod_module_new_from_lookup() lookup bbswitch=0, list=0x55e8c2250d40
modprobe: DEBUG: ../libkmod/libkmod.c:501 lookup_builtin_file() use mmaped index 'modules.builtin' modname=bbswitch
modprobe: DEBUG: ../libkmod/libkmod-module.c:1744 kmod_module_get_initstate() could not open '/sys/module/bbswitch/initstate': No such file or directory
modprobe: DEBUG: ../libkmod/libkmod-module.c:1754 kmod_module_get_initstate() could not open '/sys/module/bbswitch': No such file or directory
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_pcsp mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_usb_audio mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=cx88_alsa mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_atiixp_modem mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_intel8x0m mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_via82xx_modem mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=bt87x mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=cx88_alsa mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=saa7134_alsa mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_atiixp_modem mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_intel8x0m mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_via82xx_modem mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_usb_audio mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_usb_caiaq mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_usb_ua101 mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_usb_us122l mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_usb_usx2y mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_cmipci mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_pcsp mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=snd_usb_audio mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=bbswitch mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1396 kmod_module_get_options() passed = modname=bbswitch mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=nvidia_415_drm mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=nouveau mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=kvm_intel mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1391 kmod_module_get_options() modname=vt mod->name=bbswitch mod->alias=(null)
modprobe: DEBUG: ../libkmod/libkmod-module.c:1744 kmod_module_get_initstate() could not open '/sys/module/bbswitch/initstate': No such file or directory
modprobe: DEBUG: ../libkmod/libkmod-module.c:1754 kmod_module_get_initstate() could not open '/sys/module/bbswitch': No such file or directory
modprobe: DEBUG: ../libkmod/libkmod-module.c:744 kmod_module_get_path() name='bbswitch' path='/lib/modules/4.15.0-43-generic/updates/dkms/bbswitch.ko'
modprobe: DEBUG: ../libkmod/libkmod-module.c:744 kmod_module_get_path() name='bbswitch' path='/lib/modules/4.15.0-43-generic/updates/dkms/bbswitch.ko'
insmod /lib/modules/4.15.0-43-generic/updates/dkms/bbswitch.ko load_state=0 unload_state=0
modprobe: DEBUG: ../libkmod/libkmod-module.c:744 kmod_module_get_path() name='bbswitch' path='/lib/modules/4.15.0-43-generic/updates/dkms/bbswitch.ko'
modprobe: INFO: ../libkmod/libkmod-module.c:884 kmod_module_insert_module() Failed to insert module '/lib/modules/4.15.0-43-generic/updates/dkms/bbswitch.ko': No such device
modprobe: ERROR: could not insert 'bbswitch': No such device
modprobe: DEBUG: ../libkmod/libkmod-module.c:468 kmod_module_unref() kmod_module 0x55e8c22496a0 released
modprobe: DEBUG: ../libkmod/libkmod.c:418 kmod_pool_del_module() del 0x55e8c22496a0 key='bbswitch'
modprobe: INFO: ../libkmod/libkmod.c:331 kmod_unref() context 0x55e8c2249290 released