On Wednesday, 27 July 2022 23:53:08 CEST Walter Dnes wrote:
>   One of the last few items on the laptop setup.  I emerged hibernate
> and copied over the /etc/hibernate/ directory from my desktop.  When I
> try to hibernate the laptop, I get...
> 
> [thimk][root][~] hibernate
> /bin/echo: write error: No such device
> 
> ...with a beep, and the machine comes back.  Grepping for the "echo"
> command, I get...
> 
> [thimk][root][~] grep -r echo /etc/hibernate/
> /etc/hibernate/common.conf:# OnSuspend 20 echo "Good night!"
> /etc/hibernate/common.conf:# OnResume 20 echo "Good morning!"
> 
>   The latest entries in /var/log/hibernate.log are...
> 
> Starting suspend at Wed Jul 27 05:00:47 PM EDT 2022
> hibernate: [01] Executing CheckLastResume ...
> hibernate: [01] Executing CheckRunlevel ...
> hibernate: [01] Executing LockFileGet ...
> hibernate: [01] Executing NewKernelFileCheck ...
> hibernate: [10] Executing EnsureSysfsPowerStateCapable ...
> hibernate: [11] Executing XHacksSuspendHook1 ...
> hibernate: [59] Executing RemountXFSBootRO ...
> hibernate: [89] Executing SaveKernelModprobe ...
> hibernate: [91] Executing ModulesUnloadBlacklist ...
> hibernate: [95] Executing XHacksSuspendHook2 ...
> hibernate: [98] Executing CheckRunlevel ...
> hibernate: [99] Executing DoSysfsPowerStateSuspend ...
> hibernate: Activating sysfs power state disk ...
> hibernate: [90] Executing ModulesLoad ...
> hibernate: [89] Executing RestoreKernelModprobe ...
> hibernate: [85] Executing XHacksResumeHook2 ...
> hibernate: [70] Executing ClockRestore ...
> hibernate: [59] Executing RemountXFSBootRW ...
> hibernate: [11] Executing XHacksResumeHook1 ...
> hibernate: [01] Executing NoteLastResume ...
> hibernate: [01] Executing LockFilePut ...
> Resumed at Wed Jul 27 05:00:50 PM EDT 2022


I wonder at which point it actually shows that message.
I assume you are using:
# eix hibernate 
* sys-power/hibernate-script 
    Available versions:  2.0-r6 {vim-syntax} 
    Homepage:            https://gitlab.com/nigelcunningham/Hibernate-Script 
    Description:         Hibernate script supporting multiple suspend methods


If yes, then try it with the verbose-option, maybe then you get to see where 
that is generated.

Does suspend itself work? Or is the script failing as well?
Do you have hibernate configured in the kernel?

To check, you can try forcing hibernate manually by:

# echo disk > /sys/power/state

To resume, you will need to inform the kernel where to resume from.

Kernel command line option:  resume="/path/to/swap/device" 

If your swap-partition is a LV (eg, using LVM), you'll need to use an initrd 
that will find the correct device-ID to pass to the resume-functionality.

I created my own init-ramfs for this and use the "hibernate" option provided 
by kde/plasma. I can't remember when I last used a third-party script to get 
this to work as it's generally quite simple to get working.

--
Joost





Reply via email to