1 |
On Wednesday, 27 July 2022 23:53:08 CEST Walter Dnes wrote: |
2 |
> One of the last few items on the laptop setup. I emerged hibernate |
3 |
> and copied over the /etc/hibernate/ directory from my desktop. When I |
4 |
> try to hibernate the laptop, I get... |
5 |
> |
6 |
> [thimk][root][~] hibernate |
7 |
> /bin/echo: write error: No such device |
8 |
> |
9 |
> ...with a beep, and the machine comes back. Grepping for the "echo" |
10 |
> command, I get... |
11 |
> |
12 |
> [thimk][root][~] grep -r echo /etc/hibernate/ |
13 |
> /etc/hibernate/common.conf:# OnSuspend 20 echo "Good night!" |
14 |
> /etc/hibernate/common.conf:# OnResume 20 echo "Good morning!" |
15 |
> |
16 |
> The latest entries in /var/log/hibernate.log are... |
17 |
> |
18 |
> Starting suspend at Wed Jul 27 05:00:47 PM EDT 2022 |
19 |
> hibernate: [01] Executing CheckLastResume ... |
20 |
> hibernate: [01] Executing CheckRunlevel ... |
21 |
> hibernate: [01] Executing LockFileGet ... |
22 |
> hibernate: [01] Executing NewKernelFileCheck ... |
23 |
> hibernate: [10] Executing EnsureSysfsPowerStateCapable ... |
24 |
> hibernate: [11] Executing XHacksSuspendHook1 ... |
25 |
> hibernate: [59] Executing RemountXFSBootRO ... |
26 |
> hibernate: [89] Executing SaveKernelModprobe ... |
27 |
> hibernate: [91] Executing ModulesUnloadBlacklist ... |
28 |
> hibernate: [95] Executing XHacksSuspendHook2 ... |
29 |
> hibernate: [98] Executing CheckRunlevel ... |
30 |
> hibernate: [99] Executing DoSysfsPowerStateSuspend ... |
31 |
> hibernate: Activating sysfs power state disk ... |
32 |
> hibernate: [90] Executing ModulesLoad ... |
33 |
> hibernate: [89] Executing RestoreKernelModprobe ... |
34 |
> hibernate: [85] Executing XHacksResumeHook2 ... |
35 |
> hibernate: [70] Executing ClockRestore ... |
36 |
> hibernate: [59] Executing RemountXFSBootRW ... |
37 |
> hibernate: [11] Executing XHacksResumeHook1 ... |
38 |
> hibernate: [01] Executing NoteLastResume ... |
39 |
> hibernate: [01] Executing LockFilePut ... |
40 |
> Resumed at Wed Jul 27 05:00:50 PM EDT 2022 |
41 |
|
42 |
|
43 |
I wonder at which point it actually shows that message. |
44 |
I assume you are using: |
45 |
# eix hibernate |
46 |
* sys-power/hibernate-script |
47 |
Available versions: 2.0-r6 {vim-syntax} |
48 |
Homepage: https://gitlab.com/nigelcunningham/Hibernate-Script |
49 |
Description: Hibernate script supporting multiple suspend methods |
50 |
|
51 |
|
52 |
If yes, then try it with the verbose-option, maybe then you get to see where |
53 |
that is generated. |
54 |
|
55 |
Does suspend itself work? Or is the script failing as well? |
56 |
Do you have hibernate configured in the kernel? |
57 |
|
58 |
To check, you can try forcing hibernate manually by: |
59 |
|
60 |
# echo disk > /sys/power/state |
61 |
|
62 |
To resume, you will need to inform the kernel where to resume from. |
63 |
|
64 |
Kernel command line option: resume="/path/to/swap/device" |
65 |
|
66 |
If your swap-partition is a LV (eg, using LVM), you'll need to use an initrd |
67 |
that will find the correct device-ID to pass to the resume-functionality. |
68 |
|
69 |
I created my own init-ramfs for this and use the "hibernate" option provided |
70 |
by kde/plasma. I can't remember when I last used a third-party script to get |
71 |
this to work as it's generally quite simple to get working. |
72 |
|
73 |
-- |
74 |
Joost |