Screen Resolution on X86/X64 PC Installs

Hi all,

Quick fix for screen resolution if you would like to change it on a PC based install. Would be nice to have the as a feature of the UI in a future release.

SSH into your box (you may need to enable ssh, see the documentation for that).

Edit /opt/volumiokiosk.sh

sudo edit /opt/volumiokiosk.sh

Add the following to the while true set in order to set the X screen resolution and then the resolution that chromium displays at.

To set screen res:

xrandr -display :0.0 --output VGA1 --mode "1440x900"

And to set chromium add this to the chromium command line:

--window-size=1440,900

Your new script should look like:

[code]#!/bin/bash

xset -dpms
xset s off
openbox-session &

while true; do
rm -rf ~/.{config,cache}/chromium/
xrandr -display :0.0 --output VGA1 --mode “1440x900”
/usr/bin/chromium --disable-session-crashed-bubble --disable-infobars --kiosk --no-first-run --window-size=1440,900 ‘http://localhost:3000
done[/code]

Of course set the resolution to something that your screen can display.

Reboot your system.

Enjoy :smiley:
-Saff

Hi,

My script looks exactly like that and my resolution isn’t changing off my HDMI output. Thoughts?

Thanks!

1 Like

Also, interestingly, that change stopped audio playback out of my Hiface. Returned the script to normal, and restarted and everything worked again. Odd… Also had to use nano and not edit???

Go to a tty ore ssh in to your machine.

Install pciutils:

sudo apt-get install pciutils

write in prompt:

lspci | grep -iE “vga|3d|hdmi|Display”

Se if you have a VGA only with HDMI on the same line out, ore might have VGA-0. Test to change VGA1 to VGA ore VGA0, ore test HDMI, can also bee HDMI-0, ore HDMI-1, Nvidia sometimes do that.

Just test what you see in output from command lspci, do a reboot between.