Read and set power profiles over D-Bus
This commit is contained in:
1 parent
7e747d18bf
commit
00e6038706
3 files changed
+13
-9
No files matched your search
+2
-1
@@ -55,7 +55,8 @@ if [[ -z ${profile:-} ]] || ! profile_available "$profile"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
powerprofilesctl set "$profile" || exit
|
||||
busctl set-property org.freedesktop.UPower.PowerProfiles /org/freedesktop/UPower/PowerProfiles \
|
||||
org.freedesktop.UPower.PowerProfiles ActiveProfile s "$profile" || exit
|
||||
|
||||
if [[ -n $requested_profile ]]; then
|
||||
mkdir -p "$state_dir"
|
||||
|
||||
Reference in new issue
Block a user