Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[19.09] nixos/libinput: apply options to all device types #73785
Conversation
Instead of assign the libinput options to touchpad devices only, it should be appied by any device using libinput. Due to the fact that `40-libinput.conf` already defines libinput as driver for any detected input device, we can use `MatchDriver` to appy options. (cherry picked from commit d616928)
This comment has been minimized.
This comment has been minimized.
This stops libinput from being set as the driver for all touchpads, so I think we'd need to split that part into a new InputClass section. I don't think this should go to 19.09 though, since as you said it changes existing behaviour and configuring mice using libinput is possible on 19.09 using services.xserver.inputClassSections. |
This comment has been minimized.
This comment has been minimized.
Regression |
This comment has been minimized.
This comment has been minimized.
Yes, and that should be fixed on master as well (has it already been merged to master?). |
This comment has been minimized.
This comment has been minimized.
If you look at the commit is says it has been cherry-picked. Though what is confusing to me is that I tested the commit functioning, and |
This comment has been minimized.
This comment has been minimized.
We've established there was no issues at #72774 (comment). |
72a2ced
into
NixOS:release-19.09
This comment has been minimized.
This comment has been minimized.
Just to leave it here since this change surprised me. I was actually reliant of the fact that those options are only applied to a touchpad, since I want to enable natural scrolling in my touchpad, however not in my mouse. It was really difficult to understand what was happening. While it maybe just me, maybe there is more people that had this same issue. |
This comment has been minimized.
This comment has been minimized.
This is exactly why I didn't want it backported… |
This comment has been minimized.
This comment has been minimized.
Well, actually my setup is broken. I can't set natural scrolling to work only in my touchpad and not in mouse. It is either all devices (using Could we revert this PR @lheckemann @worldofpeace? Or at least, there is some solution for this problem? It is really awful to have natural scrolling for both mouse and touchpad, however touchpad without natural scrolling is very strange. |
This comment has been minimized.
This comment has been minimized.
BTW, I have a hypothesis why this is either all or nothing. It is because |
worldofpeace commentedNov 19, 2019
Motivation for this change
Without this change any special config used for libinput like
accelSpeed
won't apply to mice because it isn't a touchpad.This could possibly change the user experience for someone, like if they came to rely on the bug.
An example situation would be:
services.xserver.libinput.accelSpeed
in configIt's generally not good to make a change like that, but it would be nice to be able to actually configure your mouse with libinput...
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
@NixOS/backports (and myself apparently)