Skip to contentSkip to conversation

/proc/acpi/alarm not working

DISCUSSION Lorenzo Colitti 5 participants 6 messages Jun 8, 2005 – Jun 17, 2005 4 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to use /proc/acpi/alarm to wake my laptop from S3 and go into S4 after a fixed amount of time. But I can't get /proc/acpi/alarm to work.

I tried 'echo "2005-06-08 12:47:00" > alarm', both using local time and with 2 hours plus or minus since I'm not sure if the alarm file is in UTC or not.

A 'cat alarm' displays the time I set it to, and there are no errors in dmest, but nothing seems to happen. If the laptop is on, I see no acpi event being triggered. If it's in S3, it doesn't wake up unless I press the power button.

Is there something I'm doing wrong? If not, how do I debug this?

Cheers,
Lorenzo

P.S. This works on Windows, so the DSDT should support it...

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi!

Quoted 3 lines

I am trying to use /proc/acpi/alarm to wake my laptop from S3 and go into S4 after a fixed amount of time. But I can't get /proc/acpi/alarm to work.

That sounds dangerous to me... drive might spin up during bad time when being transported...

Why not enter S3 but save image to disk in case battery runs out?
Pavel

Signature · 9 lines
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

A message that is not in the archive (sent off-list or not yet received): 20050609134938.GA4478-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org

#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Pavel Machek

Hi!

Hi!

Quoted 5 lines
Quoted 3 lines

I am trying to use /proc/acpi/alarm to wake my laptop from S3 and go into S4 after a fixed amount of time. But I can't get /proc/acpi/alarm to work.

That sounds dangerous to me... drive might spin up during bad time when being transported...

I am also missing that functionality!
My older Lifebook was able to do that automatically using APM. This was very convenient because you never had to care about usign one over the other suspend method. You simply close the lid - dot.
When you turn the machine back on it will still have almost the same battery power left.
The idea is that if you do not use the machine for several minutes (hour) the probability is high that you will not do so for another extended period of time which makes suspend to RAM a bad thing, sucking your battery to empty (and we all know that batteries do not like to get drained).
For the short term suspend the machine will simply suspend to RAM and come back on quite quickly.

I always had the timeout to 30 minutes and was very hapy with it.

And I also have not had any problem with my harddisk at all - I just sometimes wondered what would happen if I close the lid and the machine starts to suspend to disk while sitting in an airplane ;) but that's another problem.

Quoted 1 line

Why not enter S3 but save image to disk in case battery runs out?

Two reasons:
1. Not necessary in most cases (at least it does not give a huge benefit).
2. Too much battery drain causing battery to wear out too early.

Quoted 1 line

Pavel

CU
nils faerber

- --
kernel concepts Tel: +49-271-771091-12
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen Mob: +49-176-21024535
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCryBiJXeIURG1qHgRApdTAJsEMKyg2kDioxZyC9/i91PXaONjOgCfcAFm ZFPY+mt6fLWST+U0SfBzekc=
=QpoI
-----END PGP SIGNATURE-----

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

A message that is not in the archive (sent off-list or not yet received): 42AF2063.3050104-t93Ne7XHvje5bSeCtf/[email protected]

#6 lore raw

Hi!

Quoted 10 lines
Quoted 5 lines
Quoted 3 lines

I am trying to use /proc/acpi/alarm to wake my laptop from S3 and go into S4 after a fixed amount of time. But I can't get /proc/acpi/alarm to work.

That sounds dangerous to me... drive might spin up during bad time when being transported...

I am also missing that functionality!
My older Lifebook was able to do that automatically using APM. This was very convenient because you never had to care about usign one over the other suspend method. You simply close the lid - dot.

...

Quoted 6 lines

I always had the timeout to 30 minutes and was very hapy with it.

And I also have not had any problem with my harddisk at all - I just sometimes wondered what would happen if I close the lid and the machine starts to suspend to disk while sitting in an airplane ;) but that's another problem.

Really? Turning on machine at some random time seems dangerous to me. Airplane is one example. Or imagine closing lid than going horseback riding with your laptop. Machine can probably survive that kind of vibrations when powered down, but I do not think it would survive them with disk spinning...

Quoted 5 lines
Quoted 1 line

Why not enter S3 but save image to disk in case battery runs out?

Two reasons:
1. Not necessary in most cases (at least it does not give a huge benefit).
2. Too much battery drain causing battery to wear out too early.

IBM was calling it "redisafe". I'm not sure how fast it killed the batteries...

Pavel

Signature · 8 lines
teflon -- maybe it is a trademark, but it should not be.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
#7 lore raw
In reply to a message not in the archive

Thus wrote Pavel Machek:

Quoted 5 lines
Quoted 3 lines

I am trying to use /proc/acpi/alarm to wake my laptop from S3 and go into S4 after a fixed amount of time. But I can't get /proc/acpi/alarm to work.

That sounds dangerous to me... drive might spin up during bad time when being transported...

Why use S3 if you intend to transport the laptop in the first place?

Quoted 1 line

Why not enter S3 but save image to disk in case battery runs out?

I believe Nigel's implementation is capable of doing so. Best regards,

Signature · 9 lines
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/[email protected]


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

A message that is not in the archive (sent off-list or not yet received): 20050617101604.GA22108-DETuoxkZsSqrDJvtcaxF/[email protected]

#9 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Karol Kozimor

Thus wrote Pavel Machek:

Quoted 5 lines
Quoted 3 lines

I am trying to use /proc/acpi/alarm to wake my laptop from S3 and go into S4 after a fixed amount of time. But I can't get /proc/acpi/alarm to work.

That sounds dangerous to me... drive might spin up during bad time when being transported...

Why use S3 if you intend to transport the laptop in the first place?

Because you do not necessarily know that you are going to transport it.

My typical use case is that I use the machine at some point of day, then simply close the lid, it goes to S3. Then I find that I forgot something or such, open the lid and it resumes almost instantaniously. I close it again after work is done.
And this can happen several times a day, my brain is sometimes a mess ;)

But if I do not resume it in time it will simply fall to deep sleep (S4), saving battery power and lifetime. And I do not have to waste a single moment thinking about "Do I want to use again soon or not?".

Quoted 1 line
Quoted 1 line

Why not enter S3 but save image to disk in case battery runs out?

As I said, the point of battery running out is IMHO too late. Cycling Li-* batteries a lot reduces their lifetime significantly.

Quoted 1 line

Best regards,

Kind regards
nils faerber

- --
kernel concepts Tel: +49-271-771091-12
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen Mob: +49-176-21024535
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCssVsJXeIURG1qHgRAj3JAJ0eBZ9iNg1IWZDQtZL/xeGLv4OZKwCfaViy Jxo8Zs0HNvF1XToHvLENU3I=
=q3YT
-----END PGP SIGNATURE-----

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click