locking touchscreen

2008-09-02 Thread Christian Adams
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

moinmoin

sometimes i just want to lock the screen like on my se-w810i - a  
simple keypad-lock.
a way that just came to my mind could be to tell the kernel - maybe  
via sysfs - to suppress data coming out of the corresponding /dev/ 
input/event1.

would that be a) possible (andy?) and b) desired (community?)

regards, morlac

- -BEGIN CONTACT BLOCK-
   eMail:   [EMAIL PROTECTED]
   Jabber:  [EMAIL PROTECTED]
- --END CONTACT BLOCK--

- -BEGIN GEEK CODE BLOCK-
Version: 3.1
GCS$/IT;d-;s:;a?;C++(+++);UL;P++(+++);
L++(+++);E---;W++;N(+);o?;K?;!w;!O;!M+;!V;PS(+);PE;
Y+;PGP++;t+(++);5(+)++;X(+);R*;tv-+;b++(+++);DI++;
D++(+++);G(+)++;e;h-()++;r++;y++;
- --END GEEK CODE BLOCK--

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFIvPhfr81gVylJyzERAmQMAJ9ZEubgK4qHyt8v737DiiI3JRtQ5gCg2Qp+
GpQUNf/WZSMcqiDdxI7ehGY=
=nHAK
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: locking touchscreen

2008-09-02 Thread NeilBrown
On Tue, September 2, 2008 6:25 pm, Christian Adams wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 moinmoin

 sometimes i just want to lock the screen like on my se-w810i - a
 simple keypad-lock.
 a way that just came to my mind could be to tell the kernel - maybe
 via sysfs - to suppress data coming out of the corresponding /dev/
 input/event1.

 would that be a) possible (andy?) and b) desired (community?)

Me too.

The way to do this is to open /dev/input/event1 and issue the EVIOCGRAB
ioctl.  However there is currently a patch in the openmoko kernel which
modifies EVIOCGRAB in such a way that it is no longer useful for this
purpose.
Before we can remove that patch, we need to fix tslib to so that it
doesn't use EVIOCGRAB in a way that depends on the kernel patch.

The fix for tslib is in the process of being committed to the
openmoko source tree (it is in some 'devel' tree but not in 'stable' yet,
though I almost certainly have those names wrong).
Once that has propagated reasonably, I will be asking Andy to
remove the EVIOCGRAB-modification patch from the kernel.

And once that it done, we can try use EVIOCGRAB to steal all events
from the touchscreen.

Simple!

NeilBrown


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community