Linux скорость прокрутки тачпада

How to change 2-finger touchpad scroll speed on Ubuntu 22.04

Did you solve this? Cannot believe that in 2022 (well, 2023 already) we cannot just adjust the scroll speed.

Please do not leave your question as it is. If one of the answers works for you, check that as the accepted answer, if not, leave a comment there and say why.

I stopped using Ubuntu (partially because of this issue) long before most of these answers showed up. I will eventually reinstall Ubuntu just to test these answers, but probably not soon.

6 Answers 6

Background

Ubuntu 22.04 is using wayland display server. Apps either use wayland natively , or via an X / xorg compatibility layer. (Xwayland). See also How can I tell if an application is using XWayland

On my box, most apps are native wayland, but firefox by default is using Xwayland.

Input event handling

I believe input events are handled by libinput. If I run the tool libinput debug-events from libinput-tools package, it shows events for two finger scroll. The docs describe how to configure input devices for wayland apps and xorg apps.

xinput does not anymore seem the right tool to configure input devices. See warning in man page. If at all, it can only configure apps using the Xwayland compatibility layer.

Change two finger scroll speed for native wayland apps

For wayland apps the libinput FAQ is stating:

Use the configuration tool provided by your desktop environment (e.g. gnome-control-center)

Since the ubuntu settings are currently not provide an option to configure two finger scroll speed, I believe it is currently not possible to do this.

Improve scroll speed for firefox

You can make firefox to use native wayland instead of Xwayland and for me it is improving the scroll speed ( slowing it down ). How to do it:

  1. Enter sudo gedit /etc/environment
  2. Add one line at the end of the file, containing this string: MOZ_ENABLE_WAYLAND=1
  3. Reboot system
Читайте также:  Com порт virtualbox linux

Источник

Слишком быстрая прокрутка по тачпаду

Пользуюсь Fedora 26 с гномом на Wayland, почему-то когда использую прокрутку двумя пальцами по тачпаду содержимое экрана листает слишком быстро. Можно как-то конфигурировать скорость прокрутки? Настройка через xinput не дает никаких результатов. P.S. Прокрутка колесом мыши работает адекватно UPD: xinput —list

⎡ Virtual core pointer [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer [slave pointer (2)] ⎜ ↳ xwayland-pointer:13 [slave pointer (2)] ⎜ ↳ xwayland-relative-pointer:13 [slave pointer (2)] ⎣ Virtual core keyboard [master keyboard (2)] ↳ Virtual core XTEST keyboard [slave keyboard (3)] ↳ xwayland-keyboard:13 [slave keyboard (3)] 
Device 'xwayland-pointer:13': Device Enabled (117): 1 Coordinate Transformation Matrix (119): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Accel Profile (242): 0 Device Accel Constant Deceleration (243): 1.000000 Device Accel Adaptive Deceleration (244): 1.000000 Device Accel Velocity Scaling (245): 10.000000 
Device 'xwayland-relative-pointer:13': Device Enabled (117): 1 Coordinate Transformation Matrix (119): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Accel Profile (242): 0 Device Accel Constant Deceleration (243): 1.000000 Device Accel Adaptive Deceleration (244): 1.000000 Device Accel Velocity Scaling (245): 10.000000 

Источник

Linux скорость прокрутки тачпада

Доброго времени суток!
Я недавно установил Linux Mint и обнаружил, что при прокрутке с помощью тачпада (жест двумя пальцами) скорость слишком велика. Пытался гуглить и на русском, и на английском языках, но так и не нашёл ничего, чтобы могло помочь. Подскажите, пожалуйста, есть ли какие-то способы настроить эту скорость? Если да, то какие?
Заранее благодарю!

P.S. Система: Linux Mint 20.2 Uma x64

System: Kernel: 5.11.0-37-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.0.5
Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal
Machine: Type: Laptop System: HP product: HP Pavilion Laptop 15-eh0xxx v: N/A serial:
Mobo: HP model: 87C5 v: 35.24 serial: UEFI: AMI v: F.12 date: 03/04/2021
Battery: ID-1: BAT0 charge: 24.7 Wh condition: 41.7/41.7 Wh (100%)
model: Hewlett-Packard Primary status: Discharging
CPU: Topology: 6-Core model: AMD Ryzen 5 4500U with Radeon Graphics bits: 64 type: MCP
arch: Zen rev: 1 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 28444
Speed: 1654 MHz min/max: 1400/2375 MHz Core speeds (MHz): 1: 1551 2: 1406 3: 1353
4: 1596 5: 1342 6: 1369
Graphics: Device-1: AMD Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel bus ID: 04:00.0
Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati
unloaded: fbdev,modesetting,vesa resolution: 1920×1080~60Hz
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-37-generic LLVM 12.0.0)
v: 4.6 Mesa 21.0.3 direct render: Yes
Audio: Device-1: AMD Renoir Radeon High Definition Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus ID: 04:00.1
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Hewlett-Packard
driver: snd_rn_pci_acp3x v: kernel bus ID: 04:00.5
Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel
v: kernel bus ID: 04:00.6
Sound Server: ALSA v: k5.11.0-37-generic
Network: Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: rtl8821ce v: v5.5.2.1_35598.20191029 port: f000
bus ID: 02:00.0
IF: wlo1 state: up mac:
Drives: Local Storage: total: 238.47 GiB used: 57.49 GiB (24.1%)
ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLQ256HAJD-000H1 size: 238.47 GiB
Partition: ID-1: / size: 96.73 GiB used: 14.45 GiB (14.9%) fs: ext4 dev: /dev/nvme0n1p6
Sensors: System Temperatures: cpu: 47.5 C mobo: N/A gpu: amdgpu temp: 47 C
Fan Speeds (RPM): N/A
Info: Processes: 246 Uptime: 1h 29m Memory: 7.14 GiB used: 3.33 GiB (46.6%) Init: systemd
runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 inxi: 3.0.38

Читайте также:  Локальный центр сертификации linux

Источник

How to Change Mouse Wheel & Touchpad Scroll Speed in Ubuntu 20.04/22.04/Debian 11

Want to change the mouse wheel or touchpad two finger scroll speed in GNOME? Here’s how to do the trick in Ubuntu and Debian Linux.

GNOME desktop does not have a configure option to set scroll speed in system settings (aka gnome-control-center). Though, an issue has been created 2 years ago to request the feature in Gnome development page.

For the desktop session on Xorg, there’s a good command line tool “imwheel” can do the job. Though, there’s no good alternative for Gnome Wayland so far.

NOTE: This tutorial is tested and works on Ubuntu 20.04, Debian 11, and Ubuntu 22.04 on Xorg (or app runs as XWayland) in my case.

Step 1. Install imwheel:

First, search and open ‘terminal’ window from Activities overview screen.

When terminal opens, run command to install imwheel package:

Tip: The package is also available in Fedora, openSUSE, Arch Linux repositories.

Step 2. Create config file:

After installed the tool, run command to create a configuration file:

For Ubuntu 22.10+, replace gedit with gnome-text-editor , or use nano that works in most Linux.

The command will create and open the ‘.imwheelrc‘ file via gedit text editor. When it opens, paste following lines:

# Speed up scrolling and pass unchanged for zoom and side buttons ".*" None, Up, Button4, 4 None, Down, Button5, 4 Shift_L, Up, Shift_L|Button4, 4 Shift_L, Down, Shift_L|Button5, 4 Control_L, Up, Control_L|Button4 Control_L, Down, Control_L|Button5 None, Thumb1, Alt_L|Left None, Thumb2, Alt_L|Right

Here are descriptions for each lines:

Читайте также:  Checking folder size linux

  • The first line started with # is comment that does not function.
  • The “.*” tell to function for all apps. User may use something else, such as “^chromium$” to make it for chromium only.
  • The 3th and 4th lines started with “None”, set the scroll speed to 4. Change the number as you mind to increase or decrease the speed.
  • And, the next 4 lines configure the left Shift+ and Ctrl+ mouse scroll speed. In the case, “Ctrl+scroll” is left unchanged.
  • The last 2 lines tell the side buttons unchanged. Use may skip them if NO side buttons present.

Step 3. Verify:

After installed imwheel and setup the config file, now run imwheel command in terminal:

Then open a web page and scroll either via mouse wheel or touchpad 2 finger gesture. If it works, go continue Step 4.

If NOT working properly, kill the process and re-configure the ‘.imwheelrc’ file via the previous step.

NOTE: Running imwheel command will tell you the PID (Process ID) in terminal output. Or run ps ax |grep imwheel to find it.

Step 4. Make ‘imwheel’ runs automatically on startup:

If everything is working OK, you may now make the tool starts automatically on startup. And, here’s how to do the trick by creating a user service.

    Firstly, open terminal and run command to create “.config/systemd” folder:

gedit ~/.config/systemd/user/imwheel.service

When file opens, paste following lines for the service will start with 30 seconds delay.

[Unit] Description=IMWheel Wants=display-manager.service After=display-manager.service [Service] Type=simple ExecStartPre=-/bin/sleep 30 Environment=XAUTHORITY=%h/.Xauthority ExecStart=/usr/bin/imwheel -d ExecStop=/usr/bin/pkill imwheel RemainAfterExit=yes [Install] WantedBy=graphical-session.target

Finally, enable this service via command:

systemctl --user --now enable imwheel.service

In next boot, user may check the “imwheel” status via command:

systemctl --user status imwheel.service

It should outputs ‘ active (running) ‘ in green indicates the service starts properly! Note: there are 30 seconds delay, so check it a moment later after login.

How to Restore:

For any reason, there are options to uninstall imwheel and restore the scroll speed. Firstly, open terminal by searching from ‘Activities‘ overview. Then, run following commands one by one:

    Disable the imwheel service:

systemctl --user --now disable imwheel.service
rm ~/.config/systemd/user/imwheel.service

Источник

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