New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[19.09] nixos/libinput: apply options to all device types #73785
[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 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. |
Regression ❔ (I'd definitely not want to backport that) |
Yes, and that should be fixed on master as well (has it already been merged to master?). |
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 |
We've established there was no issues at #72774 (comment). |
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 is exactly why I didn't want it backported… |
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. |
BTW, I have a hypothesis why this is either all or nothing. It is because |
|
For what it's worth, I liked the new behavior so much that after the rollback I had to bring it back via |
@niobium0 The problem is that the change was implemented in a minor update. I think this new behavior will be available nonetheless in the next NixOS release. |
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)