A complete guide to installing, configuring, and optimizing the Screenflex Player on Raspberry Pi devices running Raspberry Pi OS.
Screenflex is optimized for all modern Raspberry Pi boards:
Since Raspberry Pi OS is Debian-based, installation is straightforward.
Run:
sudo dpkg -i screenflex.debFix missing dependencies (if any):
sudo apt --fix-broken installYou can start Screenflex by searching for it in the Raspberry Pi menu, or via terminal:
screenflex(Or enter the Screen Slug)
This linking method ensures that only authorized users can register new screens.
For digital signage, the Raspberry Pi should automatically open the Screenflex app after boot.
1. Open terminal
2. Create service file:
sudo nano /etc/systemd/system/screenflex.service3. Paste:
[Unit]
Description=Start Screenflex on boot
After=lightdm.service
Wants=lightdm.service
[Service]
User=screenflex
WorkingDirectory=/home/screenflex
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/screenflex/.Xauthority
ExecStart=/usr/bin/screenflex
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target4.Reload systemd configuration
sudo systemctl daemon-reload5. Enable Screenflex service on boot
sudo systemctl enable screenflex.service6. Restart the Screenflex service
sudo systemctl restart screenflex.service7. Check the current status of the Screenflex service
sudo systemctl status screenflex.servicenano ~/.config/lxsession/LXDE-pi/autostart@screenflexRaspberry Pi devices are designed to save power by turning off the screen after a few minutes of inactivity.
For digital signage, this is a problem because your content must stay visible 24/7.
To prevent the screen from going black, we must disable:
Below are the steps explained clearly.
Screen blanking is when the Raspberry Pi turns the display black after a while to save energy.
To disable it:
Open Terminal and type:
sudo raspi-configThis ensures the screen never turns off automatically.
Some Raspberry Pi OS versions include a program called xscreensaver, which activates different screen animations.
For digital signage, you don’t need it.
To remove it:
sudo apt remove xscreensaverDPMS is a feature that tells the display to enter sleep mode after a period of inactivity.
We must turn it off so your display never sleeps.
nano ~/.config/lxsession/LXDE-pi/autostart@xset s off
@xset -dpms
@xset s noblank
sudo rebootNow the screen will stay on forever, even if no one touches the device.
Download updated file and install:
sudo dpkg -i screenflex.deb
sudo apt --fix-broken installThere are currently some limitations. Check them out here.