Poll

When your Zaurus first boots up (on normal use), how much memory are you using?  (type "free" in the Terminal)

I don't know
0 (0%)
0-10 MB
2 (14.3%)
10-20 MB
6 (42.9%)
20-30 MB
4 (28.6%)
30-40 MB
2 (14.3%)
Over 40 MB
0 (0%)
N/A.  I don't own a Zaurus
0 (0%)

Total Members Voted: 4

Author Topic: TaskManager in Linux? Freeing up memory and reducing...  (Read 7867 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
TaskManager in Linux? Freeing up memory and reducing...
« Reply #15 on: May 13, 2004, 07:26:59 am »
In the meantime try something like (assuming this is the command you use):

./stratagus -d /mnt/cf/War2/data.wc2 &] logfile.log

Then after you reboot take a look in logfile.log


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
TaskManager in Linux? Freeing up memory and reducing...
« Reply #16 on: May 13, 2004, 03:21:46 pm »
How do you boot directly to command prompt in QTopia linux?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
TaskManager in Linux? Freeing up memory and reducing...
« Reply #17 on: May 13, 2004, 03:41:44 pm »
I tried:

Code: [Select]
./stratagus -d /mnt/cf/War2/data.wc2 &> /mnt/cf/logfile.txt

(since I don\'t have write permissions in /home/QtPalmtop/bin ).

(First time I forgot to add the \"&\" and the logfile.txt was empty.  What does \"&\" tell linux to do?)

After the crash the logfile.txt now contains:


Code: [Select]
Display size = 480x640

could not open translation file /home/QtPalmtop//i18n/zh_TW/libsl.qmid

filename:/home/QtPalmtop/lib/fonts/arial_140_50_t10.qpf

fontName:lcfont , size:10

Can\'t load the sound `neutral/units/warthog/selected/1.wav\'

Can\'t load the sound `neutral/units/warthog/annoyed/1.wav\'

Can\'t load the sound `human/units/alleria/acknowledgement/1.wav\'

Can\'t load the sound `orc/units/teron_gorefiend/acknowledgement/1.wav\'

Can\'t load the sound `human/units/kurdan/acknowledgement/1.wav\'

Can\'t load the sound `orc/units/dentarg/acknowledgement/1.wav\'

Can\'t load the sound `human/units/khadgar/acknowledgement/1.wav\'

Can\'t load the sound `orc/units/grom_hellscream/acknowledgement/1.wav\'

Can\'t load the sound `orc/units/deathwing/acknowledgement/1.wav\'

Can\'t load the sound `human/units/turalyon/acknowledgement/1.wav\'

Can\'t load the sound `human/units/danath/acknowledgement/1.wav\'

Can\'t load the sound `orc/units/korgath_bladefist/acknowledgement/1.wav\'

Can\'t load the sound `human/units/alleria/selected/1.wav\'

Can\'t load the sound `human/units/danath/selected/1.wav\'

Can\'t load the sound `human/units/khadgar/selected/1.wav\'

Can\'t load the sound `human/units/kurdan/selected/1.wav\'

Can\'t load the sound `human/units/turalyon/selected/1.wav\'

Can\'t load the sound `orc/units/deathwing/selected/1.wav\'

Can\'t load the sound `orc/units/dentarg/selected/1.wav\'

Can\'t load the sound `orc/units/grom_hellscream/selected/1.wav\'

Can\'t load the sound `orc/units/korgath_bladefist/selected/1.wav\'

Can\'t load the sound `orc/units/teron_gorefiend/selected/1.wav\'

Can\'t load the sound `human/units/alleria/annoyed/1.wav\'

Can\'t load the sound `human/units/danath/annoyed/1.wav\'

Can\'t load the sound `human/units/khadgar/annoyed/1.wav\'

Can\'t load the sound `human/units/kurdan/annoyed/1.wav\'

Can\'t load the sound `human/units/turalyon/annoyed/1.wav\'

Can\'t load the sound `orc/units/deathwing/annoyed/1.wav\'

Can\'t load the sound `orc/units/dentarg/annoyed/1.wav\'

Can\'t load the sound `orc/units/grom_hellscream/annoyed/1.wav\'

Can\'t load the sound `orc/units/korgath_bladefist/annoyed/1.wav\'

Can\'t load the sound `orc/units/teron_gorefiend/annoyed/1.wav\'

QT_GetMachine: /proc/deviceinfo/product is \'SL-C860

 a{@0e{@@e{@\'

 detected machine is \'Sharp SL-C860\'

QT_GetRotation: Read spec from \'/tmp/qtembedded-zaurus/QtEmbedded-0.spec\'

 spec is \'Transformed:Rot270:Vga:0\'

 Rot=3, Qvga=0

QT_SetVideoMode: SL-C700 Style is Input style

QT_SetVideoMode: argSize=640x480

QT_SetVideoMode: qteSize=640x480

QT_SetVideoMode: fbSize=480x640

QT_SetVideoMode: qteRotation=3

QT_SetVideoMode: userRotation=-1

QT_SetVideoMode: sdlRotation=3

QT_SetVideoMode: qteKeyRotation=3

QT_SetVideoMode: sdlKeyRotation=3
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
TaskManager in Linux? Freeing up memory and reducing...
« Reply #18 on: May 13, 2004, 03:57:38 pm »
Quote
How do you boot directly to command prompt in QTopia linux?


Tony -

Try:

http://www.zaurususergroup.com/index.php?n...ht=boot+command

http://www.zaurususergroup.com/index.php?n...ht=boot+options


I think one of those may have the info.


RW
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
TaskManager in Linux? Freeing up memory and reducing...
« Reply #19 on: May 13, 2004, 04:43:26 pm »
Ok... you reboot the Zaurus, select \"Yes\" to close everything, and then hold down \"D\" and \"B\" forever until the console shows up after the boot.

...but it won\'t let me run stratagus.  I\'ll continue this in the WarCraft thread...  Thanks!  

http://www.zaurususergroup.com/index.php?n...c&p=25302#25302
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
TaskManager in Linux? Freeing up memory and reducing...
« Reply #20 on: May 13, 2004, 08:32:07 pm »
If you want to get rid of the qtopia overhead, then just kill qpe.

as root

echo a ] /home/sharp/etc/launch.default
killall qpe

The screen will og black then you will be left with a login prompt - login as root (or zaurus if you want).
You might also need to killall qserver (or qeserver - can never remember - check with ps ax) then you should be able to start stratagus - if it is a SDL game and complins of no qeserver then don\'t kill qesever,

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
TaskManager in Linux? Freeing up memory and reducing...
« Reply #21 on: May 13, 2004, 08:40:33 pm »
As I mentioned in another thread, booting via the D+B mode doesn\'t boot into the normal filesystem - you will need to mount /dev/mtdblock3 to access any qtopia stuff

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
TaskManager in Linux? Freeing up memory and reducing...
« Reply #22 on: May 14, 2004, 05:30:06 am »
This app needs to use Qtopia I assume (from reading the log file output), or is this just the version of SDL which it\'s using?

] redirects stdout
&] redirects stdout and stderr

The log hasn\'t given me any ideas I should add.

Sorry,

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
TaskManager in Linux? Freeing up memory and reducing...
« Reply #23 on: May 14, 2004, 11:10:44 am »
Thanks!

I tried all of these.  None of them worked, but now I have more knowledge about Linux.  Thanks.

This is a much nicer & easier way to get to the console... thanks.

I get many socket errors when running stratagus from this mode.  It appears to be tied into the SDL libraries, and \"ps\" only shows \"sh\" and \"ps\".  Is there a way to load the SDL libraries without QTopia?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
TaskManager in Linux? Freeing up memory and reducing...
« Reply #24 on: May 14, 2004, 02:41:02 pm »
You\'d need SDL libs specifically compiled to use the framebuffer directly I assume.

I don\'t even know whether such a beast exists.


Si

P.S. You could try using gdb and strace to step through the program and try to work out exactly where it goes wrong....
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva