Author Topic: Gpe Pim Apps  (Read 207331 times)

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Gpe Pim Apps
« Reply #165 on: September 23, 2006, 01:25:33 am »
I linked one that was alrewdy installed...... now it segfaults.  somebody have the right sqlite package?
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Gpe Pim Apps
« Reply #166 on: September 23, 2006, 02:06:55 pm »
I linked the wrong lib file.
When I typed this:
Code: [Select]
ln -s /usr/lib/libsqlite.so /usr/lib/libsqlite.so.0Now it works.
« Last Edit: September 23, 2006, 05:09:13 pm by Antikx »
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Gpe Pim Apps
« Reply #167 on: September 23, 2006, 05:22:41 pm »
Quote
I linked the wrong lib file.
When I typed this:
Code: [Select]
ln -s /usr/lib/libsqlite.so /usr/lib/libsqlite.so.0Now it works.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142127\"][{POST_SNAPBACK}][/a][/div]
i only have libsqlite3.so ... no plain libsqlite.. I think maybe I need a different version
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Gpe Pim Apps
« Reply #168 on: September 23, 2006, 05:37:45 pm »
Quote
Quote
I linked the wrong lib file.
When I typed this:
Code: [Select]
ln -s /usr/lib/libsqlite.so /usr/lib/libsqlite.so.0Now it works.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142127\"][{POST_SNAPBACK}][/a][/div]
i only have libsqlite3.so ... no plain libsqlite.. I think maybe I need a different version
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142133\"][{POST_SNAPBACK}][/a][/div]
Did you try the one from the oldbetas folder?
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Gpe Pim Apps
« Reply #169 on: September 23, 2006, 05:44:08 pm »
Quote
Quote
Quote
I linked the wrong lib file.
When I typed this:
Code: [Select]
ln -s /usr/lib/libsqlite.so /usr/lib/libsqlite.so.0Now it works.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142127\"][{POST_SNAPBACK}][/a][/div]
i only have libsqlite3.so ... no plain libsqlite.. I think maybe I need a different version
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142133\"][{POST_SNAPBACK}][/a][/div]
Did you try the one from the oldbetas folder?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142135\"][{POST_SNAPBACK}][/a][/div]
Honestly I don't remember... probably not, though, since I added Xromer's feed pretty late in my setup.  I'll mess with it a little and see
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Gpe Pim Apps
« Reply #170 on: September 25, 2006, 07:10:36 pm »
I've done an:
Code: [Select]
ipgk install atd...because the alarm wasn't going off.
Now my pdaxrom beta 3 exhibits the tiresome power on -> screen flickers -> power off (on it's own).

My alarms go off now (without sound) if gpe-calendar is running in the background.

Questions:
#1: Is there an atd (that works with gpe-calendar) that doesn't cause this anoying power off issue?
#2: Sound was working in gpe-calendar but now is not. any clues?

thanks.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Gpe Pim Apps
« Reply #171 on: September 25, 2006, 07:34:08 pm »
Quote
I've done an:
Code: [Select]
ipgk install atd...because the alarm wasn't going off.
Now my pdaxrom beta 3 exhibits the tiresome power on -> screen flickers -> power off (on it's own).

My alarms go off now (without sound) if gpe-calendar is running in the background.

Questions:
#1: Is there an atd (that works with gpe-calendar) that doesn't cause this anoying power off issue?
#2: Sound was working in gpe-calendar but now is not. any clues?

thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142291\"][{POST_SNAPBACK}][/a][/div]
1) I have never experienced issues with atd itself. The latest gpe-calendar seems to be broken (see above), but that's not related to this either. The only thing I can think of that would cause your problem would be any old apm scripts that are fighting with atd (e.g. with atd running sltime doesn't work because it can't access the rtc - check /etc/apm/ stuff)

Have you got a backup of the working gpe-calendar version? The new one is nicer, but without working alarms...

2) Sound is the domain of gpe-announce, which is only involved when using atd for alarms. The latest gpe-calendar has its own little inbuilt notification which doesn't seem to use sound at all (and as you've noticed, only works when gpe-calendar is running)
SL6000-L, RC12

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Gpe Pim Apps
« Reply #172 on: September 26, 2006, 08:14:59 am »
Quote
1) I have never experienced issues with atd itself. The latest gpe-calendar seems to be broken (see above), but that's not related to this either. The only thing I can think of that would cause your problem would be any old apm scripts that are fighting with atd (e.g. with atd running sltime doesn't work because it can't access the rtc - check /etc/apm/ stuff)

Have you got a backup of the working gpe-calendar version? The new one is nicer, but without working alarms...

2) Sound is the domain of gpe-announce, which is only involved when using atd for alarms. The latest gpe-calendar has its own little inbuilt notification which doesn't seem to use sound at all (and as you've noticed, only works when gpe-calendar is running)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142294\"][{POST_SNAPBACK}][/a][/div]

Thanks for the reply.

#1
Code: [Select]
ls -R /etc/apm

/etc/apm/resume.d:
100carfctl  110hwclock  110openbox

/etc/apm/scripts.d:
cardctl  hwclock  openbox  smbfs  template

/etc/apm/suspend.d:
110hwclock  500smbfs  900cardctl  910openbox

/etc/apm/wakeup.d:
readme
I'm new to working with apm, so please let me know if the above looks ok.

I installed gpe-calendar from the oldbeta's folder. Is this the one you speak of (without working alarms) or are you talking about the beta4 folder? Or are you saying that there are olfer copies (that have since been removed from the contrib feed) that have alarms working? Sorry I'm a little confused.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Gpe Pim Apps
« Reply #173 on: September 26, 2006, 03:39:16 pm »
Quote
Thanks for the reply.

#1
Code: [Select]
ls -R /etc/apm

/etc/apm/resume.d:
100carfctl  110hwclock  110openbox

/etc/apm/scripts.d:
cardctl  hwclock  openbox  smbfs  template

/etc/apm/suspend.d:
110hwclock  500smbfs  900cardctl  910openbox

/etc/apm/wakeup.d:
readme
I'm new to working with apm, so please let me know if the above looks ok.

I installed gpe-calendar from the oldbeta's folder. Is this the one you speak of (without working alarms) or are you talking about the beta4 folder? Or are you saying that there are olfer copies (that have since been removed from the contrib feed) that have alarms working? Sorry I'm a little confused.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142341\"][{POST_SNAPBACK}][/a][/div]
As far as the working alarms go - do they? Mine don't, but I have just realised that it could be the changes I made to the 'at' script, so that might be my fault...

Suspend problems - earlier versions of pdaXrom (or some hardware versions?) had problems resuming from suspend with the time being wrong which stuffed everything up - when apm and atd are heavily time-reliant, we see why. I've never had a problem on my SL6000 though, so I don't use any of those fixes. Try one of two things:

1) Remove the 110hwclock (just make /etc/apm/scripts/hwclock not executable) so it doesn't try to set the time on suspend and resume - it can't because atd has the clock locked.

2) If the above doesn't work or your clock is suddenly wrong, try adding another script to stop atd on suspend and start it on resume. Have a look at the other scripts for an idea on how to do this (they're pretty basic).
SL6000-L, RC12

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Gpe Pim Apps
« Reply #174 on: September 27, 2006, 08:32:09 am »
Quote
As far as the working alarms go - do they? Mine don't, but I have just realised that it could be the changes I made to the 'at' script, so that might be my fault...

Suspend problems - earlier versions of pdaXrom (or some hardware versions?) had problems resuming from suspend with the time being wrong which stuffed everything up - when apm and atd are heavily time-reliant, we see why. I've never had a problem on my SL6000 though, so I don't use any of those fixes. Try one of two things:

1) Remove the 110hwclock (just make /etc/apm/scripts/hwclock not executable) so it doesn't try to set the time on suspend and resume - it can't because atd has the clock locked.

2) If the above doesn't work or your clock is suddenly wrong, try adding another script to stop atd on suspend and start it on resume. Have a look at the other scripts for an idea on how to do this (they're pretty basic).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142386\"][{POST_SNAPBACK}][/a][/div]
Before I read your post, I did a NAND restore, because uninstalling atd didn't help.

Do you have a copy of the at script before you edited it?
I'll consider trying your suggestion if you don't have a copy.
I may just have to be content without alarms.

Man... IMO pdaXrom needs a speedy PIM suite with working alarms (right out of the box), like Sharp, Cacko, and OZ. Just my 2 cents.
« Last Edit: September 27, 2006, 08:38:28 am by Antikx »
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Gpe Pim Apps
« Reply #175 on: September 27, 2006, 03:46:38 pm »
Quote
Before I read your post, I did a NAND restore, because uninstalling atd didn't help.

Do you have a copy of the at script before you edited it?
I'll consider trying your suggestion if you don't have a copy.
I may just have to be content without alarms.

Man... IMO pdaXrom needs a speedy PIM suite with working alarms (right out of the box), like Sharp, Cacko, and OZ. Just my 2 cents.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142453\"][{POST_SNAPBACK}][/a][/div]
My suggestions above are just an attempt to stop your suspend/resume problem.

The at script before I edited it is the default one that comes in the atd package (it's not a real program in the stripped down version, just a script to put files in the right directory). It turns out this isn't the problem anyway; gpe-calendar is definitely at fault as it doesn't even call at directly any more! It gets 99% of the way there, so I'm working on a script to wrap gpe-calendar - it just cleans up the atd spool files each time the calendar is closed (almost works, and guarantee I'll get it right soon).

If you wanted to go back to kopi (I don't, it's too slow) I believe there is a package in one of the contrib feeds that does a similar thing with atd scripts. I figure I may as well do the same thing with gpe-calendar as it'll be plenty reliable enough.

If we could convince Xromer to jump back to beta1/beta3 and recompile gpe-calendar so it works again, we would have a nice out of the box solution, as atd and gpe-calendar work nicely together. Please Xromer?
SL6000-L, RC12

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Gpe Pim Apps
« Reply #176 on: September 27, 2006, 06:34:04 pm »
Here is my rough wrapper script:

Code: [Select]
#!/bin/sh

CALENDAR_CMD=/usr/bin/gpe-calendar
ALERT_SND=/opt/kdepim-2.2.7/kdepim/korganizer/koalarm.wav
PLAY_CMD=/usr/bin/play
PLAY_REPEAT=3
REPEAT_PAUSE=3
AT_SPOOL=/var/spool/at
CALL_CALENDAR=$(pwd)/$0

$CALENDAR_CMD

COUNTER=1
ALERT_CMD="$PLAY_CMD $ALERT_SND"
while [ $COUNTER -lt $PLAY_REPEAT ]; do
        ALERT_CMD="$ALERT_CMD && sleep $REPEAT_PAUSE && $PLAY_CMD $ALERT_SND"
        let COUNTER=COUNTER+1
done

ATFILES=$(find $AT_SPOOL/ -name "*-0")
for FN in $ATFILES; do
        if [ -n "$(cat $FN | grep gpe-calendar)" ]; then
                AFN=$(echo $FN | awk '{ print substr($1,0,length($1)-2); }')
                echo "#!/bin/sh" > $AFN
                echo "" >> $AFN
                echo "export DISPLAY=:0" >> $AFN
                echo "$ALERT_CMD &> /dev/null &" >> $AFN
                echo "sleep 3" >> $AFN
                echo "$CALL_CALENDAR &> /dev/null &" >> $AFN
                echo "" >> $AFN
                echo 'rm -f $0' >> $AFN
                rm $FN
                chmod 755 $AFN
                echo >$AT_SPOOL/trigger
        fi
done

Just adjust the settings at top to suit yourself, and run this instead of gpe-calendar directly, and you have alarms!

What it does: runs gpe-calendar, then when finished, tidies up any atd scripts created (that are incomplete and won't work). It replaces these with ones that play a sound and open the calendar. Obviously you can change this to do something else if you prefer. Watch out as I discovered atd silently fails unless output is redirected and commands are disconnected (' &> /dev/null &' works every time).

Disclaimer: only tested with latest gpe-calendar in Xromer's feed (oldbetas), probably won't work with other versions, use at your own risk, etc. Although the worst that can happen is that alarms still don't work...  

Edit: added an extra sleep line which seems to help when running calendar on wakeup from suspend...
« Last Edit: September 27, 2006, 06:43:14 pm by karlto »
SL6000-L, RC12

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Gpe Pim Apps
« Reply #177 on: September 28, 2006, 03:07:32 pm »
cool! I'm going to do a NAND backup tnite and give it a try. thanks!
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Gpe Pim Apps
« Reply #178 on: September 28, 2006, 11:40:42 pm »
Ya! It works! thanks!
I'm using /usr/bin/mpg123 instead of /usr/bin/play and an mp3 file instead of a wav file, but other that that I didn't change anything.

P.S. I think I fixed my time issue by using desertrat's script:
https://www.oesf.org/forums/index.php?showt...ndpost&p=137824
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Gpe Pim Apps
« Reply #179 on: September 28, 2006, 11:50:22 pm »
Quote
Ya! It works! thanks!
I'm using /usr/bin/mpg123 instead of /usr/bin/play and an mp3 file instead of a wav file, but other that that I didn't change anything.

P.S. I think I fixed my time issue by using desertrat's script:
https://www.oesf.org/forums/index.php?showt...ndpost&p=137824
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142622\"][{POST_SNAPBACK}][/a][/div]
Cool - I think that desertrat's script implements one of my suggestions above - does this fix the suspend when resuming problem too?

This is why Linux suits me so well - don't even need to be able to program to fix broken apps!
SL6000-L, RC12