Re: Trackpoint udev rules

Joachim Breitner <[email protected]>
Newsgroups gmane.linux.hardware.thinkpad
Message-ID <[email protected]>
Hi,

Am Mittwoch, den 26.04.2017, 17:41 +0100 schrieb Richard Neill:
> Hi Joachim,
> 
> On 26/04/17 16:42, Joachim Breitner wrote:
> > Hi,
> > 
> > on my T460s, set up without a desktop environment, I have this
> > configuration:
> > 
> > $ cat /etc/udev/rules.d/10-trackpoint.rules
> > ACTION=="add",
> > SUBSYSTEM=="serio", DRIVERS=="psmouse", ATTR{sensitivity}="255",
> > ATTR{speed}="160"
> > 
> > Nevertheless, after booting, I find that they were not applied:
> > 
> > $ cat /sys/devices/platform/i8042/serio1/serio2/{speed,sensitivity}
> > 97
> > 200
> > 
> 
> I have the following notes that may help, and which work on a T470s.
> 
> 1. identify the /sys path:
>   find /sys/devices/platform/i8042 -name sensitivity
>   #this machine has it in serio1/serio2
> 
> 2. Create /etc/udev/rules.d/10-trackpoint.rules
> #Trackpoint Sensitivity/Speed - set the sensitivity to maximum.
> KERNEL=="serio2", SUBSYSTEM=="serio", DRIVERS=="psmouse", 
> ATTR{sensitivity}:="255", ATTR{speed}:="255"
> 
> 3. Test/trigger the rule with:
>   udevadm test /sys/devices/platform/i8042/serio1/serio2
> 
> 
> I think that you are falling foul of Udev syntax. In order to avoid
> the 
> original ambiguous use of "=", it now uses
>   ==  for testing
>   :=  for assignment  (unlike C)

thanks. Indeed, udevadm test works, and sets the values as expected.
But after a reboot, I find

$ cat /sys/devices/platform/i8042/serio1/serio2/{speed,sensitivity}
140
200

so it has set the speed to 140 as desired, but the sensitivity is still
at its original value, and not the 255 I want. As if the device reset
itself after writing the sensitivity value…

Regards,
Joachim

-- 
Joachim Breitner
  [email protected]
  http://www.joachim-breitner.de/

-- 
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEGkYIf5Vdk8V8YFcbPZCKs/D79R8FAlkB3rkACgkQPZCKs/D7
9R99oA//bei3GUSd9zLII8vejKF16Jt/xEw8CYrU39FUv/uAiUvuDCWL4HYVwJCz
6UZ3gNriYN9e6dKUSodSc6SMy3RC+MpXHiUeZK40L80Pa6Dhk0uZCSBa9Jwlgx0Z
2PsPSnQBH8MP6d4w8PvzDBE77HKzyr3jsozeYDQipgqx6i1czBSNyIBir5bVR7T1
GCSt+ynJxVvN6yfPfhgsGTi6pY0AodekGJUUzqwVwZdM+wqHRDlg2NBZgG0Cc0iQ
SCIwzpzuL0mkdq6aqyWI1vUP8dC1rKdx0a762jb9kjlULFb+rVbvx5GAsW1xdtAb
VLAEL9IsmyGPe3rhSfucP1RR/bk40KBDiRJAiT3DX7svgOSFhu2RWETzkQNOw7Fb
jTo/7zDzAHdKO7HO5BuSiEeDvu9hSXZ7nfZb/eFBn5qAB4TR/G1GQenuLquDYObj
rfB1BMJX75Jxlhasx87cQDCr7JEkD/XR4H9YRdREM040tU1yqoZe+nRlOHfQ5mDr
NXRDYAyflduA6nwOzhnrR5dJ4XtFM4w6Wg3tIh1GWS+sjASOA4yfHlPOcYRXAAl0
l/TiCLv5jSugnqnL+JIDqHNQsU13F0gV10YJmax9QVUZJrIt72WeNRVnVVTWGD3p
X1WmTtJZnv5lr3VF7qY7m+X3kW+NFkoVungVIz5+dl3gzhq45yU=
=lcUE
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.