Linux mint mouse acceleration

Отключаем акселерацию (ускорение) мыши в Linux Mint

Отключаем акселерацию (ускорение) мыши в Linux Mint

Акселерация мышки по умолчанию включена в большинстве операционных систем, и многие пользователи даже не догадываются о её существовании. Тем не менее, есть люди, которым данная «фича» только мешает, и специально для них написана эта статья.

Отключение акселерации мыши

Сперва нужно узнать id мыши в системе, для этого воспользуемся командой xinput list . В ответ должно получится что-то следующее:

xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Logitech Gaming Mouse G400 id=10 [slave pointer (2)] ⎜ ↳ Razer Reclusa Keyboard id=12 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ Razer Reclusa Keyboard id=11 [slave keyboard (3)] ↳ Eee PC WMI hotkeys id=13 [slave keyboard (3)] ↳ Razer Reclusa Keyboard id=14 [slave keyboard (3)] 

В моем случае, мышка была Logitech G400, и как видно по выводу консоли выше, она имела id 10. Теперь, зная её id выполним команду:

xinput --set-prop 10 'libinput Accel Speed' -1

Изменения должны вступить в силу сразу после выполнения команды. Однако, после перезагрузки компьютера или простого разлогинивания пользователя, все вернется на круги своя, и данную команду понадобиться вводить заново. Для того, чтобы избежать этого, нужно найти программу Автозагрузка, и запустить её. Нажимаем на символ плюсика, и добавляем новый элемент в автозапуск, где пишем любое название и нужную команду, как показано на скриншоте ниже: Перезагружаем компьютер и проверяем изменения.

Источник

Linux Mint Forums

[solved] How do I turn off mouse acceleration in mint 18?

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

[solved] How do I turn off mouse acceleration in mint 18?

Post by DAP » Tue Jul 12, 2016 2:08 am

Читайте также:  Линукс где посмотреть параметры компьютера

If I set the mouse acceleration to minimum in the system settings, acceleration is still applied, just less of it.
I want to turn acceleration completely off so that if I move my mouse quickly to the right and slowly back left, it goes back to where it started.
I did a google search, and found some instructions to modify some files in /etc/X, but the files specified did not exist on mint 18, nor the directory they are supposed to be in. Other instructions needed to be run on every boot.
What is the correct way of doing this on Mint 18?

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Re: How do I turn off mouse acceleration in mint 18?

Post by xenopeek » Tue Jul 12, 2016 5:16 am

Are you using Cinnamon or MATE?

You can try running the command xset m default on the terminal. Does that make mouse acceleration work as you want? Then add that command to Startup Applications.

Image

Re: How do I turn off mouse acceleration in mint 18?

Post by DAP » Tue Jul 12, 2016 11:38 pm

I am using Cinnamon.
Yes, that command does get my mouse to do what I want, but I would prefer to find and fix the settings in whatever config file it is using. I am not a fan of using startup scripts unless there is no other way.

As far as I can tell, I am supposed to edit /etc/X11/xorg.conf.d/number.filename.conf but /etc/X11/xorg.conf.d/ does not exist on mint 18 implying it has been put somewhere else.

I think I found it. The man page for xorg.conf lists about 20 directories that xorg looks for the xorg.conf file. I found xorg.conf.d in the last of those places listed.
Unfortunately the files in this directory seem to be for fixing bugs in specific pointing devices. I did not see any configuration files for generic mice.

Re: How do I turn off mouse acceleration in mint 18?

Post by BlackVeils » Wed Jul 13, 2016 5:29 am

xset m default bash -c "xset m default"

Re: How do I turn off mouse acceleration in mint 18?

Post by DAP » Thu Jul 14, 2016 12:43 am

Thank you Black Veils and xenopeek for your suggestions. Although I am sure your method works, I’m a stubborn old man and figured out how to do it with the xorg config files.

My solution was first find out that yes it is xorg that controls the mouse acceleration. (xenopeek’s suggestion to run «xset m default» answered this question for me. Thanks)

then find out which of the many possible locations it stores its config files. In my case it was /usr/share/X11/xorg.conf.d

then create a new file:
$ sudo vim /usr/share/X11/xorg.conf.d/90-mouse.conf

added the following to the file:

Section "InputClass" Identifier "mouse" MatchIsPointer "on" Option "AccelerationProfile" "-1" Option "AccelerationScheme" "none" EndSection

log out and log back in, and I no-longer suffer mouse acceleration.

Читайте также:  Мультизагрузочная флешка linux windows iso

There really should be an option in the GUI to turn off acceleration.

Re: [solved] How do I turn off mouse acceleration in mint 18?

Post by xenopeek » Thu Jul 14, 2016 1:23 am

It came up yesterday on the developer chat and it looks like somebody is going to try and work this into Cinnamon.

fred I would like to raise the importance of being able to change monitor refresh rate and disabling mouse acceleration entirely for Linux Mint. fred MATE and KDE already allow refresh rate to be configured. Linux Mint enforces 60 Hz and one must configure xrandr on startup to override. ~clem fred: yes I think it's in the roadmap fred clem a lot of gamers, including myself, are moving over permanently. I would like to contribute if it is known how it would be dealt with? ~clem mouse acceleration is -1 by default I think, you mean resetting it after it's been modified? fred mouse acceleration on X11 level. fred Is the problem. ~clem you can give it a shot if you want, it was migrated to python I think, let me check fred IT ca be disabled via config files but I would like to introduce an easier GUI option into Linux Mint Cinnamon. fred https://wiki.archlinux.org/index.php/Mouse_acceleration#Disabling_mouse_acceleration fred Linux Mint requires the first config, and Debian testing for example requires the 2nd config. ~clem the mouse settings are in python https://github.com/linuxmint/Cinnamon/blob/master/files/usr/share/cinnamon/cinnamon-settings/modules/cs_mouse.py fred I do not know if or when Linux Mint will switch over to that 2nd input method? ~clem and the mouse manager is part of the settings daemon, it's in C: ~clem https://github.com/linuxmint/cinnamon-settings-daemon/blob/master/plugins/mouse/csd-mouse-manager.c fred clem, would it be appropriate to add a mouse setting that configures X11 mouse settings? fred The X11 guys have a hard time seeing why one would want to disable mouse acceleration. ~clem display settings are in cinnamon-control-center, in C: https://github.com/linuxmint/cinnamon-control-center/tree/master/panels/display fred Do you think it would be convenient to disable X11 mouse acceleration in Linux Mint by default? ~clem well, mouse motion acceleration and motion threshold are already in the cinnamon settings and they interact with X11 directly fred I will have a play around with that clem. ~clem well, they set a gsettings key, which is read by the settings-daemon's mouse manager, and which interacts with X11 fred Does Linux Mint have a issue tracking system? ~clem we use github issues for all that

Источник

Linux Mint Forums

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Simple way to disable mouse acceleration?

Post by Zfox » Mon Mar 11, 2019 2:03 pm

Is there a simple way to disable mouse acceleration in linux mint 19.1 Cinamoon?

A method with a gui would be really nice, or a command that works, I am asking because a lot of the info I looked at online was for older linux mints and other linuxm

Читайте также:  Установка alt linux ubuntu

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Flemur Level 20
Posts: 10097 Joined: Mon Aug 20, 2012 9:41 pm Location: Potemkin Village

Re: Simple way to disable mouse acceleration?

Post by Flemur » Mon Mar 11, 2019 2:13 pm

Zfox wrote: ⤴ Mon Mar 11, 2019 2:03 pm Is there a simple way to disable mouse acceleration in linux mint 19.1 Cinamoon?
A method with a gui would be really nice, or a command that works, I am asking because a lot of the info I looked at online was for older linux mints and other linuxm

In a terminal you can use xinput and xset (and run a command at login):
https://wiki.archlinux.org/index.php/Mouse_acceleration

Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up. right?

wallyUSA Level 6
Posts: 1378 Joined: Thu Jun 08, 2017 2:31 pm Location: Top of Georgia

Re: Simple way to disable mouse acceleration?

Post by wallyUSA » Mon Mar 11, 2019 2:20 pm

Under System Settings, Mouse & Touchpad there is an option for pointer size/speed and acceleration. Maybe that will help?

> If your query has been resolved, edit your original post and add to the beginning of the subject line. This may help others find solutions.

Dell Latitude 7490 Mint 21.1 Ker 5.15.0.76 Cinn 5.6.8

  • Important Notices
  • ↳ Rules & Notices
  • ↳ Releases & Announcements
  • ↳ Main Edition Support
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Graphics Cards & Monitors
  • ↳ Printers & Scanners
  • ↳ Storage
  • ↳ Sound
  • ↳ Networking
  • ↳ Virtual Machines
  • ↳ Desktop & Window Managers
  • ↳ Cinnamon
  • ↳ MATE
  • ↳ Xfce
  • ↳ Other topics
  • ↳ Non-technical Questions
  • ↳ Tutorials
  • Debian Edition Support
  • ↳ LMDE Forums
  • ↳ Beginner Questions
  • ↳ Installation & Boot
  • ↳ Software & Applications
  • ↳ Hardware Support
  • ↳ Networking
  • ↳ Tutorials
  • ↳ Other Topics & Open Discussion
  • ↳ LMDE Archive
  • Interests
  • ↳ Gaming
  • ↳ Scripts & Bash
  • ↳ Programming & Development
  • Customization
  • ↳ Themes, Icons & Wallpaper
  • ↳ Compiz, Conky, Docks & Widgets
  • ↳ Screenshots
  • ↳ Your Artwork
  • Chat
  • ↳ Introduce Yourself
  • ↳ Chat about Linux Mint
  • ↳ Chat about Linux
  • ↳ Open Chat
  • ↳ Suggestions & Feedback
  • International
  • ↳ Translations
  • ↳ Deutsch — German
  • ↳ Español — Spanish
  • ↳ Français — French
  • ↳ Italiano — Italian
  • ↳ Nederlands — Dutch
  • ↳ Português — Portuguese
  • ↳ Русский — Russian
  • ↳ Suomi — Finnish
  • ↳ Other Languages
  • ↳ Čeština-Slovenčina — Czech-Slovak
  • ↳ Magyar — Hungarian
  • ↳ 日本語 — Japanese
  • ↳ Polski — Polish
  • ↳ Svenska — Swedish
  • ↳ Українська — Ukrainian

Powered by phpBB® Forum Software © phpBB Limited

Источник

Оцените статью
Adblock
detector