Bug 3887
Summary: | Generic hotkey support | ||
---|---|---|---|
Product: | Drivers | Reporter: | giotto (giotto) |
Component: | Platform | Assignee: | Luming Yu (luming.yu) |
Status: | CLOSED CODE_FIX | ||
Severity: | high | CC: | acpi-bugzilla, bug-track |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.9 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
this is my /proc/acpi/dsdt file
generic hotkey driver a update version a boot option for selecting hotkey driver update acpi hotkey patch against 2.6.10 hotkey.c clean up against 2.6.13-rc3 clean up hotkey.c against 2.6.13-rc5 |
Description
giotto
2004-12-12 04:49:00 UTC
Please attach DSDT. Sound like we need a generic solution. Created attachment 4263 [details]
this is my /proc/acpi/dsdt file
this is my /proc/acpi/dsdt file
tosiba_acpi.c rely on : #define METHOD_LCD_BRIGHTNESS "\\_SB_.PCI0.VGA_.LCD_._BCM" #define METHOD_HCI_1 "\\_SB_.VALD.GHCI" #define METHOD_HCI_2 "\\_SB_.VALZ.GHCI" #define METHOD_VIDEO_OUT "\\_SB_.VALX.DSSX" The attached DSDT don't have those method. So you need to look for other solution for this toshiba's hot key. Could you describe the details of them? Maybe my generic hotkey driver can help. why, don't have the attached DSDT those method??? these kind of details?? tell me if not! Fn + ESC : Mute/Unmute the sound Fn + F1 : Lock the screen Fn + F2 : Switch between the Power Saving Settings Fn + F3 : Stand-by the computer Fn + F4 : Hybernate the computer Fn + F5 : Change the display (TV, LCD, RGB Monitor) Fn + F6 : Narrow the brightness of the LCD Fn + F7 : Raise the brightness of the LCD Fn + F8 : Swicth between wireless LAN and Bluetooth Fn + F9 : Enable/Desable touch-pad Fn + F10 : Enable/Desable Cursor moving on the Numpad (works) Fn + F11 : Enable/Desable Numpad (works) Fn + F12 : Enable/Desable text scrolling mode Fn + Space : Change the resoulution Created attachment 4293 [details]
generic hotkey driver
With the enclosed patch, I enabled hotkey on ASUS2400 NE using the following
commands:
echo "0:\\_SB.ATKD::\\_SB.ATKD:INIT:1:1" > /proc/acpi/hotkey/ev_config :
Install hotey.
echo "1:1:0" > /proc/acpi/hotkey/action : Execute INIT method of Hotkey.
Without any specific driver, the hotkey functions work on this laptop.
So, I think you can config the driver through interfaces listed in
/proc/acpi/hotkey with respect to your specific DSDT.
Basically, acpi implement hotkey functionality through _Qxx or _Lxx (_Exx).
And, there could have Notify op to be used to notify OSPM for hotkey event.
This generic hotkey driver provide way to configure which acpi bus to notify
for a specific hotkey,
and way to call AML method for any specific purpose of enabling hotkey.
And, it also try to implement translation of specific hotkey event number to
standardized event number.
Created attachment 4319 [details]
a update version
coding style fix
sorry about the luser question, but how do i add this patch, to my laptop? :) Created attachment 4505 [details]
a boot option for selecting hotkey driver
Created attachment 4635 [details]
update acpi hotkey patch against 2.6.10
*** Bug 3820 has been marked as a duplicate of this bug. *** applied to acpi-test tree Created attachment 5451 [details]
hotkey.c clean up against 2.6.13-rc3
Created attachment 5488 [details]
clean up hotkey.c against 2.6.13-rc5
applied to linus' tree after 2.6.13-rc5 -- closing. As this code is now in-tree, please open new bugs for specific issues with it. |