hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
18.28k stars 762 forks source link

Change touchpad sensitivity #4457

Open Rqbln opened 6 months ago

Rqbln commented 6 months ago

Hyprland Version

System/Version info ```sh ❯ hyprctl version Hyprland, built from branch HEAD at commit 03ebbe18ed8517ee22591eac82cd54322f42cb7d (props: bump ver to 0.34.0). Date: Mon Jan 1 12:03:15 2024 Tag: v0.34.0 flags: (if any) ```

Bug or Regression?

Bug

Description

I was searching for changing the touchpad sensitivity on the wiki, but i didn't found settings for directly changing the touchpad sensitivity, and putting "sensitivity" in

    touchpad {
        natural_scroll = true
    }

is forbidden. Can someone help ?

How to reproduce

modifying the .config/hyprland/hyprland.conf file

Crash reports, logs, images, videos

No response

fufexan commented 6 months ago

What you want is per-device sensitivity. Look in the device section.

manu0600 commented 6 months ago

I think the per-device sensitivity is set outside of the input{}, like this:

device:synps/2-synaptics-touchpad {
    sensitivity = +0.0
}
device:tpps/2-elan-trackpoint {
    sensitivity = +0.0
}

And you can find the device name using hyprctl devices

Rqbln commented 6 months ago

I put in hyprland.conf :


device:asue140d:00-04f3:31bc-mouse {
    sensitivity = 0.5
}

device:asue140d:00-04f3:31bc-touchpad {
    natural_scroll = true
    sensitivity = 0.5
} 

BUT both doesn't affect sensitivity :/

❯ hyprctl devices
mice:
    Mouse at 5592cfe09b80:
        asue140d:00-04f3:31bc-mouse
            default speed: 0.00000
    Mouse at 5592cfdcd4c0:
        asue140d:00-04f3:31bc-touchpad
            default speed: 0.00000

Keyboards:
    Keyboard at 5592cfe07770:
        video-bus
            rules: r "", m "", l "fr", v "", o ""
            active keymap: French
            main: no
    Keyboard at 5592cff13fd0:
        power-button
            rules: r "", m "", l "fr", v "", o ""
            active keymap: French
            main: no
    Keyboard at 5592d01b7050:
        asue140d:00-04f3:31bc-keyboard
            rules: r "", m "", l "fr", v "", o ""
            active keymap: French
            main: no
    Keyboard at 5592d024be30:
        asus-wmi-hotkeys
            rules: r "", m "", l "fr", v "", o ""
            active keymap: French
            main: no
    Keyboard at 5592d0287df0:
        at-translated-set-2-keyboard
            rules: r "", m "", l "fr", v "", o ""
            active keymap: French
            main: yes

Tablets:

Touch:

Switches:
    Switch Device at 5592cfe03aa0:
        Lid Switch
MahtoSujeet commented 3 months ago

@Rqbln Did you find any solution yet?

[Edit] Per-device configuration worked. Apparently I had force_no_accel enabled, that was overriding all other configs. Disabling it fixed the issue.

Rqbln commented 3 months ago

Thank you I'll try :)

manu0600 commented 3 months ago

There was "recently" an update that changes the way the per-device parameters are written. To write a per-device sensitivity, you should put this in your config (outside of any other group like "input" or whatever):

device {
    name = synps/2-synaptics-touchpad
    sensitivity = +0.0
}

The sensitivity ranges from -1.0 to +1.0 (0.0 is the default). You can find the name of your device using hyprctl devices, in my case i gives me the following:

mice:
  Mouse at xxxxxxxxxxxx:
    synps/2-synaptics-touchpad
      default speed: 0.00000
...
Renzo-Rodriguez commented 1 week ago

Did not work :(

I am on a laptop and when i run:

hyprctl devices 

My output looked like this:

mice:
    Mouse at 57297c89fa80:
        syna2ba6:00-06cb:ce78-touchpad
            default speed: 0.00000
...

In my hyprland.conf file, I can set sensitivity to any value (within the acceptable range or not) and it does not affect my touch pad sensitivity

When I set device specific settings like this

device {
  name = syna2ba6:00-06cb:ce78-touchpad
  sensitivity = +0.5
}

It also does Not work no mater that the sensitivity value is. I am not sure what is the problem.

Important_ Note : I do have Force_no_accel enabled and when it is enabled then the sensitivity settings works. Although I really do not like having acceleration enabled

I understand that I can change the acceleration profile and I am wondering if I need to do that to fix my issue. Any help would be apreciated