Velox cannot be launched
ErnestNoga opened this issue · comments
Whenever I try to start velox it shows the following error message:
~ $ swc-launch velox
running on /dev/tty7
failed to set keyboard mode to K_OFF: Operation not permitted
And when I try as root:
~ # swc-launch velox
running on /dev/tty7
ERROR: Could not create WLD DRM renderer
ERROR: Could not initialize DRM
I use KISS Linux and run custom-built modified void linux kernel
Try running under strace -f
. You might also want to build wld with ENABLE_DEBUG=1
.
I'm on oasislinux with nouveau drivers and have a similar error.
I added -D ENABLE_DEBUG=1
to the cflags in wld's gen.lua.
output.txt
EDIT: output-root.txt
my kernel config
Before this I ran chown user /dev/tty1
and the same with tty7
. I ran the command from tty1
.
I Built in my corresponding nvidia firmware into the kernel because I built it without modules support.
Versions: (cat oasis/pkg/pkg_name/ver)
wld 3fe15e769c r0
wayland 1.21.0 r0
wayland-protocols 1.31 r0
velox 2ae5e99dfc r0
swc 32905f16ca r0
My user is in the video,audio,tty,admin and input groups.
I tried swc-launch -t /dev/tty1 velox
and it says: running on /dev/tty1
only.
strace
EDIT: my problem is probably not velox related, it is probably because of the nouveau driver. Next step for me would be to build the kernel with nouveau as a module.
EDIT2: Installed kmod and built nouveau as a module: same issue persists
Works after changed video_drivers=intel
in oasis config.lua and ran modprobe i915 (I have an optimus setup). This is probably a driver problem, although @ErnestNoga hasn't mentioned if he uses nouveau too.
Ok, I think the issue is that wld was nouveau support, but wld's nouveau driver only supports the particular old nvidia card I have. I've pushed a new commit to fallback to dumb drm support (which works with any drm device) if context creation fails, even if there is a driver for the card's vendor.
Previously, you'd have to set the WLD_DRM_DUMB
environment variable to force this.