Author Topic: Even If Simple Alarm In Pdaxrom?  (Read 5960 times)

SSG

  • Newbie
  • *
  • Posts: 16
    • View Profile
Even If Simple Alarm In Pdaxrom?
« on: January 11, 2005, 05:24:07 am »
existence of a solution working alarm clock for wakening zaurus ?

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #1 on: January 11, 2005, 05:44:20 am »
tried to find an answer in vain...
would be a great step on

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Even If Simple Alarm In Pdaxrom?
« Reply #2 on: January 11, 2005, 06:25:22 am »
someone has compiled xmms-alarm an put it in the unstable feed maybe it works?
SLC-860 cacko / senao wifi

SSG

  • Newbie
  • *
  • Posts: 16
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #3 on: January 12, 2005, 10:25:19 am »
se la vi. Have zaurus - yourself rescue myself

Martin

  • Full Member
  • ***
  • Posts: 138
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #4 on: January 12, 2005, 12:44:43 pm »
Hi all,

@pgas ... xmms-alarm-plugin works great using RC8 :-)

Martin
--------------------------------------------------------
sl-c860 /w pdaXrom 1.1.0 Kathrin r121
CF 1GB , SD 2GB + 1GB + 512MB , MMC 512MB
Netgear MA701 WLAN 801b
Asus WL-HDD2.5 (very nice thing) /w 60 GB
--------------------------------------------------------
PC/Notebook SuSE 10.1 Prof. / KDE3.5.4
VDR /w KnoppMyth R5C7 (/w Myth 0.19)
--------------------------------------(August 2006)---

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #5 on: January 12, 2005, 01:16:17 pm »
maybe, nut no way to wakeup from suspended state

shula

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #6 on: January 13, 2005, 11:49:43 am »
i tried too xmms-alarm ==> it doesnt wake up from suspend (c860).
i'll try some qtopia if i manage to install the qpe libraries.


i wonder if i can WAKE UP the Z from a shell comamnd or a python script ?
C860, pdaxrom rc8,
with Gnumeric as the perfect PIM :-)

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #7 on: January 13, 2005, 06:08:42 pm »
Hmmm, check how it does it under OZ. From memory its something it calls with apm before it suspends... I suspect it may be something like "sleep for 80 minutes". If this is the case, it would be relatively easy to parse out the next alarm from whatever and edit the apm script.


 - Bundabrg
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #8 on: January 13, 2005, 07:51:03 pm »
..I fear zaurus has not the hardware needed for wakeup functions

thseiler

  • Newbie
  • *
  • Posts: 12
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #9 on: January 14, 2005, 03:50:15 am »
To: scoutme
 ..I fear zaurus has not the hardware needed for wakeup functions

Intels Developer manual to the PXA255 processor states:

Section 1.2.14 Real Time Clock
... The RTC provides a constant frequency output and a programmable alarm register
This alarm register can also be used to wake up the processor from sleep mode...

It all boils down to reading the RTC register, addind the apropriate number of seconds one wants
to sleep , and then writing this back into the Alarm Register prior to going to sleep.

I think there must be some code somewhere that does it already.
Will investigate further...

thseiler

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #10 on: January 14, 2005, 09:15:49 am »
The RTC_ALM_SET IOCTL for the /dev/rtc device is documented in the following location. http://www.uclinux.org/pub/uClinux/ports/b...vice_driver.pdf

Now I know that's uClinux but I have checked the cotulla-rtc driver in the Sharp Kernel and it looks like it takes the same IOCTL.

Haven't tried it yet though !

- Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #11 on: January 14, 2005, 09:26:48 am »
In fact check out the Documentation/rtc.txt file in the Linux Kernel source. DUH, should have checked there first !.
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

pantau

  • Newbie
  • *
  • Posts: 6
    • View Profile
Even If Simple Alarm In Pdaxrom?
« Reply #12 on: January 14, 2005, 04:55:19 pm »
There is an rtc-test program which runs under pdaXrom. You find it at rtc-test.c.
Also there is a program called apmsleep. It's available in the debian archive apmd for the arm architecture. It kind of works. It suspends the C860 I have and wakes it up at the given time. But when I run it under X in aterm the behaivor of the X-server is kind of strange/slow. On console level it works.
At least both could be a starting point. Or is there any compareable program in pdaxrom (feed?) I couldn't find anything....

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Even If Simple Alarm In Pdaxrom?
« Reply #13 on: January 15, 2005, 07:27:33 am »
The problem here is that pdaxrom use the  dpms options via xset to suspend the Z and not apm,
in fact if you try apm --suspend, it  exhibits the same behavior that pantau describe.


But as kapm is running, apm must be involved at some point.

I think we  need to know what Sash has cook up with apm/ xset and get the sources of his hacks before we can try to implement something using the rtc.
SLC-860 cacko / senao wifi

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Even If Simple Alarm In Pdaxrom?
« Reply #14 on: January 15, 2005, 07:51:10 am »
hmm,
I get something working, I have edited the script /usr/bin/apm so that instead of
calling apm.x --suspend it calls  apmsleep +00:01.

I then powered off my Z and after 1 minute it has been waked up with X working.

So xset must call the /usr/bin/apm script at some point

Attached is apmsleep gziped just copy it somewhere like /usr/bin
Now we can try to put up some software/ scripts to use this I think
« Last Edit: January 15, 2005, 07:55:39 am by pgas »
SLC-860 cacko / senao wifi