QTextended 4.4.1, alarms and unsuspending

Franky Van Liedekerke liedekef at telenet.be
Sun Oct 5 21:05:36 CEST 2008

On Sun, 5 Oct 2008 20:04:28 +0200
Franky Van Liedekerke <liedekef at telenet.be> wrote:

> For those curious: I seem to have been able to fix the echo issue by
> setting the following
> in /usr/share/openmoko/scenarios/gsmhandset.state "Mono Playback
> Volume" => 85 I lost the original state file, but I used this one as
> base:
> http://lists.openmoko.org/pipermail/community/2008-October/032337.html
> Now only the alarm clock issue remains (in my case). I will force
> myself to use the phone as regular phone for one day

For the alarm, I just did some testing: it seems atd behaves as it
should, and since the phone unsuspends on time, I decided to play
around a bit. So I created a shell script:
# unsuspend
echo "0" >/sys/devices/platform/neo1973-pm-gsm.0/flowcontrolled
# let unsuspend sink in a bit
sleep 15
# now play a sound
export LD_LIBRARY_PATH=/opt/Trolltech/Qtopia/lib/
/opt/Trolltech/Qtopia/bin/mediaplayer /opt/Trolltech/Qtopia/sounds/alarm.wav
# sleep 5 secs and play it again
sleep 5
/opt/Trolltech/Qtopia/bin/mediaplayer /opt/Trolltech/Qtopia/sounds/alarm.wav
# remove it from spool dir, so it won't launch again
rm $0

Then I copied this script to /var/spool/at, renamed it to the time I
want it to start (perl is your friend here to convert time to epoch
seconds) and triggered at (echo >>/var/spool/at/trigger).
Now I let my phone suspend, and on the time I want it, the phone
unsuspends, waits exactly 15 secs (scripted) and then plays the wav
files as intended.
So this leads me to believe that the method used in the alarm clock
is either broken or not adjusted to work with later qtopia versions.


More information about the community mailing list