Digital Slideshow – Another way

Off I go again. Looking at using a Raspberry Pi for a digital slideshow, but this will work for any linux install using openbox as a window manager (simply because it presents a blank screen once X has loaded up.

The premise is simple:

Using the raspbian image for the rpi

Set the default xsession to openbox (instead of lxde)

sudo update-alternatives --config x-session-manager

you will get a list of options, select openbox and you will be set

Ensure nitrogen wallpaper changer is installed

sudo apt-get install nitrogen

Install unclutter to hide the mouse cursor

sudo apt-get install unclutter

Ensure a selection of wallpapers is available in a folder

Add this script to a file and make that file executable

chmod +x changer.sh

Add the following lines to your autostart file

nano ~/.config/openbox/autostart

unclutter -visible -root &
sleep 2 &
/home/user/changer.sh &

If you reboot now you will still have to login, start X and then the changer will start up. There are a couple more things to do to resolve autologin and to prevent screen blanking

For autologin to X first off run:

cd /usr/bin
sudo ./raspi-config

Change the boot choice to Desktop

Next edit lightdm.conf and make the following changes

sudo nano /etc/lightdm/lightdm.conf

[SeatDefaults]
autologin-user=
autologin-user-timeout=0
user-session=default
greeter-session=lightdm-greeter

To prevent screen blanking, you have to do 1, 2, or all 3 of the following:

sudo apt-get install xscreensaver

then open xscreensaver and disable the screensaver

xscreensaver-demo

Edit as follows:

sudo nano /etc/kbd/config

BLANK_TIME=0
POWERDOWN_TIME=0

Finally edit lightdm.conf again

sudo nano /etc/lightdm/lightdm.conf

[SeatDefaults]
xserver-command=X -s 0 dmps

That should be it. Now reboot and after a short delay with a grey screen your images should start to display on the background. Best thing is you still have a fully functional desktop, and with raspian the Debian menu offers all installed apps :)

Leave a Reply

Your email address will not be published. Required fields are marked *