wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Can’t run on arch

Open Leastrio opened this issue 3 years ago • 25 comments

Trying to run wayfire on arch doesn’t work

Installed with paru -S wayfire-git

Ran with wayfire

Error: image

Leastrio avatar Mar 08 '22 00:03 Leastrio

This might be due to a graphics driver problem. Does dmesg|grep drm show any errors?

soreau avatar Mar 08 '22 00:03 soreau

This might be due to a graphics driver problem. Does dmesg|grep drm show any errors?

image

Leastrio avatar Mar 08 '22 01:03 Leastrio

I am unsure of the exact problem but it could be that you need a more recent version of mesa for nvidia gbm to work.

soreau avatar Mar 08 '22 01:03 soreau

Could you point me in the direction of installing a newer version of mesa?

Leastrio avatar Mar 08 '22 02:03 Leastrio

First you probably want to verify it is installed at all and see what version it is. Most major distros have mesa packaged and installed by default but depending on the distro version, it could be outdated. How to upgrade it largely depends on your distro.

soreau avatar Mar 08 '22 02:03 soreau

The first 2 errors are gone, but the segmentation fault is still appearing and making me unable to launch.

Leastrio avatar Mar 08 '22 02:03 Leastrio

Since you are using nvidia, you will need a card that the driver supports for gbm (since this is a relatively new thing). I can't say which cards should work or not, however.

soreau avatar Mar 08 '22 03:03 soreau

Is this gbm thing new to wayfire? I used wayfire perfectly when I first installed arch a few months back, I'm just very confused why it's not working now.

Leastrio avatar Mar 08 '22 03:03 Leastrio

no, gbm is nothing new, except to nvidia drivers.

soreau avatar Mar 08 '22 03:03 soreau

Maybe this can help?

https://forums.developer.nvidia.com/t/nvidia-495-on-sway-tutorial-questions-arch-based-distros/192212/68

soreau avatar Mar 08 '22 04:03 soreau

Still nothing, could this be a cause of me using the git version of wayfire? The AUR repo for wayfire is outdated so I cannot run that version.

Leastrio avatar Mar 10 '22 01:03 Leastrio

I recall I used the wayfire version and not the wayfire-git the first time I tried it, any chance wayfire on AUR could get updated?

Leastrio avatar Mar 10 '22 01:03 Leastrio

I got something different after messing around with some settings. It goes to a black screen and then shows these messages after running the wayfire commandimage

Leastrio avatar Mar 10 '22 01:03 Leastrio

This looks like wayfire is working. You probably want to install a shell like wf-shell which provides a panel and background. Without it, wayfire is waiting for an application to run.

soreau avatar Mar 10 '22 01:03 soreau

I tried to install wf-shell, but that depends on wf-config which conflicts with wayfire-git. How should I install it?

Leastrio avatar Mar 10 '22 01:03 Leastrio

This is a packaging problem. wf-shell works fine with latest wf-config/wayfire.

soreau avatar Mar 10 '22 02:03 soreau

I remember the first time installing wayfire I did not need to install anything like wf-shell, is there a way I could just go to the empty screen with my cursor without installing anything else?

Leastrio avatar Mar 10 '22 02:03 Leastrio

If you had a shell and didn't install it, it could be that wf-shell was installed anyway somehow. You might need to set WLR_NO_HARDWARE_CURSORS for cursor to show up on nvidia. AFAICT, the log indicates wayfire is working, coupled with the fact that it rests on a black screen. You can redirect the wayfire output to file to see the full log. If you press Ctrl+Alt+Bkspc at the black screen, does it exit wayfire?

soreau avatar Mar 10 '22 02:03 soreau

It only stays on the black screen for around 3 seconds, then goes back to the shell. I also have to do a full reboot after typing the command once as then the black screen wont appear again. It does not appear to accept any keybinds during this 3 second period.

Leastrio avatar Mar 10 '22 02:03 Leastrio

Here is an error: image

Leastrio avatar Mar 10 '22 02:03 Leastrio

@Leastrio I think this will be solved when we update to a newer upstream of wlroots. There are several issues with nvidia's proprietary driver that have been fixed there. If you can wait a little longer, keep an eye on issue #1386 . If you are feeling ambitious, you can try my branch in PR #1430 and see if it's better for you, but you'd have to compile wayfire yourself. (It's not hard though!)

yobert avatar Mar 15 '22 23:03 yobert

I have the same issue. did you solve it ?

ijihio avatar Mar 31 '22 05:03 ijihio

I have the same issue. did you solve it ?

No, just waiting for the update so I can test.

Leastrio avatar Mar 31 '22 06:03 Leastrio

NVIDIA proprietary drivers issue? Try installing nouveau drivers. Reboot, then “sudo rmmod NVIDIA”. Just go down the tree and get rid of all the NVIDIAs then “sudo modprobe nouveau” and try running wayfire again.

ds797 avatar May 10 '22 04:05 ds797

Modprobe nvidia-drm with parameters modeset=1 and try again. Some other environment variables may need to be set (check ArchWiki).

cdknight avatar Jun 05 '22 05:06 cdknight