Lekensteyn
93f07b9570
bbswitch: Warn when result type is unknown
2011-12-13 23:15:18 +01:00
Lekensteyn
41e0b9fca0
bbswitch: make the uuid array of size 16, remove check
2011-12-13 22:46:52 +01:00
Lekensteyn
1997dba661
bbswitch: Do not pass a null pointer, but zero instead
2011-12-13 22:46:16 +01:00
Lekensteyn
b2191e5160
bbswitch: add comment on other possible UUID
2011-12-13 22:27:34 +01:00
Lekensteyn
10ad4041f1
bbswitch: Add usage instructions to header
2011-12-13 21:18:16 +01:00
Lekensteyn
8c0ea9bc34
bbswitch: add DSM_TYPE_UNSUPPORTED macro
...
This was added for clarity and matches other DSM_TYPE_* macros
2011-12-13 21:14:39 +01:00
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.
2011-12-13 21:08:43 +01:00
Lekensteyn
6af35bd55b
bbswitch: Check for result before deref it
2011-12-13 00:07:30 +01:00
Lekensteyn
398c8d2a7b
bbswitch: Set the result value if result type is an integer
2011-12-12 21:26:09 +01:00
Lekensteyn
619d95e7d7
bbswitch/Makefile: don't fail on paths with special chars
...
Don't expand the current directory in the Makefile, let the shell expand
it. Furthermore, replace all occurences of the modulename by a variable
2011-12-12 21:15:00 +01:00
Lekensteyn
1e59a3f54e
bbswitch: Add version and author macros
2011-12-12 18:26:05 +01:00
Lekensteyn
f85fc2789e
bbswitch: Don't continue on disabling the device on a failing ACPI call
2011-12-12 18:21:56 +01:00
Lekensteyn
644cb5ee73
bbswitch: Note why PM_RESTORE_PREPARE is unused
2011-12-12 17:36:11 +01:00
Lekensteyn
b50902797a
bbswitch: don't disable card if a driver is loaded
2011-12-12 17:00:06 +01:00
Lekensteyn
f7e6dd9741
bbswitch: If necessary, enable card before suspend and disable after
2011-12-11 23:41:02 +01:00
Lekensteyn
41da066752
bbswitcj_off: Perform _DSM call before the _PS3 routines
2011-12-10 23:01:16 +01:00
Lekensteyn
1b3bc0b862
Base on/off state on the device state, not a hardcoded flag
2011-12-10 22:17:57 +01:00
Lekensteyn
0bd5ce93d7
Fix misleading message reporting all VGA devices as discrete
2011-11-05 14:25:29 +01:00
Lekensteyn
3b4f224830
Fix dis_enabled flags values
2011-11-01 21:52:48 +01:00
Lekensteyn
3087852d68
bbswitch: Set dis_enabled flag when toggling
2011-11-01 21:50:05 +01:00
Lekensteyn
82cb834240
Initial addition of bbswitch (WIP!)
2011-11-01 20:01:12 +01:00