Commit Graph

66 Commits (4a029bc0ce09f8451bcfa6bb0c62638167caec80)

Author SHA1 Message Date
Lekensteyn 10ad4041f1 bbswitch: Add usage instructions to header 13 years ago
Lekensteyn 8c0ea9bc34 bbswitch: add DSM_TYPE_UNSUPPORTED macro
This was added for clarity and matches other DSM_TYPE_* macros
13 years ago
Lekensteyn e16cdf561b bbswitch: Support for legacy _DSM function
Newer Optimus laptops seems to use a _DSM method which is quite standard. This
is referred to as "Optimus DSM" in some DSDT files and must be called before the
discrete nVidia graphics card is turned off. Other (older?) laptops use a
different UUID, revision ID and arguments which actually enables or disables a
device. The right _DSM arguments is detected during the module initialization.
13 years ago
Lekensteyn 6af35bd55b bbswitch: Check for result before deref it 13 years ago
Lekensteyn 398c8d2a7b bbswitch: Set the result value if result type is an integer 13 years ago
Lekensteyn 1e59a3f54e bbswitch: Add version and author macros 13 years ago
Lekensteyn f85fc2789e bbswitch: Don't continue on disabling the device on a failing ACPI call 13 years ago
Lekensteyn 644cb5ee73 bbswitch: Note why PM_RESTORE_PREPARE is unused 13 years ago
Lekensteyn b50902797a bbswitch: don't disable card if a driver is loaded 13 years ago
Lekensteyn f7e6dd9741 bbswitch: If necessary, enable card before suspend and disable after 13 years ago
Lekensteyn 41da066752 bbswitcj_off: Perform _DSM call before the _PS3 routines 13 years ago
Lekensteyn 1b3bc0b862 Base on/off state on the device state, not a hardcoded flag 13 years ago
Lekensteyn 0bd5ce93d7 Fix misleading message reporting all VGA devices as discrete 13 years ago
Lekensteyn 3b4f224830 Fix dis_enabled flags values 13 years ago
Lekensteyn 3087852d68 bbswitch: Set dis_enabled flag when toggling 13 years ago
Lekensteyn 82cb834240 Initial addition of bbswitch (WIP!) 13 years ago