-
reload multitouch kernel module after resumeComputer/linux 2015. 6. 14. 00:08
So, Dell XPS 13 has the nice touch screen with Debian Jessie, but there is one problem for this. After suspend, hibernate, or both, the touch screen doesn't work at all.
Somehow this is related with some Gnome 3 bug, which I read in somewhere in web. So don't need to recompile the package, the simple approach to reload the kernel module via
alias reload_touch='modprobe -r hid_multitouch && modprobe hid_multitouch'
However, the further googling guided me the following page
https://mail.gnome.org/archives/networkmanager-list/2014-October/msg00091.html
I've got the hint from the above page, do the same thing except the hid_multitouch kernel module. Create hid_multitouch-reload.service in /etc/systemd/system as
[Unit]
Description=Reload hid_multitouch driver after system resume
After=hibernate.target
After=suspend.target
After=hybrid-sleep.target
[Service]
Type=oneshot
ExecStart=/sbin/modprobe -r hid_multitouch
ExecStart=/sbin/modprobe hid_multitouch
[Install]
WantedBy=hibernate.target
WantedBy=suspend.target
WantedBy=hybrid-sleep.targetAnd
root@ctrlnb0:/etc/systemd/system# systemctl enable hid_multitouch-reload.service
Created symlink from /etc/systemd/system/hibernate.target.wants/hid_multitouch-reload.service to /etc/systemd/system/hid_multitouch-reload.service.
Created symlink from /etc/systemd/system/suspend.target.wants/hid_multitouch-reload.service to /etc/systemd/system/hid_multitouch-reload.service.
Created symlink from /etc/systemd/system/hybrid-sleep.target.wants/hid_multitouch-reload.service to /etc/systemd/system/hid_multitouch-reload.service.I will check whether this solution is correct or not in next week.:)work well :)
'Computer > linux' 카테고리의 다른 글
With wget to download a directory recursively (0) 2016.01.12 add user into dialout group in order to use minicom (0) 2014.11.15 한컴 - 한숨이 나오는 컴퓨터 환경을 만드는 회사 (0) 2014.10.17