#KDE Plasma on Wayland yields a black screen with cursor after sddm login.

1 messages · Page 1 of 1 (latest)

misty fox
#

Video cards: Intel Arc Graphics + Nvidia 4070 Mobile (Proprietary drivers)

At first plasmashell would log that Qt could not load qpa platform but then I set it to wayland and it says dbus is not activated. I actually activated it on default mode in openrc.

I just want to open it in wayland mode even if I have to use only arc graphics

It runs fine on xorg

#

Just black screen with cursor, I removed the variable

#

Just alt f2? Nothing happens

#

Do you want me to open tty?

#

Yes

#

Oh

#

I could move it to the top

#

It shown me this

#

Sorry for the bad quality btw

#

Ph

#

Oh

#

It worked

#

One minute

#

Let me just install a decent browser

#

But my profile is 0.23 stable destkop plasma openrc

#

Dont worry

#

I have qtwebengine compiled

#

Actually

#

Its strange because its the last version from this profile

#

The nvidia drivers also

#

Yes

#

Let me see

#

I just installed it today

#

One moment

misty fox
#

Falkon segfaults on startup

#

Wtf is happening to my system

#

But nevermind

#

I just dont want to use the trick

misty fox
#

The thing is that it appears that kwin itself is launching in xwayland mode

#

So things like vscode do not work even with special flags

#

I am updating to the last testing version

#

Just finished manually unmasking all this qt crap

#

You are such a fuckin wizard man

#

I will try it and tell you

#

Thank you anyways

#

Second time

#

I just switched from gnome because the wayland option disappeared after i recompiled the @world

#

My screen is qhd so I cant use it without the fractional scaling wayland provides

#

And the security

misty fox
#

Yes

#

I used those

#

Very strange

#

I ended up swithing to suse

#

Installed this

#

For a while

#

Its kwin, probably

#

My drivers are fine

#

Portage somehow fogot my locale too

#

Warnings everywhere

#

Will stay on suse until next driver update, but I really wanted these otimizations I researched for days

#

But unfortunately i need wayland for work

#

Yeah

#

I tried hyprland

#

I embarassed myself by using it on a presentation

#

The video didnt scale well

#

And I had to hack the configs in the front of my entire classroom

#

Will try it later

#

Marking this as solved for now

#

Thank you anyways

#

Fish?

#

If it didnt come with the profile, I probably dont

#

Hmmm

#

Do I really need to set bash on a fresh install?

#

Is the default sh or something

#

Fuck

#

I remeber

#

My gnome also had wayland stopping working whem I switched my default bash to zsh

#

I am a newbie

#

I will do the following (when I have time):

#
  1. Do a fresh install with only integrated graphics drivers (initially because my Arc is powerful enough)
#
  1. Check the default shell for kde
#
  1. If it works I will install nvidia drivers later and then use offloading when needed
#

Yes

#

Same thing as me

#

Fuck

#

Maybe send me you useflags for windowing (Not from the plasma profile. The global useflags, and those in packages related to windowing)

#

Thats how I wanted it to be

#

If possible, your global use flags related to plasma and graphics too

#

And your modprobe

#

Will make a install with those

#

modprobe.d/nvidia.conf

#

Yeah

#

Oh I see

#

What about your env?

#

Yeah

#

I will check out

#

For sure

#

It was supposed to work out of the box

#

But I will try

#

Basically you offloaded your entire system

#

But still got something on iGPU

#

Interesting

#

This is basically what optimus does

#

Probably passing the iGPU rendered framebuffer through your dGPU

#

We have such similar hardware

#

Will try again and make another thread if the problem persist

#

I really want to use gentoo because of lto and graphite

#

Cs2 would run with 20-40+ fps than windows

#

Probably because the rest of the system is not using too much cycles

#

Niice setup

#

Lot of monitors, you should be very productive

#

I only have one hdmi but have two usb c with one thunderbolt

#

I will buy one for coding and gaming

#

Same price in Brazil, maybe a little cheaper

#

I just need one monitor right now, so I will stick to the monitor usbc cables

#

But I didnt even know people used ethernet like this

#

Thank you so much, Gentoo wizard

#

I wish I become like you

misty fox
#

The TRICK is official now hehe

#

Actually I tried to install Gentoo again today

#

No success on gnome

#

The logs said shell was missing some systemd stuff

#

At least from my understanding

#

Im on openrc

#

But

#

I think the root of this problem is something related to my iGpu

#

Because if the problem was the dgpu

#

You could not run wayland when you update

#

Because you also have 4070 Mobile

#

I was not the only one with this problem

#

I found 1 person with the exact same problem as me in a similar moment in time (where I updated or messed something up some days ago)

#

Gonna wait some time until new versions of the compositors, shells and drivers stabilizes

#

Because on suse its fine afaik

misty fox
#

Yes

#

Everything was on default

#

(The placeholder)

#

Oh

#

I fogot to mention

#

I did not installed the nvidia drivers nor selected nvidia on video_cards in this installation

#

Because if nvidia was the problem, without the driver, I could run Wayland with minor tweaks in gdm config

#

So its like 75% chance that the problem is related with my iGPU

#

I did not try with kde again because most of the project is c++ which takes much longer to compile even with all my cores

#

But it is the same pattern (quite)

misty fox
#

@west bay gnome on suse use wayland by default

#

It does not even show xorg option

#

On hybrid graphics

#

Guess I will have to wait until gentoo ships official gnome 48

#

I could create my own ebuilds but it would take much more time because I have to update the 200 minor packages too

misty fox
#

@west bay Sorry, me again. I am thinking if doing a fresh install with systemd and debugging the issue better with journalctl is a good idea? Because listen, every major desktop environment expects some of the features of systemd, which have been ported for OpenRC over time like elogind. My gnome session also said in those logs that expected some systemd feature. So, do you think it is worth the try? I think a systemd installation would not affect the performance of my system because most of its functionality have been “pollyfiled” into openrc anyway, and I can avoid to get a separate cron daemon by using systemd timers.

misty fox
#

@west bay I discovered the problem, and why you didn’t noticed it on your hardware

#

It has to do with the flags I used to build my system

#

When looking at the logs, I noticed the cause of the issue was that Xwayland.so was crashing (segfaulting)

#

But on your hardware that is very similar to me it doesn’t

#

And then I remembered

#

Everything started when I rebuilt @world

#

I rebuilt world because I would like to apply some new cflags

#

With one being particularly problematic

#

fno-semantic-interposition

#

It can break shared objects at some circumstances

#

Will reproduce the problem tomorrow with less optimizing flags and report here

#

If confirmed, I will probably add a note in the Xwayland gentoo wiki about this

#

Because the Gentoo wiki actually says building with this flag globally is safe

misty fox
#

Ok

#

I found a Issue long ago with a person with the same problem as me with kde because of this flag

#

Exactly this flag

#

And this thing is segfaulting

#

Should be because of my aggressive opts

#

O2

#

i use GentooLTO optimisations with O2 instead

#

Its not enabled by default even in O3

#

Its an old repo that basically autogenerated lto confs system wide for gentoo

#

It had some extra optimisations enabled

#

Like graphite

#

And this one I said

#

I will find the issue

#

Actually its other flag I use

#

But I will disable both

#

Just want to be like you, boss

#

Thank you

#

Wont use it too for now

#

Its safe then

#

Do you use lto system wide?

#

Nicee

#

So im sure its one of those 3 extra flags from gentoo lto

#

Will try flag by flag until it breaks (again)

#

Interesting

#

But after 5 failed installations

#

I just want a stable one hehe

#

Like on the build stage?

#

Oh ok

#

Do you disable lto manually for each one?

#

I think I never had issues with lto outside the packages that didnt even build because of the warning flags

#

Very strange

#

I think gcc is kind of bad for lto

#

I think rust enables by default

#

The only reason Im not using system clang is because it cant build glibc and it cant build with musl

#

The gnu project basically locked glibc to gcc

#

I mean

#

System wide

#

May not be a good idea

#

It will use a lot more of disk space since it statically links to the entire system

#

And its still in development

#

System-wide?

#

You can install a glibc version just for that

#

They do a tech called chrooting glibc

#

For programs that depend on it

#

I think flatpak actually downloads glibc too

#

Dunno

#

I dont even like guru, but probably because of other reasons

misty fox
#

Because of security

#

Yes

#

And 2 more

#

You can look at my initial make.conf

#

No

#

In make.conf

#

Directly

#

These 3 last flags

#

They are probably problematic

#

Xwayland is failing

#

Probably it has something to do with dynamic linking techniques

#

Xwayland will automatically start with plasmashell and mutter

#

And it segfaulted on the logs

#

Yeah

#

Its a mandatory dependency

#

And x11 works well for me

#

I just need the fractional scaling and the extra security

#

Will build with safer flags

#

Look at your pstree

#

The problem can also be in mutter or plasmshell but its very unlikely

#

Gonna do this

#

Because other things can break

#

And I barely know how to install browser extensions

#

Cant install gentoo more 5 times if it breaks

#

But if something happens because of lto will try this

#

Yeah but I dont use extensions

#

I just installed bitwarden once

#

Its open source at least

#

Is it cli?

#

Interesting

#

I need this when working with git

#

Gonna try

#

Will just install here and I come back later to tell you what happened

misty fox
#

@west bay

#

It worked

#

How can we document this in the wiki?

#

I dont even know what specific flag caused this

misty fox
#

Yeah, I will setup everything so I can work on this with patience first

#

Thank you, wizard

#

Ok

#

Gonna do that

#

So another person with hyperfocus on optimization wont do this