![]() Registered Member ![]()
|
I have a bluetooth mouse, a Microsoft Sculpt Comfort Mouse, whose acceleration settings go back to default upon resume (or disconnect). I'm running Kubuntu 15.10. Is there a way to make the settings stick? Or, are there simple instructions for having a command run after resume? I read that putting something in /usr/lib/systemd/system-sleep should do the trick, but I don't know how to a create a script that executes a command like
xinput --set-prop 'Microsoft Sculpt Comfort Mouse' 'Device Accel Constant Deceleration' 2 & Any help is greatly appreciated! |
![]() ![]()
|
https://wiki.archlinux.org/index.php/Po ... stem-sleep
I'm however not sure Kubuntu uses systemd? If you're gonna add something like in a script above, you'll also need to detect the present X11 user, export the proper DISPLAY variable and su to the relevant user. Long story short: don't. The setting is (likey) lost because the USB host powers off and on resume the mouse gets re-connected. Also you don't want to type that into your box on every boot/login, do you? => make an xorg.conf.d snippet like described here: https://wiki.archlinux.org/index.php/Mouse_acceleration |
![]() Registered Member ![]()
|
Thanks for the reply! Apparently Ubuntu switchd to systemd as of current stable, 15.04. I'll try what's on that Arch page and see if that works. Cheers!
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]