Sonypi driver model & PM changes
Apologies for breaking the threading...
Quoted 7 lines · Stelian Pop
Quoted 5 lines · Vojtech Pavlik
The number is 240 and it's the number of possible PS/2 scancode combinations, and since at this time X can only understand the PS/2 protocol (and not native Linux events), this is the only way how to pass keypresses to X.
Quoted 5 lines
Quoted 1 line
I believe that although this way may be easier, it leads to madness.
It is also impossible for me to go this way because there is no way to put 20+ events between 226 and 240...
I'd say just allocate brand new events for all combinations and do not worry that the default X keyboard drivers to not get them. There are already patches in Gentoo adding both keyboard and mouse event support to X [1] and it is only matter of time ofr other duistributions to pick it up as well.
I think it is sensible for an supplemental driver (sonypi) to require some additional support form userspace and not to force itself into boundaries of a legacy protocol.
Signature · 6 lines
Dmitry [1] http://csociety-ftp.ecn.purdue.edu/pub/gentoo/distfiles/xorg-x11-6.8.0-patches-0.2.5.tar.bz2 Extract patches 9000, 9001 and 9002. Btw, these are not mine - I have Not even tries them myself but I have read several success stories.
Quoted 6 lines · Dmitry Torokhov
I'd say just allocate brand new events for all combinations and do not worry that the default X keyboard drivers to not get them. There are already patches in Gentoo adding both keyboard and mouse event support to X [1] and it is only matter of time ofr other duistributions to pick it up as well.
Quoted 11 lines
I think it is sensible for an supplemental driver (sonypi) to require some additional support form userspace and not to force itself into boundaries of a legacy protocol.
Signature · 6 lines
Dmitry [1] http://csociety-ftp.ecn.purdue.edu/pub/gentoo/distfiles/xorg-x11-6.8.0-patches-0.2.5.tar.bz2 Extract patches 9000, 9001 and 9002. Btw, these are not mine - I have Not even tries them myself but I have read several success stories.
Got them and trying to build the new drivers right now. Thanks !
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>
Quoted 6 lines · Stelian Pop
Quoted 4 lines
[1]
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/distfiles/xorg-x11-6.8.0-patches-0.2.5.tar.bz2
Extract patches 9000, 9001 and 9002. Btw, these are not mine - I have Not even tries them myself but I have read several success stories.Got them and trying to build the new drivers right now. Thanks !
Well, it kinda works, but there are still some rough edges (the kbd driver maps all the unknown keys to KEY_UNKNOWN, making them all to have the same keycode in X, making them unusable. After removing the test it forwards the events ok).
There are also problems because my sonypi input device acts both like a mouse and a keyboard, and the X event driver wants them to be separate.
Vojtech: should I generate two different input devices in my driver, a mouse like and a keyboard like device, or should the userspace be able to demultiplex the events ?
Stelian.
Signature · 1 line
Stelian Pop <[email protected]>