diff options
author | lassulus <lassulus@lassul.us> | 2021-09-16 08:32:30 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-09-16 08:32:30 +0200 |
commit | bcc305c30723c167f5189229edd2480214f0bebf (patch) | |
tree | 2b51a02d984cb50c4e6299edde86217c81467a53 /lass/1systems/coaxmetal | |
parent | 8acf89ffdb51e4727abe7538c89f854329ef7fa3 (diff) |
l coaxmetal.r: add config for trackpoint/trackpad
Diffstat (limited to 'lass/1systems/coaxmetal')
-rw-r--r-- | lass/1systems/coaxmetal/physical.nix | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/lass/1systems/coaxmetal/physical.nix b/lass/1systems/coaxmetal/physical.nix index d3810e768..b033477fe 100644 --- a/lass/1systems/coaxmetal/physical.nix +++ b/lass/1systems/coaxmetal/physical.nix @@ -45,7 +45,25 @@ services.logind.lidSwitch = "ignore"; services.logind.lidSwitchDocked = "ignore"; - boot.extraModprobeConfig = '' - options psmouse proto=imps + + # Mouse stuff + services.xserver.libinput.enable = lib.mkForce false; + services.xserver.synaptics.enable = true; + + services.xserver.displayManager.sessionCommands = '' + xinput disable 'ETPS/2 Elantech Touchpad' + xinput set-prop 'ETPS/2 Elantech TrackPoint' 'Evdev Wheel Emulation' 1 + xinput set-prop 'ETPS/2 Elantech TrackPoint' 'Evdev Wheel Emulation Button' 2 + xinput set-prop 'ETPS/2 Elantech TrackPoint' 'Evdev Wheel Emulation Axes' 6 7 4 5 ''; + + # https://forums.lenovo.com/t5/Fedora/T14s-AMD-Trackpoint-almost-unusable/m-p/5064952?page=4 + # https://bugzilla.kernel.org/show_bug.cgi?id=209167#c1 + boot.kernelPatches = [{ + name = "fix-trackpoint-jumping"; + patch = pkgs.fetchurl { + url = "https://patchwork.kernel.org/project/linux-input/patch/20210729010940.5752-1-phoenix@emc.com.tw/raw/"; + sha256 = "0apbf7c8w830dbdsrmxpip90d5zbg74a939x89jfgpvm5gbdqdjg"; + }; + }]; } |