Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MNT Reform Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
MNT Reform Tools
Commits
d192887a
Commit
d192887a
authored
2 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
workaround for 5.18 wake from standby hang (problem found by NanoCodeBug)
parent
f258d2de
No related branches found
No related tags found
1 merge request
!20
workaround for 5.18 wake from standby hang (problem found by NanoCodeBug)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/reform-standby
+11
-0
11 additions, 0 deletions
sbin/reform-standby
with
11 additions
and
0 deletions
sbin/reform-standby
+
11
−
0
View file @
d192887a
...
...
@@ -28,6 +28,15 @@ wifi_on() {
sleep
1
}
hantro_off
()
{
# with 5.18, hantro_vpu hangs on resume
rmmod hantro_vpu
}
hantro_on
()
{
modprobe hantro_vpu
}
kbd_backlight_off
()
{
for
d
in
/dev/hidraw
*
do
echo
-en
"xLITE0"
>
$d
...
...
@@ -53,6 +62,7 @@ hid_unbind() {
if
[[
$1
=
"suspend"
]]
;
then
setup_wake
wifi_off
hantro_off
kbd_backlight_off
hid_unbind
fi
...
...
@@ -60,5 +70,6 @@ fi
if
[[
$1
=
"resume"
]]
;
then
kbd_backlight_on
wifi_on
hantro_on
hid_bind
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment