Re: Input event for blocking touchpad

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 30, 2010 at 09:34:13AM +0800, Zhang Rui wrote:
> On Sat, 2010-11-27 at 05:10 +0800, Thadeu Lima de Souza Cascardo wrote:
> > Hello,
> > 
> > I have a notebook with an ACPI system that notifies about the pressing
> > of the key for blocking touchpad. However, it does not notify it by
> > itself. I was considering sending the event to userspace and let it does
> > the blocking.
> > 
> how do you know the event is sent via ACPI?
> 
> please try "cat /proc/interrupts > interrupt-1;
> grep . /sys/firmware/acpi/interrupts/* > gpe-1; sleep 5;
> cat /proc/interrupts > interrupt-2;
> grep . /sys/firmware/acpi/interrupts/* > gpe-2", and press the block key
> during the 5 seconds sleep.
> Then please attach the 4 files here to see if there are ACPI interrupts
> generated by the key pressing.
> 
> thanks,
> rui

I know because I've already done some investigation and have even
written a driver for it. It's WMI to be more precise. After calling a
WMI method, it does start notification through the PNP0C14 object, using
the notify_id of a GUID. Then, I can get the key calling a query block
for a third GUID. I get values for all the keys whose functions were
missing.

I am about to send the driver soon. It requires the fix for WMI that
I've sent yesterday to work at all, since the GUIDs I use were being
wrongly considerated as duplicates.

Thanks for the tip, though. I'll be sure to use it to lookup the source
for key presses next time. In fact, I did end up looking at *gpe* at
/sys/ while doing this investigation. Now, I'm sure that's one of the
first places to look up while searching for ACPI notifications.

Thanks Rui.

Regards,
Cascardo.

> > Since other keys are also notified by this same ACPI object, it's even
> > more natural that I use an input device to send this to userspace.
> > 
> > The problem is: there seems to be no event to represent this. Any
> > suggestions?
> > 
> > Best regards,
> > Cascardo.
> 
> 

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux