Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off xset screensaver and dpms (energy star) modes #247

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions omxplayer
Expand Up @@ -43,6 +43,11 @@ if [ -z $NOREFRESH ] || [ "$NOREFRESH" == "0" ]; then
fi
fi

if [ ! -z $xset_bin ]; then
$xset_bin -dpms
$xset_bin s off
fi

DBUS_CMD="dbus-daemon --fork --print-address 5 --print-pid 6 --session"
OMXPLAYER_DBUS_ADDR="/tmp/omxplayerdbus.${USER}"
OMXPLAYER_DBUS_PID="/tmp/omxplayerdbus.${USER}.pid"
Expand All @@ -66,6 +71,11 @@ export DBUS_SESSION_BUS_PID

LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYER_BIN "$@"; true

if [ ! -z $xset_bin ]; then
$xset_bin +dpms
$xset_bin s on
fi

if [ ! -z $NOREFRESH ] && [ "$NOREFRESH" == "1" ]; then
exit 0
fi
Expand Down