Author Topic: Alarms With Kdepim/pi For Rc12 Sl-c3100  (Read 12839 times)

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #30 on: December 09, 2005, 01:39:28 am »
Karlto,

Just a quick update. The reason why I used minutes instead of a time is that it is far (FAR) easier to find the thing that is the nearest minutes away than to subtract two time+dates ;-) (IE, for the scripts in wakeup.d) using simple bash.

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

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #31 on: December 11, 2005, 01:33:14 pm »
Quote
Karlto,

Just a quick update. The reason why I used minutes instead of a time is that it is far (FAR) easier to find the thing that is the nearest minutes away than to subtract two time+dates ;-) (IE, for the scripts in wakeup.d) using simple bash.

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

Don't listen to me too much - I can't even get the thing to wake up by itself yet...
SL6000-L, RC12

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #32 on: December 13, 2005, 01:01:41 pm »
here compiled atd + at which using with Qtopia ROM)

probably it work for me:)

install package, run service:

Code: [Select]
/etc/rc.d/init.d/atd start
job list must be in file: for example if you want run dillo, need create text file "job" :

Code: [Select]
dillo http://www.oesf.org
than for wakeup zaurus in 7:00 enter:

Code: [Select]
at -f job 7:00
than when time will reached, it will run dillo. If zaurus suspend, it will wake up and run dillo.

PS i compiled package with Cxx00 configuration, if it will not work on C7x0/6000, plz write.

clofland

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • http://www.lofland.net/
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #33 on: December 13, 2005, 02:05:30 pm »
Wow Sash! This atd program for pdaXrom seems to solve a whole lot of problems! Now I can forget that stupid buggy apmsleep thing.

I am testing it on my 760, and so far it seems to work. It runs as scheduled, and wakes the Z up to run scheduled jobs.

Thank you VERY much!

EDIT: I've done more testing, and it definitely DOES wake up my Z for scheduled tasks!

It does have to be running, of course, and the IPK doesn't create the symlinks in /etc/rc.d/rc3.d/ and the other similar directories to start it at boot time. Gotta do that by hand.

Thanks again for the good work Sash!
« Last Edit: December 13, 2005, 04:36:14 pm by clofland »
[span style=\'font-size:14pt;line-height:100%\']C-760 pdaXrom 1.1.0beta3[/span]
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #34 on: December 13, 2005, 03:09:05 pm »
Thanks sash. atd works as expected on the SL6000 - no wake from suspend though.

I'm sure the wakeup issue is with the kernel, so I'll keep perservering to get one compiled...
SL6000-L, RC12

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #35 on: December 13, 2005, 04:27:28 pm »
I will echo karlto.  With a clean flash of RC12 atd works fine except it for the wake form suspend issue.
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

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #36 on: December 14, 2005, 12:13:39 am »
Quote
I will echo karlto.  With a clean flash of RC12 atd works fine except it for the wake form suspend issue.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107022\"][{POST_SNAPBACK}][/a][/div]
no running ntpd or somelike utils which can modify hardware clock?

just tried atd with SL-C760, work fine.

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #37 on: December 14, 2005, 02:30:47 am »
I dont have ntp installed.  Im not sure what other packages might effect it.  But at is working great, just need to get the resume for the alarms worked out.  I also tried this package with the tosa image in the rc12/test directory as well.

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

clofland

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • http://www.lofland.net/
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #38 on: December 14, 2005, 10:19:02 am »
Just a quick note on 'at' usage. It took me a while to figure this out, so I thought I'd share it. 'at' is just a shell script. 'cat /usr/bin/at' will make a lot of things clear.

If you want to schedule a job to run 20 minutes in the future, you can just run:

at -f job "$(date -d20minute)"

The 'at' script uses the 'date' command to interpret what you give it, so format your time/date string so that 'date' can handle it, and 'at' will be happy and do the right thing.
[span style=\'font-size:14pt;line-height:100%\']C-760 pdaXrom 1.1.0beta3[/span]
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #39 on: December 14, 2005, 01:57:06 pm »
Quote
Quote
I will echo karlto.  With a clean flash of RC12 atd works fine except it for the wake form suspend issue.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107022\"][{POST_SNAPBACK}][/a][/div]
no running ntpd or somelike utils which can modify hardware clock?

just tried atd with SL-C760, work fine.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107060\"][{POST_SNAPBACK}][/a][/div]

I don't have any of that running either (except atd to try it out).  I have no data to lose at present, so if there is anything you would like me to test, let me know...
SL6000-L, RC12

clofland

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • http://www.lofland.net/
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #40 on: December 14, 2005, 05:10:28 pm »
The 'chat' program, which is run from pppd to make a PPP connection doesn't work when run from an 'at' job.

I can't tell if it is just not sending data to the serial port, or if it doesn't get any response.

Any ideas?

All works fine from any normal script, just not an 'at' job.

Does anyone know a simple way to have pppd drop me to an intereactive session with the serial port, instead of turning the session over to 'chat'?

(This is a BlueTooth connection, if that helps.)
« Last Edit: December 14, 2005, 05:11:41 pm by clofland »
[span style=\'font-size:14pt;line-height:100%\']C-760 pdaXrom 1.1.0beta3[/span]
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #41 on: December 15, 2005, 02:46:29 pm »
Hi all

Still not having any joy with the SL6000 waking up on alarm - I have started a new thread here:

SL6000 Wake On Alarm

as it is starting to get a little off topic here...
SL6000-L, RC12

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #42 on: January 05, 2006, 05:11:42 pm »
Hi!

OK, so thanks for the work of cattin and sashz and others, I think I made a working solution with atd and the ~/.kopi_* files. It's a script for the /etc/apm/ directory. It runs on suspend and resume and makes files in the /var/spool/at directory, so it wakes up the Z before (-10 sec) an alarm event.
This means you still have to have KO/Pi running in the background but let's hope that atd makes everything nicer than apmsleep. You also need atd installed (it's available in the 1.1.0beta1 feeds) and I guess you need a kdepim that is compiled with the sampling rate option '-r ...' removed (for example the one cattin posted in the first post) to play sounds with KO/Pi.
I think that's all.

So, please try it out, give feedback!

 [ Invalid Attachment ]

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

david_dahan

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #43 on: January 07, 2006, 06:47:16 pm »
Quote
Hi!

OK, so thanks for the work of cattin and sashz and others, I think I made a working solution with atd and the ~/.kopi_* files. It's a script for the /etc/apm/ directory. It runs on suspend and resume and makes files in the /var/spool/at directory, so it wakes up the Z before (-10 sec) an alarm event.
This means you still have to have KO/Pi running in the background but let's hope that atd makes everything nicer than apmsleep. You also need atd installed (it's available in the 1.1.0beta1 feeds) and I guess you need a kdepim that is compiled with the sampling rate option '-r ...' removed (for example the one cattin posted in the first post) to play sounds with KO/Pi.
I think that's all.

So, please try it out, give feedback!

 [ Invalid Attachment ]

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


Hi Zumi,

I tryed your package , it works perfectly .

many thanks,
David.
SL-C750 running pdaXrom 1.1.0 Beta1
512MB SD
Linux SuSE 10.0 Laptop + desktop

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Alarms With Kdepim/pi For Rc12 Sl-c3100
« Reply #44 on: January 08, 2006, 03:25:03 am »
Quote
Hi Zumi,

I tryed your package , it works perfectly .

many thanks,
David.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109953\"][{POST_SNAPBACK}][/a][/div]
Thanks for the feedback! I guess this doesn't get enough publicity this way, hidden in the end of this topic.
I think I post a fresh topic about it there must be more people who need this. Five downloads since days? No way.

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!