From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thadeu Lima de Souza Cascardo Subject: Re: Input event for blocking touchpad Date: Mon, 29 Nov 2010 23:56:40 -0200 Message-ID: <20101130015639.GA3568@barata.holoscopio.com> References: <20101126211056.GD3819@barata.holoscopio.com> <1291080853.3283.282.camel@rui> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Return-path: Content-Disposition: inline In-Reply-To: <1291080853.3283.282.camel@rui> Sender: linux-acpi-owner@vger.kernel.org To: Zhang Rui Cc: "linux-input@vger.kernel.org" , "linux-acpi@vger.kernel.org" , platform-driver-x86@vger.kernel.org List-Id: linux-input@vger.kernel.org --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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, > >=20 > > 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. > >=20 > how do you know the event is sent via ACPI? >=20 > 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. >=20 > 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. > >=20 > > The problem is: there seems to be no event to represent this. Any > > suggestions? > >=20 > > Best regards, > > Cascardo. >=20 >=20 --zhXaljGHf11kAtnf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJM9FnVAAoJEEWxSg7udFZI/V8QAIyP+ze/ntIUzLugmdxqhufc f52cpbfjej/mHHHzS3s+QHwF1uPASDTho3m4pmDlWQPOr3NOWyt3GMbeZjo11Per gc3ywet6jRv+Bl/xBPVL0iVBrhy2Y1QbbVd+3hEWpaQtmk68M/zKXxyQpvWhoE9F SFl5OxQb8c9jjDZYWHt6ZUKeu22+e29qgPmxizTcRSNPj7RuVvql1mLRu5j44m8j 2rFbM+LB1SHB5g6EErmcMbQlnYauT1D+ou6P0EbZiQCcDJX/q4nxrBijmJ6cMQvU A8L3Bps/PMZT7C071tbbag8bpGCZaGSxeMTlwc3ubGGNbinrIOPHAg6bKN4JoeKN LynCBPpUwoh/I6ZuZiTsu5wdBcpPX9Yu9UhiUjRQ7CpS3kNJmc9vQcwEi2uNd0CI tAKx2XlyL5QtGrhEWbjweEDAPYQJZnUFt//7Xlm/FbjN600Pxc9VaTIDPHZ/mUFC nDgZJdlbqCOcdeeKjqRajUky+0Dh5j3uItFb/CJ95aY7BdkIddaMf2tdqMY4Uff+ xtgRvErZZfO9bQQrTTmdMN17Txe5461vLDNHHVyhmSFV1SNw8KKCi6jpGUI3RjoR JMHnazmm5Pe/oGxRLhfGkbvWsnbmU+XDR5Zp9UO3pwfP3IG3AUoGOUvRyZ19f9gk SozxwcyIi8RKWV7bgVO0 =TcFe -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--