![xinput --set-prop X Ошибка неудавшегося запроса: BadValue (целочисленный параметр вне диапазона для операции)](https://rvso.com/image/1072904/xinput%20--set-prop%20X%20%D0%9E%D1%88%D0%B8%D0%B1%D0%BA%D0%B0%20%D0%BD%D0%B5%D1%83%D0%B4%D0%B0%D0%B2%D1%88%D0%B5%D0%B3%D0%BE%D1%81%D1%8F%20%D0%B7%D0%B0%D0%BF%D1%80%D0%BE%D1%81%D0%B0%3A%20BadValue%20(%D1%86%D0%B5%D0%BB%D0%BE%D1%87%D0%B8%D1%81%D0%BB%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9%20%D0%BF%D0%B0%D1%80%D0%B0%D0%BC%D0%B5%D1%82%D1%80%20%D0%B2%D0%BD%D0%B5%20%D0%B4%D0%B8%D0%B0%D0%BF%D0%B0%D0%B7%D0%BE%D0%BD%D0%B0%20%D0%B4%D0%BB%D1%8F%20%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%B8).png)
Я пытаюсь добиться большей точности прокрутки мышью в Ubuntu 22.04 (сессия Xorg). Я обнаружилэтотпост и для моей конкретной системы я получаю
$ xinput list-props 12
Device 'Logitech T400':
Device Enabled (189): 1
Coordinate Transformation Matrix (191): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (325): 0
libinput Natural Scrolling Enabled Default (326): 0
libinput Scroll Methods Available (327): 0, 0, 1
libinput Scroll Method Enabled (328): 0, 0, 0
libinput Scroll Method Enabled Default (329): 0, 0, 0
libinput Button Scrolling Button (330): 2
libinput Button Scrolling Button Default (331): 2
libinput Button Scrolling Button Lock Enabled (332): 0
libinput Button Scrolling Button Lock Enabled Default (333): 0
libinput Middle Emulation Enabled (334): 0
libinput Middle Emulation Enabled Default (335): 0
libinput Accel Speed (336): 0.000000
libinput Accel Speed Default (337): 0.000000
libinput Accel Profiles Available (338): 1, 1
libinput Accel Profile Enabled (339): 1, 0
libinput Accel Profile Enabled Default (340): 1, 0
libinput Left Handed Enabled (341): 0
libinput Left Handed Enabled Default (342): 0
libinput Send Events Modes Available (310): 1, 0
libinput Send Events Mode Enabled (311): 0, 0
libinput Send Events Mode Enabled Default (312): 0, 0
Device Node (313): "/dev/input/event8"
Device Product ID (314): 1133, 16422
libinput Drag Lock Buttons (343): <no items>
libinput Horizontal Scroll Enabled (344): 1
libinput Scrolling Pixel Distance (345): 15
libinput Scrolling Pixel Distance Default (346): 15
libinput High Resolution Wheel Scroll Enabled (347): 1
Кажется разумным изменить libinput Scrolling Pixel Distance
на меньшее число. Однако, когда я пытаюсь, xinput --set-prop 12 "libinput Scrolling Pixel Distance" 1
я получаю
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 131 (XInputExtension)
Minor opcode of failed request: 57 ()
Serial number of failed request: 21
Current serial number in output stream: 22
Неважно, какое значение я пытаюсь установить. Как мне изменить эти параметры?
решение1
Итак, во-первых, согласноhttps://man.archlinux.org/man/libinput.4.en#SCROLL_PIXEL_DISTANCE, чем ВЫШЕ число, тем медленнее (точнее) прокрутка.
Из моего тестирования на PopOS, допустимые значения должны быть в диапазоне [10, 50]. Итак, вы почти получили это, попробуйте:
xinput --set-prop 12 "libinput Scrolling Pixel Distance" 50
Проблема в том, что эта настройка будет действительна только для текущего сеанса и ее нужно будет применять заново при каждом входе в систему. На данный момент я не смог найти способ изменить значение по умолчанию.