OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Ko/pi Alarm Applet Needed
scoutme
post Jul 25 2005, 01:44 AM
Post #1





Group: Members
Posts: 579
Joined: 19-April 04
Member No.: 2,912



Does anyone know how to obtain it?
Go to the top of the page
 
+Quote Post
pgas
post Jul 25 2005, 02:28 AM
Post #2





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



One way is :

- compile the atd daemon from (http://handhelds.org/cgi-bin/cvsweb.cgi/apps/atd/)
- compile and find out how the qcop for X11/opie works (http://handhelds.org/cgi-bin/cvsweb.cgi/opie/x11/libqpe-x11/qt/)
- hack the qalarm daemon from qtopia so that it works with the above qcop
- rewrite the applet for matchbox and the above
- modify the ko/pi build for the desktop so that it uses the above

Another way would be to write an applet that uses the atd daemon directly, write some custom inter-process communication and modify ko/pi to use this....

And other things like this (like modify the atd daemon so that it communicates directly with kopi, write a custom daemon...)

in short it requires a bit of work.

(Please correct me if I am wrong and if there is a more simple way that I completely missed)
Go to the top of the page
 
+Quote Post
Chero
post Jul 25 2005, 05:12 AM
Post #3





Group: Members
Posts: 1,141
Joined: 22-April 04
From: Belgium
Member No.: 2,962



Hello,

I thought I read somewhere that kopi alarms now (version 2.x.x) work on linux desktop.
Does pdaX act as a linux desktop ? So maybe with the new version the alarms will work on pdaX.

Chero.
Go to the top of the page
 
+Quote Post
pgas
post Jul 25 2005, 06:12 AM
Post #4





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



I think alarms work on the desktop version in that if you have kopi open it gives you an alert.

On qtopia, the alarm can wake up the Z and start ko/pi.

(maybe while setting up an alarm, it is possible to set an alarm with at to wake the Z up and start ko/pi)

Though I might be wrong
Go to the top of the page
 
+Quote Post
Chero
post Jul 25 2005, 11:01 AM
Post #5





Group: Members
Posts: 1,141
Joined: 22-April 04
From: Belgium
Member No.: 2,962



I wonder what would happen on the Z, if you have this version (> 2.1.0) of kopi running and the Z suspended.

Chero
Go to the top of the page
 
+Quote Post
scoutme
post Jul 25 2005, 04:25 PM
Post #6





Group: Members
Posts: 579
Joined: 19-April 04
Member No.: 2,912



gonna try if kopi can wake up the Z

I'll let you know
Go to the top of the page
 
+Quote Post
Bundabrg
post Jul 25 2005, 09:19 PM
Post #7





Group: Members
Posts: 183
Joined: 7-September 04
Member No.: 4,501



QUOTE(scoutme @ Jul 26 2005, 12:25 AM)
gonna try if kopi can wake up the Z

I'll let you know
*


Doesn't work, at least for me.
If anyone knows how to 'wake' the Z then it shouldn't be too difficult to retrieve the next alarm from ko/pi, and I'll be happy to give it a go.

I suspect (though I may be wrong ;-) that under QT it does the following just before it suspends: -
- Check when the next alarm is? (1440 seconds away...)
- Tell apm to wake in 1440-10 seconds
- Tell apm to suspend

...
- apm wakes Z
- alarm applet gets triggered since its open

- Bundabrg
Go to the top of the page
 
+Quote Post
Bundabrg
post Jul 31 2005, 12:09 AM
Post #8





Group: Members
Posts: 183
Joined: 7-September 04
Member No.: 4,501



Ok, to 'wake' after a sleep you need to apmsleep command. I've seen another thread about this some day. I'm going to apt-get it in my debian chroot and play around.

- Bundabrg

QUOTE(Bundabrg @ Jul 26 2005, 05:19 AM)
QUOTE(scoutme @ Jul 26 2005, 12:25 AM)
gonna try if kopi can wake up the Z

I'll let you know
*


Doesn't work, at least for me.
If anyone knows how to 'wake' the Z then it shouldn't be too difficult to retrieve the next alarm from ko/pi, and I'll be happy to give it a go.

I suspect (though I may be wrong ;-) that under QT it does the following just before it suspends: -
- Check when the next alarm is? (1440 seconds away...)
- Tell apm to wake in 1440-10 seconds
- Tell apm to suspend

...
- apm wakes Z
- alarm applet gets triggered since its open

- Bundabrg
*

Go to the top of the page
 
+Quote Post
macwiz
post Aug 1 2005, 03:34 PM
Post #9





Group: Members
Posts: 151
Joined: 15-March 04
From: UK
Member No.: 157



Any update on this? I really want my Z to have an wake-up/alarm function. This is one of the reasons my Z languishes unused for over long periods. I know people say that their Z is like a mini laptop... and it is fantastic, but I also want it to be pda too.

Oooh, dodgy ground here I think... but the alarm function is a big thing for me. If a crappy little £10 data bank can buzz me, why can't my Z?

Please tell me it can and that I am talking utter drivel.

J
Go to the top of the page
 
+Quote Post
Bundabrg
post Aug 1 2005, 04:54 PM
Post #10





Group: Members
Posts: 183
Joined: 7-September 04
Member No.: 4,501



apmsleep actually works ;-). As mentioned in the other thread, if you use apmsleep from a terminal window (or indeed, directly call 'apm --suspend'), when you resume the pda is very slow and unresponsive till you suspend and resume the normal way.

When you suspend using xset, ie by doing the following: -
CODE
xset dpms force off


Then it does something, and calls 'apm --suspend' as its last step. It seems to work fine.

I have already modified /usr/bin/apm to call run-parts on a directory of files when suspending. However if you edit /usr/bin/apm, and instead of getting it to call 'apm.x --suspend' to perform the suspend, you call 'apmsleep +00:01', it will go to sleep, wake up a minute later and it works fine.

SO... what needs to be done is as follows: -
1. Modify /usr/bin/apm to call something else to checks the calender (and perhaps a few other things) for the next event that occurs. Work out how many minutes/seconds away, or work out the absolute time.

2. If no event at all, then call 'apm.x --suspend'.

3. If there is an event, then call 'apmsleep +relative' or 'apmsleep absolute' in /usr/bin/apm

4. The pda will wake up at that time, and the event will trigger the alarm.

5. Probably be good to have some way of when being woken by event (rather than by user) it is re-suspended in a shorter time (say 30 seconds). Havn't worked out a good way of doing that yet since apm doesn't seem to be called on resume.


Anyway, mooch point for me for the moment since for some obscure reason KOPI doesn't actually play audibly any alarms on my C860. If I set the alarm as a procedure alarm that calls a script that calls 'play blah', it plays the sounds, but not otherwise.

- Bundabrg



QUOTE(macwiz @ Aug 1 2005, 11:34 PM)
Any update on this? I really want my Z to have an wake-up/alarm function. This is one of the reasons my Z languishes unused for over long periods. I know people say that their Z is like a mini laptop... and it is fantastic, but I also want it to be pda too.

Oooh, dodgy ground here I think... but the alarm function is a big thing for me. If a crappy little £10 data bank can buzz me, why can't my Z?

Please tell me it can and that I am talking utter drivel.

J
*
Go to the top of the page
 
+Quote Post
leskimo
post Aug 3 2005, 01:47 AM
Post #11





Group: Members
Posts: 33
Joined: 9-May 04
Member No.: 3,016



A bit off-topic - where can I find kopi/kdepim >2.1.0 (precompiled) for pdax..?

leskimo
Go to the top of the page
 
+Quote Post
Bundabrg
post Aug 3 2005, 02:21 AM
Post #12





Group: Members
Posts: 183
Joined: 7-September 04
Member No.: 4,501



Hmm, I suppose I should attach apmsleep, since its not included in pdaXrom at the moment. I pulled this directly from my debian chroot, and it has no other dependencies that are unmet in a standard pdaXrom install.

Just ungzip it, and copy to /usr/bin.

- Bundabrg
Attached File(s)
Attached File  apmsleep.gz ( 4.33K ) Number of downloads: 30
 
Go to the top of the page
 
+Quote Post
danr
post Aug 3 2005, 07:16 AM
Post #13





Group: Members
Posts: 138
Joined: 12-February 04
Member No.: 1,830



QUOTE(Bundabrg @ Aug 2 2005, 12:54 AM)
Anyway, mooch point for me for the moment since for some obscure reason KOPI doesn't actually play audibly any alarms on my C860. If I set the alarm as a procedure alarm that calls a script that calls 'play blah', it plays the sounds, but not otherwise.

- Bundabrg


I think the bit that plays a wave file is in kalarmd/alarmdialog.cpp, and the command is

CODE
QString command = "playwave -r 22050 " + mFileName;


Recently I had a binary, 'play', which would play wav files (seems to have disappeared from my system now), so when I changed the line to call 'play', the alarm worked fine.

Dan
Go to the top of the page
 
+Quote Post
gromituk
post Aug 3 2005, 07:52 AM
Post #14





Group: Members
Posts: 207
Joined: 22-June 04
Member No.: 3,783



QUOTE(danr @ Aug 3 2005, 07:16 AM)
I think the bit that plays a wave file is in kalarmd/alarmdialog.cpp, and the command is

CODE
QString command = "playwave -r 22050 " + mFileName;

*


Ooh good tip. This, of course, means that you can create a file in /usr/local/bin called playwave, containing
CODE
play $3

Make it executable, and it should allow alarms to play without recompiling ko/pi, should it not?
Go to the top of the page
 
+Quote Post
danr
post Aug 3 2005, 11:54 PM
Post #15





Group: Members
Posts: 138
Joined: 12-February 04
Member No.: 1,830



QUOTE(leskimo @ Aug 3 2005, 09:47 AM)
A bit off-topic - where can I find kopi/kdepim >2.1.0 (precompiled) for pdax..?

leskimo
*


I have attached the latest version here.

Dan
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th December 2014 - 06:31 AM