Skip to content

Commit

Permalink
feat(deck): Add fix for suspend with some wifi adapters.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Feb 22, 2024
1 parent 929bddb commit 0492920
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Line separated list of modules to unload/reload at suspend/resume.
mt7921e
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# This file runs during sleep/resume events. It will read the list of modules
# in /etc/device-quirks/systemd-suspend-mods.conf and rmmod them on suspend,
# insmod them on resume.
# Originally created by ChimeraOS

MOD_LIST=$(grep -v ^\# /etc/device-quirks/systemd-suspend-mods.conf)

case $1 in
pre)
for mod in $MOD_LIST; do
modprobe -r $mod
done
;;
post)
for mod in $MOD_LIST; do
modprobe $mod
done
;;
esac

0 comments on commit 0492920

Please sign in to comment.