You are not logged in.

#1 2023-01-14 18:05:46

tetreur
Member
Registered: 2023-01-14
Posts: 10

[SOLVED] sway EGL NOT INITIALIZED

Hello again,

In my pursuit of installing archOS i have now issues with sway

I installed archOS with archinstall
with nvidia-nouveau driver
and choose sway

i followed the official arch guide to get sway running
https://wiki.archlinux.org/title/Sway#Starting

added myself to the seat usergroup with following command

sudo usermod -a -G seat tetreur

then i saw that i was in the seat group using

id $USER

BUT when i start to launch sway by simply wirte sway to the terminal i got an error "failed to create dri2 screen"
here is a partial output of sway -d

libEGL warning: egl failed to create dri2 screen
EGL NOT INITIALIZED

do you have any idea ?

Last edited by tetreur (2023-01-15 10:30:40)

Offline

#2 2023-01-14 18:47:36

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] sway EGL NOT INITIALIZED

Try the --unsupported-gpu option for sway. I much prefer the old --my-next-gpu-wont-be-nvidia version though. NVIDIA sucks.

See also https://drewdevault.com/2017/10/26/Fuck-you-nvidia.html ← that's by the original sway author :-)

EDIT: hold on, I missed the "nvidia-nouveau" bit. I might be wrong here. I probably shouldn't bother with NVIDIA threads at all. Over and out.

Last edited by Head_on_a_Stick (2023-01-14 18:51:53)


Jin, Jîyan, Azadî

Offline

#3 2023-01-14 20:08:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,732

Re: [SOLVED] sway EGL NOT INITIALIZED

https://bbs.archlinux.org/viewtopic.php?id=282785

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"

lspci -k

Offline

#4 2023-01-15 00:13:47

tetreur
Member
Registered: 2023-01-14
Posts: 10

Re: [SOLVED] sway EGL NOT INITIALIZED

Head_on_a_Stick wrote:

Try the --unsupported-gpu option for sway. I much prefer the old --my-next-gpu-wont-be-nvidia version though. NVIDIA sucks.

See also https://drewdevault.com/2017/10/26/Fuck-you-nvidia.html ← that's by the original sway author :-)

EDIT: hold on, I missed the "nvidia-nouveau" bit. I might be wrong here. I probably shouldn't bother with NVIDIA threads at all. Over and out.

Yeah the "--my-next-gpu-wont-be-nvidia" flag worked, thanks smile

seth wrote:

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1"

i forget to add this kernel parameters, i think it helped.
but i won't post the output of lspci here, i don't want you guys to judge me ^^

Offline

#5 2023-01-15 00:16:35

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] sway EGL NOT INITIALIZED

tetreur wrote:

Yeah the "--my-next-gpu-wont-be-nvidia" flag worked

Erm, that option no longer works. It has been replaced by the --unsupported-gpu option. Apologies if my post was unclear.

I think seth nailed it. Again.

tetreur wrote:

i don't want you guys to judge me ^^

Pay no heed to my nonsense. Most people here probably don't care about NVIDIA's behaviour.


Jin, Jîyan, Azadî

Offline

#6 2023-01-15 08:40:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,732

Re: [SOLVED] sway EGL NOT INITIALIZED

I predominantly wanted to point out that the OP is likely using the nvida driver. Not nouveau.
But: "nvidia-drm.modeset=1" is crucial for wayland support.

Ftr, nvidia meanwhile /does/ support GBM and there's an open source kernel module, https://archlinux.org/packages/extra/x8 … idia-open/ (for turing and up)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#7 2023-01-15 10:39:59

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] sway EGL NOT INITIALIZED

seth wrote:

there's an open source kernel module, https://archlinux.org/packages/extra/x8 … idia-open/ (for turing and up)

Does that have a user-space component yet? Not much use to the OP without it, unless I'm misunderstanding things.


Jin, Jîyan, Azadî

Offline

#8 2023-01-15 13:16:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,732

Re: [SOLVED] sway EGL NOT INITIALIZED

No, only the kernel module.
You'd still nvidia-utils w/ its GL libraries (somewhat like the AMDGPUPRO situation, except there's no non-pro variant)

Offline

Board footer

Powered by FluxBB