You are not logged in.

#1 2018-04-22 19:14:41

Uzytkownik
Member
Registered: 2007-07-07
Posts: 20
Website

Laptop unable to resume (only on Arch)

My laptop is unable to resume when I'm on Arch (doesn't react to Lid or to power button) but suspend works on both Gentoo and Fedora.


I've probably left my head... somewhere. Please wait untill I find it.

Offline

#2 2018-04-22 19:32:16

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

Re: Laptop unable to resume (only on Arch)

How is suspend configured on all three operating systems?  What is the dmesg or journal output from a suspend attempt on all three systems and the same from resume / failed resume.
What do you do when the system fails to resume under arch?

Offline

#3 2018-04-22 20:41:11

Uzytkownik
Member
Registered: 2007-07-07
Posts: 20
Website

Re: Laptop unable to resume (only on Arch)

I narrowed it down to intel_iommu=on parameter which worked on older kernels (I haven't used Arch in a while - 4.13ish maybe?) but it prevents suspend now. If I disable iommu than iwlwifi fails to load due to memory ranges so I don't have network. pm_trace does not work as BIOS detects corruped RTC and corrects it. iwlwifi is not itself cause of the problem as suspend fails even when it is loaded.

If it helps I noticed that while the power button is flushing (as it should) and keyboard buttons (such as mute) are lit (as they shouldn't).

loqs wrote:

How is suspend configured on all three operating systems?  What is the dmesg or journal output from a suspend attempt on all three systems and the same from resume / failed resume.

On Fedora I used default settings. On Gentoo I think I have just blacklisted e1000e which sometimes fails to suspend and causes resume but otherwise it is also mostly out of the box with systemd.

Failed logs end on:

Apr 22 00:05:29 babylon5 systemd[1]: Reached target Sleep.
Apr 22 00:05:29 babylon5 systemd[1]: Starting Suspend...
Apr 22 00:05:29 babylon5 systemd-sleep[3163]: Suspending system...
Apr 22 00:05:29 babylon5 kernel: PM: suspend entry (deep)

Success is:

Apr 22 13:29:30 babylon5 systemd[1]: Reached target Sleep.
Apr 22 13:29:30 babylon5 systemd[1]: Starting Suspend...
Apr 22 13:29:30 babylon5 systemd-sleep[5033]: Suspending system...
Apr 22 13:29:30 babylon5 kernel: PM: suspend entry (deep)
Apr 22 13:29:30 babylon5 kernel: PM: Syncing filesystems ... done.
Apr 22 13:29:30 babylon5 kernel: bbswitch: enabling discrete graphics
Apr 22 13:29:49 babylon5 kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Apr 22 13:29:49 babylon5 kernel: OOM killer disabled.
Apr 22 13:29:49 babylon5 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Apr 22 13:29:49 babylon5 kernel: Suspending console(s) (use no_console_suspend to debug)
Apr 22 13:29:49 babylon5 kernel: psmouse serio2: Failed to disable mouse on synaptics-pt/serio0
Apr 22 13:29:49 babylon5 kernel: sd 3:0:0:0: [sda] Synchronizing SCSI cache
Apr 22 13:29:49 babylon5 kernel: sd 3:0:0:0: [sda] Stopping disk
Apr 22 13:29:49 babylon5 kernel: e1000e: EEE TX LPI TIMER: 00000011
Apr 22 13:29:49 babylon5 kernel: i801_smbus 0000:00:1f.4: BIOS is accessing SMBus registers
Apr 22 13:29:49 babylon5 kernel: i801_smbus 0000:00:1f.4: Driver SMBus register access inhibited
Apr 22 13:29:49 babylon5 kernel: ACPI: Preparing to enter system sleep state S3
Apr 22 13:29:49 babylon5 kernel: ACPI: EC: event blocked
Apr 22 13:29:49 babylon5 kernel: ACPI: EC: EC stopped
Apr 22 13:29:49 babylon5 kernel: PM: Saving platform NVS memory

Though it might be because of flushing of disk.


loqs wrote:

What do you do when the system fails to resume under arch?

I force reset (press power button for 15s) - what else can I do?

Last edited by Uzytkownik (2018-04-22 20:42:17)


I've probably left my head... somewhere. Please wait untill I find it.

Offline

#4 2018-04-22 20:53:28

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

Re: Laptop unable to resume (only on Arch)

https://bugs.archlinux.org/task/58288 will be fixed in 4.16.4 then you can remove iommu=on

Offline

#5 2018-04-22 20:56:37

Uzytkownik
Member
Registered: 2007-07-07
Posts: 20
Website

Re: Laptop unable to resume (only on Arch)

loqs wrote:

https://bugs.archlinux.org/task/58288 will be fixed in 4.16.4 then you can remove iommu=on

I forgot to add - Gentoo at least have iommu enabled which still makes it an Arch-specific issue rather than something in HW. As general I think IOMMU is good idea (secure-wise).


I've probably left my head... somewhere. Please wait untill I find it.

Offline

#6 2018-04-22 21:06:11

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

Re: Laptop unable to resume (only on Arch)

Is it the same kernel version for both arch and gentoo?  Can you try building the arch kernel package with gentoo's config or a minimally modified version of it and see if that works?

Offline

#7 2018-04-22 22:22:37

Uzytkownik
Member
Registered: 2007-07-07
Posts: 20
Website

Re: Laptop unable to resume (only on Arch)

Yes. linux-custom with config from Gentoo works without problems.


I've probably left my head... somewhere. Please wait untill I find it.

Offline

Board footer

Powered by FluxBB