Author Topic: Ko/pi Alarm Applet Needed  (Read 20105 times)

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #30 on: August 28, 2005, 11:27:23 pm »
Yep its /etc/apm. (And I have my Z on me as well, so no excuse)

I've not tested any daylight savings yet. I'll test later when I get a chance.

To get KOPI to play alarms, you need to either create the playwave file as described earlier in this thread, or install 'pdaxrom-patchlist.ipk' from my feed. I deliberately did not make wakeup_kopi depend on my patchlist since some people may not like my fixes (its fully reversable if you don't like it and uninstall it).

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

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #31 on: August 29, 2005, 07:15:19 am »
Oh, and you have to install a later version of KOPI than is currently in the pdaXrom feeds (older version does not call an external script). There was another thread somewhere in this forum that had a link to a precompiled version.
New version of KOPI looks very nice.

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

andrewwoods

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • http://
Ko/pi Alarm Applet Needed
« Reply #32 on: August 29, 2005, 09:24:06 am »
Oh, and I had to change line 180 to date -u. Sorry forgot to add that to earlier post.
SL-C860 pdaxrom Beta3 512MB SD
Buffalo CF WLAN RTM-8000 GPRS ANYCOM BT

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #33 on: September 27, 2005, 12:55:21 pm »
Ok I have read through this thread and I have followed the instructions and most everything seems to be working.  The script to return minutes to the next alarm and the new apm work as expected.  But apmsleep has an issue.  When used with the new apm etc apmsleep will suspend my 6000 but it will not wake up.  If i run it by hand (ampsleep +0:05) it will suspend and when i wake it up it will have an illegal instruction in the aterm window right after the apmsleep command.

Any suggestions?

Running a zaurus sl6000, kopi 2.17 on RC11 (ran through same tests with rc10)

Thanks
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #34 on: September 27, 2005, 11:39:43 pm »
Quote
Ok I have read through this thread and I have followed the instructions and most everything seems to be working.  The script to return minutes to the next alarm and the new apm work as expected.  But apmsleep has an issue.  When used with the new apm etc apmsleep will suspend my 6000 but it will not wake up.  If i run it by hand (ampsleep +0:05) it will suspend and when i wake it up it will have an illegal instruction in the aterm window right after the apmsleep command.

Any suggestions?

Running a zaurus sl6000, kopi 2.17 on RC11 (ran through same tests with rc10)

Thanks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=97242\"][{POST_SNAPBACK}][/a][/div]

Yeah, not sure why the illegal instruction, but since it happens behind the scenes when called by dpms sleep I havn't worried about it
I havn't tested my scripts with RC11, so if you're running that there may be incompatibilities. It sounds like apmsleep is not being called when suspended.

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

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #35 on: September 27, 2005, 11:56:32 pm »
Im fairly sure that apmsleep is being called, but it does not wake up the zaurus when its time.  Even if i run apmsleep by hand.  Im not sure where to even look for logs on why it might not be waking up.  I flashed back to rc10 and I have the same issues.  I was wondering if it might have something to do with the kernel?

Thanks
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #36 on: October 03, 2005, 01:34:23 pm »
Anyone have any idea where to start with trouble shooting apmsleep problems?

Thanks
Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #37 on: October 03, 2005, 07:29:38 pm »
I can confirm that running apmsleep +0:05  by hand works on a C860 fine (well, it wakes up with pauses but thats 'normal' and fixed by getting dpms to call apm instead).

Anyone else with a sl6000 have positive results?

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

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Ko/pi Alarm Applet Needed
« Reply #38 on: October 03, 2005, 11:40:20 pm »
Hi

I have an SL6000L and I have the exact same problem on RC10 and RC11 - after a lot of googling this is the first time I have found anyone with the same issue!

The problem lies with the RTC wakeup somewhere - I have used apmsleep, and even written my own test programs using the SDK and info from the Linux kernel rtc documentation. It sets the alarm time correctly, and appears to turn the alarm interrupt on - I have never seen it confirmed via /proc/driver/rtc, but I can confirm that the interrupt fires (via the count in /proc/interrupts) unless the alarm is cancelled before the time arrives.

The Zaurus just never wakes up when the interrupt fires. If this were a PC, this would normally relate to a BIOS setting telling the machine to wake on this interrupt.

Aside from this issue, pdaXrom does absolutely everything I want and I am keen to get it fixed - any ideas that I can try out to get more info (or solve the problem!) would be greatly appreciated.

Regards

Karl

Quote
I can confirm that running apmsleep +0:05  by hand works on a C860 fine (well, it wakes up with pauses but thats 'normal' and fixed by getting dpms to call apm instead).

Anyone else with a sl6000 have positive results?

 - Bundabrg
[div align=\"right\"][a href=\"index.php?act=findpost&pid=98055\"][{POST_SNAPBACK}][/a][/div]
SL6000-L, RC12

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #39 on: October 05, 2005, 04:46:17 pm »
Is there anything we can do to help find a fix for this?  Testing, logs, etc?  Im not much of a coder as of yet but Im willing to help in any way that I can.

Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Ko/pi Alarm Applet Needed
« Reply #40 on: October 05, 2005, 05:01:35 pm »
I would be keen to help too - just not sure what to do next...

Does anyone know where any detailed specs are? What about source for the apm in the stock Zaurus kernel (which does wake up)?
SL6000-L, RC12

albertr

  • Hero Member
  • *****
  • Posts: 535
    • View Profile
    • http://
Ko/pi Alarm Applet Needed
« Reply #41 on: October 06, 2005, 10:30:21 pm »
I think I found the problem. Here's a quick and dirty fix that seems to work on my C1K:

http://www.iral.com/~albertr/linux/misc/pxa27x_power.diff

I think the right way to fix the problem is to mask the appropriate wakeup events, but that would require reading thru sharp's messy kernel code and understand all dependancies for possible events. I just don't have time for this right now, if anyone wants to give it a shot, please feel free to provide a better fix.
-albertr

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Ko/pi Alarm Applet Needed
« Reply #42 on: October 06, 2005, 11:02:51 pm »
Quote
I think I found the problem. Here's a quick and dirty fix that seems to work on my C1K:

http://www.iral.com/~albertr/linux/misc/pxa27x_power.diff

I think the right way to fix the problem is to mask the appropriate wakeup events, but that would require reading thru sharp's messy kernel code and understand all dependancies for possible events. I just don't have time for this right now, if anyone wants to give it a shot, please feel free to provide a better fix.
-albertr
[div align=\"right\"][a href=\"index.php?act=findpost&pid=98485\"][{POST_SNAPBACK}][/a][/div]

Thanks albertr - that makes some sense. I was hunting around these registers yesterday looking for issues (before my head exploded between the processor docs and the Sharp kernel source...).

I was hoping not to have to recompile a kernel, but it looks inevitable. There is a lot of specific stuff for the tosa that seems to be in Sharp's source not referred to in the pdaxrom headers I have. When I get some spare time I will download the pdaxrom kernel source and give it a bash...
SL6000-L, RC12

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #43 on: October 08, 2005, 03:19:43 pm »
karlto if you do get around to building a kernel I would be happy to help you test it.

todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Ko/pi Alarm Applet Needed
« Reply #44 on: October 16, 2005, 11:12:14 pm »
Well im have been trying to rebuild the kernel for my 6000 to fix this issue but I think im missing something simple.  Im trying to build the kernel just like i do on my normal box.  Is there a doc someplace on how to build a kernel with the dev kit for pdaxrom?

Thanks
Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom