1

I was trying out booting my pi4 into a chromium kiosk mode for a demo and ran the commands from the following post: Open chromium full screen on start up

@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --kiosk http://google.com/ 

Now when I went to that file again it seems to be empty and I'm not able to revert the change.

I tried looking for the reverse commands like

@xset s on
@xset s blank

Here's the output of I got from the commands in the comments:

pi@raspberrypi:~ $ ls -l /home/pi/.config/lxsession/LXDE-pi/autostart
-rw-r--r-- 1 root root 37 Jul 24 16:05 /home/pi/.config/lxsession/LXDE-pi/autostart
pi@raspberrypi:~ $ cat /home/pi/.config/lxsession/LXDE-pi/autostart
@xset s on
@xset -dpms
@xset s blank

6
  • Before you ask, I am using NOOBS and I saw the 3rd comment that says to be careful AFTER doing it. I'm sorry, please help me. I don't want to format it again :(
    – diCoy
    Jul 24 '20 at 19:26
  • You should tell us what YOU did NOTE that post is obsolete, file locations have changed and you SHOULD NOT use sudo in editing pi files
    – Milliways
    Jul 24 '20 at 22:58
  • 1
    Dump NOOBS, use the direct image download raspberrypi.org/downloads/raspberry-pi-os Saves issues. It's possible you did not save the files???
    – user115418
    Jul 25 '20 at 3:22
  • Please edit your question and add the output of these commands to it: ls -l /home/pi/.config/lxsession/LXDE-pi/autostart and cat /home/pi/.config/lxsession/LXDE-pi/autostart. Don't prepend sudo to the commands.
    – Ingo
    Jul 25 '20 at 10:44
  • As you can see from the cat command, the file /home/pi/.config/lxsession/LXDE-pi/autostart does not contain what you want. From the command just replace cat with sudo nano and change the content of the autostart file. Don't forget to save the changes before closing the editor nano. After that check again with cat /home/pi/.config/lxsession/LXDE-pi/autostart.
    – Ingo
    Jul 27 '20 at 23:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.