Disable WiFi power saving. Open /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and
ensure powersave option is set to 3.
[connection]
wifi.powersave = 3
Disable screen blanking. Create /home/odroid/programs/noblank.sh as follows:
#!/bin/bash
xset dpms 0 0 0 && xset -dpms && xset s off && xset s noblank
Make it executable: chmod +x /home/odroid/programs/noblank.sh.
To quit xscreensaver on joystick events, download joystickwake
cd /home/odroid/programs
git clone https://github.com/foresto/joystickwake.git
Create script to run in graphical session, called /home/odroid/my_application_xsession.sh. This
script wait for a network connection and then start your application
#!/bin/bash
# wait for network to come online
until [[ $(nm-online -q) -eq 0 ]]
do
echo "Waiting for network"
done
# start a window manager so that our application can run full screen
openbox&
# stop screen blanking
/home/odroid/noblank.sh&
# stop screensaver from coming up
/home/odroid/joystickwake/joystickwake&
# hide mouse cursor
unclutter -idle 2&
# run your application
/home/odroid/path/to/my_application
Mark the above file executable with chmod +x /home/odroid/my_application_xsession.sh.
Create a user defined X session with a custom my_application.desktop file in
/usr/share/xsessions as follows, and set it up to run the above script in your session: