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

Mouse acceleration resets after resume/disconnect

Tags: None
(comma "," separated)
molecule-eye
Registered Member
Posts
402
Karma
0
OS
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!
luebking
Karma
0
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
molecule-eye
Registered Member
Posts
402
Karma
0
OS
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!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]