wayvnc: ERRORS Failed to initialise wayland but nothing else

I use wayvnc on arch linux on tv box E900V22C(usb disk boot)(may not important) Whenever I use pacman -S version or manually build(i make all check to YES), it all shows

> wayvnc # pacman version
ERROR: ../wayvnc/src/main.c: 953: Failed to initialise wayland

#or manually build
> ./wayvnc/build/wayvnc 0.0.0.0.
ERROR: ../src/main.c: 1394: Failed to initialise wayland

It dont say anything else, even i use -L debug(?). I installed all require lib in main readme page. So what’s wrong? I am missing lib or I don’t config my platform(arch linux arm, kernel 6.0.8, may look about ophub and unifreq (github user)(i a little know they make linux be able on amlogic arm box) ) well? I follow guide in a issue and the blog mentioned in the issue to install the system on the usb disk. ~(sorry for my bad English and brain)~

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (2 by maintainers)

Commits related to this issue

Most upvoted comments

OKOKOK im ok when i mkdir and chmod 7777 -R /tmp/sway I see debug log it show perm problem.

Right! You need Wayland up first before wayvnc can run. How you start sway (which starts Wayland for you) depends on what you’re trying to do:

  • If you are trying to run sway in “headless mode” where it only uses a virtual screen and wayvnc is the only way to access it, follow the instructions in the wayvnc FAQ.md

  • If you are trying to run sway on a physical output, do NOT set DISPLAY at all, and just run sway. It should find the right physical output devices for you automatically. But consult the sway Manpage and other docs for that.

After sway is running you can then start wayvnc:

  • If you have an open terminal inside sway, or set up wayvnc to run from your sway config file in a keybind or exec line, it will set WAYLAND_DISPLAY for you automatically.

  • If you’re logged in over ssh, WAYLAND_DISPLAY will not be set, so you have to do it yourself. wayland-1 is usually a good guess, or wayland-0 if using an older sway.