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.


Topics - clofland

Pages: [1] 2
1
Security and Networking / Wake On Lan (wol) Magic Packet
« on: February 19, 2010, 05:00:15 pm »
Anyone know how to send a WOL Magic Packet from a Zaurus?

2
For Sale / Wanted / Possible Sale: Sl-c760
« on: August 31, 2006, 12:54:01 pm »
Work and life changes have caused me to leave my Z sitting in the case for some weeks, going on months now.

I'm considering selling it with accesories. Here is the list:

Zaurus SL-C760 (FYI: same hardware as 860)
Power adaptor that came with it (100V, 50/60Hz)
- The Japanese use 100V, not 110, but this has been used on 110V here in the US for almost three years with no problems or excessive heat.
USB Cable (The 760/860 do USB client, not host)
Large battery w/ large cover (that comes with the 760
Small custom battery w/ small cover.
- This battery was bought on the forum. It was custom made. It has more power than the normal small battery from sharp. I love being able to make my 760 small, and still get plenty of use from it. Makes it more pocketable
Socket Low Power WiFi card
-Has been tested to work with SHARP Rom, Cacko, and pdaXrom. It probably will work with any ROM.
Socket Low Power Ethernet LAN card (10Mbit, works with all ROMs that I have tried)
Compact Flash 5in1 Adaptor
-This lets you plug 5 other flash cards into the CF slot. I used it for reading SmartMedia cards from my camera, and for copying files from one SD card to another. It is not tiny, it sticks out of the slot quite a bit.
Case Logic case with belt clip that fits very nicely.

I also have a few SD cards. 1gig, 256meg, 128meg. I would be willing to throw one of those in for the right price.

I don't want to Ebay this poor guy. I'd rather see it go to a good home.

I'm not sure what price to ask. Here is a quick break down of the item prices via retail:
SL-C760 - $300 used from Conics.net (I originally paid about $700 for it almost 3 years ago!)
Socket WiFi Card - currently $70 Low price on Froogle
Socket LAN Card - curently $70 Low price on Froogle
Small Battery - Purchased on Forum for $50
Case - $15 (what I paid for it)

Total: $505 not including any SD card.

If you are interested, please make me an offer here or PM me. I won't be offended by any offers, just don't be offended if the offers cause me to decide not to sell it.

I am in the US, but I'll ship anywhere if you want to pay for it.

There comes a DAY, when you don't need a pdA.

P.S. I have the box, Japanese manuals and the CD too.

P.P.S. It is currently running pdaXrom Beta3 quite succesfully, but I am willing to flash any ROM onto it that you want.

[EDIT]: I also have a Belkin IR Keyboard (FBU1500-T) that I use with pdaXrom.

3
Zaurus - pdaXrom / Mplayer 1.0pre8
« on: June 30, 2006, 11:33:05 am »
Mplayer 1.0pre8 is out ( http://www.mplayerhq.hu/design7/news.html ), and it supports some file formats that pre7 did not. Some that I have wanted to use for some months now.

So how do I build mplayer 1.0pre8 for pdaX? Or is there someone that knows how that wants to throw it together for all of us?

4
Zaurus - pdaXrom / Socket Wifi On Beta3
« on: June 21, 2006, 09:55:39 am »
My Socket WiFi card used to work fine, "out of the box," but on Beta3, nothing.

dmesg tells me this:
spectrum_cs: Cannot find firmware: symbol_sp24t_prim_fw
spectrum_cs: Firmware download failed
hermes @ IO 0xf6000000: Timeout waiting for card to reset (reg=0x0000)!
wlan0: failed to initialize firmware (err = -110)
spectrum_cs: register_netdev() failed

Any ideas?

5
Zaurus - pdaXrom / Abiword And Microsoft Word Documents Problem
« on: June 01, 2006, 03:02:09 pm »
Ok, I had to reflash my Z today, so I figured I would use Beta3.

When I open a document in AbiWord that was created with Microsoft Word, the text is ALL question marks.

Anyone have ANY ideas? I've scoured the web and the forums, but it appears it is supposed to "just work."

Thanks for any suggestions.

EDIT EDIT EDIT

FIX:
Remove abiword 2.4.2
Install abiword_2.4.0_armv5tel.ipk from the Beta2 feed here http://zaurus.spy.org/feeds/cacko/pdaXrom/...eta2/c760/feed/

All is happy again.

There is apparently a problem with the abiword 2.4.2 from here http://mail.pdaxrom.org/contrib/1.1.0beta3...s-7x0-860/feed/

I don't know if this will affect Beta4 and on or not.

6
Zaurus - pdaXrom / Pdaxrom Contrib Feed Problem
« on: June 01, 2006, 10:55:00 am »
This feed has some sort of problem:
http://mail.pdaxrom.org/contrib/desertrat/

First of all, it has all of the packages listed twice.

More importantly, though, for some reason, package manager cannot download any packages when you try to install them from the feed. Specifically I tried to install gaim and it said it could not find the file. I was able to download it and install it manually though.

Other feeds on the contrib site seem to work, so it appears to be limitted to desertrat.

Thanks.

7
Zaurus - pdaXrom / Pdax86 On Hard Drive
« on: March 31, 2006, 05:03:53 pm »
Is there a way to put pdaX86 onto the hard drive of a machine, instead of booting it from the CDROM?

Preferably a way to boot from the CD and then install it onto the hard drive from there.

Forgive me if this has been covered, I searched and didn't find anything.

8
Zaurus - pdaXrom / Charge_percentage
« on: March 29, 2006, 10:04:13 am »
What happened to /proc/driver/battery/charge_percentage ???

I was using it in some of my scripts.

Can I bring it back?

If not, what should be used instead?

I see /proc/driver/battery/sharpsl_main_battery_voltage, but I'm not sure how to convert those numbers to a "percent of full" number for my scripts.

The battery meter must be using something, right? I supposed I should go look at the code.

9
Zaurus - pdaXrom / Led From Command Line?
« on: December 19, 2005, 03:50:46 pm »
Is there a way to turn on the green "mail" LED from a script in pdaXrom?

10
Zaurus - pdaXrom / Gnumeric
« on: December 12, 2005, 01:43:16 pm »
Is there a way to tell Gnumeric to hide the toolbars at startup? With such a small screen, I need the real estate, but I hate having to use the menu to hide all three toolbars every time I open a spreadsheet.

Thanks.

11
General Discussion / Speed: C3100 Vs. C760/860
« on: November 10, 2005, 11:27:37 am »
Title says it all. I am considering an upgrade, but wonder if there is any point.

Can anyone who has used both tell me if the C3100 is in any way noticably faster than the 760/860?

I suppose a comparison to the C1000 would be fair also, since they should be the same speed.

Any other flames, bait, etc. about why one should or should not upgrade are certainly welcome. I am looking for advice.

12
Zaurus - pdaXrom / Scripts To Check For New Mail Regularly [long]
« on: November 01, 2005, 12:13:47 pm »
I've spent some time building scripts up so that my Z will check for new mail for me regularly, over either my cell phone w/ bluetooth or any network (WLAN/LAN) it happens to be on.

I thought I would share them with the masses, and solicit any ideas. I consider these very simple, but I know a lot of people either don't have the time, or the knowhow to write even simple scripts, so here they are.

I welcome any criticism or ideas. I don't consider my scripting skills to be anything wonderful, just enough to get by.

So, without further nonsense here goes:

Features:
-Z will check for new mail every 30 minutes via cron.
-The Z will check mail at every wake up.
-The Z will wake up every 30 minutes.
-The Z will not check mail more often than every 15 minutes (mostly).
-By "new mail" what it is checking is
--A. is there MORE mail in the box than last time it checked? If so, then say "new mail" and play a sound.
--B. If not A then is any mail in the box marked as UNREAD? If so, then say "UNread mail" and play a different sound.

Requirements:
-Must install hc-cron from the unstable feed if you want to have it check regularly, even when awake, otherwise it will only check at wakeup time.
-Fetchmail is just a binary, I put it in /usr/sbin/ I'll attach it to this message. I didn't compile it, I just ripped it out of an IPK meant for some other ROM.
-I also put the two wav files into /home/root/sounds/ which I will attach Of course you can use your own and alter the script to find them anywhere

Scripts and commands: (I've tried to comment them heavily)

This is the core of the "system":
(be sure to make this executable)
(FIND REFERENCES TO "domain" and change the hostname and IP's to your mail server!)
(Same for PASSWORD and USERID!)
/home/root/checkmail
(please be aware of line wraps your browser may put in)
Code: [Select]
#! /bin/bash
echo `date` checkmail run>>/home/root/checkmail.log
#It does keep a small log for debugging I find this useful to tell if it is waking up regularly to check mail
if [ "$1" != LIVE ]; then sleep 15; fi
#I find that if it starts too soon after wakeup it often fails Thus the sleep
#If I want it to not sleep I can put LIVE on the command line to make it hurry up
if ! grep -q mail\.domain\.net /etc/hosts; then echo 127.0.0.1 mail.lofland.net>>/etc/hosts;fi
#I find that DNS resolution often fails the first time over my cell phone connection
#Plus that eats up time and bits if you are charged either way
#So I just make sure the IP is in the hosts file and that elliminates DNS resolution
if ! grep -q mail\.domain\.net /home/root/.fetchmailrc; then echo poll mail.domain.net protocol IMAP user YOURUSERID with password YOURPASSWORD is root here>>/home/root/.fetchmailrc;fi
#These are the settings fetchmail needs I just have them set up automatically
#so that we do not have to worry about making sure we copy the file over
#NOTE if you do not use IMAP or need some other changes to how fetchmail works
#here is where to put them
#Google for fetchmail to find all of the options It is very powerful
chmod 710 /home/root/.fetchmailrc
#fetchmail complains if the perms are not just so on this file so I just set
#them each time to ellinate any possibility of fetchmail failing for this reason
touch /home/root/chdialing
#I had trouble with running over myself by trying to dial out when the script
#had already dialed out or it trying to dial out when I was already online
#This little system tries to overcome that
#it requires I use the script dial to connect and hangup to disconnect
#the GUI in pdaXrom does not work for me so I use these scripts
if [ ! -f /home/root/mandialing ] && [ ! -f /home/root/stonline ]
then    
    echo ch dialing>>/home/root/checkmail.log
    /usr/sbin/pppd -d
fi
#pppd actually dials the connection
#notice that if there is no bluetooth card is in the CF slot then pppd has no affect
#and the script continues on and tries with whatever connection it may or
#may not have
#which is just what I want
cd /home/root
if [ ! -f savenum ]
then
echo "0">savenum
fi
#savenum is where we save the results of the last mail check
oldnum=`cat savenum`
nums=`/usr/sbin/fetchmail -f /home/root/.fetchmailrc -k -c 2>/dev/null | tr -d '(' | cut -f1,3 -d' '`
#there is the meat of the script where fetchmail does the actual work
#again GOOGLE for the fetchmail man page and see the options
#it is very powerful and can work with almost any mail account POP or IMAP
echo `date` $nums>>/home/root/checkmail.log
currentnum=`echo $nums | cut -f1 -d' '`
readnum=`echo $nums | cut -f2 -d' '`
if [ "X$currentnum" != X ]; then
echo $currentnum>savenum
if [ $currentnum -gt $oldnum ]
then
 echo "New mail!"
 /usr/X11R6/bin/xmessage -display :0.0 -default okay -c New Mail &
 /usr/bin/esdplay /home/root/sounds/tinkalink2.wav
 #mplayer /opt/kdepimpi/kdepim/korganizer/koalarm.wav >/dev/null 2>&1
elif [ $currentnum -gt $readnum ]
 then
 /usr/bin/esdplay /home/root/sounds/reminder.wav
 /usr/X11R6/bin/xmessage -display :0.0 -timeout 30 -default okay -c UNREAD Mail &
 echo "UNREAD Mail"
else
 echo "No new mail . . ."
fi
else
 echo "Fetchmail ERROR"
fi
if [ ! -f /home/root/mandialing ] && [ ! -f /home/root/stonline ]
then
    echo ch hanging up>>/home/root/checkmail.log
    /etc/ppp/ppp-off
fi
rm -f /home/root/chdialing

That is the main script, and you can actually use that to check mail manually and test if it all works.

If you want your Z to wake up ever 30 minutes and do this, add these:

/etc/apm/wakeup.d/five
(make sure to make it executeable)
(you can really name it anything)
Code: [Select]
echo -n 30Of course, just change the number to make it wake up more or less often

/etc/apm/resume.d/300checkmail
(make it executable)
Code: [Select]
#! /bin/bash
echo `date` 300checkmail run>>/home/root/checkmail.log
if [ ! -f /home/root/savenum ]
    then
    /home/root/checkmail &
elif [ "`find /home/root -maxdepth 1 -name savenum -mmin +15`" = "/home/root/savenum" ]
    then
    /home/root/checkmail &
fi
Notice that it is going to use the timestamp on savenum to avoid checking more often than every 15 minutes. That way if you wake it up 3 times in 20 minutes, you don't get a mail check 3 times.

Now, if you have installed hc-cron from the mix, then you can also add a cron job so that it will do this every 30 minutes (or what you like) when it is not asleep (for instance while you are actually working on the Z)

First, hc-cron looks for vi in /usr/bin/ but it is in /bin so to make cron tab happy I just do this:
Code: [Select]
ln -s /bin/vi /usr/bin/viNow, to set up the cron job just type:
Code: [Select]
crontab -eAnd put in this line (change the number for different interval):
Code: [Select]
*/30 * * * * /etc/apm/resume.d/300checkmail
All set!

Finally, three helper scripts I use.

/home/root/dial
(I use this to dial out, and it keeps checkmail from running into my connections)
(make it executable)
Code: [Select]
touch /home/root/mandialing
if [ ! -f /home/root/chdialing ] && [ ! -f /home/root/stonline ]; then pppd -d;fi
touch /home/root/stonline
rm -f /home/root/mandialing

/home/root/hangup
(this is used to end my connection, again, without running into checkmail)
(make it executable)
Code: [Select]
if [ ! -f /home/root/chdialing ] && [ ! -f /home/root/mandialing ]; then /etc/ppp/ppp-off;fi
rm -f /home/root/stonline
rm -f /home/root/mandialing

Finally I have linked this script to my mail key on the Z. It connects for me, opens sylpheed, and then when it is done, it runs checkmail, so that it is "in sync" with what I just saw, and will give an accurate reading next time, and then it hangs up.

/home/root/mailkey
(make it executable)
Code: [Select]
/home/root/dial
sylpheed
/home/root/checkmail LIVE
/home/root/hangup

NOTES:
I had to put a lot of direct paths in the scripts, b/c cron runs with a very limitted path. I found things worked great everywhere except for under cron, so I just put full paths on everything and then cron is happy.

The system does NOT put the Z back to sleep. I just rely on the self timers to do that for 3 reasons:
-1. I don't know how to let the script know if IT waked up the machine (via apmsleep) or if I woke up the Z. I don't wantit shutting it back down every time I turn it on.
-2. The auto sleep timers work well. I have not had any excess battery drain from this.
-3. The Z gets really funny if you wake and sleep cycle it too fast, too often. So I preferr to let it stay awake until the auto sleep timer hits it.

I'm impressed if you have read this far. Please add any feedback you may have. I know this isn't pdaXrom specific, but it only works on pdaXrom (I tried for a long time on SHARP ROM and could not make it go.)

13
Zaurus - pdaXrom / Test -f Behaves Oddly After Cd Command
« on: October 14, 2005, 10:52:31 am »
Write this script:

cd /bin
if (test -f joe);then echo yes1;fi
if (test -f joe);then echo yes2;fi

and run it. (You can use any dir, it doesn't have to be /bin)

There is NO file called "joe" in my /bin directory, but I always get "yes1" but not "yes2"

Is this some known bash or Linux issue where you always get a false possitive on a test -f after you do a cd command?

This causes some of the built in scripts like /etc/ppp/ppp-off to throw out errors sometimes.

14
Zaurus - pdaXrom / Cut & Paste - Scite & Aterm
« on: October 13, 2005, 04:56:20 am »
Can anyone tell me how to cut from SciTE and paste it into aterm? I can go the other way around, but not from SciTE to aterm.

Seems silly, but I just can't make it work.

Thanks for any input, this would make life so much easier.

Feel free to suggest other text editors too if you want. I just stumbled on SciTE, and it seems cool (although it is slow).

15
Zaurus - pdaXrom / Apmsleep Freeze On Resume
« on: October 12, 2005, 12:42:28 pm »
Has anyone else found that upon resume, apmsleep (apmsleep is only called if you give the Z a "maximum sleep time" by puting a file in /etc/apm/wakeup.d) hangs for a while upon resume, which, in turn, causes matchbox to freeze?

I see it discussed in a few threads, but they all seem to indicate that it is fixed.

It doesn't seem to hang the system itslef, I can still SSH into it, and if I suspend from the console, the problem isn't even noticeable (though apmsleep is still hung in the background upon resume, it doesn't affect the console, only X). Also, all keystrokes are cached and as soon as apmsleep "let's go" they hit matchbox.

The only way out is to wait (up to 3 to 5 minutes it seems) after I resume or to SSH in and "kill -HUP" the apmlseep process, which unfreezes everything instantly.

Any idea what is causing this? Why does apmsleep hang upon resume, and why is X (or matchbox, I'm not sure where one ends and the other begins) held at a standstill by apmsleep, while everything in the background (network services, SSH, the console) are not?

What is really troublesome, is that it didn't seem to really start happening until after I installed ntpd. I removed ntpd, but the problem persists.

I had similar issues if I issued an ntpdate command from within X. The system would immediately suspend, and then, when I brougth it back up (if it didn't immediately suspend again) it woud hang for 3 to 5 minutes before becoming responsive.

Maybe apmsleep just has a very strong aversion to correct system time?

I tried putting a & at the end of the apmsleep line in /usr/bin/apm, which works well in console mode, allowing apm to finish upon resume, just leaving apmsleep in the background to do its thing or be killed later. However, if you suspend from within X, everything is in slow motion upon resume, with X taking up 99% of the CPU. X stays that way forever, long after apmsleep has finally gone away.

So, again, why won't apmsleep go away upon resume, and, regardless, why does X freeze until apmsleep goes away, while the console and background services keep on working fine?

Here is what I get if I put the --debug option onto apmsleep in the /usr/bin/apm file:

Good suspend resume cycle:

Current RTC time is 16:28:39.
Current local time is 11:28:38.
Setting RTC alarm time to 16:58:39.
RTC alarm time now set to 16:58:39.
Waiting until clock jumps
(system suspends)
(resume system with on/off button)
Time leap detected

Bad cycle (apmsleep hangs:

Current RTC time is 16:28:39.
Current local time is 11:28:38.
Setting RTC alarm time to 16:58:39.
RTC alarm time now set to 16:58:39.
Waiting until clock jumps
(system suspends)
(resume system with on/off button)
(apmsleep hangs for a while, hanging the apm script and X)
Time out -- no time leap happened

From reading the man page for apmsleep, it appears that the timeout is 60 seconds, so for some reason, sometimes when I manually resume, apmsleep gets the hint and takes that as a "time leap," but sometimes it doesn't take the hint, and just waits for a built in timeout. That is my guess anyway.

Pages: [1] 2