Add workaround to prevent WiFi disconnects

This commit is contained in:
coolneng 2022-04-27 09:53:34 +02:00
parent 13c454491e
commit cde20f895a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 5 additions and 2 deletions

View File

@ -104,7 +104,7 @@ in {
identityPaths = [ "/etc/ssh/id_ed25519" ]; identityPaths = [ "/etc/ssh/id_ed25519" ];
}; };
# Enable internal microphone when headphones are plugged in # Enable internal microphone when headphones are plugged in and add workaround for frequent WiFi disconnects
hardware.firmware = [ hardware.firmware = [
(writeTextDir "/lib/firmware/hda-jack-retask.fw" '' (writeTextDir "/lib/firmware/hda-jack-retask.fw" ''
[codec] [codec]
@ -124,7 +124,10 @@ in {
0x1e 0x411111f0 0x1e 0x411111f0
'') '')
]; ];
boot.extraModprobeConfig = "options snd-hda-intel patch=hda-jack-retask.fw"; boot.extraModprobeConfig = ''
options snd-hda-intel patch=hda-jack-retask.fw
options mac80211 beacon_loss_count=1000 probe_wait_ms=75
'';
# Import other configuration modules # Import other configuration modules
imports = [ imports = [