7

I have a problem.

My goal is that the browser will automatically start up in fullscreenmode and don't go to screensaver mode when I reboot the Pi.

The Pi OS: Raspbian Jessie Version: September 2016 Kernel Version: 4.4

I already tried with:

Adding:

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

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

and

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

@chromium –kiosk http://www.domain.com

@xset s noblank

@xset s off

@xset –dpms

But nothing worked. And everything I found doesn't work :(

Can someone help me pls.

Pang
  • 9,564
  • 146
  • 81
  • 122
derMatt
  • 205
  • 1
  • 2
  • 12

2 Answers2

12

Okay I fixed it like this now:

sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart

@xset s noblank

@xset s off

@xset –dpms

@chromium-browser --incognito --kiosk http://www.domain.com

and it works. The funnyest thing is: I tried this allready but then it didn't work. xD

Community
  • 1
  • 1
derMatt
  • 205
  • 1
  • 2
  • 12
  • 1
    When I put these lines. after restarting my RPi3 shows me a blank black screen and courser only. – Umair Iftikhar May 29 '18 at 06:05
  • the `--incognito` is actually not needed. It starts the browser in *incognito* mode, which forgets about the passwords you typed. So if you (like me) have to login into the webpage makes more sense to save the password in the browser and start it in normal kiosk mode so you don't need to enter it every time – Xavi Jul 13 '18 at 08:38
  • Worked for me where nothing else seemed to. – SteveJ Oct 18 '18 at 04:12
9
cp /etc/xdg/lxsession/LXDE-pi/autostart /home/pi/.config/lxsession/LXDE-pi/autostart

sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart

Edit it as

#@xscreensaver -no-splash  # comment this line out to disable screensaver
@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --incognito --kiosk http://localhost/ 

Then, reboot it.

sudo reboot
YLJ
  • 2,940
  • 2
  • 18
  • 29
onlykalu
  • 260
  • 2
  • 5
  • 7