Bug 3887 - Generic hotkey support
Summary: Generic hotkey support
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Platform (show other bugs)
Hardware: i386 Linux
: P2 high
Assignee: Luming Yu
URL:
Keywords:
: 3820 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-12 04:49 UTC by giotto
Modified: 2010-10-08 18:16 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.9
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
this is my /proc/acpi/dsdt file (16.16 KB, application/octet-stream)
2004-12-14 13:18 UTC, giotto
Details
generic hotkey driver (33.07 KB, patch)
2004-12-23 01:15 UTC, Luming Yu
Details | Diff
a update version (33.76 KB, patch)
2004-12-31 01:37 UTC, Luming Yu
Details | Diff
a boot option for selecting hotkey driver (1.98 KB, patch)
2005-02-03 00:38 UTC, Luming Yu
Details | Diff
update acpi hotkey patch against 2.6.10 (36.17 KB, patch)
2005-03-02 23:37 UTC, Luming Yu
Details | Diff
hotkey.c clean up against 2.6.13-rc3 (26.93 KB, patch)
2005-08-01 07:24 UTC, Luming Yu
Details | Diff
clean up hotkey.c against 2.6.13-rc5 (30.61 KB, patch)
2005-08-03 02:07 UTC, Luming Yu
Details | Diff

Description giotto 2004-12-12 04:49:00 UTC
Distribution: Slacware 10.0
Hardware Environment: Toshiba A60-662 laptop 
Software Environment:
Problem Description: no tohiba_acpi support

Steps to reproduce:
If i enable the toshiba_acpi kernel support, there is no /proc/acpi/toshiba 
directory and dmesg says: not supported toshiba laptop...
Comment 1 Luming Yu 2004-12-14 07:27:42 UTC
Please attach DSDT. 
Sound like we need a generic solution.
Comment 2 giotto 2004-12-14 13:18:52 UTC
Created attachment 4263 [details]
this is my /proc/acpi/dsdt file

this is my /proc/acpi/dsdt file
Comment 3 Luming Yu 2004-12-14 19:49:28 UTC
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.
Comment 4 giotto 2004-12-15 04:38:37 UTC
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
Comment 5 Luming Yu 2004-12-23 01:15:54 UTC
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.
Comment 6 Luming Yu 2004-12-31 01:37:38 UTC
Created attachment 4319 [details]
a update version

coding style fix
Comment 7 giotto 2005-01-03 11:06:56 UTC
sorry about the luser question, but how do i add this patch, to my laptop? :)
Comment 8 Luming Yu 2005-02-03 00:38:36 UTC
Created attachment 4505 [details]
a boot option for selecting hotkey driver
Comment 9 Luming Yu 2005-03-02 23:37:03 UTC
Created attachment 4635 [details]
update acpi hotkey patch against 2.6.10
Comment 10 Luming Yu 2005-03-14 18:58:14 UTC
*** Bug 3820 has been marked as a duplicate of this bug. ***
Comment 11 Len Brown 2005-03-18 14:15:31 UTC
applied to acpi-test tree 
Comment 12 Luming Yu 2005-08-01 07:24:39 UTC
Created attachment 5451 [details]
hotkey.c clean up against 2.6.13-rc3
Comment 13 Luming Yu 2005-08-03 02:07:50 UTC
Created attachment 5488 [details]
clean up hotkey.c against 2.6.13-rc5
Comment 14 Len Brown 2005-08-03 20:32:16 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.