Skip to contentSkip to conversation

psmouse sysfs problems

DISCUSSION Hetfield 2 participants 4 messages Jun 29, 2005 – Jun 30, 2005 1 message not in the archive

lore
Share & tools
lore

Hetfield

author
#0 lore raw

pwd
/sys/bus/serio/devices/serio0
root@blight serio0 # cat protocol
ImPS/2
root@blight serio0 # cat resetafter
0
root@blight serio0 # echo 5 > res
resetafter resolution
root@blight serio0 # echo 5 > resetafter
root@blight serio0 # cat resetafter
0
root@blight serio0 #

and sending 0, 1, 2 to protocol changed nothing.
same for resolution.
i needed that feature to switch from synaptics to imps protocol and back.

i'm using 2.6.12-git10.

what should i do?

#1 lore raw
Quoted 13 lines · Hetfield

pwd
/sys/bus/serio/devices/serio0
root@blight serio0 # cat protocol
ImPS/2
root@blight serio0 # cat resetafter
0
root@blight serio0 # echo 5 > res
resetafter resolution
root@blight serio0 # echo 5 > resetafter
root@blight serio0 # cat resetafter
0
root@blight serio0 #

Quoted 9 lines

and sending 0, 1, 2 to protocol changed nothing.
same for resolution.
i needed that feature to switch from synaptics to imps protocol and back.

i'm using 2.6.12-git10.

what should i do?

Hi,

try this:

echo -n "imps" > /sys/bus/serio/devices/serioX/protocol echo -n "auto" > /sys/bus/serio/devices/serioX/protocol

psmouse (and serio core in general) does not like exta characters (like newline) in requests and discards such requests.

Signature · 1 line
Dmitry

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#3 lore raw
Quoted 37 lines

Il giorno mer, 29/06/2005 alle 15.07 -0500, Dmitry Torokhov ha scritto:

Quoted 34 lines · Hetfield
Quoted 13 lines

pwd
/sys/bus/serio/devices/serio0
root@blight serio0 # cat protocol
ImPS/2
root@blight serio0 # cat resetafter
0
root@blight serio0 # echo 5 > res
resetafter resolution
root@blight serio0 # echo 5 > resetafter
root@blight serio0 # cat resetafter
0
root@blight serio0 #

Quoted 9 lines

and sending 0, 1, 2 to protocol changed nothing.
same for resolution.
i needed that feature to switch from synaptics to imps protocol and back.

i'm using 2.6.12-git10.

what should i do?

Hi,

try this:

echo -n "imps" > /sys/bus/serio/devices/serioX/protocol echo -n "auto" > /sys/bus/serio/devices/serioX/protocol

psmouse (and serio core in general) does not like exta characters (like newline) in requests and discards such requests.

thanks it seems working on my desktop, i'll try on my notebook too.

the problem is that plugging a imps2 mouse to notebook doesn't work with synaptics touchpad.
i needed to unload psmouse module and reload with proto=imps

in win drivers (sorry!) i see that as soon as i plug the mouse, driver intercept it and says
that synaptics advanced features will be disabled.
when i unplug the mouse i get this features back.
i'd like linux to do the same thing automatically, i'll play with protocol auto and resetafter values

I'll report my test results

author
#4 lore raw

Il giorno gio, 30/06/2005 alle 09.53 +0200, Hetfield ha scritto:

Quoted 44 lines
Quoted 37 lines

Il giorno mer, 29/06/2005 alle 15.07 -0500, Dmitry Torokhov ha scritto:

Quoted 34 lines · Hetfield
Quoted 13 lines

pwd
/sys/bus/serio/devices/serio0
root@blight serio0 # cat protocol
ImPS/2
root@blight serio0 # cat resetafter
0
root@blight serio0 # echo 5 > res
resetafter resolution
root@blight serio0 # echo 5 > resetafter
root@blight serio0 # cat resetafter
0
root@blight serio0 #

Quoted 9 lines

and sending 0, 1, 2 to protocol changed nothing.
same for resolution.
i needed that feature to switch from synaptics to imps protocol and back.

i'm using 2.6.12-git10.

what should i do?

Hi,

try this:

echo -n "imps" > /sys/bus/serio/devices/serioX/protocol echo -n "auto" > /sys/bus/serio/devices/serioX/protocol

psmouse (and serio core in general) does not like exta characters (like newline) in requests and discards such requests.

thanks it seems working on my desktop, i'll try on my notebook too.

the problem is that plugging a imps2 mouse to notebook doesn't work with synaptics touchpad.
i needed to unload psmouse module and reload with proto=imps

Quoted 8 lines

in win drivers (sorry!) i see that as soon as i plug the mouse, driver intercept it and says
that synaptics advanced features will be disabled.
when i unplug the mouse i get this features back.
i'd like linux to do the same thing automatically, i'll play with protocol auto and resetafter values

I'll report my test results

Here are results:
manual actions (i mean manual echo to protocol..): perfect

i tought resetafter param could restart the driver and set to a lower protocol, but doesn't.
i see in dmesg that it only ask for resync after $resetafter value i set.
using proto=auto, it always set synaptics protocol, even with plugged mouse.

would be nice and automatic protocol up/down, maybe helped by resetafter or another parameter
for example:
"checkafter" that recheck configuration every xxx seconds and change protocol.

Good /sys work however

I'm ready to test any changement, just notice me.