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
ls -l /home/pi/.config/lxsession/LXDE-pi/autostart
andcat /home/pi/.config/lxsession/LXDE-pi/autostart
. Don't prependsudo
to the commands.cat
command, the file/home/pi/.config/lxsession/LXDE-pi/autostart
does not contain what you want. From the command just replacecat
withsudo 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 withcat /home/pi/.config/lxsession/LXDE-pi/autostart
.