How to disable mouse acceleration permanently?

Hi all,
I please for your help.

I’m using:
Opensuse 42.1
Gnome 3.16.2
Mouse - Cyborg RAT 5

I’ve found how to disable acceleration via xset -> “xset m 1/1 0”. This sensitivity works perfectly to me but its only temporarily command. After reboot or even suspending its set to defaul “5/1 5”.
How can i make it permanently?

Thanks,
Marek

On Sun 10 Jan 2016 11:26:01 AM CST, Mark12870 wrote:

Hi all,
I please for your help.

I’m using:
Opensuse 42.1
Gnome 3.16.2
Mouse - Cyborg RAT 5

I’ve found how to disable acceleration via xset -> “xset m 1/1 0”. This
sensitivity works perfectly to me but its only temporarily command.
After reboot or even suspending its set to defaul “5/1 5”.
How can i make it permanently?

Thanks,
Marek

Hi
You should be able to create a desktop file and then set this to
‘autostart’ in your ~/.config/autostart directory;

Open gedit, copy/paste the following and save as cyborg.desktop in the
above directory


[Desktop Entry]
X-SuSE-translate=true
Encoding=UTF-8
Name=Cyborg
Exec=/usr/bin/xset m 1/1 0
Icon=suse
Terminal=false
Type=Application
Categories=GNOME;GTK;Application;Utility;

Then browse via nautilus into the directory (press ctrl+H to expose
hidden directories) then double click on it to test, is may ask to
trust, select ‘yes’. If all working as expected, then should be good to
go every time you login.


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.51-60.20-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Hi,

Thanks for answer.
I did it this way before. But when i suspend the computer and then login, the sensitivity is back to default settings. I’ve checked it in via xset and it has changed there again.

Hi
Ahh ok, try a systemd resume service in /etc/systemd/system directory called resume@.service with the following in it;



[Unit]
Description=Use setx for mouse
After=suspend.target

[Service]
User=%I
Type=simple
ExecStart=/usr/bin/xset m 1/1 0

[Install]
WantedBy=suspend.target

This worked for me on KDE. Might be something similar in Gnome…

alt F2
Type in mouse
Select System settings Mouse (opens the configure mouse dialog).
Select advanced tab.
Muck about with pointer acceleration and pointer threshold until you get the desired behaviour.

**malcolmlewis:
**
Thanks for answers again. And I’m sorry I’m answering so late.

The systemd resume service doesnt work for me. I’m not sure if I do somethink wrong. I crated the file “resume@.service” in “/etc/systemd/system/” and filled it with the code you gave me. After that I suspended the computer and when i started it nothing happened.

Is there anything I do wrong? Do I have to restart any service before?

Thanks.

**padraigofionnagain:
**In Gnome are also mouse settings but a lot more simple. I can’t choose the exact values of acceleration and stuff.

On Sat 23 Jan 2016 10:06:01 AM CST, Mark12870 wrote:

*malcolmlewis:
*
Thanks for answers again. And I’m sorry I’m answering so late.

The systemd resume service doesnt work for me. I’m not sure if I do
somethink wrong. I crated the file “resume@.service” in
“/etc/systemd/system/” and filled it with the code you gave me. After
that I suspended the computer and when i started it nothing happened.

Is there anything I do wrong? Do I have to restart any service before?

Thanks.

*padraigofionnagain:
*In Gnome are also mouse settings but a lot more simple. I can’t choose
the exact values of acceleration and stuff.

Hi
Maybe you need to restart the suspend service for it to see the new
service (not sure).

You can set the exact value of acceleration etc via gsettings
or dconf-editor via org.gnome.desktop.peripherals.mouse speed.

The other keys are;


org.gnome.desktop.a11y.mouse
org.gnome.mousetweaks
org.gnome.settings-daemon.plugins.mouse
org.gnome.settings-daemon.peripherals.mouse


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.51-60.25-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Did you enable and start the required custom service before suspending and resuming?

systemctl enable resume@<your_user_name>.service
systemctl start resume@<your_user_name>.service

Well,

I tried the resume stuff. I did it according to your advices but it still doesn’t work. I don’t care anymore… I’ve set the gnome mouse acceleration to minimum and its pretty ok. Its a pitty, there are these “layers” about such a simple thing like mouse speed.

Thank you all a lot and have a nice day.

I found myself looking for mouse settings in YaST this morning. I find it hard to believe that a modern OS doesn’t have any settings for the mouse in the GUI. I abandoned openSuse due to problems with the mouse but found that I had the same issue in Linux Mint (just not as bad), but it looks like I managed to fix it last night by disabling the touch pad which was enabled on my desktop for some strange reason. I was gonna try openSuse again to see if that would fix it there too but I don’t see how I can do that when there is no simple way to look at mouse settings.
That is big omission.

Mouse settings ar user settings since user 1 may like a faster mouse then user 2. So the settings are in the Desktop settings not the system settings

.
I had the same reaction.

Man, if Linux could coordinate all these efforts instead of having 250 different distros, most run by a 1 or 2 people, imagine how great Linux would be. MS Windows would be gone and malware guys would have to go find real jobs.

Instead, it’s 2016, and there’s no mouse speed selector…?

I’m grateful to FOSS that there is an alternative OS, but imagine what it could be if some charismatic leader organized all these Linux workers into a couple super-distros.

Okay, now back to seeing if I can fix my mouse speed.