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
Johannes Schauer Marin Rodrigues
MNT Reform Tools
Commits
19dafdb9
Unverified
Commit
19dafdb9
authored
3 years ago
by
Johannes Schauer Marin Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
use reform-sleep.service instead of /lib/systemd/system-sleep
parent
9fb50d3a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/reform-tools.install
+0
-1
0 additions, 1 deletion
debian/reform-tools.install
sbin/reform-standby
+12
-0
12 additions, 0 deletions
sbin/reform-standby
systemd/reform-suspend
+0
-12
0 additions, 12 deletions
systemd/reform-suspend
with
12 additions
and
13 deletions
debian/reform-tools.install
+
0
−
1
View file @
19dafdb9
...
@@ -8,4 +8,3 @@ etc/* /etc
...
@@ -8,4 +8,3 @@ etc/* /etc
sbin
/*
/
usr
/
sbin
sbin
/*
/
usr
/
sbin
systemd
/
reform
-
poweroff
/
lib
/
systemd
/
system
-
shutdown
systemd
/
reform
-
poweroff
/
lib
/
systemd
/
system
-
shutdown
systemd
/
reform
-
sleep
.
conf
/
usr
/
lib
/
systemd
/
sleep
.
conf
.
d
systemd
/
reform
-
sleep
.
conf
/
usr
/
lib
/
systemd
/
sleep
.
conf
.
d
systemd
/
reform
-
suspend
/
lib
/
systemd
/
system
-
sleep
This diff is collapsed.
Click to expand it.
sbin/reform-standby
+
12
−
0
View file @
19dafdb9
...
@@ -40,13 +40,25 @@ kbd_backlight_on() {
...
@@ -40,13 +40,25 @@ kbd_backlight_on() {
done
done
}
}
hid_bind
()
{
echo
0003:03EB:2041.0002
>
/sys/bus/hid/drivers/hid-generic/bind
echo
0003:03EB:2042.0001
>
/sys/bus/hid/drivers/hid-generic/bind
}
hid_unbind
()
{
echo
0003:03EB:2041.0002
>
/sys/bus/hid/drivers/hid-generic/unbind
echo
0003:03EB:2042.0001
>
/sys/bus/hid/drivers/hid-generic/unbind
}
if
[[
$1
=
"suspend"
]]
;
then
if
[[
$1
=
"suspend"
]]
;
then
setup_wake
setup_wake
wifi_off
wifi_off
kbd_backlight_off
kbd_backlight_off
hid_unbind
fi
fi
if
[[
$1
=
"resume"
]]
;
then
if
[[
$1
=
"resume"
]]
;
then
kbd_backlight_on
kbd_backlight_on
wifi_on
wifi_on
hid_bind
fi
fi
This diff is collapsed.
Click to expand it.
systemd/reform-suspend
deleted
100755 → 0
+
0
−
12
View file @
9fb50d3a
#!/bin/sh
case
"
$1
"
in
pre
)
echo
0003:03EB:2041.0002
>
/sys/bus/hid/drivers/hid-generic/unbind
echo
0003:03EB:2042.0001
>
/sys/bus/hid/drivers/hid-generic/unbind
;;
post
)
echo
0003:03EB:2041.0002
>
/sys/bus/hid/drivers/hid-generic/bind
echo
0003:03EB:2042.0001
>
/sys/bus/hid/drivers/hid-generic/bind
;;
esac
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