You are not logged in.

#1 2017-12-21 06:10:33

brynildsen
Member
Registered: 2017-12-18
Posts: 14

[SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

Touchpad tap-to-click never works default, so I just wrote a "xinput set-prop" line with the corresponding ID and function in my i3wm config.

Problem is that I often use a usb mouse also, and when my laptop boots with the usb mouse connected the ID changes and I have to enable my tapping again with the new ID. And when I boot my pc, the day after without having my mouse with me the ID is different again. I do still randomly use the touchpad even though I have a mouse connected.

Are there a better method of doing this? Can you lock the ID to a specific device, so it doesn't constantly changes? It's an X201s btw..

Last edited by brynildsen (2017-12-22 15:02:57)

Offline

#2 2017-12-21 08:58:49

justasug
Member
Registered: 2014-08-03
Posts: 165

Re: [SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

Use an Xorg config file instead of running xinput after log in.

I use the Libinput driver for my touchpad and have this in my config. If you use the Synaptics one the option might be called differently.

Section "InputClass"
    Identifier "Touchpad"
    MatchIsTouchpad "on"
    Driver "libinput"
    Option "Tapping" "on"
EndSection

Last edited by justasug (2017-12-21 08:59:33)

Offline

#3 2017-12-21 09:42:17

seth
Member
Registered: 2012-09-03
Posts: 51,149

Re: [SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

ftr, you can also use the device name instead of the ID (but that can be ambigious)

Offline

#4 2017-12-22 12:54:47

brynildsen
Member
Registered: 2017-12-18
Posts: 14

Re: [SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

justasug wrote:

Use an Xorg config file instead of running xinput after log in.

I use the Libinput driver for my touchpad and have this in my config. If you use the Synaptics one the option might be called differently.

Section "InputClass"
    Identifier "Touchpad"
    MatchIsTouchpad "on"
    Driver "libinput"
    Option "Tapping" "on"
EndSection

I'm using the  libinput driver also..  Where should I place the xorg config file for this?
Only place I found referring to it is:

cat /usr/share/X11/xorg.conf.d/40-libinput.conf |grep -B1 -A4 touchpad

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Should I just edit that file to include tapping, or make a new one and place somewhere else?

Offline

#5 2017-12-22 14:02:40

seth
Member
Registered: 2012-09-03
Posts: 51,149

Re: [SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

/etc/X11/xorg.conf.d/ - stay away from /usr/share, that's for distro provided config. /etc will override settings in /usr/share

Offline

#6 2017-12-22 14:11:55

brynildsen
Member
Registered: 2017-12-18
Posts: 14

Re: [SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

To answer my own question..
I just tried putting

"Tapping" "on"

in my cat /usr/share/X11/xorg.conf.d/40-libinput.conf.. Worked fine

My curiosity is haunting me on this..: How do you find the correct option syntaxes for other functions?
Is it always just the words between libinput and Enabled for everything..?? And is this the general idea of xorg config files?

xinput list-props 11

Device 'SynPS/2 Synaptics TouchPad':
	Device Enabled (140):	1
	Coordinate Transformation Matrix (142):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Tapping Enabled (293):	1
	libinput Tapping Enabled Default (294):	0
	libinput Tapping Drag Enabled (295):	1
	libinput Tapping Drag Enabled Default (296):	1
	libinput Tapping Drag Lock Enabled (297):	0
	libinput Tapping Drag Lock Enabled Default (298):	0
	libinput Tapping Button Mapping Enabled (299):	1, 0
	libinput Tapping Button Mapping Default (300):	1, 0
	libinput Natural Scrolling Enabled (275):	0
	libinput Natural Scrolling Enabled Default (276):	0
	libinput Left Handed Enabled (277):	0
	libinput Left Handed Enabled Default (278):	0
	libinput Accel Speed (279):	0.000000
	libinput Accel Speed Default (280):	0.000000
	libinput Scroll Methods Available (284):	1, 1, 0
	libinput Scroll Method Enabled (285):	1, 0, 0
	libinput Scroll Method Enabled Default (286):	1, 0, 0
	libinput Send Events Modes Available (260):	1, 1
	libinput Send Events Mode Enabled (261):	0, 0
	libinput Send Events Mode Enabled Default (262):	0, 0
	libinput Disable While Typing Enabled (301):	1
	libinput Disable While Typing Enabled Default (302):	1
	Device Node (263):	"/dev/input/event14"
	Device Product ID (264):	2, 7
	libinput Drag Lock Buttons (291):	<no items>
	libinput Horizontal Scroll Enabled (292):	1

Offline

#7 2017-12-22 14:28:19

seth
Member
Registered: 2012-09-03
Posts: 51,149

Re: [SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

Don't do that, it's overridden with the next update.

Offline

#8 2017-12-22 15:02:20

brynildsen
Member
Registered: 2017-12-18
Posts: 14

Re: [SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

seth wrote:

Don't do that, it's overridden with the next update.

Ok, changed it back and moved to /etc/X11/xorg.conf.d
Thx

Offline

#9 2017-12-22 17:09:11

justasug
Member
Registered: 2014-08-03
Posts: 165

Re: [SOLVED] Touchpad - xinput list ID changes when connecting usb mouse.

brynildsen wrote:

My curiosity is haunting me on this..: How do you find the correct option syntaxes for other functions?
Is it always just the words between libinput and Enabled for everything..?? And is this the general idea of xorg config files?

You can find it in the man page for the Xorg Libinput driver.

Option "Tapping" "bool"
              Enables or disables tap-to-click behavior.

Unfortunately it's not really a one to one translation from the Xinput output from what I've seen.

Offline

Board footer

Powered by FluxBB