Taffer,
@Taffer@mastodon.gamedev.place avatar

Progress(?) in my battle against the touchpad…

I've got udev rules that trigger a shell script when I turn the mouse off/on. That's the first part!

Still haven't been able to find a way to use libinput, kcfg (Python CLI for modifying KDE settings), probably something else to disable the touchpad or stop processing its events.

JeremiahFieldhaven,
@JeremiahFieldhaven@mastodon.gamedev.place avatar

@Taffer Which distro are you on? On ubuntu, you could try synclient TouchpadOff=1

Or you could try xinput list to get the list of devices, and then xinput disable <device> to turn it off?

Taffer,
@Taffer@mastodon.gamedev.place avatar

@JeremiahFieldhaven xinput only works for X11; I’m using Wayland. And it’s not a Synaptics touchpad. 🤷

I think KDE Plasma 6 doesn’t have a way to do this, and it’s a weird thing to miss out on.

Taffer,
@Taffer@mastodon.gamedev.place avatar

This is low-key driving me nuts.

Found the touchpad via /sys/bus/i2c/... and a tempting "inhibited" file with a 0 in it; this doesn't seem to inhibit the touchpad. 🤷

Taffer,
@Taffer@mastodon.gamedev.place avatar

Progress(?) today…

Using kcfg, I re-enabled the touchpad. Then killall -HUP kwin_wayland… seems to have enabled the touchpad, but also behaved as if KDE had crashed and been restarted. My apps were killed. Not quite what I wanted.

Tried using PyQt6 to send a DBus message to KWin that I thought would reload all the configs; no apparent effect. Wonder if I need to be root?

Taffer,
@Taffer@mastodon.gamedev.place avatar

The org.kde.KWin DBus has a /component/kcm_touchpad that has interesting
Get(interface, property) and Set(interface, property, value) methods. I
can't find any current kcm_touchpad info though, just ancient source repos.

eliasp,
@eliasp@mastodon.social avatar

@Taffer in case your environment uses Qt 6.6 or newer, your apps should survive a crash/restart of (on ):
https://codereview.qt-project.org/c/qt/qtwayland/+/377104

Taffer,
@Taffer@mastodon.gamedev.place avatar

@eliasp cool, not sure what version I’m using, I panicked and logged out/in to make sure everything was happy 😄

  • All
  • Subscribed
  • Moderated
  • Favorites
  • KDE
  • magazineikmin
  • rosin
  • Youngstown
  • mdbf
  • ngwrru68w68
  • slotface
  • khanakhh
  • ethstaker
  • everett
  • kavyap
  • thenastyranch
  • DreamBathrooms
  • tacticalgear
  • osvaldo12
  • JUstTest
  • InstantRegret
  • Durango
  • cisconetworking
  • modclub
  • cubers
  • GTA5RPClips
  • tester
  • normalnudes
  • Leos
  • provamag3
  • megavids
  • anitta
  • lostlight
  • All magazines