* Asus ACPI Hotkeys
@ 2003-05-03 9:26 Gertjan
[not found] ` <20030503112602.3d2ac1c3.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Gertjan @ 2003-05-03 9:26 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi,
I recently bought an Asus Laptop from the L3 series. It has hotkeys, or
multimedia buttons, for volume up, down, mute, internet, mail etcetera.
Especially the volume up, down and mute are the buttons I would like to
see working.
After some research I found out that these buttons are ACPI buttons. In
Windows Asus has a driver which handles the buttons with a nice OSD
interface. But as I use Linux and not Windows, I can't use these buttons
since they are not currently supported. There are loads of programs to
assign commands to special buttons ('hotkeys', 'lineakd', etcetera), but
the problem is, that my buttons do not generate scancodes, because they
are ACPI buttons.
I really would like to have them working. I'm prepared to write a driver
for them if needed and that's why I'm posting this request. Can somebody
help me, where to start, which steps to take? I'll post my results and I
hope that eventually the buttons will get supported in the ACPI patches.
Regards,
Gertjan
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <20030503112602.3d2ac1c3.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
@ 2003-05-03 10:15 ` Markus Gaugusch
[not found] ` <Pine.LNX.4.53.0305031214220.4945-qopfHk9/S+VQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
2003-05-03 14:23 ` Julien Lerouge
2003-05-03 16:04 ` Dimitris Stasinopoulos
2 siblings, 1 reply; 14+ messages in thread
From: Markus Gaugusch @ 2003-05-03 10:15 UTC (permalink / raw)
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On May 3, Gertjan <g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org> wrote:
> I recently bought an Asus Laptop from the L3 series. It has hotkeys, or
> multimedia buttons, for volume up, down, mute, internet, mail etcetera.
> Especially the volume up, down and mute are the buttons I would like to
> see working.
Do they generate an event, when you do
cat /proc/acpi/event
and press a button?
Did you (have to) recompile your DSDT and fixed some errors?
Markus
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <Pine.LNX.4.53.0305031214220.4945-qopfHk9/S+VQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
@ 2003-05-03 10:33 ` Gertjan
[not found] ` <20030503123325.5246f48f.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Gertjan @ 2003-05-03 10:33 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> Do they generate an event, when you do
Only sleep and poweroff. But that's only 2 out of 10.
> cat /proc/acpi/event
> and press a button?
>
> Did you (have to) recompile your DSDT and fixed some errors?
No. I tried if it helped, but it didn't. If I recompile my DSDT I don't
get any warnings.
It just seems that no support for these buttons is in the kernel yet.
Gertjan
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <20030503123325.5246f48f.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
@ 2003-05-03 12:53 ` Stefan Behnel
[not found] ` <3EB3BBCD.7050008-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
2003-05-03 14:15 ` Karol Kozimor
1 sibling, 1 reply; 14+ messages in thread
From: Stefan Behnel @ 2003-05-03 12:53 UTC (permalink / raw)
To: Gertjan; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Gertjan wrote:
>>Do they generate an event, when you do
>>cat /proc/acpi/event
>>and press a button?
>
> Only sleep and poweroff. But that's only 2 out of 10.
I'm a little surprised, can you positively confirm that the buttons generate ACPI interrupts?
try
fgrep acpi /proc/interrupts
and see if the number of interrupts increases whenever you press a button.
Then you're sure that the buttons really run over ACPI. Believe me, not much of what I've seen so far did use ACPI for buttons other than the sleep and power button ...
Stefan
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <20030503123325.5246f48f.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
2003-05-03 12:53 ` Stefan Behnel
@ 2003-05-03 14:15 ` Karol Kozimor
[not found] ` <20030503141516.GA29022-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
1 sibling, 1 reply; 14+ messages in thread
From: Karol Kozimor @ 2003-05-03 14:15 UTC (permalink / raw)
To: Gertjan; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Thus wrote Gertjan:
> It just seems that no support for these buttons is in the kernel yet.
There is currently a driver, made by Julien Lerouge
(http://julien.lerouge.free.fr) that supports both these buttons, and the 2
status LEDs. I'm currently beginning to work on developing this driver
further on, so if you're willing to contribute, you're welcome.
What exactly is the model (and the BIOS version) of the laptop you have?
Best regards,
--
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <20030503112602.3d2ac1c3.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
2003-05-03 10:15 ` Markus Gaugusch
@ 2003-05-03 14:23 ` Julien Lerouge
2003-05-03 16:04 ` Dimitris Stasinopoulos
2 siblings, 0 replies; 14+ messages in thread
From: Julien Lerouge @ 2003-05-03 14:23 UTC (permalink / raw)
To: Gertjan; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi,
Check my page : http://julien.lerouge.free.fr/
This driver supports Asus hotkeys, it adds an entry in /proc/
filesystem. Currently, events are redirected to this entry, but in the
next version, they will go directly in /proc/acpi/event.
What this driver dos is rather simple, it installs a handler for the
HOTK/ATKD device you can find in your DSDT.
Regards,
Julien
On Sat, May 03, 2003 at 11:26:02AM +0200, Gertjan wrote:
> Hi,
> I recently bought an Asus Laptop from the L3 series. It has hotkeys, or
> multimedia buttons, for volume up, down, mute, internet, mail etcetera.
> Especially the volume up, down and mute are the buttons I would like to
> see working.
> After some research I found out that these buttons are ACPI buttons. In
> Windows Asus has a driver which handles the buttons with a nice OSD
> interface. But as I use Linux and not Windows, I can't use these buttons
> since they are not currently supported. There are loads of programs to
> assign commands to special buttons ('hotkeys', 'lineakd', etcetera), but
> the problem is, that my buttons do not generate scancodes, because they
> are ACPI buttons.
> I really would like to have them working. I'm prepared to write a driver
> for them if needed and that's why I'm posting this request. Can somebody
> help me, where to start, which steps to take? I'll post my results and I
> hope that eventually the buttons will get supported in the ACPI patches.
> Regards,
> Gertjan
--
main() {int j = 1234; char t[] = ":@ab4defghijklmnopqrstuvwxyz.\n", *i =
"iqgbgxmjjtzyhlnvlzeo.xlstbqbrt";char *strchr(const char *, int);while (
*i){j += strchr(t, *i++) - t;j %= sizeof t - 1;putchar(t[j]);}return 0;}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <20030503112602.3d2ac1c3.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
2003-05-03 10:15 ` Markus Gaugusch
2003-05-03 14:23 ` Julien Lerouge
@ 2003-05-03 16:04 ` Dimitris Stasinopoulos
2 siblings, 0 replies; 14+ messages in thread
From: Dimitris Stasinopoulos @ 2003-05-03 16:04 UTC (permalink / raw)
To: Gertjan; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Saturday 03 May 2003 12:26, Gertjan wrote:
> Hi,
>
> I recently bought an Asus Laptop from the L3 series. It has hotkeys, or
> multimedia buttons, for volume up, down, mute, internet, mail etcetera.
> Especially the volume up, down and mute are the buttons I would like to
> see working.
>
Please note that in most cases, the volume buttons have nothing to do with
ACPI. Run "showkey -s", hit any of these keys and see if they register any
codes. If they do, then you're good to go. On my notebook (Compaq 1722EA),
that is the case, and I use xevact under X to use them.
Dimitris
--
"The end of time is reached around the year 8000, by which time we expect Qt
to be obsolete."
- QT Documention, qdate.html#details
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <3EB3BBCD.7050008-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
@ 2003-05-03 19:26 ` Karol Kozimor
0 siblings, 0 replies; 14+ messages in thread
From: Karol Kozimor @ 2003-05-03 19:26 UTC (permalink / raw)
To: Stefan Behnel; +Cc: Gertjan, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Thus wrote Stefan Behnel:
> I'm a little surprised, can you positively confirm that the buttons
> generate ACPI interrupts?
They do. Asus makes all the extra keys (4 silver on top and others,
controlling brightness, volume, or video output) work through ACPI, though
through a special device.
Best regards,
--
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <20030503141516.GA29022-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
@ 2003-05-09 14:17 ` Gertjan
0 siblings, 0 replies; 14+ messages in thread
From: Gertjan @ 2003-05-09 14:17 UTC (permalink / raw)
To: Karol Kozimor, Julien Lerouge; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi both,
I tested it and the driver works for my Asus L3400D too! I'll put up a
page about Linux on the Asus L3400D within a few days... I use kernel 2.5
in stead of 2.4 for better ACPI and CPU frequency scaling support and I'll
take a look at this driver to port it to 2.5. Will this driver be
supported in the ACPI patch sooner or later? What has to be done to have
it supported in the ACPI patch? Maybe it is a good idea to use
/proc/acpi/event and /proc/acpi/button in stead of /proc/acpi/asus/hotk.
Maybe /proc/acpi/led can be introduced for the status leds... Please let
me know what I can do...
Regards,
Gertjan
On Sat, 3 May 2003 16:15:16 +0200 Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
wrote:
> Thus wrote Gertjan:
> > It just seems that no support for these buttons is in the kernel yet.
>
> There is currently a driver, made by Julien Lerouge
> (http://julien.lerouge.free.fr) that supports both these buttons, and
> the 2 status LEDs. I'm currently beginning to work on developing this
> driver further on, so if you're willing to contribute, you're welcome.
>
> What exactly is the model (and the BIOS version) of the laptop you have?
>
> Best regards,
>
> --
> Karol 'sziwan' Kozimor
> sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: Asus ACPI Hotkeys
@ 2003-05-16 22:09 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847E96E9A-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Grover, Andrew @ 2003-05-16 22:09 UTC (permalink / raw)
To: Karol Kozimor, Stefan Behnel
Cc: Gertjan, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> From: Karol Kozimor [mailto:sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org]
> Thus wrote Stefan Behnel:
> > I'm a little surprised, can you positively confirm that the buttons
> > generate ACPI interrupts?
>
> They do. Asus makes all the extra keys (4 silver on top and others,
> controlling brightness, volume, or video output) work through
> ACPI, though
> through a special device.
Well then probably someone needs to write a device driver for this, just
like for Toshiba's special device.
Regards -- Andy
-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful,
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <F760B14C9561B941B89469F59BA3A847E96E9A-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
@ 2003-05-16 22:24 ` Karol Kozimor
0 siblings, 0 replies; 14+ messages in thread
From: Karol Kozimor @ 2003-05-16 22:24 UTC (permalink / raw)
To: Grover, Andrew
Cc: Stefan Behnel, Gertjan,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Julien Lerouge
Thus wrote Grover, Andrew:
> Well then probably someone needs to write a device driver for this, just
> like for Toshiba's special device.
Actually, it has already been done. Right now, we're working with Julien to
simplify the code and to add some features. The code is now under heavy
re-development, and we'll make an appropriate announce once it becomes
stable enough.
Since we were aiming at merging the driver with the ACPI code (more or less
on the same basis the Toshiba driver is) anyway, we can as well ask right
now, whether this would be possible somewhere in the future?
Best regards,
--
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org
-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful,
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: Asus ACPI Hotkeys
@ 2003-05-16 22:37 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A84725A2A6-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Grover, Andrew @ 2003-05-16 22:37 UTC (permalink / raw)
To: Karol Kozimor
Cc: Stefan Behnel, Gertjan,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Julien Lerouge
> From: Karol Kozimor [mailto:sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org]
> Thus wrote Grover, Andrew:
> > Well then probably someone needs to write a device driver
> for this, just
> > like for Toshiba's special device.
>
> Actually, it has already been done. Right now, we're working
> with Julien to
> simplify the code and to add some features. The code is now
> under heavy
> re-development, and we'll make an appropriate announce once
> it becomes
> stable enough.
>
> Since we were aiming at merging the driver with the ACPI code
> (more or less
> on the same basis the Toshiba driver is) anyway, we can as
> well ask right
> now, whether this would be possible somewhere in the future?
Of course! This is exactly what I was hoping for.
Regards -- Andy
-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful,
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <F760B14C9561B941B89469F59BA3A84725A2A6-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
@ 2003-05-17 19:32 ` Julien Lerouge
[not found] ` <20030517193221.GA429-POkr7DlFbg8GVorsxHoEew@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Julien Lerouge @ 2003-05-17 19:32 UTC (permalink / raw)
To: Grover, Andrew
Cc: Karol Kozimor, Stefan Behnel, Gertjan,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Fri, May 16, 2003 at 03:37:02PM -0700, Grover, Andrew wrote:
> > From: Karol Kozimor [mailto:sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org]
> > Thus wrote Grover, Andrew:
> > > Well then probably someone needs to write a device driver
> > for this, just
> > > like for Toshiba's special device.
> >
> > Actually, it has already been done. Right now, we're working
> > with Julien to
> > simplify the code and to add some features. The code is now
> > under heavy
> > re-development, and we'll make an appropriate announce once
> > it becomes
> > stable enough.
> >
> > Since we were aiming at merging the driver with the ACPI code
> > (more or less
> > on the same basis the Toshiba driver is) anyway, we can as
> > well ask right
> > now, whether this would be possible somewhere in the future?
> Of course! This is exactly what I was hoping for.
> Regards -- Andy
Well, here is a new version of the driver. It was tested against
2.4.21-rc2 + acpi-20030512-2.4.21-rc2.diff
Any comment welcome
http://julien.lerouge.free.fr/sources/asus_acpi-0.20.tar.bz2
--
Prédire n'est pas expliquer.
-- Thom, René
-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful,
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Asus ACPI Hotkeys
[not found] ` <20030517193221.GA429-POkr7DlFbg8GVorsxHoEew@public.gmane.org>
@ 2003-05-17 21:21 ` John Belmonte
0 siblings, 0 replies; 14+ messages in thread
From: John Belmonte @ 2003-05-17 21:21 UTC (permalink / raw)
To: acpi-devel
Julien Lerouge wrote:
> Well, here is a new version of the driver. It was tested against
> 2.4.21-rc2 + acpi-20030512-2.4.21-rc2.diff
>
> Any comment welcome
Hi Julien,
Just a few suggestions about your copyright and credits:
You should remove Jonathan Buzzard from the copyright, since he didn't write any
of the code.
You don't have to keep my copyright since I don't really see much of my code
left, maybe just give me a credit if you'd like. (If you keep it, it should be
on a separate line so people know it is a derived work rather than co-authored.)
Perhaps you should remove the credits I wrote (Jonathan Buzzard, Yasushi
Nagato), since they have no bearing on your current code.
Regards,
-John
--
http:// if l .o /
-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful,
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2003-05-17 21:21 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-16 22:09 Asus ACPI Hotkeys Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847E96E9A-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-05-16 22:24 ` Karol Kozimor
-- strict thread matches above, loose matches on Subject: below --
2003-05-16 22:37 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A84725A2A6-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-05-17 19:32 ` Julien Lerouge
[not found] ` <20030517193221.GA429-POkr7DlFbg8GVorsxHoEew@public.gmane.org>
2003-05-17 21:21 ` John Belmonte
2003-05-03 9:26 Gertjan
[not found] ` <20030503112602.3d2ac1c3.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
2003-05-03 10:15 ` Markus Gaugusch
[not found] ` <Pine.LNX.4.53.0305031214220.4945-qopfHk9/S+VQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
2003-05-03 10:33 ` Gertjan
[not found] ` <20030503123325.5246f48f.g.zwartjes-oe7qfRrRQfdlL9U78CI+FQ@public.gmane.org>
2003-05-03 12:53 ` Stefan Behnel
[not found] ` <3EB3BBCD.7050008-8NdywcgfOMlWMvVl7B+zuCEWGD4kr0XT@public.gmane.org>
2003-05-03 19:26 ` Karol Kozimor
2003-05-03 14:15 ` Karol Kozimor
[not found] ` <20030503141516.GA29022-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-05-09 14:17 ` Gertjan
2003-05-03 14:23 ` Julien Lerouge
2003-05-03 16:04 ` Dimitris Stasinopoulos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox