balena-labs-projects / xserver

A simple X11 server block
Apache License 2.0
15 stars 13 forks source link

x11 server service cannot open virtual console after restart #12

Closed jellyfish-bot closed 2 years ago

jellyfish-bot commented 2 years ago

[fisehara] When the service restarts, the display remains frozen at whatever frame the video was at, and the following error from the X11 service is logged: (EE) xf86OpenConsole: Cannot open virtual console 3 (No such file or directory)

Temporary solution:

Adding /dev/tty3 to the devices section of the x11 service in my docker-compose.yml

jellyfish-bot commented 2 years ago

[fisehara] This issue has attached support thread https://jel.ly.fish/7b02398d-2b32-45be-a6a3-6501a9efbe07

nucleardreamer commented 2 years ago

For context, this problem exists when you are not able to run xserver with privileged: true, you need to add in your specific TTY and other devices in the docker-compose.yml like so:

    devices:
      - /dev/tty0
      - /dev/tty1
      - /dev/tty2
      - /dev/tty3
      - /dev/fb0
      - /dev/snd