Bug 2291352 - After suspend timeout, Keyboard and desktop restart, but NOT THE TERMINAL (hdmi)
Summary: After suspend timeout, Keyboard and desktop restart, but NOT THE TERMINAL (hdmi)
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: wayland
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-11 17:50 UTC by Leslie Satenstein
Modified: 2024-07-10 16:54 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-07-10 16:54:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Olivier requested attachment created as: Journalctl journalctl -b | xz - > journalctl-b.xz (47.60 KB, application/x-xz)
2024-06-17 16:39 UTC, Leslie Satenstein
no flags Details

Description Leslie Satenstein 2024-06-11 17:50:34 UTC
I have Fedora40 and Fedora41, Gnome (Wayland)
My terminal is PC105, Canadian French layout

The problem began with F40
With Wayland, I can let the system timeout and lock the keyboard, and slightly thereafter, power suspend takes place.  If the suspend interval is 15 minutes(for example), and I touch the keyboard in within the 15 minutes suspend, I will likely recover all - 
If however, the timeout following a suspend exceeds the suspend value, and I touch the keyboard to restore the system, all but the terminal will repower. NO TERMINAL.

The system works with X11

My config
X370 8 core cpu, 16gigs ram, current F40 or F41(Rawhide), using Wayland.

If I switch to x11, there is absolutely no problem.  Terminal and keyboard and system resume as anticipated.

My keyboard layout is Canadian French, (Microsoft device).


Reproducible: Always

Steps to Reproduce:
1.  Please read description
2.
3.
Actual Results:  
Terminal lockup after suspend with Wayland, but not with X11

Expected Results:  
X11 type of power resume after suspend.

Read description

Comment 1 Leslie Satenstein 2024-06-12 22:00:03 UTC
Further to the above

The GPU is: AMD ATI Radeon RX 580 2048SP

With Xorg and Fed40, there is no issue.
With Wayland, the return from suspend becomes a reboot
Fedora Rawhide 41 is Wayland, even though the login interface icon selected is xorg.

Comment 2 Leslie Satenstein 2024-06-17 12:02:43 UTC
Hi Adam J

This is my post on the Fedoraforum.org website.

I am using Rawhide(F41 in xorg mode), 

However, with Fedora 40, and Rawhide, if I select Wayland as the interface, I am not able to restart my video adapter if I let the system do a "standby timeout". What I have ended up having to do is "hitting the old "system reset button" to force a reboot.

Both Fed40 and Fed41, with xorg option, on my hardware work flawlessly.

Is xorg going to be wiped from Fedora Rawhide? (F41)

  

Some other info
Standard 1920x1080 6o fps interface.
Graphics  AMD Radeon "RX 580 2048SP"

Comment 3 Olivier Fourdan 2024-06-17 12:08:54 UTC
Wayland is just a protocol specification in XML and the low-level C library that deals with the protocol.

This issue here is a bug not with the protocol itself but with either your compositor or desktop environment's implementation of the Wayland protocol and surrounding functionality.

Which desktop environment do you use so we can reassign appropriately?

Comment 4 Olivier Fourdan 2024-06-17 12:11:24 UTC
Ahm my bad, comment 0 says GNOME.

So the issue is that your terminal anish after a suspend, is that correct? Can you plase attach the journalct logs, most likely the terminal process died.

Comment 5 Leslie Satenstein 2024-06-17 12:38:35 UTC
I am using Gnome Fedora 40 and likewise Gnome on Rawhide (Fedora 41).

Salut Olivier. English, or French for posts.

Olivier, would you be more specific about the journaltctl logs. Location and name.

I am not a system level admin, but I do write code in C. You have my email for direct contact.

It will be more expedient to communicate with test files for me to try, by using direct contact.

Comment 6 Leslie Satenstein 2024-06-17 12:41:30 UTC
I will setup a KDE environment if that will be more useful. (Rawhide KDE exclusive).

Comment 7 Leslie Satenstein 2024-06-17 12:45:03 UTC
Olivier mon courriel est chez yahoo.com. Utilizez tout en miniscule: mon nom du famille, suivi par 'l' .

Comment 8 Olivier Fourdan 2024-06-17 12:50:57 UTC
I'd rather we keep the communication in English and through bugzilla for reference (that might help others facing the same issue). 

What I am after is the output of the the journalctl command taken on the system after the issue occurs.

For example:

1/ Reboot your system (so we start afresh)
2/ Start a terminal
3/ Suspend you system
4/ Resume (to reproduce the issue)
5/ Run the command:

   journalctl -b | xz - > journalctl-b.xz

hopefully, that will give some indication as to where the issue lies.

Comment 9 Leslie Satenstein 2024-06-17 16:12:01 UTC
Salut Olivier

Voici quelques informations supplementaires.

I installed Suse Tumbleweed -- same problem. Monitor will not unlock.

Suse leap156 (latest version) -- no issue. 

Fedora 39 had no Wayland issue with monitor unlocking, nor does SUSE leap156

Since my graphics card works with x11, I am almost 100% certain the issue is with Wayland.

Bonne Journée

Comment 10 Leslie Satenstein 2024-06-17 16:29:39 UTC
Saw your comment to me after I responded. Will respond with info requested within 12 hrs.

Comment 11 Leslie Satenstein 2024-06-17 16:39:06 UTC
Created attachment 2037592 [details]
Olivier requested attachment created as:  Journalctl  journalctl -b | xz - > journalctl-b.xz

As requested   journalctl -b | xz - > journalctl-b.xz

journalctl -b.xz

Comment 12 Leslie Satenstein 2024-06-17 16:41:54 UTC
One more (trivial comment).
With the gnome right corner powrswitch menu   suspend/Restart/Poweroff/logout.  Selecting suspend works immediately to create the problem
The logfile was obtained from selecting suspend from that menu.

Comment 13 Leslie Satenstein 2024-06-18 18:21:13 UTC
Hello Olivier

Yesterday, There was an update of the kernel for Fedora 40.  

Following some testing of this update to kernel: 6.9.4.200.fc40x86_64 .  

A fix appeared to be included therein.

My testing has been successful.  The suspend lockout issue I report appears resolvd.

I will wait a few days of testing and if I have no other issues, I will close this issue
 
Thank you for your help.  I sincerely appreciate your efforts.

Leslie

Comment 14 Leslie Satenstein 2024-06-18 18:22:52 UTC
The same bug applies to Rawhide. I will be checking it out as well.
L.

Comment 15 Leslie Satenstein 2024-06-19 20:46:24 UTC
This bug is fully resolved with Fedora40, As of the 20240618

Issue remains with Fedora 41 Rawhide, also as of 20240618

Comment 16 Leslie Satenstein 2024-06-30 23:26:35 UTC
Today is 1 July 2024
This bug, as mentioned in post precedent, was resolved for Fedora 40.

I am testing with Fedora 41 Rawhide, and the bugfix has not been implemented with Rawhide 41.


Again, symptoms.
Logout from a Rawhide session.
Wait until the suspend occurs (or signal suspend).
on my system, with suspend, power to terminal is removed.
but on activating a mouse or keypress, to exit suspend,
terminal power is not restored.

It requires a reboot.
Please check with Olivier Fourdan about his findings.

Comment 17 Olivier Fourdan 2024-07-08 12:40:46 UTC
Humm, I cannot find any obvious issue with the journalctl logs provided.

It seems GDM starts as Wayland but the user session is running Xorg.

Anyhow, if the behavior varies with the version for the kernel, chances are this could be kernel indeed, even though I fail to see any obvious kernel problem reported in the journal.

So, just to be sure if I understand correctly, the issue occurs with the GDM login screen, once suspended and resumed, the display does not light up? By terminal, you mean the monitor?

Does it help to switch to a text console (ctrl-alt-F4 for example) and back?

Comment 18 Leslie Satenstein 2024-07-09 19:56:39 UTC
Hi Olivier

I am testing Rawhide/gnome, current version.
The issue is with Rawhide, not with Gnome 40

To check further, I will do a "clean fresh Rawhide" installation to determine if the issue is still open.
If it works, I will close this bug report

I will use Fedora-Workstation-Live-x86_64-Rawhide-20240704.n.0.iso

Comment 19 Leslie Satenstein 2024-07-10 16:54:09 UTC
Olivier, 
Thank you for following up.

The bug fix that was incorporated into Fedora 40, is now in Rawhide.

This is no longer an issue.

I am marking this closed.


Oh yes, by the way, the graphics card is from AMD. and it may have been a contributor to the issue.


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