You are not logged in.

#1 2016-08-09 07:41:34

py_tosha
Member
Registered: 2016-08-09
Posts: 3

Can't hibernate twice in a row [SOLVED]

What I done:
I installed Arch on ssd without swap, I had only / partition.
Then I made with gparted swap partition follow the / partition size = RAM.size.
Boot was normal and swap was enabled without editing fstab, free shows it.
Then I added resume hook to initcpio and "resume=UUID=..." to /etc/grub/default.

What happened:
If I boot my Arch and make systemctl hibernate than screen turns off for ~15 sec, then turns on for ~3 sec, then laptop goes to hibernate state.
If then I boot it and try to hibernate once again, it blinks screen as first time, but then turn in on and do nothing. journalctl says "swap header not found!".

What I try to solve:

  • Add acpi_sleep=old_ordering to /etc/default/grub;

  • Replace kernel to lts release;

  • Add line to fstab to initialize swap by UUID;

My rig is HP 17-p102ur.

└$ cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=829d5b8c-2f88-4954-8fd8-94c23577b15d rw resume=UUID=02d155d3-8f10-4cfc-91c1-54513860dde2 acpi_sleep=old_ordering quiet elevator=deadline acpi_osi=Linux acpi_backlight=vendor

Part of journalctl out:

авг 09 11:04:42 anton-note kernel: PM: Wrote 2226712 kbytes in 6.34 seconds (351.21 MB/s)
авг 09 11:04:42 anton-note kernel: PM: S
авг 09 11:04:42 anton-note kernel: PM: Swap header not found!
авг 09 11:04:42 anton-note kernel: |
авг 09 11:04:42 anton-note kernel: PM: Basic memory bitmaps freed
авг 09 11:04:42 anton-note systemd[1]: Time has been changed
авг 09 11:04:42 anton-note rtkit-daemon[713]: The canary thread is apparently starving. Taking action.
авг 09 11:04:42 anton-note systemd[562]: Time has been changed
авг 09 11:04:42 anton-note rtkit-daemon[713]: Demoting known real-time threads.
авг 09 11:04:42 anton-note rtkit-daemon[713]: Successfully demoted thread 702 of process 702 (/usr/bin/pulseaudi
авг 09 11:04:42 anton-note rtkit-daemon[713]: Demoted 1 threads.
авг 09 11:04:42 anton-note wpa_actiond[405]: Interface 'wlo1' lost connection to network 'BertOLD'
авг 09 11:04:42 anton-note kernel: Restarting tasks ... done.
авг 09 11:04:42 anton-note systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAI
авг 09 11:04:42 anton-note systemd[1]: Failed to start Hibernate.
авг 09 11:04:42 anton-note systemd[1]: Dependency failed for Hibernate.
авг 09 11:04:42 anton-note systemd-logind[378]: Operation 'sleep' finished.
авг 09 11:04:42 anton-note systemd[1]: hibernate.target: Job hibernate.target/start failed with result 'dependen
авг 09 11:04:42 anton-note systemd[1]: sleep.target: Unit not needed anymore. Stopping.
авг 09 11:04:42 anton-note systemd[1]: systemd-hibernate.service: Unit entered failed state.
авг 09 11:04:42 anton-note systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
└$ cat /etc/mkinitcpio.conf | grep HOOKS=
HOOKS="base udev resume autodetect modconf block filesystems keyboard fsck"

Last edited by py_tosha (2016-08-09 11:53:50)

Offline

#2 2016-08-09 11:52:33

py_tosha
Member
Registered: 2016-08-09
Posts: 3

Re: Can't hibernate twice in a row [SOLVED]

OK, I deleted acpi_osi=Linux form /etc/default/grub and it seems a trouble gone.

Offline

#3 2016-08-09 13:50:54

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: Can't hibernate twice in a row [SOLVED]

I'm glad you could fix this by yourself. Welcome to the forums! smile


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#4 2016-08-09 13:58:58

py_tosha
Member
Registered: 2016-08-09
Posts: 3

Re: Can't hibernate twice in a row [SOLVED]

Oh, thank you!=)

Offline

Board footer

Powered by FluxBB