[libinput] Touchpad have 2 "profiles"

Hi,

Since a few days, to get my touchpad working “properly” (speed and natural scrolling) I have to log out/log in after every single reboot.

Right after a reboot, the touchpad is slow & without natural scrolling, but after logging out / logging in it’s as fast as I wanted with natural scrolling

Here’s the output of xinput

<lucas> ~ % ~> xinput
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech Wireless Mouse                   id=10   [slave  pointer  (2)]
⎜   ↳ SYNA2393:00 06CB:7A13 Mouse               id=12   [slave  pointer  (2)]
⎜   ↳ SYNA2393:00 06CB:7A13 Touchpad            id=13   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=18   [slave  pointer  (2)]

After looking at input properties and more specifically the Natural scrolling property :

<lucas> ~ % ~> xinput list-props 13
Device 'SYNA2393:00 06CB:7A13 Touchpad':
Device Enabled (196):   1
Coordinate Transformation Matrix (198): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000         
...
libinput Natural Scrolling Enabled (333):       1
libinput Natural Scrolling Enabled Default (334):       0 
...

and

<lucas> ~ % ~> xinput list-props 18
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (196):   1
Coordinate Transformation Matrix (198): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
...
libinput Natural Scrolling Enabled (333):       0
libinput Natural Scrolling Enabled Default (334):       0
...

I saw that SynPS/2 doesn’t have natural scrolling enabled and if I try to enable by default it I get this output (I get the same when I do it with the other one [id=13]):

<lucas> ~ % ~> sudo xinput set-prop 18 334 1
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Serial number of failed request:  20
  Current serial number in output stream:  21

Though xinput set-prop 18 333 1 enable Natural scrolling for SynPS/2, the pointer is still slow until I log out / log in. I can changed any setting (in Settings > Input devices > Touchpad) and then apply, it won’t do anything (which is why I think of a second “profile”)

After a log out / log in after rebooting, I get other settings (the ones I set) and then any modification (acceleration, natural scrolling) takes affect right after applying

The only thing I do to get my settings back is logging out then logging (not rebooting)

This are my Xorg confs

<lucas> /etc/X11 % ~> ls
tigervnc  xinit  xorg.conf.d
<lucas> /etc/X11 % ~> ls xorg.conf.d
00-keyboard.conf  30-touchpad.conf
<lucas> /etc/X11 % ~> cat xorg.conf.d/30-touchpad.conf
Section "InputClass"
   Identifier "touchpad"
   Driver "libinput"
   MatchIsTouchpad "on"
   Option "Tapping" "on"
EndSection

And here is my inxi

<lucas> ~ % ~> inxi -Fazy                                                                                                                                                        
System:
  Kernel: 5.8.18-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=1884314f-01c5-450d-9611-ea5b7efa5247 rw mem_sleep_default=deep 
  Desktop: KDE Plasma 5.20.3 tk: Qt 5.15.1 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Dell product: XPS 15 7590 v: N/A serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: Dell model: 0VYV0G v: A00 serial: <filter> UEFI: Dell v: 1.8.1 
  date: 07/03/2020 
Battery:
  ID-1: BAT0 charge: 95.9 Wh condition: 95.9/97.0 Wh (99%) volts: 12.9/11.4 
  model: LGC-LGC8.33 DELL 5XJ2809 type: Li-ion serial: <filter> status: Full 
CPU:
  Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP 
  arch: Kaby Lake family: 6 model-id: 9E (158) stepping: A (10) microcode: DE 
  L2 cache: 12.0 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 62431 
  Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:3e9b 
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Dell 
  driver: nvidia v: 455.45.01 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1f91 
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo 
  bus ID: 1-12:5 chip ID: 0c45:6d13 
  Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 
  driver: modesetting,nvidia unloaded: intel alternate: fbdev,nouveau,nv,vesa 
  display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6") 
  diag: 395mm (15.5") 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.2.2 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel 
  v: kernel alternate: snd_soc_skl,snd_sof_pci bus ID: 00:1f.3 
  chip ID: 8086:a348 
  Sound Server: ALSA v: k5.8.18-1-MANJARO 
Network:
  Device-1: Intel Wi-Fi 6 AX200 vendor: Bigfoot Networks driver: iwlwifi 
  v: kernel port: 3000 bus ID: 3b:00.0 chip ID: 8086:2723 
  IF: wlp59s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 953.87 GiB used: 97.91 GiB (10.3%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: PC611 NVMe 1TB size: 953.87 GiB 
  block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
  serial: <filter> rev: 11001111 scheme: GPT 
Partition:
  ID-1: / raw size: 467.46 GiB size: 459.13 GiB (98.22%) 
  used: 97.82 GiB (21.3%) fs: ext4 dev: /dev/nvme0n1p7 
Swap:
  Alert: No Swap data was found. 
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 2428 fan-2: 2394 
Info:
  Processes: 311 Uptime: 6h 50m Memory: 15.28 GiB used: 3.06 GiB (20.1%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 clang: 11.0.0 Packages: 
  pacman: 5863 lib: 446 rpm: 0 flatpak: 0 Shell: Zsh v: 5.8 
  running in: konsole inxi: 3.1.08

If anyone has an idea of how I can “delete” this “second” profile of touchpad, I’ll be very thankful. In the
meantime, i’ll stick to logging out and logging in :slight_smile: