m 2 hw: fix bcm and rfkill after resume
This commit is contained in:
parent
255af71a25
commit
4056d9b66d
@ -1,6 +1,7 @@
|
|||||||
{config, ...}:
|
{config, ...}:
|
||||||
{
|
{
|
||||||
networking.enableB43Firmware = true;
|
networking.enableB43Firmware = true;
|
||||||
|
boot.kernelModules = [ "wl" ];
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,8 +28,9 @@ with import <stockholm/lib>;
|
|||||||
services.tlp.enable = true;
|
services.tlp.enable = true;
|
||||||
services.tlp.extraConfig = ''
|
services.tlp.extraConfig = ''
|
||||||
# BUG: http://linrunner.de/en/tlp/docs/tlp-faq.html#erratic-battery
|
# BUG: http://linrunner.de/en/tlp/docs/tlp-faq.html#erratic-battery
|
||||||
#START_CHARGE_THRESH_BAT0=80
|
START_CHARGE_THRESH_BAT0=67
|
||||||
STOP_CHARGE_THRESH_BAT0=95
|
STOP_CHARGE_THRESH_BAT0=100
|
||||||
|
|
||||||
|
|
||||||
CPU_SCALING_GOVERNOR_ON_AC=performance
|
CPU_SCALING_GOVERNOR_ON_AC=performance
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT=ondemand
|
CPU_SCALING_GOVERNOR_ON_BAT=ondemand
|
||||||
@ -40,6 +41,6 @@ with import <stockholm/lib>;
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
powerManagement.resumeCommands = ''
|
powerManagement.resumeCommands = ''
|
||||||
{pkgs.rfkill}/bin/rfkill unblock all
|
${pkgs.rfkill}/bin/rfkill unblock all
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user