I found the solution… I´m not sure why this is needed, but fact is, there are some missing dirs which needs to be created first… How come only a very few is mentioning this part, could be that the dirs maybe get created during another install or anything… From a stock Raspbian with Desktop (not full), the dirs are not there.
So if anyone runs into the same problem. Here is the solution:
- First of all, the autostart file is not at the location cause /lxsession/LXDE-pi/ does not exsist. user will have to create these folders first…
mkdir -p /home/pi/.config/lxsession/LXDE-pi/
- When 1 done, now you need to copy the autostart from another place to the new created dirs.
cp /etc/xdg/lxsession/LXDE-pi/autostart /home/pi/.config/lxsession/LXDE-pi/autostart
After this, it is now possible to edit the autostart with:
#@xscreensaver -no-splash # comment this line out to disable screensaver
@xset s off
@xset s noblank
@chromium-browser --kiosk http://point to your habpanel_dashboard/ # load chromium after boot and point to the habpanel in kiosk fullscreen mode.
Important note - When running Chromium in fullscreen kiosk mode, its only possible to exit using ALT-F4. Keep that in mind… I just hammered on my keyboard for several minutes trying to exit kiosk mode with F11, ESC etc… It wont work, and probably not at all, if you continue to hammer your keyboard like I did
Status right now:
Got the Rpi up running and it starts chromium from boot in kiosk mode showing the dashboard from habpanel. (It is slow as hell though, but thats probably the Rpi).
Then I came to think about the screensaver and the idea I had of not having a keyboard/mouse connected… In short - Using screensaver while having no keyboard and mouse, thats NOT such a great idea anyway. I cant get out of the screensaver, ofcouse (stupid thinking )…
So now I´m in a splitted situation… Somehow I need to turn off the screensaver when I want to look at the monitor, without using keyboard/mouse… I wont accept not having a screensaver, but it makes no sense, if I cant turn it off… And having a 22" monitor turned on showing a floorplan 24/7 is fare for a great idea. So thats my next hurdle in this little project…
And as usual - Any ideas is most welcome, thanks…
An important note about the habpanel speed i Chromium. It seems like size matters. Screen size (resolution) that is…
While setting up this little project, I´m using my 27" 2K monitor. Raspbian seems to use a high resolution by default, (I cant tell how much, since I cant find any utility to show. Setup just say “prefered size”). When I have my floorplan running in habpanel showing in Chromium, there´s about 10sec from an item change to the change show on the floorplan, which in my opinion is way too much. Opening the same habpanel dashboard on my workstation, (Quad core Intel I7 CPU with 32GB RAM and SSD drive, using the same 27" 2K monitor) there is no delay at all. When I forced the resolution of the Rpi to 1920 x 1080, the delay came down to something like 3-4 seconds. Still enough to annoy me though.
So this is unfortunatly a matter of size (resolution) and computer power.
Since 1920 x 1080 is the resolution I´m planning to use om my 22" monitor I probably have to live with this delay untill I get a faster Rpi/SBC. I have an Odroid C2 on its way, when it arrives it will take over from my Rpi 3B+ running openhab server. But I doubt the Rpi 3B+ is that much faster than the Rpi 3B in this matter. Perhaps a Rpi4 could come in hand anyway.