Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 30595  / 1 Year ago, thu, march 16, 2023, 11:41:15

How am I supposed to run/install acpi_call? I've found a similar solution on the linux hybrid graphics blog, but still couldn't manage to run it.


More From » acpi

 Answers
4

If you do not know how to use that kernel module, I suggest you to stay away from it. In the past it has been used for disabling discrete video cards directly, but that does not make the kernel aware of the state change. The test_off.sh file should not be used as it's just wildly guessing some calls which may have negative effects on the hardware and software (e.g. crazy fans, lockups).



If you want to disable NVIDIA cads, have a look at Bumblebee which comes with bbswitch, a module for toggling the power of nvidia cards on Optimus laptops. More information about Optimus laptops can be found on Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?



The bumblebee/stable PPA provides the acpi-call-tools package. After installing the PPA you can open a terminal, load the acpi_call module and perform an ACPI call by writing to the file. This requires root privileges.



Load the acpi_call module and define a convenience function for making an ACPI call:



$ sudo modprobe acpi_call
$ c(){ echo "$1" | sudo tee /proc/acpi/call >/dev/null && sudo cat /proc/acpi/call;echo;}


An example: execute the ACPI method _SB_.PCI0.GFX0._DOD and retrieve the result of it:



$ c '_SB_.PCI0.GFX0._DOD'
[0x80010100, 0x80010300, 0x80010410]

[#40511] Saturday, March 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nstitutencert

Total Points: 171
Total Questions: 126
Total Answers: 124

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
nstitutencert questions
Fri, Dec 10, 21, 16:31, 2 Years ago
Tue, Apr 19, 22, 05:51, 2 Years ago
Wed, Jan 26, 22, 07:52, 2 Years ago
Sun, Aug 29, 21, 21:43, 3 Years ago
;