-
Hey, in advance, i would like to apologize if my question is not appropriate, but i am trying to find a solution for a couple of weeks now without success. I'm using a fresh install of the 64 bit version of the Raspberry Pi OS on a RPi5 8 GB (tried to reinstall 2 times to see if i have done something wrong), but my wayvnc server keeps closing after some time. Sometimes it works for a day or so, sometimes for hours. I don't know the reason why it is closing. I'm using RealVNC Viewer to connect to it, but i think that can't be the problem, because i have a RPi4 too, for another purpose, and that runs just well, can connect to vnc server without any problem, and it isn't keep closing on that system (also 64 bit and bookworm fresh install and updates). If i re-enable the VNC service in raspi-config, it works again, or if i restart the system, but the problem remains, and it closes or crashes after a while. I also tried to look for a log for answers on the system for wayvnc but haven't found a file location for it. Even searched the internet where can be one found without success. So my question is what can be the problem, or how could i find out why it keeps stopping? And of course how to solve the problem without constantly re-enabling VNC service or restarting the system. I also found a way to start it through ssh i think, but that's not a solution either to restart always. Thanks for any help in advance. Greetings, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
My RPi5 runs always with hdmi connected, though it is connected to a TV where i can switch outputs, and i do it when i want to watch TV or do other things and then the output changes (or might change). So i assume then it will change to headless mode (not sure but might be), and therefore wayvnc stops. So i have created wayvnc.service and wayvnc-control.service in /usr/lib/systemd/system/ folder with the following content:
I had to do some changes: Hopefully these are the right moves i had to do based on your description for detached mode (#278). Restarted my RPi5, now vnc server runs. Hopefully it stays that way if i made things right (the above mentioned changes i meant). |
Beta Was this translation helpful? Give feedback.
-
Looks like something is not right. Just as i started my TV, wayvnc stopped. :S What did i do wrong? If someone could help, would be really appreciated. Also if i try to restart with Is there an easier way to restart it without setting those environment variables manually, or should i restart it using Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Detached mode is a new feature that's only available on git master. I will be creating a debian package that sets this all up correctly, but haven't found the time to do so yet.