public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	ronald.mythtv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: /proc/acpi/alarm -- does it work or not?
Date: Mon, 26 Dec 2005 21:43:05 +0100	[thread overview]
Message-ID: <20051226204305.GA2028@elf.ucw.cz> (raw)

Hi!

I wanted to write some documentation about /proc/acpi/alarm, but
failed to make it work. I was putting machine to suspend-to-ram and
enabled everything in /proc/acpi/wakeup, still it would not do
anything. I even went to bios (thinkpad x32), set "RTC alarm" to
enabled and set time there. Nothing interesting
happened. /proc/acpi/alarm could not see most of my changes done in
BIOS, it only cleared century or something like that.

I checked that RTC readout in BIOS shows same thing as system timer.

Here are my attempts: [Commands were typed one-after-another where it
makes sense, and I left machine suspended for long enough -- timer
should have expired]

root@amd:/proc/acpi# cat alarm
2005-12-00 01:03:24
root@amd:/proc/acpi# echo '0-0-0 22:35:00' > alarm
root@amd:/proc/acpi# cat alarm
0005-12-00 22:35:00
root@amd:/proc/acpi# s2ram
Freezing cpus ...
Stopping tasks: ====================================|
ACPI: PCI interrupt for device 0000:02:01.0 disabled
ACPI: PCI interrupt for device 0000:02:00.1 disabled
ACPI: PCI interrupt for device 0000:02:00.0 disabled
radeonfb (0000:01:00.0): suspending to state: 2...
radeonfb (0000:01:00.0): resuming from state: 2...to 64er 10 Dec 2004
Restarting tasks... done
Thawing cpus ...
root@amd:/proc/acpi# date
Sun Dec 25 22:36:46 CET 2005
root@amd:/proc/acpi# cat alarm
0005-12-00 22:35:00
root@amd:/proc/acpi#

root@amd:/proc/acpi# cat alarm
0005-12-00 22:35:00
root@amd:/proc/acpi# echo '*-*-* 22:40:00' > alarm
root@amd:/proc/acpi# cat alarm
0005-12-00 22:35:00
root@amd:/proc/acpi# echo '2005-12-25 22:40:00' > alarm
root@amd:/proc/acpi# cat alarm
2005-12-25 22:40:00
root@amd:/proc/acpi# date
Sun Dec 25 22:37:53 CET 2005
root@amd:/proc/acpi# s2ram
Freezing cpus ...
Stopping tasks: =====================================|
ACPI: PCI interrupt for device 0000:02:01.0 disabled
ACPI: PCI interrupt for device 0000:02:00.1 disabled
ACPI: PCI interrupt for device 0000:02:00.0 disabled
radeonfb (0000:01:00.0): suspending to state: 2...
radeonfb (0000:01:00.0): resuming from state: 2...to 64er 10 Dec 2004
Restarting tasks... done
Thawing cpus ...
root@amd:/proc/acpi# date
Sun Dec 25 22:41:14 CET 2005
root@amd:/proc/acpi#

...so... what am I doing wrong? Is thinkpad x32 machine where it does
not work?
								Pavel

-- 
Thanks, Sharp!


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

             reply	other threads:[~2005-12-26 20:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-26 20:43 Pavel Machek [this message]
     [not found] ` <20051226204305.GA2028-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-12-28 18:24   ` /proc/acpi/alarm -- does it work or not? Karol Kozimor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051226204305.GA2028@elf.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=ronald.mythtv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox