Skip to contentSkip to conversation

ACPI events for laptop special buttons

DISCUSSION andreas pålsson 3 participants 4 messages Oct 24, 2009 – Oct 25, 2009 ACPI

lore
Share & tools
lore
#0 lore raw

Hello.

I recently bought a cute little Eee PC and of course I decided to run Linux on it.
But some special buttons/keys doesn't work, like the "special FN key + F3" which disables touchpad.

I did some research and if I understand it correctly, pressing those buttons generate "ACPI events" which could (until it was recently deprecated) be read from "/proc/acpi/events".

So now to my question, how do I catch those events?

Is it possible to read them from user-mode (like to have a nice graph showing if touchpad/wifi is online or offline)?

I've not been digging around in the kernel before so I don't have yet much understanding how things work, but one has to start somewhere and a simple task like "is button pressed?" seems like the right thing. :)

Thank you.

PS. Apologies if this is the wrong list for questions like this.

Signature · 5 lines
andreas pålsson
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

Hi,
There is driver to handle events from eeePC hardware drivers/platform/x86/eeepc-laptop.c
You should probably start from making sure you have this one loaded.

Regards,
Alex.

andreas pålsson пишет:

Quoted 18 lines

Hello.

I recently bought a cute little Eee PC and of course I decided to run Linux on it.
But some special buttons/keys doesn't work, like the "special FN key + F3" which disables touchpad.

I did some research and if I understand it correctly, pressing those buttons generate "ACPI events" which could (until it was recently deprecated) be read from "/proc/acpi/events".

So now to my question, how do I catch those events?

Is it possible to read them from user-mode (like to have a nice graph showing if touchpad/wifi is online or offline)?

Quoted 8 lines

I've not been digging around in the kernel before so I don't have yet much understanding how things work, but one has to start somewhere and a simple task like "is button pressed?" seems like the right thing. :)

Thank you.

PS. Apologies if this is the wrong list for questions like this.

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

That is absolutely wonderful!
I was digging around in drivers/acpi/* but had trouble to make sense of things, but eeepc-laptop.c seems to be right on the spot of what I was thinking of doing. :)

Now I just need to figure out how to talk to it from user-mode, and I should be all set.
I suppose this is not the list to ask questions related to it?

Thanks!

Quoted 38 lines · Alexey Starikovskiy

Hi,
There is driver to handle events from eeePC hardware drivers/platform/x86/eeepc-laptop.c
You should probably start from making sure you have this one loaded.

Regards,
Alex.

andreas pålsson пишет:

Quoted 27 lines

Hello.

I recently bought a cute little Eee PC and of course I decided to run Linux on it.
But some special buttons/keys doesn't work, like the "special FN key + F3" which disables touchpad.

I did some research and if I understand it correctly, pressing those buttons generate "ACPI events" which could (until it was recently deprecated) be read from "/proc/acpi/events".

So now to my question, how do I catch those events?

Is it possible to read them from user-mode (like to have a nice graph showing if touchpad/wifi is online or offline)?

I've not been digging around in the kernel before so I don't have yet much understanding how things work, but one has to start somewhere and a simple task like "is button pressed?" seems like the right thing. :)

Thank you.

PS. Apologies if this is the wrong list for questions like this.

Signature · 5 lines
andreas pålsson
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
Quoted 5 lines · andreas pålsson

That is absolutely wonderful!
I was digging around in drivers/acpi/* but had trouble to make sense of things, but eeepc-laptop.c seems to be right on the spot of what I was thinking of doing. :)

Quoted 7 lines

Now I just need to figure out how to talk to it from user-mode, and I should be all set.
I suppose this is not the list to ask questions related to it?

Thanks!

Hi
You can use this list, or directly acpi4asus mailing list / bug tracker at http://acpi4asus.sf.net

Signature · 6 lines
Corentin Chary
http://xf.iksaif.net
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html