Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4556

Troubleshooting • VNC gray screen with Kodi autostart in Raspberry pi OS (v5)

$
0
0
Hello community,

I have a Raspberry Pi 5 (4GB), with Raspberry Pi OS (desktop mode) running and Kodi.
I also enabled through rasp-config the vnc option so I can remotely access to the desktop in case of any maintenance on kodi gui interface.
I am using Wayland (not X11) and I can connect with tightvnc windows 11 client to the raspberry without problem.
Once connected, I test to run Kodi by executing it in the terminal and opens it perfectly + I can move over all menus without problem, hence I said ok, let's enable autostart and problem start here...

Following great tutorial: viewtopic.php?t=251645
I could enable it without problems. I followed the

(Section AUTO-STARTING KODI AT BOOT: - Option 1 without desktop)

Code:

sudo tee -a /lib/systemd/system/kodi.service <<_EOF_[Unit]Description = Kodi Media CenterAfter = remote-fs.target network-online.targetWants = network-online.target[Service]User = piGroup = piType = simpleExecStart = /usr/bin/kodi-standaloneRestart = on-abortRestartSec = 5[Install]WantedBy = multi-user.target_EOF_
and enabling the service

Code:

sudo systemctl enable kodi.service
After reboot, I can vnc but always grey screen appear.
I researched everywhere in this forum and other places about gray screen on vnc but nothing really helped me. In addition, I have the following questions:
  • I read RealVNC server works only with X11 but looks like it works for me using Wayland. Is it normal or I am missing something?
  • Why vnc without autostart works perfectly and once enabled autostart in Kodi I end up seeing always the grey screen?
  • I read to switch to X11 as an alternative but since It worked for me I am not sure this is going to solve my problem?
  • I read as well there are 2 different vnc servers (RealVNC for X11 and tightvnc for Wayland). How can I know which one is enabled or not and how to install the tightvnc one since using rasp-config only enables RealVNC?
  • Any other idea about something I can try? I am considering to enable autostart using desktop as background but consuming resources just for the shake of consuming... don't see value. I was using Libreelec but since no VNC available anymore I wanted to try this new approach.
Thank you in advance

Statistics: Posted by desneo — Fri May 17, 2024 8:32 pm — Replies 0 — Views 12



Viewing all articles
Browse latest Browse all 4556

Trending Articles