This forum has been archived. All content is frozen. Please use KDE Discuss instead.

map touchscreen to monitor

Tags: None
(comma "," separated)
workoft
Registered Member
Posts
97
Karma
1

map touchscreen to monitor

Tue Feb 06, 2018 7:05 pm
Hi,

I am running Debian unstable and just switched from Gnome a few days ago.
I have a laptop with a touchscreen as well as an external monitor. By default, the touchscreen is mapped to the entire desktop, spanning both screens. I know there are commands like xinput --map-to-output, but the new mapping is compressed when I disconnect the external monitor so I have to remap. And then re-map again when I connect the monitor again. I also know that I could write a script or an udev rule that does it for me every time (if someone has a template that would be great).
But if it could just work like Gnome, that would be even better. On Gnome I don't remember ever doing anything, it just worked. I don't know what component does it, but if there is an equivalent for KDE that I just failed to install, I would like to know.

Cheers,
Malte
workoft
Registered Member
Posts
97
Karma
1

Re: map touchscreen to monitor

Sat Mar 17, 2018 7:39 am
I wrote the rule /etc/udev/rules.d/99-map-touchscreen.rules
Code: Select all
SUBSYSTEM=="drm", ACTION=="change", RUN+="xinput --map-to-output $(xinput --list --id-only "Wacom Pen and multitouch sensor Finger touch") eDP-1"

but it does nothing. Any ideas?

udevadm monitor --environment --udev confirms that SUBSYSTEM=drm and ACTION=change


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]