Skip to contentSkip to conversation

Sonypi driver model & PM changes

PATCH Dmitry Torokhov 2 participants 5 messages Oct 26, 2004 – Oct 27, 2004

lore
Share & tools
lore
#0 lore raw

And I am breaking the thread yet again....

Quoted 15 lines · Stelian pop
Quoted 2 lines · Stelian Pop
Quoted 2 lines

[1]
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/distfiles/xorg-x11-

6.8.0-patches-0.2.5.tar.bz2

Quoted 4 lines
Quoted 2 lines

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).

Quoted 7 lines

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 ?

If you want jogdial to continue generating BTN_MIDDLE and BTN_WHEEL events then IMHO you should create 2 separate input devices - one for jogdial and the other for FN-keys.

On the other hand I am not sure if it is handy as a ponter device - I think scrolling is much more natural with the touchpad (but remember I don't have the hardware) and it may be more convenient to assign brand-new events to jogdial as well and then map it in userspace (X) into something different, like volume control. In this case you can continue having just one input device.

Btw, you should probably drop conditional support for input layer and always compile it in.

Signature · 1 line
Dmitry
#1 lore raw
Quoted 3 lines · Dmitry Torokhov

If you want jogdial to continue generating BTN_MIDDLE and BTN_WHEEL events then IMHO you should create 2 separate input devices - one for jogdial and the other for FN-keys.

That's what I thought too...

Quoted 3 lines

On the other hand I am not sure if it is handy as a ponter device - I think scrolling is much more natural with the touchpad (but remember I don't have the hardware)

I don't have a touchpad, just a stick. And I use the jogdial to scroll quite often...

Quoted 7 lines

and it may be more convenient
to assign brand-new events to jogdial as well and then map it in userspace (X) into something different, like volume control. In this case you can continue having just one input device.

Btw, you should probably drop conditional support for input layer and always compile it in.

Is CONFIG_INPUT now a requirement for the (at least i386) kernel ? If this is the case, I'll drop the conditional.

Stelian.

Signature · 1 line
Stelian Pop <[email protected]>
#2 lore raw
Quoted 6 lines · Stelian Pop
Quoted 2 lines

Btw, you should probably drop conditional support for input layer and always compile it in.

Is CONFIG_INPUT now a requirement for the (at least i386) kernel ? If this is the case, I'll drop the conditional.

While it can be disabled when one selects !EMBEDDED I doubt hi/she will be interested in sonnypi in this case :). For all practical reasons input layer is always present.

Signature · 1 line
Dmitry
#3 lore raw
Quoted 11 lines · Dmitry Torokhov
Quoted 6 lines · Stelian Pop
Quoted 2 lines

Btw, you should probably drop conditional support for input layer and always compile it in.

Is CONFIG_INPUT now a requirement for the (at least i386) kernel ? If this is the case, I'll drop the conditional.

While it can be disabled when one selects !EMBEDDED I doubt hi/she will be interested in sonnypi in this case :). For all practical reasons input layer is always present.

Ok. I'll remove the ifdefs and make SONYPI depend on INPUT in Kconfig.

Stelian.

Signature · 1 line
Stelian Pop <[email protected]>    
#4 lore raw
In reply to Stelian Pop
Quoted 7 lines · Stelian Pop
Quoted 3 lines

On the other hand I am not sure if it is handy as a ponter device - I think scrolling is much more natural with the touchpad (but remember I don't have the hardware)

I don't have a touchpad, just a stick. And I use the jogdial to scroll quite often...

I wonder if the best option is to always have 2 devices and make one corrsponding to jogdial switch between mouse-like and keyboad-like events based on module parameter.

Signature · 1 line
Dmitry