[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Touchpad synaptics changes name after resume



Op 03/12/2022 om 13:11 schreef Will Mengarini:
* Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> [22-12/03=Sa 10:37 +0000]:
$ uname -a
Linux t440 6.0.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian
6.0.3-1~bpo11+1 (2022-10-29) x86_64 GNU/Linux

I have two scripts that enable/disable touchpad
[running the commands]
xinput enable "SynPS/2 Synaptics TouchPad"
xinput disable "SynPS/2 Synaptics TouchPad"

The problem is that xinput(1) changes the
name of the touchpad every now and again:

$ dmesg| grep -i synaptics |grep "as /devices"
[463340.358242] input: Synaptics TM2722-001 as
/devices/pci0000:00/0000:00:1f.3/i2c-0/0-002c/rmi4-00/input/input319
[505228.803682] input: SynPS/2 Synaptics TouchPad as
/devices/platform/i8042/serio1/input/input335
[505234.019989] input: SynPS/2 Synaptics TouchPad as
/devices/platform/i8042/serio1/input/input338

[...]

Can $(xinput --list) tell you the current name of the device?
You may have to grep for "Synaptics" in the output.




Please re-read my OP.


--
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Reply to: