You are not logged in.

#1 2023-03-03 14:23:06

defragmenteur
Member
Registered: 2022-04-23
Posts: 9

Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Computer does not wakeup from wakeonlan
Computer wakeup when pressing power btn but the screen stay black and keyboard/mouse does not respond.

After wakeup, lot of kernel logging for nouveau driver

mar 03 08:06:42 rigelx kernel: ------------[ cut here ]------------
mar 03 08:06:42 rigelx kernel: irq 44 handler nvkm_intr+0x0/0x210 [nouveau] enabled interrupts
mar 03 08:06:42 rigelx kernel: WARNING: CPU: 6 PID: 383 at kernel/irq/handle.c:161 __handle_irq_event_percpu+0x157/0x190
mar 03 08:06:42 rigelx kernel: Modules linked in: rfcomm ccm bnep snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio intel_powerclamp ath9k coretemp ath9k_common btusb kvm_intel snd_hda_intel ath9k_hw>
mar 03 08:06:42 rigelx kernel: CPU: 6 PID: 383 Comm: dbus-daemon Tainted: G          I        6.2.1-arch1-1 #1 826b345887e8fd845ab37a52cb3a6655383f6b60
mar 03 08:06:42 rigelx kernel: Hardware name: Apple Inc. MacPro4,1/Mac-F221BEC8, BIOS     MP41.88Z.0081.B07.0910130729 10/13/09
mar 03 08:06:42 rigelx kernel: RIP: 0010:__handle_irq_event_percpu+0x157/0x190
mar 03 08:06:42 rigelx kernel: Code: ab ec ff e9 09 ff ff ff 80 3d b2 84 e8 01 00 75 1b 48 8b 13 44 89 ee 48 c7 c7 c8 32 a4 a1 c6 05 9c 84 e8 01 01 e8 84 c1 b9 00 <0f> 0b fa 0f 1f 44 00 00 e9 fc fe ff ff f0 >
mar 03 08:06:42 rigelx kernel: RSP: 0000:ffffc22940d47ea0 EFLAGS: 00010282
mar 03 08:06:42 rigelx kernel: RAX: 0000000000000000 RBX: ffff9da1c0b90480 RCX: 0000000000000027
mar 03 08:06:42 rigelx kernel: RDX: ffff9da52fba1648 RSI: 0000000000000001 RDI: ffff9da52fba1640
mar 03 08:06:42 rigelx kernel: RBP: 0000000000000001 R08: 0000000000000000 R09: ffffc22940d47d38
mar 03 08:06:42 rigelx kernel: R10: 0000000000000003 R11: ffffffffa22c9a68 R12: 0000000000000000
mar 03 08:06:42 rigelx kernel: R13: 000000000000002c R14: ffff9da1c6135c00 R15: 0000000000000000
mar 03 08:06:42 rigelx kernel: FS:  00007fd1e8419c40(0000) GS:ffff9da52fb80000(0000) knlGS:0000000000000000
mar 03 08:06:42 rigelx kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
mar 03 08:06:42 rigelx kernel: CR2: 000055bd7dfb4a20 CR3: 000000011a3e4000 CR4: 00000000000006e0
mar 03 08:06:42 rigelx kernel: Call Trace:
mar 03 08:06:42 rigelx kernel:  <TASK>
mar 03 08:06:42 rigelx kernel:  handle_irq_event+0x3b/0x80
mar 03 08:06:42 rigelx kernel:  handle_edge_irq+0x9a/0x260
mar 03 08:06:42 rigelx kernel:  __common_interrupt+0x46/0xa0
mar 03 08:06:42 rigelx kernel:  common_interrupt+0x43/0xa0
mar 03 08:06:42 rigelx kernel:  asm_common_interrupt+0x26/0x40
mar 03 08:06:42 rigelx kernel: RIP: 0033:0x563074d638a5
mar 03 08:06:42 rigelx kernel: Code: 85 ff 0f 85 ad 0a 00 00 84 c0 74 19 41 0f b6 47 48 83 e0 03 3c 02 0f 84 a9 01 00 00 66 0f 1f 84 00 00 00 00 00 49 83 7f 18 00 <74> 2f 48 89 df ff 15 b0 f1 00 00 48 85 c0 >
mar 03 08:06:42 rigelx kernel: RSP: 002b:00007ffc5adf58e0 EFLAGS: 00000246
mar 03 08:06:42 rigelx kernel: RAX: 0000000000000000 RBX: 0000563074e48710 RCX: 000000000000006c
mar 03 08:06:42 rigelx kernel: RDX: 0000000000000000 RSI: 0000563074e19c50 RDI: 0000563074e48710
mar 03 08:06:42 rigelx kernel: RBP: 0000563074e19c40 R08: 0000000000000000 R09: 0000000000000000
mar 03 08:06:42 rigelx kernel: R10: 00007fd1e8850150 R11: 0000563074ded8a0 R12: 0000563074ee7e30
mar 03 08:06:42 rigelx kernel: R13: 0000563074e4d4c0 R14: 0000563074e52498 R15: 0000563074e19e40
mar 03 08:06:42 rigelx kernel:  </TASK>
mar 03 08:06:42 rigelx kernel: ---[ end trace 0000000000000000 ]---

Hardware :

MacPro 2009
Intel Xeon W3520
NVIDIA GeForce 9500 GT

Complete boot logs : http://0x0.st/HzfB.txt

login to xfce4-session > mar 03 08:06:19 
suspend system > mar 03 08:06:41 
wakeup (pressing power btn) > mar 03 08:07:22
ssh from another computer > mar 03 08:07:29
sudo reboot > mar 03 08:07:42

Thanks for helping

Offline

#2 2023-03-03 15:04:19

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Computer does not wakeup from wakeonlan

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

Computer wakeup when pressing power btn but the screen stay black and keyboard/mouse does not respond.

Do you use xf86-video-nouveau? (Try the modesetting driver instead)
Also https://wiki.archlinux.org/title/NVIDIA … ed_drivers

Offline

#3 2023-03-04 20:56:18

defragmenteur
Member
Registered: 2022-04-23
Posts: 9

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Hi,

Steps that I took to switch to modsetting driver :

Added nvidia-drm.modeset=1 to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub then sudo grub-mkconfig -o /boot/grub/grub.cfg

Added nouveau to MODULES in /etc/mkinitcpio.conf, then sudo mkinitcpio -P

Removed xf86-video-nouveau

After reboot

lshw -c video

  *-display
       description: VGA compatible controller
       produit: G96C [GeForce 9500 GT]
       fabriquant: NVIDIA Corporation
       identifiant matériel: 0
       information bus: pci@0000:05:00.0
       version: a1
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       ressources: irq:30 mémoire:8a000000-8affffff mémoire:80000000-87ffffff mémoire:88000000-89ffffff portE/S:3000(taille=128) mémoire:8b000000-8b07ffff

modinfo nouveau

filename:       /lib/modules/6.1.15-1-lts/kernel/drivers/gpu/drm/nouveau/nouveau.ko.zst

But this doesnt fix the problem in linux 6.2.2.arch1-1.

Last edited by defragmenteur (2023-03-04 20:56:36)

Offline

#4 2023-03-04 21:06:07

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

What if you instead blacklist nouveau?

Offline

#5 2023-03-04 21:16:01

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

nvidia-drm.modeset=1 doesn't apply to the nouveau kernel module and to blacklist nouveau, you'll have to (only) install https://aur.archlinux.org/packages/nvidia-340xx-dkms and https://aur.archlinux.org/packages/nvidia-340xx-utils

Switching the GPU driver will rather not help w/ the WOL situation specifically. Only (perhaps)

Computer wakeup when pressing power btn but the screen stay black and keyboard/mouse does not respond.

Offline

#6 2023-03-05 17:31:15

Strangiato
Member
Registered: 2020-01-10
Posts: 357

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Exactly the same problem on my system running the latest kernel. I use intel iGPU.

Offline

#7 2023-04-01 13:55:23

Snowy23
Member
Registered: 2023-04-01
Posts: 6

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

I have a similar issue with sleep. Sometimes when returning to my PC it is already awake with the system still running yet the display is blank along with no input devices waking the display. However, I do not use WakeOnLAN. I am forced to power off from the button.

OS: EndeavourOS x86_64
Kernel: 6.2.8-arch1-1
Display: Acer XZ271 (1920x1080 @ 144Hz)
DE: KDE Plasma 5.27.3
WM: KWin (Wayland)
CPU: AMD Ryzen 7 1700 (16) @ 4 GHz
GPU: AMD Radeon RX 6700 XT (vulkan-radeon 23.0.1)

This has only started happening since I have reinstalled the OS and started using KDE from a month ago having come from the same OS with GNOME which did not have this issue. I am unsure if it happens on GNOME since I have stopped using it. My system drive is EXT4 and I do not have swap space but I do not use hibernation.

Just to add, when I can log back in on the rare occasion my CPU clocks fluctuate quite a bit with input and audio becoming laggy and I have to reboot to "resolve" the issue. This is with a fixed manual clock of 4GHz set in the BIOS. Unsure if it is related but I thought it worth mentioning. Maybe either issue relates to the CPU governor but I have no clue.

EDIT: I have reset my BIOS (which I have tried before) and updated the BIOS to the latest. Using an ASUS Crosshair VI if that matters. I will keep an eye out and report back.

Last edited by Snowy23 (2023-04-01 14:52:06)

Offline

#8 2023-04-01 14:38:34

Strangiato
Member
Registered: 2020-01-10
Posts: 357

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Possibly this bug is related to the DE. I have Arch + Gnome installed on another machine (laptop) and suspend/resume works on it.

Last edited by Strangiato (2023-04-01 14:40:43)

Offline

#9 2023-04-01 14:47:43

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

That's easy to test, but unless "another machine" is exactly the same HW, not very likely.

Offline

#10 2023-04-01 15:12:56

Snowy23
Member
Registered: 2023-04-01
Posts: 6

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

These issues might be related from the KDE Bugs page but I doubt it. Had a quick look.

This is an old bug report that has been resurrected.
https://bugs.kde.org/show_bug.cgi?id=374890

This one is somewhat similar however the poster uses X11 with an Nvidia card.
https://bugs.kde.org/show_bug.cgi?id=466705

It may be worth creating another bug report unless these issues or others reported are related. Surely more people are having the issue. I imagine it's how bleeding edge we are. However, the DE seems to be a repeating factor and that is updated for quite a few and I am sure I had the issue in minor versions before now. Certainly something I am experiencing throughout 5.27. Have not tried X11 though.

This may also relate to my other issue. However, this user's situation seems worse but may relate in some way.
https://bugs.kde.org/show_bug.cgi?id=465604

Last edited by Snowy23 (2023-04-01 15:16:35)

Offline

#11 2023-04-01 15:17:10

Strangiato
Member
Registered: 2020-01-10
Posts: 357

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

I use intel iGPU and can reproduce on both Wayland and X11 sessions of KDE Plasma.

Offline

#12 2023-04-01 15:19:28

Snowy23
Member
Registered: 2023-04-01
Posts: 6

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Ah! This sounds familiar.

The user seems to think it relates to kwin.
https://bugs.kde.org/show_bug.cgi?id=416501

Oh it happens on X11 too? Could be power management related, something with kwin or the lock screen itself.

Last edited by Snowy23 (2023-04-01 15:22:10)

Offline

#13 2023-04-01 18:17:06

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Befoew we're chasing wild gooses:
Did you try to suspend and resume the malfunctioning system from a different session (eg. openbox) or even just the multi-user.target (2nd link below)

Offline

#14 2023-04-01 19:31:21

Strangiato
Member
Registered: 2020-01-10
Posts: 357

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

I can reproduce when using openbox session.

Offline

#15 2023-04-01 19:53:03

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

The OP doesn't seem to run plasma, but has an old nvidia chip and uses nouveau - and that crashes.
Strangiato has ann intel IGP and Snowy23 has an AMD system.
The OPs problem seems to be related to the 6.2 kernel, does suspending work for anyone else using the LTS kernel?

Ftr:
https://01.org/blogs/rzhang/2015/best-p … ate-issues
Also

cat /sys/power/mem_sleep

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

Offline

#16 2023-04-01 22:04:05

Snowy23
Member
Registered: 2023-04-01
Posts: 6

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

I will keep my system on the LTS kernel and report back on my experience. I was making too many guesses and should have tired an older kernel first considering how recent 6.2 is. Thank you for the suggestion and the links. I think I was so focused on how I had no issues a month before on GNOME when it was possibly on the 6.1 kernel.

Offline

#17 2023-04-02 12:37:17

Strangiato
Member
Registered: 2020-01-10
Posts: 357

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

I can reproduce with openbox session and LTS kernel too.

Offline

#18 2023-04-02 13:37:58

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

I can reproduce with … LTS kernel too.

So it's not a regression?

Open a new thread, post a complete system journal and the output of "cat /sys/power/mem_sleep" and see the thread I linked.

Offline

#19 2023-04-02 16:15:44

Strangiato
Member
Registered: 2020-01-10
Posts: 357

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Suspend/resume worked on my hardware in the past. I don't use this feature often, so I don't know when exactly it stopped working.

Offline

#20 2023-04-02 16:37:40

Snowy23
Member
Registered: 2023-04-01
Posts: 6

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Happened again to me too on the LTS kernel. The system would wake with display and input seemingly not present until I unplug then plug my display back in. The background is black and it seems I can see my cursor at the very bottom edge but it doesn't move. I can get to the console and start SDDM to be met with errors, such as "Failed to write xauth file" and "Attempt 1, 2, 3... starting the Display server on vt 1 failed". I had to swap to another console instance to reboot. With one of the instances it seems the display server is running, as I am able to move the cursor but the background is black and there is nothing else I can do in the instance.

Last edited by Snowy23 (2023-04-02 16:49:39)

Offline

#21 2023-04-02 17:26:40

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

So for you the system actually seems to wake from the S3, but you've visual issues?
=> Open a new thread, post the system journal for that boot (the one w/ the "failing" wake)

Offline

#22 2023-04-05 11:47:11

iknownothing
Member
Registered: 2023-04-05
Posts: 2

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Ive not had 100% luck with 6.1.x or 6.2 kernel hibernation. But this last kernel update it quit working at all. Very similar results with KDE (wayland and xorg) and XFCE. I dont believe it ever really reaches full hibernation. As mentioned previously black screen with just a mouse on the screen, unmovable. If I force power off it will start back up but its unresponsive, and have to power off again. Im guessing its trying to resume from the previous hibernation image. I do have /sys/power/pm_async set to 0, to fix help hibernate on previous kernel version. I have changed kernel to 6.2.7-x64v1-xanmod1-1  and Ive had 100% success with suspend then hibernate, probably 20 time since  the last kernel update. This is an acer aspire 5 with amd, no nvidia.

Offline

#23 2023-04-06 12:27:14

Strangiato
Member
Registered: 2020-01-10
Posts: 357

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

Well, suspend/resume works on Arch + Gnome installed on my laptop. A few minutes ago I removed the SSD from the laptop, installed it on my problematic desktop computer, tested suspend/resume on both systems (Arch + Gnome and neon unstable) installed on it, and got exactly the same failure on them.

Offline

#24 2023-04-06 14:54:07

seth
Member
Registered: 2012-09-03
Posts: 49,981

Offline

#25 2023-04-07 10:42:24

Snowy23
Member
Registered: 2023-04-01
Posts: 6

Re: Wakeup after suspend does not work with Linux 6.2.1.arch1-1

It's a rather strange issue. For the past few days it hasn't happened. I'm unsure if it will happen again. I keep my system up-to-date most days so maybe something changed. I'm still on Plasma 5.27.3 and I see 5.27.4 is now available. I will update and report back if it occurs again.

Offline

Board footer

Powered by FluxBB