public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Re: How to get /proc/acpi/alarm to work *?*
  2006-01-18  1:42 How to get /proc/acpi/alarm to work Hanno Mueller
@ 2006-01-18  1:46 ` Hanno Mueller
  0 siblings, 0 replies; 5+ messages in thread
From: Hanno Mueller @ 2006-01-18  1:46 UTC (permalink / raw)
  To: linux-acpi

Hello,

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

Darn. The subject should have contained a question mark.

Regards,

Hanno

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

* Re: How to get /proc/acpi/alarm to work?
  2006-01-18  2:47 How to get /proc/acpi/alarm to work Li, Shaohua
@ 2006-01-18 10:02 ` Hanno Mueller
  0 siblings, 0 replies; 5+ messages in thread
From: Hanno Mueller @ 2006-01-18 10:02 UTC (permalink / raw)
  To: linux-acpi

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.

Regards,

Hanno


-- 
epublica GmbH
http://www.epublica.de

Open Business Club - join: http://www.openbc.com/go/invanon/2


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

* 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-19  1:13 How to get /proc/acpi/alarm to work? Li, Shaohua
@ 2006-01-20  0:52 ` Hanno Mueller
  0 siblings, 0 replies; 5+ messages in thread
From: Hanno Mueller @ 2006-01-20  0:52 UTC (permalink / raw)
  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.

Two questions: Why are there two different settings? I thought there was
just one?

And more important to me: How can I access the 1st alarm time from
Linux? Since the BIOS lists it in its ACPI settings section, I guess
there is some way to access it through ACPI.

Regards,

Hanno

^ 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

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