Skip to contentSkip to conversation

function keys

DISCUSSION Franklin Marmon 2 participants 2 messages Mar 16, 2006 – Mar 17, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

I am currently using an acpi driver for sony laptops (sony_acpi.c) which provides an interface for reading that last pressed function key by means of a /proc interface file. When read this file will show either 0 or the last function key combination that was typed. It provides this value by using the acpi_evaluate_object() function to obtain the value of "GHKE". A user space program is currently used to read this value every N seconds and check for events.

Is there an interrupt generated when one of these function keys is pressed and is this interrupt currently handled by the acpi subsystem? If so, is there a way to add this acpi device driver into a wait queue for this type of event so that a proper char device may be created and polled, rather than reading the /proc file system every N seconds?

Is there a better way to handle this type of thing in the kernel already that I've missed?

Thank you,

frm

--
Franklin Marmon
freenode nic: Agathezol

#1 lore raw
Quoted 8 lines · Franklin Marmon

I am currently using an acpi driver for sony laptops (sony_acpi.c) which provides an interface for reading that last pressed function key by means of a /proc interface file. When read this file will show either 0 or the last function key combination that was typed. It provides this value by using the acpi_evaluate_object() function to obtain the value of "GHKE". A user space program is currently used to read this value every N seconds and check for events.

Quoted 5 lines

Is there an interrupt generated when one of these function keys is pressed and is this interrupt currently handled by the acpi subsystem? If so, is there a way to add this acpi device driver into a wait queue for this type of event so that a proper char device may be created and polled, rather than reading the /proc file system every N seconds?

http://developer.berlios.de/projects/fsfn/

Signature · 1 line
Garry Williams -- +1 (678) 656-4579