Skip to content

Commit

Permalink
Enable panel power saving with a default of 1, configurable with stea…
Browse files Browse the repository at this point in the history
…mfork-set-setting. Thanks to @uejji for research and initial proof of concept.
  • Loading branch information
fewtarius committed Oct 4, 2024
1 parent 7ba6778 commit 69275f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PKGBUILD/steamfork-device-support/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Fewtarius

pkgname=steamfork-device-support
pkgver=2024.10.01
pkgver=2024.10.04
pkgrel=1
pkgdesc='Hardware support provider for PC handhelds.'
arch=('any')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

PANEL_POWER_SAVINGS=$(steamfork-get-setting amdgpu.panel_power_saving)
if [ -z "${PANEL_POWER_SAVINGS}" ]
then
PANEL_POWER_SAVINGS=1
fi

for NODE in /sys/class/drm/card?/*/amdgpu/panel_power_savings
do
if [ -e "${NODE}" ]
then
echo ${PANEL_POWER_SAVINGS} >${NODE}
fi
done

0 comments on commit 69275f9

Please sign in to comment.