File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 88 inherit ( lib ) mkDefault mkEnableOption mkIf mkMerge version versionAtLeast versionOlder ;
99
1010 cfg = config . hardware . asus . zephyrus . ga402x ;
11- defaultAutosuspendEnable = versionAtLeast config . boot . kernelPackages . kernel . version "6.9" ;
12-
1311in {
1412
1513 imports = [
3129 # Note: the device name is "ASUS N-KEY Device".
3230 keyboard . autosuspend . enable = (
3331 mkEnableOption "Enable auto-suspend on the internal USB keyboard (ASUS N-KEY Device) on Zephyrus GA402X"
34- ) // { default = defaultAutosuspendEnable ; } ;
32+ ) // {
33+ default = versionAtLeast config . boot . kernelPackages . kernel . version "6.9" ;
34+ defaultText = lib . literalExpression "lib.versionAtLeast config.boot.kernelPackages.kernel.version \" 6.9\" " ;
35+ } ;
3536 # The ASUS 8295 ITE device will cause an immediate wake-up when trying to suspend the laptop.
3637 # After the first successful hibernate, it will work as expected, however.
3738 # NOTE: I'm not actually sure what this device, as neither the touchpad nor the M1-M4 keys cause a wake-up.
You can’t perform that action at this time.
0 commit comments