LINUX.ORG.RU

Убить акселерацию мыши

 


0

1

Я уже не знаю как быть

#Эффект частичный, при рывках ускорение всё равно присуцтвует
gnome-tweak-tool mouse flat
#Эффекта нет, ускорение присутствует
xset m 0 0
#или
xset m 1 1

#Эффекта нет, ускорение присутствует
#/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
Section "InputClass"
	Identifier "My Mouse"
	MatchIsPointer "yes"
	Option "AccelerationProfile" "-1"
	Option "AccelerationScheme" "none"
	Option "AccelSpeed" "-1"
EndSection
# 8 это id мыши по xinput list, эффекта нет ускорение присуцвует
xinput --set-prop 8 'libinput Accel Profile Enabled' 0, 0

Как тестирую, упираю мышку в край клавиатуры, отвожу в право, возвращаю мышку в исходное положение до упора в клаву, курсор уезжает дальше.

Система Debian stable/testing gnome-shell 3-30-1



Последнее исправление: FUNCTION (всего исправлений: 1)

#/etc/X11/xorg.conf.d/50-mouse-acceleration.conf

Вродь должен конфиг лежать тут /usr/share/X11/xorg.conf.d/

Deleted
()
Ответ на: комментарий от Deleted

Я не всё описал, и туда совал, и в /etc/X11/xorg.conf писал отдельно. Не работает. При разной скорости перемещения мыши на одном отрезке разный путь проходит курсор.

FUNCTION
() автор топика

А ты именно X11 сессию используешь, а не Wayland? Просто я не знаю, должен ли Wayland как-то реагировать на параметры в /etc/X11/xorg.conf.d

Vsevolod-linuxoid ★★★★★
()
Последнее исправление: Vsevolod-linuxoid (всего исправлений: 1)
Ответ на: комментарий от Vsevolod-linuxoid

Нет ничего

dron@gnu:~$ cd /usr/share/X11/
dron@gnu:/usr/share/X11$ ls
bindings  locale  rgb.txt  XErrorDB  xkb  xorg.conf.d
dron@gnu:/usr/share/X11$ cd xorg.conf.d/
dron@gnu:/usr/share/X11/xorg.conf.d$ ls
10-amdgpu.conf  10-quirks.conf  40-libinput.conf   70-wacom.conf
10-evdev.conf   10-radeon.conf  70-synaptics.conf  90-mouse-accel-disable.conf
dron@gnu:/usr/share/X11/xorg.conf.d$ cat 90-mouse-accel-disable.conf 
dron@gnu:/usr/share/X11/xorg.conf.d$ cat 40-libinput.conf 
# Match on all types of devices but joysticks
Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection
dron@gnu:/usr/share/X11/xorg.conf.d$ 

FUNCTION
() автор топика
#accel
xinput --set-prop $xinput_id 'Device Accel Velocity Scaling' 1
xinput --set-prop $xinput_id 'libinput Accel Profile Enabled' 0, 1

#speed
xinput --set-prop $xinput_id 'Device Accel Constant Deceleration' 5
xinput --set-prop $xinput_id 'libinput Accel Speed' -0.8



$xinput_id смотреть в xinput --list

Ford_Focus ★★★★★
()
Ответ на: комментарий от Vsevolod-linuxoid

Хоrg у меня, это точно, в вайланде по alt+f2 r shell нельзя перезапустить только в Xorg сессии это можно, ну и в slim по f1 выбираю gnome на Xorg

dron@gnu:~$ echo $XDG_SESSION_TYPE

dron@gnu:~$ ps aux | grep gnome-shell
dron      3610  1.7  1.3 2875400 188316 ?      Sl   11:52   0:38 /usr/bin/gnome-shell
dron      3637  0.0  0.1 542736 20792 ?        Sl   11:52   0:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
dron      4268  0.0  0.2 197132 33032 ?        Sl   11:53   0:00 /usr/bin/python3 /usr/bin/chrome-gnome-shell /usr/lib/mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json chrome-gnome-shell@gnome.org
dron      4868  0.0  0.0   5976   940 pts/2    S+   12:30   0:00 grep --color=auto gnome-shell
dron@gnu:~$ 

FUNCTION
() автор топика
Ответ на: комментарий от Ford_Focus

dron@gnu:~$ xinput --list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ USB Optical Mouse                       	id=8	[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)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=9	[slave  keyboard (3)]
dron@gnu:~$ xinput --set-prop 8 'Device Accel Velocity Scaling' 1
property 'Device Accel Velocity Scaling' doesn't exist, you need to specify its type and format
dron@gnu:~$ xinput --set-prop 8 'libinput Accel Profile Enabled' 0, 1
dron@gnu:~$ 
dron@gnu:~$ #speed
dron@gnu:~$ xinput --set-prop 8 'Device Accel Constant Deceleration' 5
property 'Device Accel Constant Deceleration' doesn't exist, you need to specify its type and format
dron@gnu:~$ xinput --set-prop 8 'libinput Accel Speed' -0.8

Двигаться стала медленней, но ускорение на месте, на одинаковый отрезок перемещения мыши с разной скоростью курсор проходит разное значение чем быстрее тем дальше

FUNCTION
() автор топика

Ребутнулся полностью, ускорение пропало o_O

FUNCTION
() автор топика

Я не понял что именно в итоге или всё в сумме сработало, но ускорения сейчас нет. Всем спасибо.

FUNCTION
() автор топика
Ответ на: комментарий от Vsevolod-linuxoid

Гномокеды и под иксами настройки и поведение иксов переопределяют. От них же байки про лишние слои в иксах — которые для гномокед лишние.

bodqhrohro_promo
()
Ответ на: комментарий от Ford_Focus

Достаточно только

xinput --set-prop 'pointer:XXX' 'libinput Accel Profile Enabled' 0, 1

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.