When setting up a Xibo digital signage player on Xubuntu, one common issue is that the display boots up in the wrong resolution or orientation. Instead of running xrandr manually each time, you can automate this process so that the screen always comes up correctly after reboot.
To check the current resolution and display setup for your Xibo display on Xubuntu, you can use xrandr. Since Xibo runs under its own user, do this:
sudo -u xibo DISPLAY=:0 xrandr
What this does:
- Lists all connected displays (HDMI, DP, eDP, etc.)
- Shows the current resolution, available resolutions, and orientation
- Marks the active resolution with a *
Steps to Fix
1. Create a script folder
mkdir -p /home/xibo/.screenlayout
2. Add the script
Create a new file:
nano /home/xibo/.screenlayout/fixdisplay.sh
Paste the following:
#!/bin/bash
# Fix display resolution + rotation for signage
xrandr --output HDMI-2 --mode 3840x2160 --rotate left
Save and exit.
3. Make it executable
chmod +x /home/xibo/.screenlayout/fixdisplay.sh
4. Add to autostart
mkdir -p /home/xibo/.config/autostart
nano /home/xibo/.config/autostart/fixdisplay.desktop
Paste:
[Desktop Entry]
Type=Application
Exec=/home/xibo/.screenlayout/fixdisplay.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Fix Display
Comment=Set resolution and rotation automatically
5. Reboot
sudo reboot
That’s it! now, whenever your Xibo player logs in, the display will automatically switch to 3840x2160 portrait mode without any manual intervention.