public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: How to get /proc/acpi/alarm to work?
@ 2006-01-19  1:13 Li, Shaohua
  2006-01-20  0:52 ` Hanno Mueller
  0 siblings, 1 reply; 5+ messages in thread
From: Li, Shaohua @ 2006-01-19  1:13 UTC (permalink / raw)
  To: Hanno Mueller, linux-acpi

Hi,
>
>Li, Shaohua schrieb:
>> Is it possible you could try the patch at
>> http://bugzilla.kernel.org/show_bug.cgi?id=5833?
>> Christian Lupien's patch made a lot of improvements on alarm.
>
>Thanks, but no, that didn't solve the problem.
>
>Let me rephrase the description. My BIOS has a different ACPI alarm
>value than the value stored in /proc/acpi/alarm.
>
>
>
>I can set the RTC alarm wakeup in the BIOS's ACPI settings to:
>
>  enabled: yes
>  day:     18
>  hour:    15
>  minute:  10
>  second:  30
>
>If I look at /proc/acpi/alarm, it doesn't show me "****-**-18 15:10:30"
>as one would expect, but a different value.
>
>When doing
>
>  echo "2006-01-18 15:20:45" > /proc/acpi/alarm
>
>I get (with Christian's patch):
>
>  cat /proc/acpi/alarm
>  "****-**-** 15:20:45 +int (2006-01-18 10:50:12)"
>
>Now, after rebooting, the BIOS _still_ shows 15:10:30 on day 18 in its
>ACPI settings.
>
>
>So on my system, the BIOS's RTC alarm wakeup ACPI setting appears to be
>something different than what /proc/acpi/alarm has access to.
>
>Also, the /proc/acpi/alarm setting does not wake the system from S5,
>while the BIOS setting can. And the BIOS can handle the day's number as
>a wakeup setting, while /proc/acpi/alarm cannot.
>
>Any idea how to read and change the BIOS's RTC alarm wakeup from Linux?
>I have read from users of other mainboards that it works for them
>(including the day's number).
>
>As I wrote before, the nvram-wakeup method does not work on this
>mainboard, either.
Can you enable the RTC driver? IIRC, without it, the date you see is
wrong, which might make you set wrong alarm.

Thanks,
Shaohua

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: How to get /proc/acpi/alarm to work?
@ 2006-01-20  1:44 Li, Shaohua
  0 siblings, 0 replies; 5+ messages in thread
From: Li, Shaohua @ 2006-01-20  1:44 UTC (permalink / raw)
  To: Hanno Mueller; +Cc: linux-acpi

Hi,
>
>thanks.
>
>Li, Shaohua schrieb:
>> Can you enable the RTC driver? IIRC, without it, the date you see is
>> wrong, which might make you set wrong alarm.
>
>Yes, it is enabled (now). But no, it didn't help.
>
>
>
>I still have two different alarm settings.
>
>1) The setting stored in the BIOS's ACPI section as "RTC alarm". I can
>choose a time and a specific day of the month.
>
>2) The setting stored in /proc/acpi/alarm - there I can only choose the
>time, not the day.
>
>These two settings appear to be completely independent from each other.
>
>Also, the 2nd setting does not work. I can change it and the computer
>remembers it between reboots, but the BIOS does not wake up the system
>from S5. The 1st setting is able to wake up the system.
>
ACPI alarm can only wakeup system from S3 and wakeup from S4 is
optional. IIRC, it can't wakeup system from S5.

Thanks,
Shaohua

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: How to get /proc/acpi/alarm to work
@ 2006-01-18  2:47 Li, Shaohua
  2006-01-18 10:02 ` How to get /proc/acpi/alarm to work? Hanno Mueller
  0 siblings, 1 reply; 5+ messages in thread
From: Li, Shaohua @ 2006-01-18  2:47 UTC (permalink / raw)
  To: Hanno Mueller; +Cc: linux-acpi

Hi,
>Linux: 2.6.15.1 vanilla
>Mainboard: ASRock P4V88+, revision 1.00
>BIOS: Updated to 1.6 (latest release from manufacturer's site)
>
>
>My mainboard's BIOS allows to set an RTC wakeup time and day (not month
>or year) in its ACPI settings.
>
>This will wakeup the system from the S5 state.
>
>
>Problem: It is not possible to set this value through /proc/acpi/alarm.
>
>
>It's possible to write valid value to /proc/acpi/alarm and to retrieve
>it [1]:
>
># echo "2006-01-18 03:00:00" > /proc/acpi/alarm
># cat /proc/acpi/alarm
>2006-01-18 03:00:00
>
>After a reboot the stored value is broken [2]:
>
># cat /proc/acpi/alarm
>2006-00-00 03:00:00
>
>The alarm time does not wake up the system. It doesn't wake up at
>03:00:00 BIOS time, not today, not tomorrow, not on 2006-01-18.
>
>Also, the alarm time does not show up in the BIOS's ACPI settings.
>There, one can still find the old values that where entered several
>boots ago.
>
>
>Since the mainboard explicitely lists this function in its ACPI
>settings, I guess that the Linux kernel somehow doesn't handle my
>mainboard right.
>
>I'm aware that there are many broken ACPI implementations on mainboards
>out there. Is there any way I can find out how to fix this issue? Is
>there a debugging guide for this? [3]
Is it possible you could try the patch at 
http://bugzilla.kernel.org/show_bug.cgi?id=5833?
Christian Lupien's patch made a lot of improvements on alarm.

Thanks,
Shaohua

^ permalink raw reply	[flat|nested] 5+ messages in thread
* How to get /proc/acpi/alarm to work
@ 2006-01-18  1:42 Hanno Mueller
  2006-01-18  1:46 ` How to get /proc/acpi/alarm to work *?* Hanno Mueller
  0 siblings, 1 reply; 5+ messages in thread
From: Hanno Mueller @ 2006-01-18  1:42 UTC (permalink / raw)
  To: linux-acpi

Hello,


Linux: 2.6.15.1 vanilla
Mainboard: ASRock P4V88+, revision 1.00
BIOS: Updated to 1.6 (latest release from manufacturer's site)


My mainboard's BIOS allows to set an RTC wakeup time and day (not month
or year) in its ACPI settings.

This will wakeup the system from the S5 state.


Problem: It is not possible to set this value through /proc/acpi/alarm.


It's possible to write valid value to /proc/acpi/alarm and to retrieve
it [1]:

# echo "2006-01-18 03:00:00" > /proc/acpi/alarm
# cat /proc/acpi/alarm
2006-01-18 03:00:00

After a reboot the stored value is broken [2]:

# cat /proc/acpi/alarm
2006-00-00 03:00:00

The alarm time does not wake up the system. It doesn't wake up at
03:00:00 BIOS time, not today, not tomorrow, not on 2006-01-18.

Also, the alarm time does not show up in the BIOS's ACPI settings.
There, one can still find the old values that where entered several
boots ago.


Since the mainboard explicitely lists this function in its ACPI
settings, I guess that the Linux kernel somehow doesn't handle my
mainboard right.

I'm aware that there are many broken ACPI implementations on mainboards
out there. Is there any way I can find out how to fix this issue? Is
there a debugging guide for this? [3]


Thanks,

Hanno



[1] Yes, when I tried this, it was a date and time in the future. I read
somewhere that a past or invalid date will turn off the alarm time setting.

[2] I read in a forum that calling /sbin/hwclock can mess with the alarm
value. When I tried the things above, I removed the /sbin/hwclock calls
from my system's init.d-scripts, but that didn't help.

[3] The same mainboard does not work with nvram-wakeup, which is a
popular older program used by many Linux vdr/pvr setups. nvram-wakeup
uses /dev/nvram to store the wakeup time directly in the NVRAM section.
Ugly, but it works with two other (older) mainboards I tried. On my
current mainboard, however, the alarm timer bytes do not appear to be
accessible through NVRAM.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-01-20  1:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-19  1:13 How to get /proc/acpi/alarm to work? Li, Shaohua
2006-01-20  0:52 ` Hanno Mueller
  -- strict thread matches above, loose matches on Subject: below --
2006-01-20  1:44 Li, Shaohua
2006-01-18  2:47 How to get /proc/acpi/alarm to work Li, Shaohua
2006-01-18 10:02 ` How to get /proc/acpi/alarm to work? Hanno Mueller
2006-01-18  1:42 How to get /proc/acpi/alarm to work Hanno Mueller
2006-01-18  1:46 ` How to get /proc/acpi/alarm to work *?* Hanno Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox