Commit Graph

56 Commits (cdb79257f27f3d25d7ba9f03e673390c46c8f82a)

Author SHA1 Message Date
Peter Wu b12b017f3a Update to version 0.5, update NEWS 12 years ago
Peter Wu 8beb9e3f88 Add missing 'static' keyword 12 years ago
Peter Wu da55a70331 Add modeline for vim 12 years ago
Peter Wu 7f9fb7adf9 Power on the PCIe port before accessing PCI config space (#35)
Fixes regression in Linux 3.6 when run-time power management is enabled. See
https://bugzilla.kernel.org/show_bug.cgi?id=48981 for a discussion.
12 years ago
Peter Wu b8a6029692 Convert printk to pr_... macros
For pr_debug outputs on _DSM results, use "make DEBUG=1"
12 years ago
Peter Wu dbf8aaf8e2 Use D3cold instead of D3hot to reflect real device state 12 years ago
Lekensteyn d12ce73a0d Update to version 0.4.2, update NEWS 13 years ago
Lekensteyn af91008deb Fix formatting of arguments on case of ACPI failure (GH-12) 13 years ago
Lekensteyn e13e6ffc54 Fix null deref when ACPI method call failed (GH-12) 13 years ago
Lekensteyn f034252a13 Don't share buffer for muid/args, it'll be overwritten 13 years ago
Lekensteyn 647e3dddea Buffer overflow by one byte 13 years ago
Lekensteyn 804773eb22 Fix misuse of sizeof which trims arguments/muid (GH-12) 13 years ago
Lekensteyn 7c30e38bd1 Revert "Add support for WMMX method"
This reverts commit 11ddd3469f.
13 years ago
Lekensteyn e321debb5b Revert "Support Optimus machines through WMMX (GH-2)"
This reverts commit 0ec41fa2da.
13 years ago
Lekensteyn 0ec41fa2da Support Optimus machines through WMMX (GH-2)
This should finally support machines like the Lenovo Y570. WMMX methods should
be more reliable than direct DSM probing so let's try that before calling DSM
directly.
13 years ago
Lekensteyn 7fd02221b2 Print version on load 13 years ago
Lekensteyn 11ddd3469f Add support for WMMX method
This should support at least the Lenovo Ideapad Y470 and Y570. It probes the
WMMX method before calling the _DSM method directly since that method should
work for all machines that support the NVIDIA DSM.
13 years ago
Lekensteyn 8c0c5aa863 Allow everyone to get the status of the card (Closes GH-8) 13 years ago
Lekensteyn b0712e5185 Update to version 0.4.1, update NEWS 13 years ago
Lekensteyn 2d1effc903 Fix a harmless error message 13 years ago
Lekensteyn 8bd07d14af Bump to version 0.4, update NEWS 13 years ago
Lekensteyn ebf86f0617 Detect 3D controllers as gfx device too (GH-3) 13 years ago
Lekensteyn a904b442af Add debug message in case no ACPI handle is found 13 years ago
Lekensteyn c8b303c36c Add NEWS file, bump version to 0.3 13 years ago
Lekensteyn 358ce15bc1 Probe for nvidia DSM on Intel ACPI handle (GH-4) 13 years ago
Lekensteyn 62f9560821 Added module options to turn the card on/off on (un)load 13 years ago
Lekensteyn 7e792ef176 Bump module version to 0.2 13 years ago
Lekensteyn 73966cbddd Fix logic in Optimus DSM execution 13 years ago
Lekensteyn a62634d9fe Fix misleading warning, changed LOG_INFO -> LOG_DEBUG 13 years ago
Lekensteyn c10907b6b3 bbswitch: silently ignore large writes 13 years ago
Lekensteyn c6e50c9a37 bbswitch: Use seq_file instead of deprecated proc_read/proc_write
Now works with dd if=/proc/acpi/bbswitch bs=1 seek=N and if the size passed to
fread is larger than 1
13 years ago
Lekensteyn 96ff2ed501 bbswitch: always pass a Buffer object for empty args 13 years ago
Lekensteyn 46b9032921 bbswitch: fix misleading error message about _DSM when toggling card 13 years ago
Lekensteyn cce4ffd2f7 bbswitch: fix more return values and document acpi_call_dsm 13 years ago
Lekensteyn d0c1e29818 bbswitch: Fix return value if a _DSM test failed 13 years ago
Lekensteyn 5c51e06ab8 bbswitch: Add more debugging messages 13 years ago
Lekensteyn 93f07b9570 bbswitch: Warn when result type is unknown 13 years ago
Lekensteyn 41e0b9fca0 bbswitch: make the uuid array of size 16, remove check 13 years ago
Lekensteyn 1997dba661 bbswitch: Do not pass a null pointer, but zero instead 13 years ago
Lekensteyn b2191e5160 bbswitch: add comment on other possible UUID 13 years ago
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