Bumblebee-Project / bbswitch

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

AORUS 15G - bbswitch: No suitable _DSM call found. #215

Open Ironcache opened 3 years ago

Ironcache commented 3 years ago

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:

$ apt list --installed | grep bbswitch
bbswitch-dkms/focal-updates,now 0.8-8ubuntu0.20.04.1 amd64 [installed]

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

$ 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