You are not logged in.
Pages: 1
Hi, I'm sorry if I add text badly.
I'm trying to get hibernation to work on my Lenovo 100e AST laptop. I run hibernate with 'systemctl hibernate'. Computer screen turns black, comes on again, unresponsive, then turns off. After several minutes of waiting, I need to hold down power button for 20 seconds, then press it again to boot.
Error message on boot (... and ### I added to save typing):
...
: : running hook [resume]
Reported hibernation image: ID-arch kernel=6.16-stoney UUID=bc716251-...080925 offset=0
Failed to check if resume=/dev/mmcblkp2 is the same device as EFI HibernationLocation device 'dev/disk/by-uuid/bc716251...080925', ignoring: No such file or directory
Failed to stat resume device '/dev/mmcblk1p2': No such file or directory
Waiting 10 seconds for device /dev/disk/by-uuid/d21bef7e-...f5081656a2c7 ...(real ellipsis)
: : Performing fsck on 'UUID=<rootUUID>'
/dev/mmcblk3: recovering journal
/dev/mmcblk3: clean, ### files, ### blocks
: : mounting 'UUID=<rootUUID>' on real root
: : running cleanup hook [udev]
...
## partition layout: lsblk
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
mmcblk1
├─mmcblk1p1 vfat FAT32 7E6C-97A8 296.3M 41% /boot
├─mmcblk1p2 swap 1 bc716251-4c15-4860-845f-f3b621080925 [SWAP]
└─mmcblk1p3 ext4 1.0 d21bef7e-997f-473d-883e-f5881656a2c7 4G 78% /
mmcblk1boot0
mmcblk1boot1
zram0 swap 1 [SWAP]
## Here's what I've done already:
### 4.1: 3.8 GiB RAM, 4 GiB swap partition
### 4.2 Initramfs
/etc/mkinitcpio.conf
FILES=()
BINARIES=()
MODULES=()
HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems resume fsck)
I regenerated initramfs with `mkinitcpio -P`
### 4.3.1 hibernate location
/boot/loader/entries/156b2ec2cbe54ba4843c819c1b784055-6.6.16-stoney.conf
# Boot Loader Specification type#1 entry
# File created by /usr/lib/kernel/install.d/90-loaderentry.install (systemd 257.2-2-arch)
title Arch Linux
version 6.6.16-stoney
machine-id 156b2ec2cbe54ba4843c819c1b784055
sort-key arch
options root=UUID=d21bef7e-997f-473d-883e-f5881656a2c7 rw systemd.machine_id=156b2ec2cbe54ba4843c819c1b784055 resume=/dev/mmcblk1p2
linux /156b2ec2cbe54ba4843c819c1b784055/6.6.16-stoney/linux
initrd /156b2ec2cbe54ba4843c819c1b784055/6.6.16-stoney/initrd
### system
CPU: dual core AMD A4-9120C RADEON R4 5 COMPUTE CORES 2C+3G (-MCP-)
speed/min/max: 1196/1200/1600 MHz Kernel: 6.6.16-stoney x86_64 Up: 33m
Mem: 1.64/3.76 GiB (43.6%) Storage: 29.12 GiB (65.4% used) Procs: 157
### Logs
#### journalctl -b | grep resume (nothing for hibernate)
May 16 22:14:01 Yomibook kernel: Command line: initrd=\156b2ec2cbe54ba4843c819c1b784055\6.6.16-stoney\initrd root=UUID=d21bef7e-997f-473d-883e-f5881656a2c7 rw systemd.machine_id=156b2ec2cbe54ba4843c819c1b784055 resume=/dev/mmcblk1p2
May 16 22:14:01 Yomibook kernel: Kernel command line: initrd=\156b2ec2cbe54ba4843c819c1b784055\6.6.16-stoney\initrd root=UUID=d21bef7e-997f-473d-883e-f5881656a2c7 rw systemd.machine_id=156b2ec2cbe54ba4843c819c1b784055 resume=/dev/mmcblk1p2
May 16 22:21:03 Yomibook kernel: ACPI: PM: Low-level resume complete
May 16 22:21:03 Yomibook bluetoothd[939]: Controller resume with wake event 0x0
Full log: http://0x0.st/8v42.txt
### cat /proc/cmdline
initrd=\156b2ec2cbe54ba4843c819c1b784055\6.6.16-stoney\initrd root=UUID=d21bef7e-997f-473d-883e-f5881656a2c7 rw systemd.machine_id=156b2ec2cbe54ba4843c819c1b784055 resume=/dev/mmcblk1p2
### bootctl status
System:
Firmware: UEFI 2.70 (EDK II 1.00)
Firmware Arch: x64
Secure Boot: disabled
TPM2 Support: yes
Measured UKI: no
Boot into FW: supportedCurrent Boot Loader:
Product: systemd-boot 257.1-1-arch
Features: ✓ Boot counting
✓ Menu timeout control
✓ One-shot menu timeout control
✓ Default entry control
✓ One-shot entry control
✓ Support for XBOOTLDR partition
✓ Support for passing random seed to OS
✓ Load drop-in drivers
✓ Support Type #1 sort-key field
✓ Support @saved pseudo-entry
✓ Support Type #1 devicetree field
✓ Enroll SecureBoot keys
✓ Retain SHIM protocols
✓ Menu can be disabled
✓ Multi-Profile UKIs are supported
✓ Boot loader set partition information
Partition: /dev/disk/by-partuuid/08c5fc64-f5af-4cce-8016-a70d9bfbf136
Loader: └─/EFI/systemd/systemd-bootx64.efi
Current Entry: 156b2ec2cbe54ba4843c819c1b784055-6.6.16-stoney.confRandom Seed:
System Token: set
Exists: yes
Last edited by yominater (2025-05-17 03:06:51)
Offline
How was this system installed?
Online
It was installed without archinstall. I tried to follow the wiki.
Offline
Scimmia is asking because of
initrd=\156b2ec2cbe54ba4843c819c1b784055\6.6.16-stoney\initrd
how and what and why that kernel?
May 16 22:14:26 Yomibook systemd-logind[440]: /etc/systemd/sleep.conf:30: Unknown key 'ResumeDevice' in section [Sleep], ignoring.
Post that file.
Also what happens if you omit the resume parameter resp. preferably use the UUID to reference it?
Inb4: I was also gonna call OP out for the underdimensioned swap (as hibernation location) … but it's a chrombook and only has 4GB RAM so that's actually fine.
Online
Depends, if your swap is already full, there is no space left for the full RAM contents. I would recommend twice the size.
However, this is not because of space. Your config seems wrong. I would use the UUID instead of mount points.
Offline
Stoney kernel needed for sound device to be exposed on chromebook. Install process for stoney kernel:
Download stoney kernel (https://fs.nightcore.monster/chromebook … est.tar.xz)
Copy/move stoney/vmlinuz-6.6.16-stoney to /boot
Copy/move stoney/modules/lib/modules/6.6.16-stoney to /usr/lib/modules
Run kernel-install add 6.6.16-stoney /boot/vmlinuz-6.6.16-stoney
Reboot and select stoney kernel in GRUB menu
/etc/systemd/seep.conf
AllowSuspend=yes
AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
SuspendState=mem standby freeze
HibernateMode=platform shutdown
#MemorySleepMode=
#HibernateDelaySec=
#HibernateOnACPower=yes
#SuspendEstimationSec=60min
ResumeDevice=/dev/mmcblk1p2
Removing kernel perameter and sleep.conf
Reported hibernation image: ID=arch kernel=6.16-stoney UUID=bc716... offset 0
(in red) Failed to stat resume device 'dev/disk/by-uuid/bc716...' no such file or directory
Waiting 10 seconds for evice /dev/disk/by-uuid/d21be...'
Journal:
http://0x0.st/8vxx.txt
Offline
Stoney kernel needed for sound device to be exposed on chromebook
Have you tried the behavior w/ the main kernel? (Sound is overrated anyway )
(in red) Failed to stat resume device 'dev/disk/by-uuid/bc716...' no such file or directory
Waiting 10 seconds for evice /dev/disk/by-uuid/d21be.
It waits 10s for the root device which is the same MMC, so that's not immediately present either?
Can you try to delay the boot in the bootloader (are you also booting from that MMC? What's the 156b2ec2cbe54ba4843c819c1b784055 path? There're also mmcblk1boot[0,1])
Last edited by seth (2025-05-17 19:12:17)
Online
No, but that's a good idea. You're right, who needs sound anyway?
It works to a point. It seems to find device and load windows, but i3 (Xorg?) crashes to tty after a few seconds. Running startx again restarts i3, but the screen doesn't update unless I go into full screen and back out. Even in the tty it doesn't update. Rebooting fixes the issue.
Edit: I can't read. The error for the crash is (I think, it's kind of hard to read.):
ERROR: X11 connection was closed unexpectedly - maybe your X server terminated / crashed?13status: exiting due to signal.xinit: connection to X server lostrc/xcb.c:1233]
i3: Cannot open display ((this wasn't me; I didn't run anything))
Closing SHM log "/i3-log-1184"
Can't find 'i3-log-1184' as a file on my system
There is with nothing in sleep.conf or arch.conf about resume devices
journalctl -b | grep hibernate
May 17 15:22:03 Yomibook systemd-logind[449]: The system will hibernate now!
May 17 15:22:04 Yomibook systemd-sleep[3358]: Performing sleep operation 'hibernate'...
May 17 15:23:56 Yomibook systemd-sleep[3358]: System returned from sleep operation 'hibernate'.
May 17 15:23:57 Yomibook systemd[1]: systemd-hibernate.service: Deactivated successfully.
May 17 15:23:57 Yomibook systemd[1]: systemd-hibernate.service: Consumed 3.468s CPU time, 8.5M memory peak.
May 17 15:23:57 Yomibook systemd-logind[449]: Operation 'hibernate' finished.
Everything's on one disk. There's a boot partition, root, and swap partitions (boot is MMCblk1p1) The two mmcblk1boot[0, 1] partitions are leftovers from chromeos. They're only 4MiB, and I don't think they're used
I know 156b2ec2cbe54ba4843c819c1b784055.conf holds the kernel parameters. (same directory as arch.conf). The actual directory is in /boot. It holds '/6.6.16-stoney/[initrd, linux]' (my custom kernel)
How would I delay the boot? Is that something I do myself or a config change?
Last edited by yominater (2025-05-17 20:26:03)
Offline
restarts i3, but the screen doesn't update unless I go into full screen and back out
Do you run picom along i3?
Journal and possibly xorg log ("Xorg.0.log.old") of that boot might be interesting.
You could try to add "resumedelay=10" or "resumewait" (the latter will wait forever) to the https://wiki.archlinux.org/title/Kernel_parameters
Online
Yes, I use picom
Journal: http://0x0.st/8v0e.txt
Xorg: http://0x0.st/8v0L.txt
resume delay added to stoney kernel, no change. It did get added as I can see in /proc/cmdline
Offline
May 17 17:26:25 Yomibook kernel: [Firmware Bug]: CPU 1: APIC ID mismatch. CPUID: 0x0001 APIC: 0x0011
May 17 17:26:25 Yomibook kernel: [Firmware Bug]: ACPI MWAIT C-state 0x0 not supported by HW (0x0)
May 17 17:26:25 Yomibook kernel: CPU1 is up
May 17 17:26:25 Yomibook kernel: ACPI: PM: Waking up from system sleep state S4
May 17 17:26:25 Yomibook kernel: ACPI: EC: interrupt unblocked
May 17 17:26:25 Yomibook kernel: ACPI: EC: event unblocked
May 17 17:26:25 Yomibook kernel: usb usb1: root hub lost power or was reset
May 17 17:26:25 Yomibook kernel: usb usb3: root hub lost power or was reset
May 17 17:26:25 Yomibook kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400600000).
May 17 17:26:25 Yomibook kernel: amdgpu: smu version 33.10.00
May 17 17:26:25 Yomibook kernel: usb usb2: root hub lost power or was reset
May 17 17:26:25 Yomibook kernel: amdgpu 0000:00:01.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.1 test failed (-110)
May 17 17:26:25 Yomibook kernel: [drm] UVD initialized successfully.
May 17 17:26:25 Yomibook kernel: usb 2-1: reset high-speed USB device number 2 using ehci-pci
May 17 17:26:25 Yomibook kernel: usb 1-3: reset high-speed USB device number 2 using xhci_hcd
May 17 17:26:25 Yomibook kernel: [drm] VCE initialized successfully.
May 17 17:26:25 Yomibook kernel: usb 3-3: reset SuperSpeed USB device number 2 using xhci_hcd
May 17 17:26:25 Yomibook kernel: usb 2-1.2: reset full-speed USB device number 4 using ehci-pci
May 17 17:26:25 Yomibook kernel: usb 2-1.1: reset high-speed USB device number 3 using ehci-pci
May 17 17:26:25 Yomibook kernel: amdgpu 0000:00:01.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on gfx (-110).
May 17 17:26:25 Yomibook kernel: [drm:process_one_work] *ERROR* ib ring test failed (-110).
May 17 17:26:25 Yomibook kernel: PM: hibernation: Basic memory bitmaps freed
May 17 17:26:25 Yomibook kernel: OOM killer enabled.
May 17 17:26:25 Yomibook kernel: Restarting tasks ... done.
May 17 17:26:25 Yomibook kernel: acp3x-alc5682-max98357 AMDI5682:00: DMIC gpio failed err=-2
May 17 17:26:25 Yomibook kernel: acp3x-alc5682-max98357 AMDI5682:00: probe with driver acp3x-alc5682-max98357 failed with error -2
May 17 17:26:25 Yomibook kernel: efivarfs: resyncing variable state
May 17 17:26:25 Yomibook kernel: efivarfs: removing variable HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
May 17 17:26:25 Yomibook kernel: acp3x-alc5682-max98357 AMDI5682:00: DMIC gpio failed err=-2
May 17 17:26:25 Yomibook kernel: acp3x-alc5682-max98357 AMDI5682:00: probe with driver acp3x-alc5682-max98357 failed with error -2
May 17 17:26:25 Yomibook kernel: PM: hibernation: hibernation exit
https://wiki.archlinux.org/title/Intel_ … up_from_S3 ("processor.max_cstate=1")
Could however also be related to
May 17 16:33:58 Yomibook kernel: acp3x-alc5682-max98357 AMDI5682:00: DMIC gpio failed err=-2
May 17 16:33:58 Yomibook kernel: acp3x-alc5682-max98357 AMDI5682:00: probe with driver acp3x-alc5682-max98357 failed with error -2
Online
Seems like those last two errors are related to audio. Something something audio device and driver not found.
I don't get what you mean about intel graphics Higher C-states prevent wakeup from S3. I don't have intel and I don't have those issues.
Offline
"processor.max_cstate=1"
I'm aware that your hardware differs but the symptoms are quite similar and therefore the plan was to limit the c-state before the hibernation and see whether that prevents the amdgpu failure.
Seems like those last two errors are related to audio
Yes. This is likely why you need the patched kernel for sound and the concern would be that the disfunct audio chip would spoil the bs and spill over to the APU.
That's however an unfounded theory, I was just recording it so we don't forget that that's there
Online
I think I understand. You're suggesting using "processor.max_cstate=1" in kernel perimeter, and using running cpupower-idle-set before hibernating.
On arch kernel:
Added 'processor.max_cstate=1', reboot
cpupower idleset -D 0
cpupower idleset -E
systemctl hibernate
Same thing happens. i3 loads, then crashes.
It seems the audio errors are still occuring with the patched kernel. I don't even know where to start with to try to fix them though. Do I need a better patched kernel?
Last edited by yominater (2025-05-18 17:07:24)
Offline
The plan was to use processor.max_cstate=1 as quick test, running cpupower idleset -E before the hibernation unlimits the c-states what defeats the test.
You'll use that after the hibernation resumed
Online
Got a different error with X server crash.
x_fetch_region ERROR ] Failed to fetch rectangles (No error)
# along with the same errors
i3status: exiting due to signal
xinit: connenction to x server lost
i3: cannot open display
i3 still crashes, TTY still doesn't update when I type, although cursor still blinks.
Using cpupower idle-set doesn't seem to change things.
Is needing to hold the power button to turn it off then turn it back on standard behavior?
Offline
The X11 errors will be fallout of the amdgpu error.
You did also test to just add "processor.max_cstate=1" to the kernel parameters and leave idle-set alone?
Add to that
pcie_aspm=off amdgpu.aspm=0 amdgpu.bapm=0 amdgpu.runpm=0
Edit:
Is needing to hold the power button to turn it off then turn it back on standard behavior?
idally not and it's also not a good idea.
Try to frenetically press ctrl+alt+del or use the https://wiki.archlinux.org/title/Keyboa … el_(SysRq)
Last edited by seth (2025-05-19 05:52:50)
Online
Yes, I set kernel parameters and don't use idle-set until fully after hibernate. Neither seems to change.
Unfortunately my chromebook doesn't have a delete key or a SysRq key.
Offline
Maybe a solution here but I don't know enough to mess with that stuff
Offline
sysrq is the print key, del seems alt+backspace but that's likely just the keyboard layout - not sure whether ctrl+alt+backspace will trigger the reboot (but be careful, it's the default shortcut to zap, ie. kill, the X11 server!)
The kernel bug is 6 years old, supposed to be fixed sice a couple of them and doesn't mention your specific error.
Actually only https://forums.gentoo.org/viewtopic-p-8 … 4449082479 does
https://forums.gentoo.org/viewtopic-p-8 … 4449082479 lists a bunch of upstream bugs - https://gitlab.freedesktop.org/drm/amd/-/issues/3911 is probably the most interesting one. It has a couple of suggestions (disable THP, use the legacy amdgpu reset) but nothing conclusive
Online
Okay, I'm just going to live with suspend. I've spend already too much time on this. Thanks for you help
Offline
Pages: 1