Closed hskAlena closed 3 years ago
Hi hskAlena, can you provide more information about how you set up your VNC server? As far as I know, some VNC do not support vulkan.
I am using a tigervnc server with xfce4 and a realvnc viewer. Also it's ubuntu 18.04!
sudo apt update
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
sudo apt install tigervnc-standalone-server tigervnc-common
Thank you!
I guess xfce4
does not support vulkan. There is an alternative solution.
sudo apt update && sudo apt upgrade && sudo apt-get install xserver-xorg-video-dummy && sudo apt-get install x11vnc net-tools && sudo apt install vulkan-utils
. nvidia-xconfig
to generate a X configuration file on /etc/X11/xorg.conf. You can modify /etc/X11/xorg.conf to change the screen size. See here for examples.sudo X :1 -config /etc/X11/xorg.conf
. You can choose other numbers for the screen id instead of :1
.export DISPLAY=:1
. I recommend you to add it into .bashrc.vulkaninfo
to check if Vulkan works well.x11vnc -display :1
in another terminal to start a vncserver. x11vnc -display :1 -forever
Let me know whether this works for you.
Sadly, it doesn't work for me. I get black screen everytime I try.
I have searched a lot, and those are what I've found out so far. Please correct me if I have something wrong.
x11vnc -display :1 -auth guess
works, not x11vnc -display :1
. This is trivial tho.I finally found out that Vino vnc server works. Although it needs HDMI connection and seems to have weak security, it works. However, if you find x11vnc or other working, please let me know!
Thank you! :)
Good to see you have found a solution!
BTW, vulkan does work with X desktop and this is how I visualize on a remote server. Did you test vulkaninfo
in the X desktop you create?
Sadly vulkaninfo
doesn't work.
It works on local machine with a monitor on, but doesn't work on X desktop.
The error message is
/build/vulkan-tools-136mCR/vulkan-tools-1.1.126.0+dfsg1/vulkaninfo/vulkaninfo.h:816: failed with ERROR_INITIALIZATION_FAILED
.
I've done the followings,
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json:/usr/share/vulkan/icd.d/nvidia_icd.json
- didn't work/lib/systemd/system/gdm3.service
- didn't work
[Service]
ExecStartPre=/usr/bin/xinit /usr/share/gdm/generate-config
echo $XDG_SESSION_TYPE
prints out x11
.So,,, I guess I'm gonna stick to Vino server, not X desktop, if any other easy solution doesn't come out. :')
Hello,
I'm trying to use 'viewer' for debugging, but when I uncomment
env.render('human')
in basic_example.py, I getRuntimeError: vk::PhysicalDevice::getSurfaceFormatsKHR: ErrorInitializationFailed
when I do this on VNC server. The viewer works well on a local machine.I guess the VNC server setting is not a problem since it can render other gym environments like 'Humanoid-v2'.
I installed vulkan-utils just in case,
sudo apt install vulkan-utils
. But things didn't change.How can I fix this?