spehe
Posts: 8
Joined: Wed Jan 06, 2016 5:24 pm

How to make Chromium autostart in fullscreen

Fri Jan 08, 2016 9:41 pm

Hello,
totally new to RPI, trying to set up the famous 'magic mirror' project. Have followed a number of tutorials on this without luck. I want Chromium to autostart in kiosk mode and display the localhost page, but when RPI have booted it just displays the RPI desktop. I can see that I have managed to install Chromium since it is in the menu (have also started the Chromium GUI and tested it OK)

It is very frustrating being a beginner in this, so any help and suggestions would be deeply appreciated.

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: How to make Chromium autostart in fullscreen

Sat Jan 09, 2016 6:48 am

SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to make Chromium autostart in fullscreen

Sat Jan 09, 2016 9:12 am

spehe wrote:Hello,
totally new to RPI, trying to set up the famous 'magic mirror' project. Have followed a number of tutorials on this without luck. I want Chromium to autostart in kiosk mode and display the localhost page, but when RPI have booted it just displays the RPI desktop. I can see that I have managed to install Chromium since it is in the menu (have also started the Chromium GUI and tested it OK)

It is very frustrating being a beginner in this, so any help and suggestions would be deeply appreciated.
Maybe take a look at kweb, it has kiosk mode :?:

viewtopic.php?t=40860
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

gordon77
Posts: 5036
Joined: Sun Aug 05, 2012 3:12 pm

Re: How to make Chromium autostart in fullscreen

Sat Jan 09, 2016 9:23 am

I have never done it but found this...

add @ /usr/bin/chromium --kiosk --ignore-certificate-errors --disable-restore-session-state "http://www.domain.com"

to the end of ~/.config/lxsession/LXDE-pi/autostart

spehe
Posts: 8
Joined: Wed Jan 06, 2016 5:24 pm

Re: How to make Chromium autostart in fullscreen

Sat Jan 09, 2016 12:18 pm

Thank you for your interest and help. I have tried the suggestion from Gordon77 and unfortunately it did not work. The suggestion from fruitoftheloom I will keep as my last resort. I really want to get Chromium to work. Any other tips&tricks to get this to work?

This is actually the same problem I have with trying to turn of the screensaver/blank screen. I follow a number of tutorials, but none of them work for me... Very frustrating.

spehe
Posts: 8
Joined: Wed Jan 06, 2016 5:24 pm

Re: How to make Chromium autostart in fullscreen

Sun Jan 10, 2016 8:09 pm

I have now tried the same thing with browser Midori, but I get exactely the same result; the desktop is displayed, and no browser is launched. It doesn't even look as if the autostart file is being executed at all. "sudo nano /etc/xdg/lxsession/LXDE-pi/autostart"

I am logged in with user "pi", and being a beginner, I am using NOOBS. Is there some way to determine wether my file is executed at all?

gordon77
Posts: 5036
Joined: Sun Aug 05, 2012 3:12 pm

Re: How to make Chromium autostart in fullscreen

Sun Jan 10, 2016 8:17 pm

My solution assumed you were using a raspbian install, not noobs, which may be different.

spehe
Posts: 8
Joined: Wed Jan 06, 2016 5:24 pm

Re: How to make Chromium autostart in fullscreen

Sun Jan 10, 2016 8:37 pm

@Gordon77. Your solution was actually correct. I now finally managed to get midori to start in fullscreen mode. It worked to change the file ~/.config/lxsession/LXDE-pi/autostart as you suggested earlier.

Code: Select all

@midori -e Fullscreen -a http://localhost
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xset s off
@xset -dpms
@xset s noblank
@unclutter -idle 1
So my assumption was correct that by some reason, the file /etc/xdg/lxsession/LXDE-pi/autostart was not considered at boot up.

Thanks for your help!

gordon77
Posts: 5036
Joined: Sun Aug 05, 2012 3:12 pm

Re: How to make Chromium autostart in fullscreen

Sun Jan 10, 2016 8:44 pm

Apparently the system looks for the ~/.config file first and if it doesn't exist it uses the /etc/xdg file

Return to “Beginners”