Skip to content

Commit 9eedbc6

Browse files
authored
Merge of #1308
2 parents f16e0cd + 1754cdf commit 9eedbc6

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

asus/zephyrus/gu605my/default.nix

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
../../../common/gpu/nvidia/prime.nix
77
../../../common/gpu/nvidia/ada-lovelace
88
../../../common/pc/laptop
9-
../../../common/pc/ssd
9+
../../../common/pc/laptop/ssd
10+
../shared/backlight.nix
1011
];
1112

1213
hardware.nvidia = {
@@ -15,6 +16,7 @@
1516
nvidiaBusId = "PCI:1:0:0";
1617
};
1718

19+
modesetting.enable = lib.mkDefault true;
1820
dynamicBoost.enable = lib.mkDefault true;
1921
};
2022

@@ -23,7 +25,9 @@
2325

2426
udev.extraHwdb = ''
2527
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
26-
KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
28+
KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
29+
KEYBOARD_KEY_ff3100b2=home # Set fn+LeftArrow as Home
30+
KEYBOARD_KEY_ff3100b3=end # Set fn+RightArrow as End
2731
'';
2832
};
2933
}

asus/zephyrus/shared/backlight.nix

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{ ... }:
2+
{
3+
# These flags are used to enable backlight control when the dGPU is working in hybrid mode
4+
boot.kernelParams = [
5+
"i915.enable_dpcd_backlight=1"
6+
"nvidia.NVreg_EnableBacklightHandler=0"
7+
"nvidia.NVReg_RegistryDwords=EnableBrightnessControl=0"
8+
];
9+
}

0 commit comments

Comments
 (0)