632: Framework 12th gen: add keys workaround r=Mic92 a=ggPeti 638: build(deps): bump cachix/install-nix-action from 20 to 21 r=Mic92 a=dependabot[bot] 639: lenovo-thinkpad-x1-6th-gen: swap throttled with thermald r=Mic92 a=dawidd6 Co-authored-by: Peter Ferenczy <ggpeti@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
This commit is contained in:
commit
e4b34b90f2
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -7,7 +7,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- uses: cachix/install-nix-action@v21
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- name: Show nixpkgs version
|
||||
|
|
|
@ -17,10 +17,33 @@
|
|||
"i915.enable_psr=1"
|
||||
];
|
||||
|
||||
# This enables the brightness keys to work
|
||||
# This enables the brightness and airplane mode keys to work
|
||||
# https://community.frame.work/t/12th-gen-not-sending-xf86monbrightnessup-down/20605/11
|
||||
boot.blacklistedKernelModules = [ "hid-sensor-hub" ];
|
||||
|
||||
# Further tweak to ensure the brightness and airplane mode keys work
|
||||
# https://community.frame.work/t/responded-12th-gen-not-sending-xf86monbrightnessup-down/20605/67
|
||||
systemd.services.bind-keys-driver = {
|
||||
description = "Bind brightness and airplane mode keys to their driver";
|
||||
wantedBy = [ "default.target" ];
|
||||
after = [ "network.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
script = ''
|
||||
ls -lad /sys/bus/i2c/devices/i2c-*:* /sys/bus/i2c/drivers/i2c_hid_acpi/i2c-*:*
|
||||
if [ -e /sys/bus/i2c/devices/i2c-FRMW0001:00 -a ! -e /sys/bus/i2c/drivers/i2c_hid_acpi/i2c-FRMW0001:00 ]; then
|
||||
echo fixing
|
||||
echo i2c-FRMW0001:00 > /sys/bus/i2c/drivers/i2c_hid_acpi/bind
|
||||
ls -lad /sys/bus/i2c/devices/i2c-*:* /sys/bus/i2c/drivers/i2c_hid_acpi/i2c-*:*
|
||||
echo done
|
||||
else
|
||||
echo no fix needed
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
# Alder Lake CPUs benefit from kernel 5.18 for ThreadDirector
|
||||
# https://www.tomshardware.com/news/intel-thread-director-coming-to-linux-5-18
|
||||
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.18") (lib.mkDefault pkgs.linuxPackages_latest);
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
# See also https://certification.ubuntu.com/catalog/component/input/5313/input%3ATPPS/2ElanTrackPoint/
|
||||
hardware.trackpoint.device = "TPPS/2 Elan TrackPoint";
|
||||
|
||||
services.throttled.enable = lib.mkDefault true;
|
||||
services.thermald.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue