forked from mkottman/acpi_call
-
Notifications
You must be signed in to change notification settings - Fork 0
peberlein/acpi_call
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A kernel module that enables you to call parameterless ACPI methods by writing the method name to /proc/acpi/call, e.g. to turn off discrete graphics card in a dual graphics environment (like NVIDIA Optimus). Usage: # turn off discrete graphics card echo '\_SB.PCI0.PEG1.GFX0.DOFF' > /proc/acpi/call # turn it back on echo '\_SB.PCI0.PEG1.GFX0.DON' > /proc/acpi/call These work on my ASUS K52J notebook, but may not work for you. For a list of methods to try, see http://linux-hybrid-graphics.blogspot.com/ . It SHOULD be ok to test all of the methods, until you see a drop in battery drain rate (grep rate /proc/acpi/battery/BAT0/state), however it comes with NO WARRANTY. The status after a call can be read back from /proc/acpi/call: * 'not called' - nothing to report * 'Error: <description>' - the call failed * '0xNN' - the call succeeded, and returned an integer * '"..."' - the call succeeded, and returned a string * '{0xNN, ...}' - the call succeeded, and returned a buffer Copyright (c) 2010: Michal Kottman This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
About
A linux kernel module that enables calls to ACPI methods through /proc/acpi/call. Now with basic support for Integer and String parameters.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 88.2%
- Shell 11.8%