* /proc/acpi/alarm not working
@ 2005-06-08 23:50 Lorenzo Colitti
[not found] ` <42A7842C.2060207-Z4WAQ3j+MphBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Lorenzo Colitti @ 2005-06-08 23:50 UTC (permalink / raw)
To: ACPI mailing list
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
^ permalink raw reply [flat|nested] 7+ messages in thread[parent not found: <42A7842C.2060207-Z4WAQ3j+MphBDgjK7y7TUQ@public.gmane.org>]
* Re: /proc/acpi/alarm not working [not found] ` <42A7842C.2060207-Z4WAQ3j+MphBDgjK7y7TUQ@public.gmane.org> @ 2005-06-09 13:49 ` Pavel Machek [not found] ` <20050609134938.GA4478-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Pavel Machek @ 2005-06-09 13:49 UTC (permalink / raw) To: Lorenzo Colitti; +Cc: ACPI mailing list 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. 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 -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20050609134938.GA4478-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>]
* Re: /proc/acpi/alarm not working [not found] ` <20050609134938.GA4478-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org> @ 2005-06-14 18:22 ` Nils Faerber [not found] ` <42AF2063.3050104-t93Ne7XHvje5bSeCtf/tX7NAH6kLmebB@public.gmane.org> 2005-06-17 10:16 ` Karol Kozimor 1 sibling, 1 reply; 7+ messages in thread From: Nils Faerber @ 2005-06-14 18:22 UTC (permalink / raw) To: Pavel Machek; +Cc: Lorenzo Colitti, ACPI mailing list -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pavel Machek wrote: > Hi! 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. > 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. > 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. > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <42AF2063.3050104-t93Ne7XHvje5bSeCtf/tX7NAH6kLmebB@public.gmane.org>]
* Re: /proc/acpi/alarm not working [not found] ` <42AF2063.3050104-t93Ne7XHvje5bSeCtf/tX7NAH6kLmebB@public.gmane.org> @ 2005-06-14 21:40 ` Pavel Machek 0 siblings, 0 replies; 7+ messages in thread From: Pavel Machek @ 2005-06-14 21:40 UTC (permalink / raw) To: Nils Faerber; +Cc: Lorenzo Colitti, ACPI mailing list 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. > > 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. ... > 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... > > 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 -- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: /proc/acpi/alarm not working [not found] ` <20050609134938.GA4478-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org> 2005-06-14 18:22 ` Nils Faerber @ 2005-06-17 10:16 ` Karol Kozimor [not found] ` <20050617101604.GA22108-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org> 1 sibling, 1 reply; 7+ messages in thread From: Karol Kozimor @ 2005-06-17 10:16 UTC (permalink / raw) To: Pavel Machek; +Cc: Lorenzo Colitti, ACPI mailing list Thus wrote Pavel Machek: > > 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? > 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, -- Karol 'sziwan' Kozimor sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org ------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20050617101604.GA22108-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>]
* Re: /proc/acpi/alarm not working [not found] ` <20050617101604.GA22108-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org> @ 2005-06-17 12:43 ` Nils Faerber 0 siblings, 0 replies; 7+ messages in thread From: Nils Faerber @ 2005-06-17 12:43 UTC (permalink / raw) To: Karol Kozimor; +Cc: Pavel Machek, Lorenzo Colitti, ACPI mailing list -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Karol Kozimor wrote: > Thus wrote Pavel Machek: >>>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?". >>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. > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <16A54BF5D6E14E4D916CE26C9AD305750239C379@pdsmsx402.ccr.corp.intel.com>]
[parent not found: <16A54BF5D6E14E4D916CE26C9AD305750239C379-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>]
* Re: /proc/acpi/alarm not working [not found] ` <16A54BF5D6E14E4D916CE26C9AD305750239C379-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org> @ 2005-06-09 9:34 ` Lorenzo Colitti 0 siblings, 0 replies; 7+ messages in thread From: Lorenzo Colitti @ 2005-06-09 9:34 UTC (permalink / raw) To: Shaohua Li; +Cc: ACPI mailing list Li, Shaohua wrote: >>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. > > Which kernel version are you using? > Alarm in latest kernel works for my two laptops. Oh yes, sorry for not mentioning this. I am using 2.6.11.10 patched with software suspend 2 and fbsplash. Thanks, Lorenzo ------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-06-17 12:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-08 23:50 /proc/acpi/alarm not working Lorenzo Colitti
[not found] ` <42A7842C.2060207-Z4WAQ3j+MphBDgjK7y7TUQ@public.gmane.org>
2005-06-09 13:49 ` Pavel Machek
[not found] ` <20050609134938.GA4478-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2005-06-14 18:22 ` Nils Faerber
[not found] ` <42AF2063.3050104-t93Ne7XHvje5bSeCtf/tX7NAH6kLmebB@public.gmane.org>
2005-06-14 21:40 ` Pavel Machek
2005-06-17 10:16 ` Karol Kozimor
[not found] ` <20050617101604.GA22108-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2005-06-17 12:43 ` Nils Faerber
[not found] <16A54BF5D6E14E4D916CE26C9AD305750239C379@pdsmsx402.ccr.corp.intel.com>
[not found] ` <16A54BF5D6E14E4D916CE26C9AD305750239C379-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-06-09 9:34 ` Lorenzo Colitti
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox