Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Velox cannot be launched #52

Open
ErnestNoga opened this issue Jun 29, 2023 · 6 comments
Open

Velox cannot be launched #52

ErnestNoga opened this issue Jun 29, 2023 · 6 comments

Comments

@ErnestNoga
Copy link

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

@michaelforney
Copy link
Owner

Try running under strace -f. You might also want to build wld with ENABLE_DEBUG=1.

@TheMBL09898
Copy link

TheMBL09898 commented Jul 3, 2023

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.

@TheMBL09898
Copy link

dmesg | grep nouveau
dmesg.txt

@TheMBL09898
Copy link

TheMBL09898 commented Jul 3, 2023

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

@TheMBL09898
Copy link

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.

@michaelforney
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants