Re: Wake-on-timer rtcwake experiments on various PC hardware

Harald Milz <[email protected]> Mon, 17 Apr 2023 07:06:39 +0200
Newsgroups gmane.linux.vdr
Message-ID <[email protected]>
--===============7216191991899865799==
Content-Type: multipart/alternative;
 boundary=----280QA3RD0H4DEA08U2T1DD46WO48NC
Content-Transfer-Encoding: 7bit

------280QA3RD0H4DEA08U2T1DD46WO48NC
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

Reminds me of the nvram-wakeup lotto back in the day=2E=20

Am 16=2E April 2023 19:54:03 MESZ schrieb "Marko M=C3=A4kel=C3=A4" <marko=
=2Emakela@iki=2Efi>:
>Today, I tested rtcwake on several x86 or x86-64 based computers=2E
>
>The outcome:
>
>(1) Suspend to RAM (say, "rtcwake -m mem -s 10"):
>* Success: Every system=2E
>(2) Wake-on-timer ("rtcwake -m no -s 120 && shutdown -h now" or "rtcwake =
-m off -s 120"):
>* Success: Lenovo Thinkpad X220 (2012?), and a 5-year-old desktop system
>* Fail: IBM Thinkpad X60 (Core Duo from 2006), a HP Zbook from 2016=2E
>(3) Suspend to disk ("rtcwake -m disk -s 120") had no chance of working, =
because I never configure any swap partition=2E I would assume that this co=
uld only work if (2) worked in the first place=2E On the Debian systems tha=
t I tried, the command would fail as expected=2E On one Arch Linux system (=
Lenovo Thinkpad X220), it forcibly power off the computer and fail to start=
 automatically; a file system check ran on the manual power-on=2E
>
>GNU/Linux is the only operating system on each computer, and apart from t=
he 32-bit Thinkpad X60, everything boots up via UEFI=2E
>
>In the BIOS setup of both the Thinkpad X60 and the HP laptop there are so=
me settings related to powering up on timer=2E Maybe with something like nv=
ram-wakeup (which was the only working option for a 2001 Intel Celeron mach=
ine) they could be made to work=2E
>
>Moral of the story: You can't expect wake-on-timer to "just work" even on=
 relatively recent hardware=2E Possibly the chances are better with desktop=
 or small-form-factor systems than with laptops=2E
>
>	Marko
>
>_______________________________________________
>vdr mailing list
>vdr@linuxtv=2Eorg
>https://www=2Elinuxtv=2Eorg/cgi-bin/mailman/listinfo/vdr

--=20
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesende=
t=2E
------280QA3RD0H4DEA08U2T1DD46WO48NC
Content-Type: text/html;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div dir=3D"auto">Reminds me of the nvram-wakeup l=
otto back in the day=2E </div><br><br><div class=3D"gmail_quote"><div dir=
=3D"auto">Am 16=2E April 2023 19:54:03 MESZ schrieb "Marko M=C3=A4kel=C3=A4=
" &lt;marko=2Emakela@iki=2Efi&gt;:</div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin: 0pt 0pt 0pt 0=2E8ex; border-left: 1px solid rgb(204, 204, 2=
04); padding-left: 1ex;">
<pre class=3D"k9mail"><div dir=3D"auto">Today, I tested rtcwake on several=
 x86 or x86-64 based computers=2E<br><br>The outcome:<br><br>(1) Suspend to=
 RAM (say, "rtcwake -m mem -s 10"):<br>* Success: Every system=2E<br>(2) Wa=
ke-on-timer ("rtcwake -m no -s 120 &amp;&amp; shutdown -h now" or "rtcwake =
-m off -s 120"):<br>* Success: Lenovo Thinkpad X220 (2012?), and a 5-year-o=
ld desktop system<br>* Fail: IBM Thinkpad X60 (Core Duo from 2006), a HP Zb=
ook from 2016=2E<br>(3) Suspend to disk ("rtcwake -m disk -s 120") had no c=
hance of working, because I never configure any swap partition=2E I would a=
ssume that this could only work if (2) worked in the first place=2E On the =
Debian systems that I tried, the command would fail as expected=2E On one A=
rch Linux system (Lenovo Thinkpad X220), it forcibly power off the computer=
 and fail to start automatically; a file system check ran on the manual pow=
er-on=2E<br><br>GNU/Linux is the only operating system on each computer, an=
d apart from the 32-bit Thinkpad X60, everything boots up via UEFI=2E<br><b=
r>In the BIOS setup of both the Thinkpad X60 and the HP laptop there are so=
me settings related to powering up on timer=2E Maybe with something like nv=
ram-wakeup (which was the only working option for a 2001 Intel Celeron mach=
ine) they could be made to work=2E<br><br>Moral of the story: You can't exp=
ect wake-on-timer to "just work" even on relatively recent hardware=2E Poss=
ibly the chances are better with desktop or small-form-factor systems than =
with laptops=2E<br><br>	Marko<hr>vdr mailing list<br>vdr@linuxtv=2Eorg<br><=
a href=3D"https://www=2Elinuxtv=2Eorg/cgi-bin/mailman/listinfo/vdr">https:/=
/www=2Elinuxtv=2Eorg/cgi-bin/mailman/listinfo/vdr</a><br></div></pre></bloc=
kquote></div><div dir=3D"auto"><div class=3D'k9mail-signature'>-- <br>Diese=
 Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet=2E</=
div></div></body></html>
------280QA3RD0H4DEA08U2T1DD46WO48NC--


--===============7216191991899865799==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
vdr mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

--===============7216191991899865799==--