Skip to content
Snippets Groups Projects
Commit d192887a authored by minute's avatar minute
Browse files

workaround for 5.18 wake from standby hang (problem found by NanoCodeBug)

parent f258d2de
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,15 @@ wifi_on() { ...@@ -28,6 +28,15 @@ wifi_on() {
sleep 1 sleep 1
} }
hantro_off() {
# with 5.18, hantro_vpu hangs on resume
rmmod hantro_vpu
}
hantro_on() {
modprobe hantro_vpu
}
kbd_backlight_off() { kbd_backlight_off() {
for d in /dev/hidraw* for d in /dev/hidraw*
do echo -en "xLITE0" > $d do echo -en "xLITE0" > $d
...@@ -53,6 +62,7 @@ hid_unbind() { ...@@ -53,6 +62,7 @@ hid_unbind() {
if [[ $1 = "suspend" ]]; then if [[ $1 = "suspend" ]]; then
setup_wake setup_wake
wifi_off wifi_off
hantro_off
kbd_backlight_off kbd_backlight_off
hid_unbind hid_unbind
fi fi
...@@ -60,5 +70,6 @@ fi ...@@ -60,5 +70,6 @@ fi
if [[ $1 = "resume" ]]; then if [[ $1 = "resume" ]]; then
kbd_backlight_on kbd_backlight_on
wifi_on wifi_on
hantro_on
hid_bind hid_bind
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment