boot.extraModulePackages = [ ideapad-laptop-tb ];
boot.blacklistedKernelModules = [ "ideapad-laptop" ];
environment.etc."systemd/system-sleep/sleepissue.sh".source = pkgs.writeShellScript "sleepissue.sh" ''
case $1/$2 in
pre/*)
# commands to be executed before suspend, hibernate, etc. goes below
echo "before power down"
/run/current-system/sw/bin/modprobe -r ideapad_laptop_tb
;;
post/*)
# commands to be executed on wake, resume, etc. goes below
echo "after power up"
/run/current-system/sw/bin/modprobe ideapad_laptop_tb
;;
esac
'';
小猫Channel
boot.extraModulePackages = [ ideapad-laptop-tb ]; boot.blacklistedKernelModules = [ "ideapad-laptop" ]; environment.etc."systemd/system-sleep/sleepissue.sh".source = pkgs.writeShellScript "sleepissue.sh" '' case $1/$2 in pre/*) # commands…
ideapad-laptop.patch
3.1 KB
适用于6.14的patch, 基于 https://github.com/ferstar/ideapad-laptop-tb 和 https://github.com/ty2/ideapad-laptop-tb2024g6plus
谨慎使用
谨慎使用
🔥1
小猫Channel
ideapad-laptop.patch
事后发现可能这样设置
可能有帮助, 也可能没帮助
#define IDEAPAD_EC_TIMEOUT 50 /* in ms */
可能有帮助, 也可能没帮助
小猫Channel
boot.extraModulePackages = [ ideapad-laptop-tb ]; boot.blacklistedKernelModules = [ "ideapad-laptop" ]; environment.etc."systemd/system-sleep/sleepissue.sh".source = pkgs.writeShellScript "sleepissue.sh" '' case $1/$2 in pre/*) # commands…
应该是没用了, 最近两天又遇到了合盖后开盖断电的情况
不过发现了一些新的信息
1. 若合盖睡眠后是插电的状态下开盖有很大可能性断电
2. 若合盖后把电源拔了则开盖不会断电
3. 实际上所谓合盖断电是开盖时发生的, acpi事件显示合盖前是正常的.
4. 按上述调整timeout能改善问题
不过发现了一些新的信息
1. 若合盖睡眠后是插电的状态下开盖有很大可能性断电
2. 若合盖后把电源拔了则开盖不会断电
3. 实际上所谓合盖断电是开盖时发生的, acpi事件显示合盖前是正常的.
4. 按上述调整timeout能改善问题
https://hetzner.cloud/?ref=OhytGlINinrs
Hetzner Promotion
As soon as someone signs up using your personal link, they'll receive €20 in cloud credits.
Once they spent at least €10 with us (not including credits), you'll receive €10 in cloud credits as a thank you.
You can support my service now.
Hetzner Promotion
As soon as someone signs up using your personal link, they'll receive €20 in cloud credits.
Once they spent at least €10 with us (not including credits), you'll receive €10 in cloud credits as a thank you.
You can support my service now.
