Re: psmouse sysfs problems

From: Dmitry Torokhov
Date: Wed Jun 29 2005 - 15:08:46 EST


On Wednesday 29 June 2005 10:08, Hetfield wrote:
> 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?
>

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.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/