Bug 32588 - Laptop crashes BUG: scheduling while atomic: kwin_x11
Summary: Laptop crashes BUG: scheduling while atomic: kwin_x11
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-02 20:52 CET by isadora
Modified: 2024-05-09 21:35 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
messages at moment of freeze (7.58 KB, text/plain)
2023-12-02 20:53 CET, isadora
Details
output inxi -F (2.56 KB, text/plain)
2023-12-02 20:54 CET, isadora
Details

Description isadora 2023-12-02 20:52:15 CET
Description of problem:

Every now and then laptop-screen freezes.
In message-log on time of freeze following message appears among others:
Dec  2 18:48:05 GE77 kernel: [41432.286993] BUG: scheduling while atomic: kwin_x11/2428/0x00000102

It's dual-boot-machine with Win11 as other OS and NVIDIA .

After hard reset by power-button, sound on both OS'es is gone.

Only way to get sound back is applying latest BIOS-update, but this doesn't prevent for next freeze, as i have learned through experience.

Version-Release number of selected component (if applicable):
Attached output of message-log and output of inxi -F for what it's worth.
Comment 1 isadora 2023-12-02 20:53:43 CET
Created attachment 14190 [details]
messages at moment of freeze
Comment 2 isadora 2023-12-02 20:54:21 CET
Created attachment 14191 [details]
output inxi -F
isadora 2023-12-02 20:56:42 CET

Attachment 14190 description: message at moment of freeze => messages at moment of freeze

Comment 3 Dave Hodgins 2023-12-02 22:01:25 CET
Try switching to xorg instead of wayland.

CC: (none) => davidwhodgins

Comment 4 isadora 2023-12-03 09:26:42 CET
Output for:
echo $XDG_SESSION_TYPE

Gives alreaady:
X11

So there is no wayland in use.
Comment 5 isadora 2023-12-03 09:35:45 CET
Although.......i have a mass load of wayland packages installed.
I had the NVIDIA-card configured through mageia-prime-install.
Comment 6 Dave Hodgins 2023-12-03 21:20:28 CET
Sorry, I had just noticed the Xwayland in the inxi output, and didn't look
closely enough.

If it's currently running xorg, try switching to wayland.
Comment 7 katnatek 2023-12-04 00:13:08 CET
I remember that some times for hybrid graphics after kernel and drivers updates is useful run uninstall and install commands 

https://wiki.mageia.org/en/Mageia-prime_for_Optimus#Switching_between_cards
Comment 8 isadora 2023-12-04 08:55:27 CET
(In reply to Dave Hodgins from comment #6)
> Sorry, I had just noticed the Xwayland in the inxi output, and didn't look
> closely enough.
> 
> If it's currently running xorg, try switching to wayland.

Any suggestion how to realize such switch?
Comment 9 isadora 2023-12-04 09:32:21 CET
(In reply to katnatek from comment #7)
> I remember that some times for hybrid graphics after kernel and drivers
> updates is useful run uninstall and install commands 
> 
> https://wiki.mageia.org/en/Mageia-prime_for_Optimus#Switching_between_cards

You actually propose to run first:
mageia-prime-uninstall -z

After that:
mageia-prime-install -z

Correct?
Comment 10 Dave Hodgins 2023-12-04 19:13:25 CET
To try wayland, it should be an option in the menu (sddm, gdm, etc).

I have the following wayland packages installed, though I usually use xorg
kwayland-5.105.0-2.mga9
kwayland-integration-5.27.5-1.mga9
kwin-wayland-5.27.5-1.mga9
lib64gstwayland1.0_0-1.22.5-1.mga9.tainted
lib64kf5wayland5-5.105.0-2.mga9
lib64qt5waylandclient5-5.15.7-2.mga9
lib64qt5waylandcompositor5-5.15.7-2.mga9
lib64qt6waylandclient6-6.4.1-3.mga9
lib64wayland-client0-1.21.0-1.mga9
lib64wayland-cursor0-1.21.0-1.mga9
lib64wayland-egl1-1.21.0-1.mga9
lib64waylandpp1-1.0.0-1.mga9
lib64wayland-server0-1.21.0-1.mga9
libwayland-client0-1.21.0-1.mga9
libwayland-server0-1.21.0-1.mga9
plasma-workspace-wayland-5.27.5-2.1.mga9
qtwayland5-5.15.7-2.mga9
wayland-tools-1.21.0-1.mga9
x11-server-xwayland-22.1.9-1.1.mga9

Another way to start it is to boot to run level 3 (add " 3" to the kernel
options), login in text mode and run
XDG_SESSION_TYPE=wayland dbus-run-session startplasma-wayland

For gnome, it's
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session
Comment 11 katnatek 2023-12-04 19:23:09 CET
(In reply to isadora from comment #9)
> (In reply to katnatek from comment #7)
> > I remember that some times for hybrid graphics after kernel and drivers
> > updates is useful run uninstall and install commands 
> > 
> > https://wiki.mageia.org/en/Mageia-prime_for_Optimus#Switching_between_cards
> 
> You actually propose to run first:
> mageia-prime-uninstall -z
> 
> After that:
> mageia-prime-install -z
> 
> Correct?

Yes
katnatek 2023-12-04 23:49:10 CET

CC: (none) => j.alberto.vc

Comment 12 isadora 2023-12-05 14:26:39 CET
(In reply to Dave Hodgins from comment #10)
> To try wayland, it should be an option in the menu (sddm, gdm, etc).
> 
The menu, i looked around in MCC, but i think i don't go to find it without some more information what menu exactly you are pointing at.

Regarding wayland-packages, i found these installed:
lib64wayland-client0-1.21.0-1.mga9
lib64wayland-server0-1.21.0-1.mga9
lib64wayland-cursor0-1.21.0-1.mga9
lib64qt5waylandclient5-5.15.7-2.mga9
lib64wayland-egl1-1.21.0-1.mga9
lib64qt6waylandclient6-6.4.1-3.mga9
lib64kf5wayland5-5.105.0-2.mga9
kwayland-5.105.0-2.mga9
egl-wayland-json-1.1.11-1.mga9
lib64nvidia-egl-wayland1-1.1.11-1.mga9
lib64gstwayland1.0_0-1.22.3-2.mga9.tainted
x11-server-xwayland-22.1.9-1.1.mga9

That's a handful less than you described, but probably some more will be installed along the process of switching to wayland (?).
Comment 13 isadora 2023-12-05 15:25:15 CET
(In reply to katnatek from comment #11)

> Yes
Did as you proposed.
Will wait and see, before switching to wayland as Dave suggested.
Comment 14 katnatek 2023-12-05 18:39:55 CET
(In reply to isadora from comment #13)
> (In reply to katnatek from comment #11)
> 
> > Yes
> Did as you proposed.
> Will wait and see, before switching to wayland as Dave suggested.

To use wayland close current session and in the login screen exist a text that indicates the type of session, by example  "Plasma (X11)" click and select "Plasma(wayland)" if you use Plasma, you can return to use normal Plasma session by the same procedure just changing again to the X11 session
Comment 15 katnatek 2023-12-05 19:04:25 CET
(In reply to katnatek from comment #14)
> (In reply to isadora from comment #13)
> > (In reply to katnatek from comment #11)
> > 
> > > Yes
> > Did as you proposed.
> > Will wait and see, before switching to wayland as Dave suggested.
> 
First install plasma-workspace-wayland

> To use wayland close current session and in the login screen exist a text
> that indicates the type of session, by example  "Plasma (X11)" click and
> select "Plasma(wayland)" if you use Plasma, you can return to use normal
> Plasma session by the same procedure just changing again to the X11 session
Comment 16 isadora 2023-12-05 19:37:02 CET
Right, i thought i would miss some wayland-packages as mentioned in comment 12.
And so without plasma-workspace-wayland one would not see an option for wayland in the login-screen (obviously).

But as said before, i wait now for a new freeze to happen before switching to wayland.
Comment 17 isadora 2023-12-09 13:27:20 CET
Last night the system froze again, and after reboot (forced through power-button), sound (as usual) was gone.
Message-log comes with same messages "scheduling while atomic" etc.
The laptop was put in locked position this time. 

I was out for a couple of hours, and hoped to login again into the desktop, but i already knew something was wrong, because the clock in the lock-screen did not run and hence also no way of logging in.

So, now i will go the wayland-route, and keep you updated about experiences.
Comment 18 isadora 2023-12-09 13:51:51 CET
Installed plasma-workspace-wayland, which brought in some more wayland-packages.
Following wayland-packages are installed now:
lib64wayland-client0-1.21.0-1.mga9
lib64wayland-server0-1.21.0-1.mga9
lib64wayland-cursor0-1.21.0-1.mga9
lib64qt5waylandclient5-5.15.7-2.mga9
lib64wayland-egl1-1.21.0-1.mga9
lib64qt6waylandclient6-6.4.1-3.mga9
lib64kf5wayland5-5.105.0-2.mga9
kwayland-5.105.0-2.mga9
egl-wayland-json-1.1.11-1.mga9
lib64nvidia-egl-wayland1-1.1.11-1.mga9
lib64gstwayland1.0_0-1.22.3-2.mga9.tainted
x11-server-xwayland-22.1.9-1.1.mga9
kwayland-integration-5.27.5-1.mga9
lib64qt5waylandcompositor5-5.15.7-2.mga9
qtwayland5-5.15.7-2.mga9
kwin-wayland-5.27.5-1.mga9
plasma-workspace-wayland-5.27.5-2.1.mga9

There is a Plasma (wayland)-option now in the session-screen, as mentioned in comment 14.
Choosing this option presents a desktop, although everything is a bit smaller, like icons and panel. Also, single-click disappeared, but that is easy to change.
But, when i reboot (automatic login), i return into Plasma (X11) environment again.
So problem now is, that i have to log out again, choose right choice in session-screen, to return in Plasma (wayland).
It would be nice if my choice was saved, and after reboot to come back with Plasma (wayland)-session.
Comment 19 isadora 2023-12-09 14:05:34 CET
Also, in MCC->Boot->Setup auto-login->Default desktop does not show wayland.
Plasma X-11 and Icewm are only choices.
Comment 20 isadora 2023-12-09 15:16:38 CET
Alright, did some more digging and now i auto-login into wayland.
The final solution seemed to change Login Screen (SSDM)->Behavior in System Settings. Changed session there for auto-login-session, asked for root-password, rebooted and there it was.

Now fiddle around with settings, and hope for no more freezes.

Will be continued, i keep you informed.
Comment 21 katnatek 2023-12-09 19:57:52 CET
I found information that the issue happens in some hardwares with kwin+x11+nvidia, congratulations isadora you got the winner ticket ;)

Maybe switch to Wayland is the best recommendation
Comment 22 isadora 2023-12-09 21:00:56 CET
Well, that is, i still have nvidia not "alive";
OpenGL Renderer: Mesa Intel(R) UHD Graphics (ADL-S GT1)
Comment 23 katnatek 2023-12-10 00:44:55 CET
(In reply to isadora from comment #22)
> Well, that is, i still have nvidia not "alive";
> OpenGL Renderer: Mesa Intel(R) UHD Graphics (ADL-S GT1)

Wayland works different from X11, maybe I'm wrong but to use the discrete nvdia card you must do in X11 session

You can try installing kernel-linus and kernel-linus-devel and in the boot menu in advance options choose the kernel without flavor (desktop, server, etc), but I'm not optimist that this don't get the same fail in X11 session
Comment 24 katnatek 2023-12-10 01:10:16 CET
I find this https://community.kde.org/Plasma/Wayland/Nvidia

We have
x11-server-xorg 21.1.8
x11-server-xwayland 22.1.9
lib(64)xcb1 1.15
lib(64)nvidia-egl-wayland1
Plasma 5.27.5

In theory can work
Comment 25 isadora 2023-12-10 11:22:04 CET
Yes, i ran into the same KDE-community-page.
And for my further explorations into wayland/nvidia;
last night i came to the point, no graphical desktop appeared anymore.

Slept a good night, and decided this morning to do new install of Mageia 9.

I give it a rest for some time, until then, thank you very much for your support.
Comment 26 isadora 2023-12-10 13:32:36 CET
Another interesting read is:
https://www.tuxedocomputers.com/en/Whats-the-deal-with-X11-and-Wayland-_1.tuxedo

Albeit not really promising for Nvidia.
Comment 27 isadora 2023-12-11 20:23:00 CET
Not meaning to spam, but any information to me seems better than none.
https://9to5linux.com/nvidia-545-29-02-linux-graphics-driver-is-out-with-wayland-improvements-more
Comment 28 isadora 2024-01-22 19:45:18 CET
Situation with regular freezes continued ever since initial report.
Still have to use the workaround with "BIOS-flash-update", to get workable situation. Sometimes no issue like for a month, but last week three freezes.
Comment 29 katnatek 2024-03-15 04:19:01 CET
Did the recent nvidia and other updates change something?
Comment 30 isadora 2024-03-15 13:49:43 CET
Ever since my last report i stopped using NVIDIA for the graphical job.
Since then i had no crashes.

I will switch back to NVIDIA now and report about experiences.
Comment 31 isadora 2024-03-29 16:01:23 CET
Two weeks later, still no crashes so far.
Comment 32 Lewis Smith 2024-05-09 21:35:44 CEST
This looks good to close.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.