Add Latte Dock support to HDMI script, add fix for touchscreen issues after suspend

This commit is contained in:
[Alien] 2021-08-02 15:52:10 +03:00
parent e6eecb9dba
commit 6de645e71d
2 changed files with 17 additions and 1 deletions

View File

@ -1,7 +1,10 @@
#!/bin/bash
#xrandr-extend -x 2.0 hdmi
xrandr-extend hdmi
xinput --map-to-output 'IPTS Touch' eDP1
xinput --map-to-output 'IPTS Stylus Pen (0)' eDP1
xinput --map-to-output 'IPTS Stylus Eraser (0)' eDP1
killall plasmashell
kstart5 plasmashell
kstart5 plasmashell
killall latte-dock
latte-dock

13
ipts-resume.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Fix touchscreen on Surface after resume
After=suspend.target
[Service]
User=root
Type=oneshot
ExecStart=/usr/bin/iptsd-reset-sensor
TimeoutSec=5
StandardOutput=syslog
[Install]
WantedBy=suspend.target