Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ulutte

Pages: [1]
1
Zaurus - pdaXrom / Pdaxi13 : Safer Apm Suspend On Akita
« on: August 01, 2007, 03:11:30 pm »
Quote
Quote
Isn't this dangerous when swap is heavily used?
I have heard and experiences myself that when unmounting a used swap, not all contents can be swapped back into memory and the system hangs.

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

I agree... and if there aren't issues... suspends will become VERY lengthy...

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

Yes, your are right, turning off the swap might not be a good idea in case of heavy load. But suspending in this situation is in general not a good idea...

From a general point of view, I prefer a lengthy suspend than a buggy resume. When there is heavy traffic on the SD card while suspending, I experimented some timeout issues from the SD driver that yield I/O errors on the ext2 filesystem. This is very bad and could corrupt the data. Of course, the real culprit is the proprietary SD driver that is apm unaware. The best solution would be to have a better driver. I suggest here only a quickand dirty workaround.

Of course other suggestions are welcome ...

2
Zaurus - pdaXrom / Pdaxii13 : Kernel Crash When E2fsck On Boot
« on: July 31, 2007, 05:11:00 pm »
Hi,

I tried to make an automated e2fsck on my ext2 /dev/mmcda2 partition on boot (in the script "/etc/sdcard/sd_mem_ctrl2". The check was running without problem. But after in the boot sequence, when launching CF services, I had some kernel page fault errors in dmesg. I could not make any connection between the two but the problem was deterministic : by uncommenting the e2fsck, the oopses disappeared...very strange.

Someone experimented such behavior ? May have done some mistake ?

More generally, is the 2.6 kernel stable on the Zaurus ? ; especially with respect to the SD driver (no more timeouts ?).

Thanks for your feedback,
Ulutte.

3
Zaurus - pdaXrom / Pdaxii13 : Jff2 Is Not Noatime By Default
« on: July 31, 2007, 05:00:15 pm »
Hi,

On the C1000 install, the root filesystem is not mounted with the "noatime" option by default. Since this makes periodic read/write accesses to the filesystem this could yield premature wearing of the NAND.

To avoid this, simply add the lines :

# Remounting root with noatime atribute
mount -o remount,noatime / 2>/dev/null >/dev/null

in "/etc/rc.d/rc.sysinit" just after :

if [ ! -f /etc/rc.d/rc.rofilesys -o ! -x /etc/rc.d/rc.rofilesys ];then  
    action "Mounting filesystem:" mount -o remount -w %root% / 2>/dev/null >/dev
/null
else
    #action "Starting filesystem:" /etc/rc.d/rc.rofilesys
    . /etc/rc.d/rc.rofilesys
fi

Best,
Ulutte

4
Zaurus - pdaXrom / Pdaxi13 : Safer Apm Suspend On Akita
« on: July 31, 2007, 04:52:50 pm »
Hi,

I have modified the scripts in /etc/apm in order to :

1. umount the swap on /dev/mmcda3
2. stop the processes accessing /mnt/card and /mnt/card2 on the SD card
2 remount /mnt/card and /mnt/card2 RO
 ... when suspending

and doing the opposite when resuming.

My config :

SD card : partition 1 DOS partition 2 ext2 partition 3 swap
pdaxii13 on C1000 "ipk-batch-install.tgz" install method.

I added the script "fs" in  /etc/apm/scripts.d/ :

#! /bin/bash
#
# fd
#
# Ensures there is no IO on the SD card before suspending
# in order to avoid data dorruption

DOS_MNTPT_ON_SD=/mnt/card
DOS_DEVICE_ON_SD=/dev/mmcda1
EXT2_MNTPT_ON_SD=/mnt/card2
EXT2_DEVICE_ON_SD=/dev/mmcda2
SWAP_DEVICE_ON_SD=/dev/mmcda3

# See how we were called.
 
suspend() {
  # Turn swap off.
  swapoff $SWAP_DEVICE_ON_SD >/dev/null 2>/dev/null
 
  # Remount dos data partition RO.
  fuser -k -SIGSTOP -m $DOS_MNTPT_ON_SD >/dev/null 2>/dev/null
  mount -o remount,ro $DOS_MNTPT_ON_SD >/dev/null 2>/dev/null
 
  # Remount ext2 data partition RO.
  fuser -k -SIGSTOP -m $EXT2_MNTPT_ON_SD >/dev/null 2>/dev/null
  mount -t ext2 -o remount,ro $EXT2_DEVICE_ON_SD $EXT2_MNTPT_ON_SD >/dev/null 2>/dev/null

  # Syncing all devices
  sync
  sleep 2
 
  return 0
}

resume() {
  # Turn swap on.
  swapon $SWAP_DEVICE_ON_SD >/dev/null 2>/dev/null
 
  # Remount dos data partition RW.
  mount -o remount,rw $DOS_MNTPT_ON_SD >/dev/null 2>/dev/null
 
  # Remount ext2 data partition RW.
  mount -t ext2 -o remount,rw $EXT2_DEVICE_ON_SD $EXT2_MNTPT_ON_SD >/dev/null 2>/dev/null
 
   # Syncing all devices
  sync
  sleep 2
 
  # Resuming all processes
  fuser -k -SIGCONT -m $DOS_MNTPT_ON_SD >/dev/null 2>/dev/null
  fuser -k -SIGCONT -m $EXT2_MNTPT_ON_SD >/dev/null 2>/dev/null
 
  return 0
}


case "$1" in
  suspend)
        suspend
        ;;
  resume)
        resume
        ;;
  *)
        echo "Usage: $0 {suspend|resume}"
        exit 1
esac

exit $?

I put these two links pointing to "fs"

In /etc/apm/suspend.d : 920fs
In /etc/apm/resume.d : 001fs

Seems to work reliabely. Needs to be tested and adapted to your config. It is not very generic but gives some hints to avoid these nasty IO errors on the filesystem when resuming.

Best,
Ulutte

5
Zaurus - pdaXrom / Pdaxii13: Nedit Launch Script
« on: July 31, 2007, 04:36:56 pm »
Hi,

nedit is IMHO the best editor available with pdaxii13.
Unfortunately, it has a bug that prevents to launch it on a remote X server.

This is the workaround :

1. mv nedit nedit.bin
2. Create the new nedit script :
#!/bin/bash
export XLIB_SKIP_ARGB_VISUALS=1
/usr/bin/nedit-bin -xrm '*visualID: default' -xrm '*fontList: -misc-fixed-medium-r-normal--14-110-100-100-c-70-iso8859-1' $* >/dev/null 2>/dev/null

3. chmod a+x /usr/bin/nedit

You should also end up with nicer fonts on the menus.

Ulutte

6
Zaurus - pdaXrom / Pdaxii13 : Some Apps Wont Launch From Desktop
« on: July 31, 2007, 03:07:39 pm »
Hi,

I'm running pdaxii13 on akita and I'm using the matchbox WM withour rox.

I have a pretty curious behavior of firefox. It will start when using the menu but not when using the desktop icon. Why ??? When you hit the desktop icon, firefox runs for a while then stops suddenly, without a message. I tried to trace this error : but no luck. When I try to use "strace" on firefox-bin it works !!! Also when I plug "strace" on firefox while it -p option while it is still running it works. I'm giving up. If some of you folks could give me a tip, I would be utmostly gratefull.

Best,
Ulutte

PS: some similar problem with korganizer. But here, the program don't start with the menu nor with the desktop icon, only in a terminal. Ideas ???

Pages: [1]