Skip to content
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

Feature.asus zephyrus g16 gu605 my backlight and keyboard rules #1308

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions asus/zephyrus/gu605my/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
../../../common/gpu/nvidia/prime.nix
../../../common/gpu/nvidia/ada-lovelace
../../../common/pc/laptop
../../../common/pc/ssd
../../../common/pc/laptop/ssd
../shared/backlight.nix
];

hardware.nvidia = {
Expand All @@ -15,6 +16,7 @@
nvidiaBusId = "PCI:1:0:0";
};

modesetting.enable = lib.mkDefault true;
dynamicBoost.enable = lib.mkDefault true;
};

Expand All @@ -23,7 +25,9 @@

udev.extraHwdb = ''
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
KEYBOARD_KEY_ff3100b2=home # Set fn+LeftArrow as Home
KEYBOARD_KEY_ff3100b3=end # Set fn+RightArrow as End
'';
};
}
8 changes: 8 additions & 0 deletions asus/zephyrus/shared/backlight.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ ... }:
{
boot.kernelParams = [
"i915.enable_dpcd_backlight=1"
"nvidia.NVreg_EnableBacklightHandler=0"
"nvidia.NVReg_RegistryDwords=EnableBrightnessControl=0"
];
}
Loading