Pretty much the title; have been trying to get bumblebee working on my computer, and not able to get past the above error called out in dmesg | grep bbswitch. Some Googling has shown reference to some ancient issues with kernel version <3.8.5, and issues with gcc <=4.4. Neither are the case here (GCC is 9.3).
The optirun command fails (as I imagine is expected if bbswitch is not working). I am able to change the settings to change between performance (discrete) and power-saving (integrated). I just can't use "NVIDIA On-Demand".
Requested info
The output of dmesg | grep -C 10 bbswitch:
$ dmesg | grep -C 10 bbswitch
[ 9.162367] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-20-1-3.ddc
[ 9.164041] Bluetooth: hci0: Applying Intel DDC parameters completed
[ 9.167080] Bluetooth: hci0: Firmware revision 0.0 build 121 week 36 2020
[ 9.360121] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 9.367336] intel_rapl_common: Found RAPL domain package
[ 9.367344] intel_rapl_common: Found RAPL domain core
[ 9.367348] intel_rapl_common: Found RAPL domain uncore
[ 9.367351] intel_rapl_common: Found RAPL domain dram
[ 9.455982] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20201113/nsarguments-61)
[ 9.457729] ACPI Warning: \_SB.NPCF._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20201113/nsarguments-61)
[ 9.567408] bbswitch: version 0.8
[ 9.567424] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 9.567439] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[ 9.567860] ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20201113/nsarguments-61)
[ 9.567920] bbswitch: No suitable _DSM call found.
[ 9.929598] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 9.929605] Bluetooth: BNEP filters: protocol multicast
[ 9.929613] Bluetooth: BNEP socket layer initialized
[ 9.943157] NET: Registered protocol family 38
[ 10.200943] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
[ 10.713339] r8169 0000:03:00.0 enp3s0: Link is Down
[ 11.061059] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[ 11.122200] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[ 11.130553] nvidia-uvm: Loaded the UVM driver, major device number 508.
[ 11.861287] loop11: detected capacity change from 0 to 8
The kernel version uname -a
$ uname -a
Linux ironcache-Mint 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Your distribution and version (if applicable)
Linux Mint 20.1
The version of your Xorg and the driver
$ dpkg -l |grep xserver-xorg-core
ii xserver-xorg-core 2:1.20.11-1ubuntu1~20.04.2 amd64 Xorg X server - core server
$ nvidia-smi
Sun Nov 21 17:15:22 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.44 Driver Version: 495.44 CUDA Version: 11.5 |
|-------------------------------+----------------------+----------------------+
[...]
- Submit your machine information on https://bugs.launchpad.net/bugs/752542; the instructions are listed in the bug description. Summary: install the packages containing dmidecode, acpidump and iasl and then run `[...]`:
Getting a timeout error attempting to add a comment on the above. Shared on ProtonDrive [here](https://drive.protonmail.com/urls/B9M609N564#KKYTLahBnSAg).
- Information about the ACPI handles associated with PCI devices. Since this is a kernel module, you'll need kernel headers, gcc and automake. Commands: `[...]`:
Error on running `make` for the mentioned project:
$ make
make -C /lib/modules/5.11.0-40-generic/build M=/home/ironcache/git/acpi-stuff/acpi_dump_info modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-40-generic'
CC [M] /home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.o
/home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c: In function ‘meh_init’:
/home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c:58:15: error: implicit declaration of function ‘proc_create’ [-Werror=implicit-function-declaration]
58 | acpi_entry = proc_create(DEVNAME, 0444, acpi_root_dir, &fops);
| ^~~
/home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c:58:13: warning: assignment to ‘struct proc_dir_entry *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
58 | acpi_entry = proc_create(DEVNAME, 0444, acpi_root_dir, &fops);
| ^
/home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c: In function ‘meh_exit’:
/home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c:68:2: error: implicit declaration of function ‘remove_proc_entry’ [-Werror=implicit-function-declaration]
68 | remove_proc_entry(DEVNAME, acpi_root_dir);
| ^~~~~
cc1: some warnings being treated as errors
make[2]: [scripts/Makefile.build:288: /home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.o] Error 1
make[1]: [Makefile:1849: /home/ironcache/git/acpi-stuff/acpi_dump_info] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-40-generic'
make: *** [Makefile:9: default] Error 2
Description
Pretty much the title; have been trying to get bumblebee working on my computer, and not able to get past the above error called out in
dmesg | grep bbswitch
. Some Googling has shown reference to some ancient issues with kernel version <3.8.5, and issues with gcc <=4.4. Neither are the case here (GCC is 9.3).Using bbswitch-dkms:
The
optirun
command fails (as I imagine is expected ifbbswitch
is not working). I am able to change the settings to change between performance (discrete) and power-saving (integrated). I just can't use "NVIDIA On-Demand".Requested info
The output of dmesg | grep -C 10 bbswitch:
The kernel version uname -a
Your distribution and version (if applicable) Linux Mint 20.1
The version of your Xorg and the driver
$ nvidia-smi Sun Nov 21 17:15:22 2021
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 495.44 Driver Version: 495.44 CUDA Version: 11.5 | |-------------------------------+----------------------+----------------------+ [...]
$ make make -C /lib/modules/5.11.0-40-generic/build M=/home/ironcache/git/acpi-stuff/acpi_dump_info modules make[1]: Entering directory '/usr/src/linux-headers-5.11.0-40-generic' CC [M] /home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.o /home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c: In function ‘meh_init’: /home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c:58:15: error: implicit declaration of function ‘proc_create’ [-Werror=implicit-function-declaration] 58 | acpi_entry = proc_create(DEVNAME, 0444, acpi_root_dir, &fops); | ^
~~/home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c:58:13: warning: assignment to ‘struct proc_dir_entry *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 58 | acpi_entry = proc_create(DEVNAME, 0444, acpi_root_dir, &fops); | ^ /home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c: In function ‘meh_exit’: /home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.c:68:2: error: implicit declaration of function ‘remove_proc_entry’ [-Werror=implicit-function-declaration] 68 | remove_proc_entry(DEVNAME, acpi_root_dir); | ^~~~~ cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:288: /home/ironcache/git/acpi-stuff/acpi_dump_info/acpi_dump_info.o] Error 1 make[1]: [Makefile:1849: /home/ironcache/git/acpi-stuff/acpi_dump_info] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-40-generic' make: *** [Makefile:9: default] Error 2