Re: N810 and Garmin GLO ?

2012-10-29 Thread Andrew Daviel

On Fri, 19 Oct 2012, Andrew Daviel wrote:

I just read a review of the Garmin GLO GPS/GLONASS
receiver. Looks pretty good.


I'm assuming it would work with Maemo Mapper on my N810, a lot better than 
the built-in chip which can have appalling acquisition times, and sucks 
power.


Well, I bought the thing. Works fine with my E71 phone, and I thought it 
didn't with the N810 but then it started working when I changed the GPS 
settings in the control menu (as opposed to in maemo mapper). The 
passcode for pairing seems to be 1234 but it's not documented.


I'm not sure about power drain - I'm not sure the internal chip is really 
turned off (the icon is on). It's certainly more sensitive and faster to 
acquire than the builtin.




--
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


N810 and Garmin GLO ?

2012-10-19 Thread Andrew Daviel


I just read a review of the Garmin GLO GPS/GLONASS
receiver. Looks pretty good.

I'm assuming it would work with Maemo Mapper on my N810, a lot better 
than the built-in chip which can have appalling acquisition times, and 
sucks power.


Anyone know any different ?

https://buy.garmin.com/shop/shop.do?pID=109827

--
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: cellphone tether works from N810 but not laptop

2012-09-20 Thread Andrew Daviel

On Wed, 22 Aug 2012, Valeri Galtsev wrote:


Hi Andrew,

Fedora 9 in awfully old... Try boot off live CD with latest Fedora (17).
If Fedora 17 behaves, it may be lime to upgrade system on laptop ;-)


Thanks for the reply - which I'm ashamed to say I've only just got around 
to reading after getting back from vacation and catching up on work email 
first.


Yes I know FC9 is old - I often follow the if it ain't broke don't fix 
it philosophy, and the laptop is not my primary computer and still runs 
Firefox and gphoto2 and mplayer just fine ...


I may try your suggestion of a LiveCD - though I suspect around town I'd 
have trouble finding a weak enough signal. The problem appeared when I 
was sailing on my boat miles from any cell towers.


I had the same kind of message (at least, tethering didn't 
work) in Nokia's PC Suite software on Vista on the same laptop. So it's 
not just Fedora 9 with the problem. I was wondering if anyone had any 
insight into differences between the N810 and x86 Linux networking 
software that might explain what I was seeing


Andrew




Good luck!

Valeri
On Wed, August 22, 2012 5:47 pm, Andrew Daviel wrote:

I have a Nokia E71 phone, an N810 and a laptop
  running Fedora Core 9. The laptop has Bluetooth, also a USB cable to
connect to the E71.

If I have a good signal, I can use the packet data interface on the phone
itself, or on the N810 via Bluetooth to get an Internet connection.
But the laptop does not always work. Close to a tower, if I use the cable
and select 'PC Suite' mode on the phone, the Gnome network app shows a
wireless connection and syslog talks about ttyACM0 and activating my
connection.
Further away from a tower, the connection does not show in the app and
syslog says 'ignoring due to lack of mobile broadband capability'

I had naively thought the two devices used the same capability on the
phone.

Does anyone know what the problem is, and if it's possible to get a
connection on the laptop at greater distance ?


___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


cellphone tether works from N810 but not laptop

2012-08-22 Thread Andrew Daviel

I have a Nokia E71 phone, an N810 and a laptop
 running Fedora Core 9. The laptop has Bluetooth, also a USB cable to 
connect to the E71.


If I have a good signal, I can use the packet data interface on the phone 
itself, or on the N810 via Bluetooth to get an Internet connection.
But the laptop does not always work. Close to a tower, if I use the cable 
and select 'PC Suite' mode on the phone, the Gnome network app shows a 
wireless connection and syslog talks about ttyACM0 and activating my 
connection.
Further away from a tower, the connection does not show in the app and 
syslog says 'ignoring due to lack of mobile broadband capability'


I had naively thought the two devices used the same capability on the 
phone.


Does anyone know what the problem is, and if it's possible to get a 
connection on the laptop at greater distance ?



--
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Using phone as modem

2011-04-02 Thread Andrew Daviel

On Sat, 26 Mar 2011, Andrew Daviel wrote:



Somewhat off-topic, but I suspect there's the expertise on this list.


For the benefit of any search engines or other curious entities, I solved 
this. Sort of. Fedora 9 with the Nokia E71 phone just worked using the 
USB cable (which I'd left at home) using Gnome Networkmanager.
Over Bluetooth, that was ignored but I could use rfcomm to talk to the 
modem and then pppd with chat to establish a connection, same as for my 
old phone with cable. My N810 uses ATD*99***1# but ATD*99# works fine; I 
guess a cid of 1 is the default.


I didn't manage to get it to work under Windows; the Nokia OVI suite 
contains a big list of APNs and dial codes for hundreds of cellular 
networks around the world, including Rogers, but failed to connect for 
some reason even though it appeared to use the same settings as worked on 
Linux. I see that they now have a separate APN for tethering, though 
the internet.com APN still works for my N810 and laptop.


Somewhat documented at http://andrew.daviel.org/nokiaE71-linux.html

I haven't tried talking to the modem directly from the N810; a while ago 
with my old phone I found I could get signal strength and cell ID from 
the phone and used that to make a map, basically just for fun.


--
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Using phone as modem

2011-03-26 Thread Andrew Daviel


Somewhat off-topic, but I suspect there's the expertise on this list.

A while ago I had a Nokia 6820 phone which I had working as a modem from 
a Linux laptop with a USB cable and pppd.
Then I had it working with an N810 over Bluetooth. Then the laptop was 
stolen and I lost the phone. Now I have a Nokia E71 phone on the same 
carrier. When I paired the new phone with the N810 the modem connection 
worked.


I have a new laptop (Dell inspiron 1525) with a Bluetooth card. I'd like 
to use that with the 
phone, too, but I'm not sure how. It's got Fedora Core 9. I assume if the 
N810 can connect then the laptop ought to be able to


Any suggestions ?

--
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


N810 slow since rebooting

2010-08-15 Thread Andrew Daviel


My N810 seems really slow since yesterday. It had run down (nothing 
unusual there) and after I recharged it it seemed to run very slow.
I wondered if it was short on space in /, so I deleted some files and 
regained several Mb, but that did not help.
I had been suspicious of the battery, which did not seem to keep as much 
charge as when new, and did not run the SD card properly when at low 
charge (maemo-mapper reports unable to write map database), so
I bought a new battery. It is still slow: sometimes it will not respond 
to menu taps, or the system menu is not shown.


I am seeing:
$ free
  total used free   shared  buffers
  Mem:   126796   124944 18520   60
 Swap:   131064   10748023584
Total:   257860   23242425436

$top (by CPU)
Mem: 124592K used, 2204K free, 0K shrd, 60K buff, 3552K cached
Load average: 5.10 5.46 3.90
  PID USER STATUS   VSZ  PPID %CPU %MEM COMMAND
  289 root SW0 6  3.9  0.0 kondemand/0
  119 root SW0 6  2.1  0.0 kswapd0
 1752 user RW  1960  1437  1.9  1.5 top
...
(by memory)
  PID USER STATUS   VSZ  PPID %CPU %MEM COMMAND
 1303 user DW  128M   354  0.0103.4 alarmd
 1451 user SW 87992 1  0.0 69.2 maemo-mapper
 1399 user DW 67292  1383  0.0 52.9 browserd
 1383 user SW 40104 1  0.0 31.5 browserd
 1042 user DW38852  1012  0.0 30.5 maemo-launcher
...

There are no unusual user tasks running - no memory/CPU hogs that I am 
aware of.


I cannot remember what is normal, e.g. if it is usual for alarmd to show 
such a large virtual size.


I have tried rebooting several times, and power-cycling by removing the 
battery, but it is still slow.


Any suggestions ?

--
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Looking for gps logger for n810

2009-07-28 Thread Andrew Daviel
On Sat, 11 Apr 2009, Tuukka Tolvanen wrote:

 gpsbabel does filters and conversion, e.g. for a decent gmapsible track, 
 gpsbabel -i gpx -f bleh.gpx -x simplify,error=.05k -o kml,units=m -F bleh.kml

Thanks; found it in Yum.

gpsbabel -i gpx -f old.gpx -x simplify,error=1m -o gpx -F new.gpx
seems to work nicely to remove redundant midpoints from Maemo Mapper 
tracks, at least if what I want to do is plot them, e.g. input to
merkaartor for OSM.


 ...now I'm reminded I have a lag filter patch sitting around somewhere that 
 does the acceleration points along a straight line thing too, whereas the 
 filters I've found in gpsbabel only deal with the shape of the track. Should 
 dig that up...

For tagging photos I'd want to preserve the time information (and maybe 
in general, elevation too), i.e. only remove midpoints if they can be 
reconstructed by linear interpolation. Is that what you mean ?

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


FYI - possible GPS degradation in next few years

2009-05-21 Thread Andrew Daviel

It is uncertain whether the Air Force will be able to acquire new 
satellites in time to maintain current GPS service without interruption.

http://www.gao.gov/products/GAO-09-670T


Where does this leave the wide span of military, civil, and other user of 
GPS? If the Air Force does not meet its schedule goals for development of 
GPS IIIA satellites, there will be an increased likelihood that in 2010, 
as old satellites begin to fail, the overall GPS constellation will fall 
below the number of satellites required to provide the level of GPS 
service that the U.S. government is committing to providing. The 
performance standards for both (1) the standard positioning service 
provided to civil and commercial GPS users and (2) the precise 
positioning service provided to military GPS users commit the U.S. 
government to at least a 95 percent probability of maintaining a 
constellation of 24 operational GPS satellites. Because there are 
currently 31 operational GPS satellites of various blocks, the near-term 
probability of maintaining a constellation of at least 24 operational 
satellites remains well above 95 percent. However, DOD predicts that over 
the next several years many of the older satellites in the constellation 
will reach the end of their operational life faster than they will be 
replenished, and that the constellation will, in all likelihood, decrease 
in size. Based on the most recent satellite reliability and launch 
schedule data approved in March 2009, the estimated long-term probability 
of maintaining a constellation of at least 24 operational satellites 
falls below 95 percent during fiscal year 2010 and remains below 95 
percent until the end of fiscal year 2014, at times falling to about 80 
percent. See figure 1 for details.

(Fig 1 shows an 85% chance of sub-optimal performance through 2013)


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


N810 hanging in USB host mode

2009-05-07 Thread Andrew Daviel

I finally reinstalled scratchbox after upgradingthe OS on my desktop 
(64-bit Fedora Core 9, now need vdso32=0 kernel parameter as per docs)
and had a go at compiling gphoto2.
Which worked :-)

However, my tablet keeps locking up in USB host mode, then (AFAIK) the 
watchdog reboots it.

One time, I was able to take a photo and download it using 
lunkwill-canon-capture from libgphoto2 examples. But in general, USB 
access is fatal.
I have the camera connected via 2 cables and an F-F adapter. The camera 
shows as self-powered in lsusb -v

When I was running Chinook, I was able to quite reliably access a small 
USB memory stick directly (but now I can't find it). And I have a cheap 
powered hub that I believe I could use to access larger SD cards via an 
adapter. Now, under Diablo, I can't see anything on the hub at all. It 
works OK on my desktop.

Having it almost work is quite frustrating. I would like to use the 
tablet to trigger the camera on a tripod, and downloading images via 
cable is less messy than transferring a micro SD card.


Linux Nokia-N810-23-14 2.6.21-omap1
usbutils 0.72-8osso2
usbcontrol 1.0
libusb-0.1-4 2:0.1.12-5osso1
gphoto2-2.4.5
libgphoto2-2.4.5


Any suggestions ?

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


xdaliclock

2009-05-07 Thread Andrew Daviel

Having got scratchbox reinstalled and trying hello-world, I found
an old X11 app that was really simple to build, and maybe even useful.
I wasted a bit of time making taller digits.

Sorry, I didn't make a proper Debian package or installer. It starts from 
the command line and has no special dependencies or requirements.

Now you can turn your $400 tablet into a $4 desk clock :-)
Leave it on the charger and set the backlight on full-time.

(It would be nice to redo this in 3D and colour, with integrated alarms, 
chiming the hour etc. but that's way beyond my skill...)

http://andrew.triumf.ca/N810/xdaliclock-arm.tar.gz

Source code, 2 ARM binaries

On my desktop, I can find system fonts in xlsfonts or xpaint, and say 
e.g.
xdaliclock -fn '-urw-urw palladio l-bold-r-normal-*-*-880-*-*-p-*-iso8859-*'
but on the tablet I can't find a font chooser. The builtin font works OK.

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Office document support

2009-05-06 Thread Andrew Daviel
On Fri, 17 Apr 2009, Rainer Dorsch wrote:

 Does anybody know what is the status of viewing MS office and openoffice
 documents on the N810?

At some point I was playing with OpenOffice server mode. It's broken 
right now, but the idea was if you wanted to view an office document on 
the tablet, and it was on the Web already, you passed the URL to a 
web service URL and it returned a PDF


 If that is unfeasible right now, what would be a good alternative? EeePC? Or
 is there something more portable?

I got my daughter an Acer Aspire One. That fits nicely in a small 
backpack or large handbag, and comes with OO. While my N810 fits in my 
pocket..

At one point (before OO) I was using strings and a Tk scroller, which 
would let me read most Word 97 documents. At least, the ones that should 
have been sent as a text message, not the ones with lots of graphics and 
tables. There were things like antiword and catdoc as well which did 
a slightly better job.

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Tweaking flite vocabulary in maemo-mapper

2009-04-13 Thread Andrew Daviel

I installed Flite to speak directions in maemo-mapper, but I can't 
understand what it's saying half the time. There isn't AFAIK a button to 
press to make it repeat the phrase, either.

It is using a fairly limited set of words (turn, left, etc.) taken from 
Google directions (apart from street names, that is). I was wondering if 
it was possible to adjust the pronunciation of these common words, or 
even to steal sound bites from e.g. navigator.
I had an idea that something was possible in rsynth (precursor to 
festival), or by mis-spelling words to lengthen vowels etc.
The docs for Festival suggest that all sorts of things are possible, if 
only I understood Lisp :-)

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Looking for gps logger for n810

2009-04-04 Thread Andrew Daviel
On Sun, 29 Mar 2009, Mark Haury wrote:

 Waypoints/POIs can be entered by just
 tap-holding and in the resulting menu click on Tap Point-Add POI...

Thank you for this .. seems the obvious tabletty thing to do so of course 
I didn't think of it. I'd prefer a hardware button record the current 
position as a waypoint as on my Garmin (press and hold enter as I 
recall) but don't think it appears in the config. Insert a track break 
does, which I recently assigned to a key, and the position can be pulled 
out of the track GPX with a little effort.

Re. the original question, I have a script which stores a track in a 
binary tree database which I can later interrogate to find where I was at 
a given time, i.e. the timestamp on a digital photo.

One thing is it takes ages to save the track from maemo-mapper (I guess 
convert from some internal format to GPX) so you want to do it often. I 
mean, every day or so. My Garmin has limited RAM and so an 
auto-filter feature for tracks. I'm not sure exactly what it does, but in 
principle if you are going mostly in a straight line at constant speed 
you need only save the acceleration/turn points. My photo script does 
interpolation to guess the actual position.
I was trying to write a filter to post-process mapper tracks but it's 
crude. Probably there are tools out there but I haven't looked; I tend to 
write my own in Perl and make maps in XFig.


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


command-line for Bluetooth copy ?

2009-03-23 Thread Andrew Daviel

Is there a simple command that can be used with rsync to send files 
to/from the tablet over Bluetooth ?

At home I give everything static ip addresses and names, and have SSH 
keys set up, so rsync/scp works transparently (at work, too).

I have tried using ad-hoc mode on my laptop, but if it's using managed 
mode to e.g. a hotel network that's not possible without a second NIC. My 
new laptop has Bluetooth which works nicely but only from a GUI - on the 
tablet I must move things into ~/MyDocs/ or /media/mmc* to find them, and 
I have to always send not upload/download.

(actually, I wonder why the BT implementation on Linux needed to reinvent 
the wheel, and could not just appear as another transport layer like Ethernet 
or FDDI. Then scp/ssh/smb etc. would just work.)


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


FYI - dot tel domain = contact info in DNS

2009-03-23 Thread Andrew Daviel

I spent the departmental doughnut budget on a .tel domain, thinking it 
would be a good idea. Maybe it will. I guess it depends how many people 
get on board, as usual.


The .tel root servers are visible, and one can query them, but the 
delegation is missing. Unless I misunderstood and that's deliberate

$ host -a yahoo.tel a0.cth.dns.nic.tel.
yahoo.tel.  60  IN  TXT .tsm 1 pddx 1
yahoo.tel.  60  IN  NAPTR   1 1 u E2U+web:http 
!^.*$!http://www.yahoo.tel!; .

I feel I was somewhat misled by Network Solutions. I thought it was going 
to be another TLD like .org, .info etc. with a normal Web page.
But no - it's a way of putting contact information into the DNS so it can be 
easily parsed by lightweight clients in cellphones etc. It seems to be 
aimed at the mobile generation for personal use (central repo for 
AIM/jabber/cell/email etc.), but also for businesses.


https://telhosting.networksolutions.com/vfs/pdf/telguide.pdf
http://dev.telnic.org

I've managed to enter a few basic things in triumf.tel

As to what this has to do with Maemo, one of the contact fields is a 
GPS* location

Also there is an API and development community. So far, tools for iPhone, 
Outlook. I only looked briefly but I think the intent is that you can 
update information dynamically using the API. Otherwise there is a wizard 
at telnic.org that updates the DNS in what seems like real time.
TTL is set to 1 hour, negative caching to 10 minutes.


(* using GPS as my cellular carrier seems to now, as a 
shorthand for geographic location in WGS84 coordinates rather than 
Global Positioning System).

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Maemo-mapper and Google Satellite

2009-03-18 Thread Andrew Daviel

Recently, maemo mapper won't download Google Satellite images for me. 
Existing tiles in the database are OK. I rebuilt the database but no joy.
Tcpdump says the tile requests are getting 404 not found.

Did Google change something to keep us out, or is it just some unrelated 
upgrade that broke Mapper ?

The other satellite views are OK, but I believe not such good resolution.

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


digital clock to 0.1s accuracy

2009-03-14 Thread Andrew Daviel

Last week the US and Canada changed to Daylight Savings Time.
Usually, I set my wristwatch from my computer (which uses NTP)
then wander around the house resetting all the clocks, correcting any 
drift accumulated over the last 6 months.

This year I thought it would make more sense to use my tablet, which uses 
NTP directly. Normally I type date in an xterm. Then I was thinking 
what if it says 09:04:03 when it's really 09:04:03.99 ?. (which the GUI 
clock apps presumably handle).
Then  Can I display better than 1 second accuracy ?

So, after rejecting a version that just sat in a tight loop, I have one 
that microsleeps until the next 1/10th second.

#!/usr/bin/perl

use Time::HiRes qw( gettimeofday usleep )  ;
$| = 1 ;
system(ntptrace -n -m 1); # check accuracy before starting
while (1) {
   $t = gettimeofday() ;
   $t2 = $t * 10 ;
   $it = 1 + int($t2) - $t2 ;  # time left till next tick
   ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($t);
   $dsec = $sec + $t-int($t) ;
   printf(%2.2d:%2.2d:%04.1f\r,$hour,$min,$dsec) ;
   $dt = usleep ($it*10) ;
}


I can't remember where ntpdate came from. One of the repositories, I 
think. ntptrace is written in Perl and was missing Getopt/Std.pm 
out-of-the-box. I found it in scratchbox and copied it across.
Also Time/HiRes.pm, Time/HiRes/HiRes.so.
/etc/ntp.conf seemed to be missing from ntpdate, and I think needs to be
set for ntpd to lock (unless it can find a multicast stream, maybe).
I have
driftfile /var/lib/ntp/drift
server 0.ca.pool.ntp.org dynamic
server 1.ca.pool.ntp.org dynamic

Maybe this has all been done before in a nice GUI. I didn't look; 
simple things I find it easier to just script.

It also works as a kind of split timer - hitting return when it's 
running leaves the time on the previous line.


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Twitter shell for N810 ?

2009-03-09 Thread Andrew Daviel
On Wed, 4 Mar 2009, Matt Emson wrote:

 Andrew Daviel wrote:
 Is there a Twitter client for the tablet ?
 
 Mauku. I wrote a simple one in Mono that works 
 up to a point on the NIT, but Mauku is the way 
 to go.

I just installed that, and signed up to try Jaiku.
But it's a GUI. What I'm looking for is something one can script, like 
Perl Net::Twitter with perhaps less overhead.

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Nokia device usage

2009-03-05 Thread Andrew Daviel
 to the point that the 
CPU load is below 100%, so you don't have dropped frames.

I think I used
mencoder dvd://5 -oac twolame -twolameopts br=64 -ovc lavc -lavcopts 
vcodec=mpeg4:aspect=4/3:vbitrate=512 -vf scale=480:288 -idx -ffourcc DIVX 
-quiet -o jackjack2.avi

 If Maemo Mapper would use the *vector* OSM data

Navit. Well, that reads Garmin vector data. Yes, it would be nice if 
Maemo Mapper folded in the Navit code.

-- 
Andrew Daviel, TRIUMF,Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Twitter shell for N810 ?

2009-03-04 Thread Andrew Daviel

Is there a Twitter client for the tablet ?

I presume that it works fine in the browser, but I was thinking to send 
GPS location automatically. (e.g. when sailing alone, last known 
position xxx)
For my desktop I found a Perl module, but it needs a lot of CPAN stuff 
including JSON modules which might be a problem on the tablet.

Alternatively, I can use gnokii with my cellphone to send an SMS. Which 
might actually be easier, though a Web API would also work when on WiFI.


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


FYI - Gizmo (SIP) to Skype gateway

2009-02-19 Thread Andrew Daviel

If you didn't see this ...

Now that I think about it, I believe both Gizmo and Skype applications 
bundled with the N810 are teasers to download the real application. I'm 
not sure which works better; I've not really tried either for real. 
Gizom has video calling, while Skype did not last I tried.


-- Forwarded message --
Date: Sat, 14 Feb 2009 04:16:56 UT
From: Gizmo5 tryit...@gizmo5.com
Subject: Now call Skype users from Anywhere with OpenSky!

Now call Skype users from anywhere with OpenSky!

Gizmo5 is now providing a free SIP to Skype gateway called OpenSky which will
allow anyone from any SIP device or SIP soft client to easily make calls to
Skype users.

For more info go to: http://gizmo5.com/opensky

As an example, you can now call user johnsmith on Skype just by dialing
johnsm...@opensky.gizmo5.com. Dial echo...@opensky.gizmo5.com now to connect
to Skype's echo line. Skype has 400 million registered users, an entire new
audience you can now call for free!

Call SIP to Skype for FREE
up to 5 minutes
Or get UNLIMITED calls to Skype with purchase of OpenSky for $20

Calls 1-5 minutes are free. Unlimited number of longer calls can purchased for
$20 per year and includes 1333 aliases you can setup at my.gizmo5.com.
Want to see all the ways you can use OpenSky?

 * See our video demonstrations at gizmo5.com/opensky
 * Make a test call right now from your browser at gizmocall.com

go to http://my.gizmo5.com


___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Control digital camera ?

2009-01-27 Thread Andrew Daviel

Is there gphoto2 or similar PTP code for the N810 ?

I have a Canon Powershot SX100IS camera which one can control via USB.
It would be nice to use the tablet as a trigger if doing long exposures 
on a tripod. My old SLR had a mechanical trigger port to screw in a cable 
or pneumatic trigger to avoid camera shake when pushing the shutter 
release, but the digital camera has only USB.

Of course, I suspect that the camera USB power requirement exceeds the
power budget on the tablet, so I'd need a powered hub, hence external 
power and more cables, so might as well just use a regular laptop.
AA-battery powered hub, anyone ?

If I just wanted to get photos off, it might be easier to use a micro-SD 
card with SD adapter in the camera, then switch to a mini-SD adapter in 
the tablet. Yuk. Or I should have bought a wireless-capable camera.
But it would be nice to be able to email or upload photos on the road 
with only the tablet.

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Creating GPX for Maemo Mapper from Google Maps

2008-12-06 Thread Andrew Daviel


I like to make GPX files on my desktop then download them to my tablet 
for use by Maemo Mapper.

After grumbling that I had to screen-scrape output from gnuite.com 
instead of save to file, and having to copy addresses across from 
Google Maps once I'd found some that worked, I've finally written my own 
script using the Google API and then parsing KML.

It doesn't work with multiple destinations, but it will do avoid 
highway and walk. I think Toll would work on the onscreen map but 
not in GPX. The interactive map won't let you edit the route 
graphically, but you can paste in a link from a customized route on 
Google Maps and convert that to GPX. These limitations may be fixable 
with more work - I just copied an advanced directions example

http://gpx.geotags.com/

The site also works for live downloads. I was playing with multi-homing
using DNS so it's currently on 2 servers. If anyone wants to clone it 
onto another server, or take the code and improve it, please ask.

I found examples for geocoding addresses in Python on google developers, 
i.e. generating a lat,long from an address in a URL and giving a 
developer key. But not for generating directions - only in JavaScript and 
Flash. So what I'm doing is asking for output from maps.google.com in 
KML, based on what Google Earth does, then parsing it in Perl. Seems to 
work.

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-11-03 Thread Andrew Daviel
On Fri, 17 Oct 2008, Gary wrote:

 I know it's difficult to do in a production environment but have you
 experimented with different AP firmware revisions? 3.4.0 is still very
 solid but some of the interim releases between there and 3.7 broke more
 than it fixed. I'm not on any of their announce lists or I'd have
 noticed that 4.0 dropped some time in the past month, too, but I'm wary
 of trying it from my past bad experiences. Keep in mind, though, that
 this is for my home LAN and I've only one SSID and one AP -- very
 different from the Cisco WLAN that I manage at the office (two SSIDs) or
 the network you've described. You may not have the resources to
 reproduce a similar setup and Proxim's not likely to take much interest
 either but I've never contacted their support staff to know either way.

We have AP-4000M v4.0.0(1257). I think we'd been advised to upgrade to 
fix other problems (dropping connections when people move around), though 
that may have been a config problem. I'm not the primary manager of the
wireless network, and I forget the details. Some stuff cleared up when we 
went to central management so the configs are guaranteed all the same.

I have had a ticket open with Proxim for months, but nothing useful yet. 
There was a suggestions to disable unique SSIDs. I think that fixes my 
problem but makes life impossible for casual users as they have to enter 
an SSID blind. Not an option.

Kalle said he'd looked at my packet captures but I haven't heard back 
recently. I suspect I'd only get this fixed by locking a Proxim engineer 
and a Nokia engineer in a room with the devices and not letting them out 
till it works. Unless it's some problem with the spec itself, in which 
case I'd need to add an IEEE guy.




-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-10-21 Thread Andrew Daviel
On Fri, 22 Aug 2008, Kalle Valo wrote:

 First of all, sorry for taking so long. I was on vacation and had some
 urgent things to do first. The capture data is really helpful, thanks
 a lot for that. I'm looking at them right now.

Did you ever find anything ?
I still have the problem, after a minor Diablo update. I've taken to
putting the tablet in offline mode at work unless I'm actually using it.
I have a ticket open with Proxim but their engineers have not got back to 
the support guy.

http://andrew.triumf.ca/reqauth/PSM/  (test/test)
https://bugs.maemo.org/show_bug.cgi?id=3708


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-10-15 Thread Andrew Daviel
On Wed, 17 Sep 2008, Gary wrote:

 On Sun, Sep 14, 2008 at 11:42 AM, Andrew Daviel wrote:
 measuring the battery current and setting up an AP4000

 Can I assume this is a Proxim AP? The 700s may be found for a fair price
 these days and use the same chipsets and firmware. Of course, the
 Nanostation2 is a better deal and gives real time stats. How are you
 measuring your tablet's power consumption? I have a Kill A Watt EZ but I'd
 have to keep the charger plugged in to it for a while.

Sorry for the delay answering - took some time to go sailing, then 
catchup at work ..

Yes, it's a Proxim AP. Not negotiable, since that's what we have deployed 
at my workplace and they work just fine with most laptops (too 
power-hungry to notice, even if they implement PSM). We are using 
multiple SSIDs on different VLANs.

I was measuring the battery current directly:
http://andrew.triumf.ca/andrew/photos/100_0536.JPG



-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-10-15 Thread Andrew Daviel
On Wed, 15 Oct 2008, Gary wrote:

 Andrew Daviel wrote:
 I was measuring the battery current directly:
 http://andrew.triumf.ca/andrew/photos/100_0536.JPG

 That isn't a 3rd party battery is it?

Yes. The original Nokia one failed (I think the clips might have fatigued 
due to vibration in the vehicle mount on my motorcycle). I sent it back 
but forgot to follow up and didn't hear anything. Meantime after trying 
several local stores for an OEM one I found this clone which has worked 
nicely ever since. I wrapped a bit of electrical tape around it to make a 
more snug fit, so it won't rattle around (0.5mm maybe) and wreck the 
clips again.


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-10-15 Thread Andrew Daviel
On Wed, 15 Oct 2008, Gary wrote:

 Andrew Daviel wrote:
 Meantime after trying
 several local stores for an OEM one I found this clone which has worked
 nicely ever since.

 I ask because the only time I had battery issues was when I'd installed
 one of the early canola betas. It seemed like it had some background
 networking task that ran on bootup as my battery drain problem on my
 N800 went away as soon as I uninstalled it. Are your replacement battery
 specs identical to the original?

AFAIK, yes. Or maybe 100mAH less. I think Nokia offer two slightly 
different batteries.

As per the rest of the thread which goes way back (before my summer 
conferences and vacation), my problem is that the WiFi eats power talking 
to the Proxim APs at work, as if Power Save mode were not enabled (which 
it is). It's fine talking to a Linksys AP at home, and it's fine talking 
to a Proxim AP with only one SSID enabled. I can see nothing wrong 
eyeballing the network traffic with Wireshark, but I'm not an 802.11 
expert. We use the same APs for staff and visitor networks, so we need 
the multi-SSID feature.

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-09-14 Thread Andrew Daviel
On Fri, 22 Aug 2008, Kalle Valo wrote:

 I have placed some capture data on my server at
 http://andrew.triumf.ca/reqauth/PSM/
 (password test/test to keep out robots and the clueless)

 First of all, sorry for taking so long. I was on vacation and had some
 urgent things to do first. The capture data is really helpful, thanks
 a lot for that. I'm looking at them right now.

I, also. I was at BlackHat and DEFCON in Las Vegas then on vacation.


 I cannot download mad26.home.no.unique.beacons.cap and
 mad27.home.test.beacon.cap, server gives me 403. Please fix this
 whenever you find the time.

Done. Sorry; I forgot to check the file permissions.

 Also can you please file a bug for this? I really don't want to get
 this buried into email. Having this in bugzilla makes it much more
 visible.

https://bugs.maemo.org/show_bug.cgi?id=3708


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-08-08 Thread Andrew Daviel
On Tue, 5 Aug 2008, David Grau Serra wrote:


 Capture files on
 http://andrew.triumf.ca/reqauth/PSM/
 
 It is necessary an user and a pass =-O

the user = passwd = test, which is in the challenge. I had creted that 
directory for a demo of something else, and placed the capture files 
there just to keep robots out

currently at defcon in Las Vegas, then on vacation. may not answer 
quickly

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-08-05 Thread Andrew Daviel

I have done some more tests with the Proxim AP4000, but I still cannot 
see a problem in the protocol. I have put an ammeter inline between the 
N810 battery and connectors so I can see the current consumption in real 
time - it is pretty impressive that it can draw virtually no current at 
all (10mA on a 1A scale) and still respond to incoming network traffic 
or a cron job.

I took an AP4000 home and modified the configuration to work without
Radius authentication. At work, we have multiple AP4000's with 3 SSID's 
each, using (mostly) non-overlapping channels 1,6,11. But there may still 
be some in-channel interference from our or foreign APs.

With the AP4000 broadcasting one SSID (which the N810 is associated 
with), power consumption is low in PS mode. An incoming packet, e.g. ICMP 
ping, gives a brief kick on the ammeter.
My Linksys AP broadcasting on the same channel makes no difference - 
there are two beacon frames, one for each SSID, but power consumed is 
low.

With the AP4000 broadcasting 2 or 3 SSIDs on different VLANs, then power 
consumption rises to an average 100mA. If broadcast unique beacon is 
disabled for all SSIDs, then the power consumption is low. The AP 
broadcasts only one beacon, with no identifier. But if it is enabled for 
one or more SSIDs, the consumption can rise:

With beacon SSID enabled on triumf but disabled on test - 10mA
With beacon SSID enabled on triumf and enabled on test - 100mA
With beacon SSID disabled on triumf but enabled on test - 100mA
With beacon SSID disabled on triumf and disabled on test - 10mA
(The N810 is associated with triumf)


Capture files on
http://andrew.triumf.ca/reqauth/PSM/

I can see nothing in the capture file (madwifi libpcap -i ath0, no 
filters) from the tablet after it responds to the ping, but it is 
consuming power. I might be able 
to try a spectrum analyzer, but not today.

This is driving me crazy .. I'd give up if there weren't such dramatic 
power savings when it works properly.

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-07-30 Thread Andrew Daviel
On Sat, 26 Jul 2008, Andrew Daviel wrote:

 I may be able to get a spare Proxim AP to take home. There's a limit on
 what I can mess with on our production WLAN :-7, and I'd have a less
 noisy environment.

Well, I got one. The power consumption seems normal (i.e. PS mode seems 
to be working). I did an HTTP GET off the tablet httpd every 20 seconds 
with no apparent effect on battery (1%/hour slope or whatever). If more 
data or DTIM bits were getting stuck I'd think that would trigger it. 
But as before, I can't see any problem in captured data.
Foo. What's different: 
- at work there are multiple APs each with 3 SSIDs with VLAN
   tagging
- at work there is way more traffic - unicast, broadcast, multicast
- at work there are more clients

I seem to have the same power issue on at least 2 different APs at work, 
and I think 2 different VLANs. Wish I could easily stick an ammeter 
inline instead of waiting a couple of hours ... hmm, tiny little clips 
from a logic analyzer lead set ... perhaps not impossible...



-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-07-26 Thread Andrew Daviel
On Thu, 24 Jul 2008, Kalle Valo wrote:

(packets from N810 captured with airodump-ng show as malformed)

 Usually missing FCS causes this. There's a setting in Wireshark under
 IEEE 802.11 to enable and disable FCS calculation. Try reverting that
 option.

Yes. Edit/Preferences/Protocols/IEEE 802.11. Also lets me set WEP keys. 
Not sure I have that working right, but I turned off WEP/WPA to debug, 
anyway.

I was able to get the IBM laptop into monitor mode using the madwifi
instructions (thanks) - airodump did not do it as it does on the tablet.
# wlanconfig ath0 destroy
# wlanconfig ath0 create wlandev wifi0 wlanmode monitor
# ifconfig ath0 up
# echo '801'  /proc/sys/net/ath0/dev_type

then I could use tcpdump or ethereal/wireshark. If I don't suppress 
prism headers then I can't refilter with tcpdump wlan host node
which makes it hard to sift through the traffic at work.

I have placed some capture data on my server at 
http://andrew.triumf.ca/reqauth/PSM/
(password test/test to keep out robots and the clueless)
I may be being dumb, but I can't see a problem. I can see the tablet 
doing a power-save poll and saying it is going to sleep after the 
transactions, and the more-data bit appears cleared. I can see the DTIM 
bits being set in the beacon before the data transactions and cleared 
afterwords.

There is a lot more traffic at work (duh), including lots of ip broadcast 
traffic on a VLAN connected to our wired LAN. But that's on a different 
SSID. We recently created a separate VLAN  SSID with encryption on, 
which is what I normally use on the tablet, but here I used our visitor 
SSID. These don't see the ip broadcasts from the wired LAN, but in any 
case as I understand it these should not make a substantial difference in PS 
mode.

A battery graph is at
http://andrew.triumf.ca/reqauth/PSM/batt.use2.gif

I may be able to get a spare Proxim AP to take home. There's a limit on 
what I can mess with on our production WLAN :-7, and I'd have a less
noisy environment.

I'm not sure what I can tell Proxim. Send them the capture files, I 
guess. Setting the AP to closed mode made no difference.

notes:
If I want to see ping broadcasts, I can do
  echo 0  /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts

I wondered whether setting /proc/sys/net/ipv4/tcp_frto helps, as per 
kernel ip-sysctl.txt (particularly beneficial in wireless environments)
Not for the power, just for transmission errors.

I thought that unicast data was buffered till the next beacon in PS mode,
with broadcast/multicast buffered till the next DTIM interval, but at 
least on my Linksys router it looks like unicast is buffered till DTIM 
too. It lets me adjust both the beacon interval and DTIM; the Proxim 
allows only DTIM. Defaults are 100ms and 1x.
If the delay (beacon interval x DTIM) exceeds about 10 seconds, the 
tablet won't respond to incoming data. My desktop says network not 
reachable. I thought that was a tunable parameter but the only one I 
found was a SYN timeout at 60x.
If the tablet is in power-save mode, doing iwconfig wlan0 power off
will momentarily revert it to non-PS, and incoming data is received.
Outgoing data is unaffected.
Doing a broadcast ping was interesting with DTIM  the ping interval;
wired stations respond every second but the wireless ones are bunched up
in a group. As expected; it just looks weird.


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-07-23 Thread Andrew Daviel


I opened a ticket with Proxim. They suggest turning off SSID broadcast 
and see if that reduces the battery use. Sounds like b/s to me, but I may 
be wrong. If I try that at home, I have to mark the connection as 
hidden otherwise I can't select it to connect to, and I suspect it 
would annoy people at work. I still get beacons every 100ms.

I can't set the wireless chip in my IBM laptop to monitor mode 
(atheros/madwifi driver) but I can on an old Orinoco Gold card. That only 
does 802.11b. airodump-ng captures some beacons and broadcast packets, 
but not as many as airodump-ng on the N810, and just wireless headers, 
not data packets. So I'm definitely missing lots of packets, though I 
did see one frame from the N810 with the PSM bit set, talking to my old 
SMC AP on 802.11b.

The Linksys lets me change the beacon interval and DTIM multiplier. The 
Proxim lets me change DTIM, but not beacon interval. The SMC does 
neither.

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-07-22 Thread Andrew Daviel
On Mon, 21 Jul 2008, Andrew Daviel wrote:

 Is there anything for the tablets that can log wireless traffic in enough
 detail to show whether PSM is working ? airodump-ng ??

Should have tried before posting. I have a couple of capture files made
with airodump-ng --beacons, which I can view in wireshark.

Lots of detail I don't understand. I can see the beacon interval on the 
Proxim APs is 100ms (same as the Linksys default), and see the DTIM info 
(whether data is being held).

IEEE 802.11 Beacon frame, Flags: 
 Type/Subtype: Beacon frame (0x08)
 Frame Control: 0x0080 (Normal)
 Flags: 0x0
 ...0  = PWR MGT: STA will stay up
IEEE 802.11 wireless LAN management frame
 Fixed parameters (12 bytes)
 Beacon Interval: 0.102400 [Seconds]
 Capability Information: 0x0421
    ...1 = ESS capabilities: Transmitter is an AP
  0...   = Automatic Power Save Delivery: apsd not 
implemented

home and work have the same flags, except at home
short preample is allowed. I.e. PWR MGT is 0 at home, too.

We have multiple APs at work; I assume that in normal operation the
tablet is registered with only one and will ignore beacons from
the others.

All the packets from home, and most from work, show as malformed packet 
for some reason. airodump didn't offer a capture length and the packets 
are fairly small (85 bytes) so I don't think truncated

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-07-21 Thread Andrew Daviel
On Mon, 21 Jul 2008, Kalle Valo wrote:

 I recently noticed that my tablet battery runs down faster at work than
 at home, with the WiFi enabled but otherwise sitting idle (12%/hour vs
 1%/hour).

 What do you mean by 12%/hour? That the battery will run out in eight
 hours?

I guess. I was using the battery-status application which reports 
percentage of battery left, and measuring the slope.

 Yes, multicast and broadcast traffic will increase WLAN power
 consumption. But there has to be a lot of traffic going on to really
 notice it.

I tried doing a broadcast ping every 200ms at home (the tablet sees it if 
I run tcpdump) but it had no noticable effect on the battery consumption 
graph.

 If the AP is behaving correctly, the power consumption in PSM on a
 idle N800/N810 are mostly affected by these:

 o beacon interval (longer has smaller power consumption)
 o DTIM interval (same as above)
 o broadcast/multicast traffic

I'll have a look at the AP config tomorrow and see if I can find 
anything.
My linksys at home has beacon interval 100ms, DTIM=1 (i.e. default 
values). The Linksys docs 
suggest that DTIM data is only sent if there are broadcast packets 
waiting, so perhaps setting this larger would have little effect if I 
don't have much broadcast traffic. Besides, the problem is at work, not 
home.


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Power consumption and WLAN APs

2008-07-21 Thread Andrew Daviel

Excellent writeup, thanks :-)

So, what devices apart from the Nokia tablets use PSM ?

iPhone ? Palm ? Windows Mobile devices like the UTstarcom PocketPC  ?

I opened a ticket with Proxim; not sure if our contract includes support 
but maybe I'll get a reply.

Is there anything for the tablets that can log wireless traffic in enough 
detail to show whether PSM is working ? airodump-ng ??

How about on laptops ? Airmagnet drivers perhaps (which we don't have) - 
I have an ancient Orinoco Gold card on a Dell Latitude, and a slightly 
less old Thinkpad with (I think) madwifi driver, and a new Lenovo on the 
way (Windows, though)


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


apt-get vs. hildon-application-manager in Diablo

2008-07-20 Thread Andrew Daviel

In Chinook, I gave up using the hildon-application-manager GUI and 
started using apt-get from the command line via ssh; it seemed easier.
I also added some packages directly with dpkg and wget/scp

Now with Diablo there is a scheduled update that keeps flashing at me if 
everything is not up-to-date. I just figured out (I think) what is going 
on, and still have to sort out my catalogues properly.

hildon-application-manager reads a catalogue list out of
/etc/hildon-application-manager/catalogues (an XML file), and
creates /etc/apt/sources.list.d/hildon-application-manager.list each 
time.
hildon-application-manager-config dump dumps out the XML
hildon-application-manager-config set blows it away (duh)
hildon-application-manager-config set xx.xml resets it to the contents 
of xx.xml

apt-get reads /etc/apt/sources.list.d/*
If you add more lists, or edit hildon-application-manager.list (as I 
did) you will have a sync problem and perhaps duplicate entries.

E.g. yesterday hildon-application-manager wanted to upgrade
   rsync 2.6.9-2 to 2.6.9-2
   maemo-recorder 0.2.0 to 0.2.0
   maemo-mapper 2.4.1-os2008 to 2.4.1-os2006-os2007
while apt-get -s -V upgrade said
The following packages have been kept back:
maemo-mapper (2.4.1-os2008 = 2.4.1-os2006-os2007)
maemo-recorder (0.2.0 = 0.2.0)
The following packages will be upgraded:
less (394-4osso1 = 394-4osso2)
rsync (2.6.9-2 = 2.6.9-2)

I'm a bit confused why it would want to upgrade rsync to the same 
version, and why it would want to downgrade maemo-mapper. Perhaps 
something to do with my having had a Bora repository in the catalogue - 
the newer Nokia repositories have a sort-weight entry which the older and 
3rd-party ones don't, which may affect which repositories are searched 
for updates first.  maemo-mapper 2.4.1-os2008 is from Chinook while 
2.4.1-os2006-os2007 is from Bora.

Right now I managed to blow away my XML catalogue completely and but 
saved most of it by copying the dump from my xterm window. But I'm 
missing some off the end, such as the notifier entry and perhaps some 
of the keys.
- does anyone know where I can download a clean copy from 
(without flashing!) or can send me a copy ?


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Power consumption and WLAN APs

2008-07-20 Thread Andrew Daviel

On Mon, Apr 21, 2008 at 4:58 PM, Eero Tamminen [EMAIL PROTECTED] 
wrote:
  One possibility is a WLAN AP with broken power management

I recently noticed that my tablet battery runs down faster at work than 
at home, with the WiFi enabled but otherwise sitting idle (12%/hour vs 
1%/hour).

I thought the issue might be that there's more broadcast/multicast 
traffic at work, which would get through the filters in the ethernet chip 
and into the kernel, but then I found a reference to your post on the 
list.

At home I have a Linksys WRT54; at work I think Orinoco-AP2000 where I 
may be able to change some settings (writing this at home I can't login 
to check).

What power-management issues have you seen affecting battery life ?
Would it affect other laptops as well or just the tablets ?


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Diablo released (AGPS)

2008-06-26 Thread Andrew Daviel
On Wed, 25 Jun 2008, Nils Faerber wrote:

 Using the ephimeris data from ublox a ublox Antaris 5 receiver can have
 a time to first after cold start of less than three seconds!

Now that's impressive! (thanks for the info; I stand corrected re. AGPS 
in non-cellphone devices..)

 We already wondered what this GUI is good for ;)
 Choosing your region? Oh well...

From running supld on the command line (it normally runs as a daemon 
from startup) :

SUPL daemon version is Mon May  5 12:12:24 UTC 2008
SLP address: supl.nokia.com
SLP port: 7275
A-GPS srv address: supl.nokia.com
Position timestamp: 1214410112.00
Position latitude: 49.162067
Position longitude: -123.119614
Position uncertainty: 300
Previous A-GPS req time: 0
Previous A-GPS req status: 0
A-GPS support: 1
NW INIT enabled: 0
Cached assistance data support: 1
Packet data for assistance data allowed: 1
Preferred connection id: Rogers Internet
SetId NAI: [EMAIL PROTECTED]
PSK EMSK:
Wimax BSID:
GSM Cell ID by BT support: 0
Debug SLP IP source: provisioned
Debug mode: 0
Debug log folder: /media/mmc2/supllog/


agps-ui allows you to choose the preferred connection id (it only 
offered my EDGE connection), but supld downloaded data over the WLAN.
agps-ui also has a checkbox to enable Packet data ... I presume it 
means do you want to incur cellular data charges for downloading an 
ephemeris?. I don't know how to turn on debugging (DBUS?); nothing is 
written to /media/mmc2/supllog/.

I'm not sure where the positions came from; I suspect from the last 
position saved by gpsdriver. It's more accurate than geosearching my ip 
address.

I think that supld is exchanging data on DBUS with gpsdriver; the new 
version links libsupld.so

I presume from this that some location data is 
available from WiMax on the new device, and also from the GPS cell ID. I 
know the cell ID is available from my 
Nokia cellphone (I had gnokii running on my laptop via USB, and I built 
it for the tablet), and I believe Google has been mapping
cell locations by driving around (Rogers told me the tower locations were 
confidential when I asked a couple of years back).

Pointing a browser at supl.nokia.com doesn't get you far; I don't know 
the path, and it may be using a client-side SSL certificate for
authentication.


I haven't actually tried this much in real life so far. From what you say 
about ephemeris lifetime, I would hope to get a 30-second fix going 
outside from somewhere with WLAN but no sky (like my home, or office). I 
would hope that one could also take an 8-hour plane trip, then use 
agps-ui to set my approximate location, and get a fix in a minute or two 
instead of never. If true, it should go a long way to fixing the GPS 
woes (thanks, Zoltan).


-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Diablo released (AGPS)

2008-06-25 Thread Andrew Daviel
On Tue, 24 Jun 2008, GROG! (Jeff Howie) wrote:

 On Tue, Jun 24, 2008 at 1:26 PM, Joshua Layne [EMAIL PROTECTED] wrote:

 So assuming that AGPS _is_ included, would that be usable by an N800
 with a bluetooth GPS?

I have to agree with Josh.

AFAIK, the AGPS interface to the GPS chip in the N810 is a serial link 
using a proprietary TI protocol. AGPS is intended for use in cellphones 
so it's unlikely to be implemented in a standalone device.

Hmm, just installed Diablo. No network traffic when starting wayfinder 
map - I thought the AGPS patch was going to look for an ephemeris online.

Hmm... as per 
http://www.internettablettalk.com/forums/showpost.php?p=186839postcount=641
there's an app agps-ui beta from
http://catalogue.tableteer.nokia.com/certified/pool/diablo/user/a/agps-ui/
It uses supl-daemon to download something from 
https://supl.nokia.com:7275

Not sure at this point what effect this has - I'm indoors with too weak 
a satellite signal to get a fix. Looks interesting ... certainly agps-ui 
lets you choose your estimated position.

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Wayfinder Navigator vs Garmin

2008-06-24 Thread Andrew Daviel
 FAQ re. Bluechart on the Nuvi. It says it 
works, so I presume my comments about vector-based maps, transparency, 
etc. on Garmin are still valid.
The GPSmap is waterproof, the Nuvi is not. (or the tablet..)

There is a whole other thread about time-to-first-fix in the N810 - in 
brief, it can be very long compared to other devices.

www.garmin.com/products/gpsmap76
Can't get the compare feature to do marine vs. automobile :-(



-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Wayfinder Navigator vs Garmin

2008-06-24 Thread Andrew Daviel
On Tue, 24 Jun 2008, Mark wrote:

 The built-in Map app *is* the Wayfinder app, you just have to pay
 and get a code to activate the routing feature.

dpkg identifies it as map - Map Application for Nokia Internet Tablet 
OS. But yes, that's the one.

 My *really* old Garmin GPS III doesn't do routing, and has only a very
 sketchy basemap with no possibility of loading street-level maps,
 but even that easily loads points-of-interest as waypoints as well as
 routes (based on waypoints, not streets). Many different apps support
 uploading and downloading waypoints and routes to Garmin units.

I found one that works on Linux - gd2, which I rewrote as gd276 to 
support my gpsmap76 (slightly different data format). Not GPX, though.
I have a script to take a Google Map URL and upload a waypoint, and 
another to geotag my photos.

 Correct. It supports Garmin format maps, but not actual Garmin maps
 because they are encrypted. It also supports OpenStreetMaps.

BlueChart is encrypted. Some of the other actual Garmin maps like
enhanced basemap, roads and recreation and topo are not encrypted. Or 
they didn't used to be. You used to be able to download the basemap off 
Garmin's site in case you deleted it by accident, or reflashed the unit 
and lost it.

 Presumably the N810s
 can work with bluetooth GPSRs just as well. It would be cool if
 somebody could work out a way to use a bluetooth and the internal
 receivers simultaneously to increase accuracy.

Yes, the N810 works with external b/t GPS. It's just ** annoying that we 
paid extra $$ for a built-in GPS and Nokia customer support tell me that 
I should buy one of their external units if I want good TTFF. I hear a 
rumour that there is a software enhancement in the next release to speed 
things up, maybe by downloading an ephemeris over the net.

Having 2 receivers will not improve accuracy by itself. My Garmin has 
WAAS (North America only apparently; I hadn't realized - maybe EGNOS in 
Europe). The N810 probably doesn't. Using a b/t receiver with WAAS/EGNOS 
or DGPS capability (needs external radio receiver) would give better 
accuracy, though I hadn't noticed my N810 being wildly off.

http://www8.garmin.com/aboutGPS/waas.html

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: passing arguments to hildon applications

2008-06-05 Thread Andrew Daviel
On Wed, 28 May 2008, Eero Tamminen wrote:

 Just use mime summon utility from Tuomas:
 https://bugs.maemo.org/attachment.cgi?id=687

 I looked into that and fix seems to be simple.  Add a sec or two wait
 before exiting the main().  D-BUS seems to do something funky if sender
 exits before the message is forwarded to the receiver.

Thanks! I added sleep(2) and it worked with the PDF viewer

http://andrew.triumf.ca/N810/repository/dists/chinook/user/binary-armel/mime-open.deb

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Lock, sleep, power-down

2008-06-05 Thread Andrew Daviel
On Thu, 5 Jun 2008, Ryan Abel wrote:

 Just ask lcuk, connecting to an access point that doesn't support
 powersaving will bring your battery life down to about 2 hours. I get
 about 60 hours out of my N800 with Bluetooth on and wifi connected
 (WRT54G with tomato).

I had some problems where the battery connections shook loose inside the 
battery pack, causing my tablet to reboot unexpectedly and not charge 
properly etc. So I was looking at the charging process trying to figure 
out what was wrong, and then out of curiosity using the 
battery-status script from http://nitapps.com/ and logging the output.

I hadn't realized that the AP is part of the power-saving scheme; there 
is a power-save option on the tablet under advanced/other in the 
connection manager. If unchecked, battery life drops from 100 hours to 7 
hours on my APs (Dlink at home, Proxim at work). I tried setting the WiFi 
to 10mW but it didn't make much difference.

I agree; the backlight should turn off. With the light on, I estimate 9 
hours battery life.

http://andrew.daviel.org/N810-FAQ.html#battlast

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Battery checks on N810 tablet

2008-06-03 Thread Andrew Daviel
Thanks for the reply.

On Tue, 3 Jun 2008, Eero Tamminen wrote:

 ext Andrew Daviel wrote:
 I read your post on maemo users re. startup when you say RD mode disables 
 some battery checks. What checks are those?

 AFAIK
 Battery type/safety ones, disabling them allows connecting e.g.
 adjustable power source[1] to the device for RD purposes.  I think
 the checks are there so that device doesn't try to use a battery
 that could be dangerous to the device or the user (I've understood
 that bad counterfeit/forged lithium batteries could burn).

 [1] Industrial power sources naturally don't have these issues, but
then again, you really cannot call them mobile :-)
 /AFAIK

I see in another forum that the third battery terminal is probably 
connected to a temperature sensor, and I presume this is what
is disabled :
http://www.electronics-lab.com/articles/Li_Ion_reconstruct/


 Device is not intended to be run in RD mode longer than is necessary.

I've disabled RD mode and gone back to a hacked gainroot; I'd been 
thinking that setting RD in the Nokia flasher tool was somehow preferable 
to a user hack...

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Yet another N810 FAQ

2008-05-20 Thread Andrew Daviel

FYI, I wrote up some of my N810 discoveries as a FAQ - mostly things I 
figured out for myself but some courtesy members of this list (thanks 
again)

http://andrew.daviel.org/N810-FAQ.html

Corrections appreciated. Or questions with answers, preferably ones I can
verify myself, or at least a definitive URL.

(as to why it's not a Wiki .. I *still* find it easier to edit on my own 
servers with vi than to use a browser as an editor ...)

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: OpenOffice (was Bluetooth keyboard?)

2008-05-20 Thread Andrew Daviel
On Thu, 1 May 2008, Andrew Daviel wrote:

 All I need now is a script to do wget and mail ...
 something like Babelfish would be good - translate this URL
 except to PDF not German. I don't actually need the Office files on the
 tablet at all. I could use my desktop machine if I figured out OpenOffice
 server mode ...

I found 
http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html
and wrote said Babelfish-style converter.

If anyone wants to try it, see http://home.daviel.org/cgi-bin/ms2pdf

No guarantees it will stay up, and the bandwidth's not great (this is not 
a production server). I called it MS to PDF but it will also do
ODT, SXW etc. to PDF or HTML.

I have OpenOffice 2.4 running in headless server mode and pass it 
documents retrieved with wget. Currently it caches converted documents 
indefinitely so I'm not bothered if someone hits reload a few times.

Point taken about wanting to work on documents offline, but what I wanted 
was to check out the slides at a conference to see what stream I wanted 
to attend, or follow links in the presentation in real time.



-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


FYI, Nokia N810 user survey

2008-05-20 Thread Andrew Daviel

As per the Internet Tablet Talk post by dkwatts, 
http://tableteer.nokia.com/tableteer/os2008/redir.xhtml?source=promoapplet

Nokia is asking about our experiences and suggestions for the N810. 20 
min. web survey on a scale of 1-10, how important is IM to you? etc.
plus a few free-form comment boxes.

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: OpenOffice (was Bluetooth keyboard?)

2008-05-01 Thread Andrew Daviel
On Thu, 1 May 2008, Giacomo Tufano wrote:

 Try to send an Office attach to [EMAIL PROTECTED] it SHOULD answer with a
 pdf of the attach. If it works, I could try to find in Sun if the
 service is really public and, therefore, if it can be used by anyone.
 Just make of know if it works for you.
 Hth, gt

Cool!

I guess it is public .. it says
   This service courtesy of?Sun Microsystems,
   the leader in open source and networked
   systems.
   Powered by?StarOffice?Server and Java Mail.

I sent a 1-page Word doc and a 26-slide powerpoint with embedded photos.
The PDF from the powerpoint bombed my old Xpdf 2.01 but was OK on the 
tablet, if a bit slow. All I need now is a script to do wget and mail ...
something like Babelfish would be good - translate this URL
except to PDF not German. I don't actually need the Office files on the 
tablet at all. I could use my desktop machine if I figured out OpenOffice 
server mode ...

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Adding/changing browser helper applications in N8*0

2008-04-24 Thread Andrew Daviel

Does anyone know how to change the helper applications in Firefox on the 
N810 ?

On my desktop, it's gotten slightly messy since Netsscape 2 but Firefox 
still reads standard /etc/mailcap and ~/.mailcap and uses those, even if 
it does have an XML/RDF file in preferences..

On the tablet, strace shows the browser reading these files but it 
ignores the contents.
I found it reading /etc/gnome/defaults.list.
If I add an entry to use mplayer, it doesn't work.
However, if I copy /usr/share/applications/hildon/mplayer.desktop
to /usr/share/applications/hildon/hildon-mplayer.desktop,
then the browser will start mplayer with the graphical interface.
But it doesn't have open the file or URL.

On my desktop, I had been playing with streaming and playlists; to get 
this to work, I had to create a script to parse video/quicktime
files to see if they were playlists (with an RTSP URL), or
actual media - they have the same MIME type. Other types such as
MPEG and MP3 usually have a different MIME type for the playlist
or redirector, so I can launch mplayer directly:

video/x-mpegurl;mplayer -playlist %s;
video/x-ms-wvx;mplayer -playlist %s;
video/x-ms-wmv;mplayer %s
video/x-msvideo;mplayer %s
etc.

I'm not sure such a thing would even work on the tablet; it looks like
all helpers have to be fully hildonized so an intermediate script will 
not work.

(mplayer is more efficient than Nokia's media player - it will play
larger formats without skipping, and it has more codecs so will
play some AVIs and MPEGs that the Nokia one won't)

- is there Plugger or equivalent for the tablets ?
Generally I find it easier to use helpers from a link as often
pages with embedded objects assume you have the standard Windows plugin
with some particular size, interface etc. but on occasion Plugger has 
worked for me.


The other thing I had wanted to do was run different profiles - one for 
connecting via a cellphone (no images), and one via WiFi. And maybe one
via open WiFi (tunnel though SSH to a proxy elsewhere) as I do on my 
laptop. But browser -P does not work.

I found /home/user/.browser which I might be able to tweak to
change the image settings. Proxy settings are tweakable via 
about:config though I haven't got an equivalent to profile changing 
yet.



Andrew Daviel
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: OpenOffice (was Bluetooth keyboard?)

2008-04-24 Thread Andrew Daviel
On Wed, 19 Mar 2008, Mark wrote:

 Actually, there *is* an armel port of OpenOffice, I'm just not savvy
 enough to get it installed. Besides, if a full word processor like
 Abiword can work, it's not much of a stretch.

I don't want to create documents, I just want to view PowerPoint. And 
maybe Word. And maybe**2 Excel. Not all in one huge app. For when I'm at 
a multi-stream conference and want to review the slides to figure out 
which session to attend.

Anything that does that ?

Come to think of it, I don't need it actually in the tablet. Some service 
that converted it to PDF online would be great (Google's HTML version of 
PowerPoint is I guess part of their indexing process and doesn't seem to 
preserve the layout/graphics particularly well).

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: launching scripts/apps from desktop icons

2008-04-17 Thread Andrew Daviel
On Wed, 16 Apr 2008, [EMAIL PROTECTED] wrote:

 I'm a huge fan of the Command Navigator app. It replaces the
 silly Contacts taskbar app, and can be configured to launch arbitrary command
 line programs via a menu.

I tried installing that on my N810 with apt-get, also personal-menu_0.4-2 
with dpkg (the latest wants a later libglade). But I can't see how to 
start them. I don't get a popup on the tablet asking which menu I want it 
in. I see the configuration in settings/control panel/personalisation and 
can add a command, but I can't find an icon anywhere in the menus.

I didn't change sudoers; the docs said it wasn't necessary if I didn't 
need to run a command as root.

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


launching scripts/apps from desktop icons

2008-04-16 Thread Andrew Daviel

On my desktop I don't have much time for the GUI; I find it much easier 
to type ls -lt foo* than wait for some app to paint 2000 icons I'm 
supposed to choose from. But I have a few Gnome toolbar icons I have 
tied to commands like
  xterm -e ssh -i foo [EMAIL PROTECTED]
using create launcher.

Is it possible to do this in maemo/Hildon on the Nokia tablets ?
One page I looked at seemed to be saying applications needed to be 
rewritten to use the hildon manager, which seems a lot of effort just to 
get a launcher button.

Apart from wanting to have a button to do scripts like the above, I was 
trying to run example_camera (from 
garage.maemo.org/svn/maemoexamples/trunk/) from a button. Works from the 
command line; doesn't start properly from a button (or maybe I just 
haven't got the files set up properly)

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


writing HTML for tablets

2008-04-12 Thread Andrew Daviel

I write the occasional web page, and I was thinking about screen size as 
it relates to web content. In the past I had not given it much 
consideration, except that when I made some pages for a cellphone 
(128x128 pixels, $0.02/kb data charges) I made them much smaller with no 
or tiny graphics.

The Nokia tablets are 800x480, and I can't see pocket PC displays getting 
much bigger than 1000x500. If they were physically larger, they would not 
fit in a pocket, and if the pixels were smaller you would need reading 
glasses (I already need 3 diopter glasses; I only need 1.0 for a PC 
screen or paperbacks in good light...).
Regular laptops have about reached the limit; too. Any bigger and they 
would not fit in a briefcase or on an aircraft tray.

On the other hand, desktops can get physically larger (we have some 2x4 
panel arrays) and wall displays can get even bigger. Mainstream LCD 
panels are changing to 16x9 aspect ratio and HDTV 1920x1080 for single 
panels.

So what are we to write content for ? Not so much a problem for 
legacy HTML which just flows to fit the width, but the modern 
graphic-rich stuff assumes a width of about 1024 or more.
Maybe we can dynamically adjust the images to fit. I was playing with 
this at http://andrew.triumf.ca/js/alternate.cssxi.html
But really, we don't want to send so much data over 3G in the first 
place, so the content needs to be available in smaller pages for tablets 
and cellphones. Which needs some kind of size-sensitive CMS system to
handle it.

-- 
Andrew Daviel, TRIUMF, Canada
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: writing HTML for tablets

2008-04-12 Thread Andrew Daviel
On Sat, 12 Apr 2008, [EMAIL PROTECTED] wrote:

 On Sat, Apr 12, 2008 at 07:55:15PM +0200, Olivier Ricou wrote:

 You have the feeling your eyes cannot see a higher resolution but
 you are wrong (*). For usual text I agree low resolution is ok however
 if you read a PDF or any antialiasing text, if you look at a movie,
 you will appreciate to have a better resolution. Think that 300dpi
 printers have been replaced by 600dpi ones when most screen are
 less than 100dpi. I have a 1600x1200 15 screen and before I had
 a 1400x1050 for the same size. I do appreciate the difference
 and since my computer is quite old, I look for higher resolution.

Hm. Maybe.. Some years ago when my eyes were better and Linux did X11 the 
hard way I had a 0.26mm dot CRT carefully set up so that the X11 pixel 
size matched the phosphor dot size. X11 fonts looked really crisp and I 
could read maybe 10pt with no problem. But antialiased fonts as used on 
Windows looked smeared and I had to use a bigger font size and sit 
further away from the screen. Which seemed like another good reason not 
to use Windows, if one had a quarter of the usable display area compared 
to the same hardware using Linux.


 The only limit I can see is the size of the text in mm (or inches)
 which is quite different since you always can increase the size
 of the font if your resolution increase.

OK, for pixels substitute point size. The basic issue of not being able 
to fit so much text on a pocket tablet compared to a desktop remains.


 The big problem is that a lot os servers ignore the user's settings, so
 they specify the sizes of text boxes explicitly in pixels based on their
 specified font sizes, regardless of the browser's minimum font size.
 So in practice, I often don't have the option of increasing font size to
 make text readable.

This has long seemed a problem with HTML style. Images are specified in 
pixels, while text is in point size. What fits on one platform (Windows, 
generally) doesn't fit on others (X11), even if the same fonts are 
available (Microsoft released web fonts including Arial, then withdrew 
them, but I think they are still around for free or maybe even included 
in distros; I haven't checked recently). And that, as you say, is 
regardless of the user having changed their font size away from the 
system default.


Re. servers, as I recall some versions of IE send a display size (in 
pixels) in the User-Agent header. But Mozilla does not. So the server
does not, in general, know the user's preferences. Except for language,
used in Apache error messages and not much else as far as I can tell.

In my demo I used JavaScript (running in the browser) to check the 
display size. In pixels, not pointsize. I'm not even sure if it's 
possible to find what the user's display is really set to. Using
ctrl+, ctrl- in Firefox on my desktop seems to change the size in pixels 
of a particular pointsize, different from the script below
which changes the pointsize in an element. But I tend to write legacy 
HTML and don't usually do this stuff, so I may have missed something

http://eriwen.com/javascript/change-text-size-onclick-with-javascript/




 That said, my glasses are approximately -7 diopters.  I can see
 all the pixels I want by taking my glasses off and holding my n800
 about 12 cm from my nose.

:-)

I could do that when I was 12. Now I need a microscope to solder surface-mount 
chips.

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: gpsd command line

2008-04-11 Thread Andrew Daviel
On Thu, 10 Apr 2008, Chris wrote:

 I have the same question. Would love to try NavT.

http://maemo.org/development/documentation/how-tos/3-x/howto_connectivity_guide_bora.html
http://maemo.org/api_refs/4.0/gpsbt/group__gpsbt__api.html

I tried this; it started but stopped right away, though some doc says 
that gpsd is supposed to keep running as long as there is a client
Then I built the tracker from the connectivity guide, which seems to 
start it up and keep running. Disable the track logging if you don't need 
it.

#include gpsbt.h
#include errno.h
int main () {
   int s ;
   char error_buf[100] ;
   gpsbt_t ctx ;
   s = gpsbt_start(NULL, 0, 0, 0, error_buf, 100, 0,  ctx);
   if (s) {
 perror(gpson) ;
 printf(%s\n,error_buf) ;
   }
   sleep(100) ;
}


Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: signedness of char on ARM vs x86

2008-04-06 Thread Andrew Daviel
On Sat, 5 Apr 2008, Juha Kuikka wrote:

 Char is indeed unsigned on ARM by default.

 http://www.arm.linux.org.uk/docs/faqs/signedchar.php

 You could try to give -fsigned-char to gcc when you build your library.

 - Juha

Yes, thank you. That clears up the few failures in make check and the 
application works properly, too.

For opencv I did
export CFLAGS=-fsigned-char; export PYTHON=/usr/bin/python2.5; ./configure ;
  make ; make check

cc. to maemo-users in case others run into this porting packages from
x86


 On Sat, Apr 5, 2008 at 9:40 PM, Andrew Daviel [EMAIL PROTECTED] wrote:

  I find some compiler warnings such as
  warning: comparison is always false due to limited range of data type
  warning: converting of negative value `-0x1' to `char'


 By which I presume that char is signed on the 386 and unsigned on the
 ARM.

-- 
Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Python versions, build in scratchbox

2008-04-03 Thread Andrew Daviel

On Thu, 3 Apr 2008, José Luís wrote:


Yes, rebuilding qemu with arm-eabi patches (
http://qemu-arm-eabi.wiki.sourceforge.net/) will fix this problem. And sorry
because the link that I passed to you was in portuguese.

 - tried reading with Babelfish; not so bad, but this is better :-)


But the steps are simple:

  1. You have to install gcc-3.4 and zlib1g-dev
 - (sudo apt-get install gcc-3.4 zlib1g-dev)


No compat-gcc-3.4 for my Fedora Core 4; I had compat-gcc-3.2 .. I forced 
in 3.4 from FC6 .. seems to work, but still gave the FUTEX error etc. 
below. Maybe 3.2 would have worked equally..

Also had to install SDL-devel



  2. Get the patched qemu-arm-eabi sources available in
  http://sourceforge.net/projects/qemu-arm-eabi/
 - svn co
 
https://qemu-arm-eabi.svn.sourceforge.net/svnroot/qemu-arm-eabi/trunkqemu-arm-eabi
  3. Compile
  - cd qemu-arm-eabi
 - ./configure --target-list=arm-linux-user --static
 - make


I had errors compiling linux-user/syscall.c:
59:25: warning: sys/inotify.h: No such file
409: undefined reference to `inotify_rm_watch'
3311: error: `FUTEX_LOCK_PI' undeclared

I commented out the conditional code for inotify_rm_watch etc. and
removed the check for FUTEX_LOCK_PI (leave FUTEX_WAIT) and it seems to 
work.




  4. Update the scratchbox
 - sudo cp arm-linux-user/qemu-arm
 /scratchbox/devkits/cputransp/bin/qemu-arm-eabi-sb2
 - sudo vim /scratchbox/devkits/cputransp/etc/cputransp-methods
- add the line: qemu-arm-eabi-sb2
 - vim /scratchbox/users/USERNAME/targets/SDK_ARMEL.config
- change the variable value SBOX_CPUTRANSPARENCY_METHOD to
/scratchbox/devkits/cputransp/bin/qemu-arm-eabi-sb2


I have CHINOOK_ARMEL.config not SDK_ARMEL.config



The syscall errors will disappear.


Yes :-)  (have not tried running the code .. various other dependencies 
to be resolved first ..)



Andrew___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Mouse button 2/3 on N8*0 ?

2008-04-02 Thread Andrew Daviel
On Wed, 2 Apr 2008, Martin Grimme wrote:

 If the app supports the additional mouse buttons, it should do so on
 the tablet as well without modifications. E.g. I'm able to scroll
 through lists with the mouse wheel on the tablet via vnc.

Am I being dumb ? AFAIK my N810 doesn't have a mouse wheel or mouse 
buttons - I can tap on the screen = mouse 1, and there's a joystick ring
on the slide-out keyboard mapped to Up, Down, Left, Right and Enter.
Various other buttons (fullscreen, zoom in etc.) map to F5, etc.

(I meant that I was using the tablet to access an app on a server or 
desktop, not using the desktop to access an app on the tablet. Or, I 
might port some desktop app to the tablet that uses mouse 2/3)

(does it, perchance, support a Bletooth mouse ? I presume it would if one 
can use a BT keyboard)


 AFAIK, tap-and-hold doesn't technically emulate any mouse button. It's
 handled on the application level (GTK, Hildon), not by the X server.

Well, yes. I just meant that if I wanted to save an image I could 
do tap-and-hold to bring up the menu that I would get with mouse-3 on 
my desktop.

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Python versions, build in scratchbox

2008-04-02 Thread Andrew Daviel

I was just trying to build a Python package (mxDateTime from
http://downloads.egenix.com/python/egenix-mx-base-2.0.6.tar.gz); not 
something I often do.

While I've been able to compile various C packages with configure;make 
install, the  python setup.py install recipe failed, first trying to
run /scratchbox/compilers/host-gcc/bin/gcc, which didn't exist, and then
trying to install in /scratchbox/tools/lib/python2.3/site-packages/mx
instead of /usr/lib/python2.3/site-packages/

If I try python2.4 setup.py install, it fails with various errors
such as sem_post: Function not implemented


I installed scratchbox with the maemo-scratchbox-install_4.0.sh script a 
few weeks ago, which got me AFAIK 2008SE_2.2007.52.0.
That has Python 2.3 and Python 2.4

I'm a bit confused as to which gets used; if I just type python, I get
2.3.4, although /usr/bin/python is a link to python2.4.
If I type python2.4, I get 2.4.2


My N810 now has OS2008 51-3, with Python 2.5.1. I'd kind of assumed that
OS2008 scratchbox would have the same version as the tablet... and that
setup.py install would work.




-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Python versions, build in scratchbox

2008-04-02 Thread Andrew Daviel

On Wed, 2 Apr 2008, José Luís wrote:


Hi, you have to install python2.5-dev package in scratchbox (apt-get install
python2.5-dev).


OK - that gets python2.5 and libffi4, too.


To install your package you can use python2.5-dev setup.py install
command.


I guess you mean python2.5 setup.py install



This message sem_post: Function not implemented is a qemu problem
(http://setanta.wordpress.com/2007/11/20/qemu-arm-eabi-no-scratchbox/),
but compilation should work.


python2.5 setup.py  build works, but I get things like
  qemu: Unsupported syscall: 0
  qemu: uncaught target signal 11 (Segmentation fault) - exiting
  qemu: uncaught target signal 4 (Illegal instruction) - exiting
  error: command '/usr/bin/python2.5' failed with exit status 252
when I do python2.5 setup.py install.
Tt seems to fail after a certain time, so by re-running the script
multiple times, eventually it finishes.
Would rebuilding quemu fix this problem, too ?



Andrew___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: where is crontab ?

2008-04-01 Thread Andrew Daviel
On Tue, 1 Apr 2008, Andrew Flegg wrote:

 There's no cron shipped as standard with ITOS or Maemo; and I don't
 recall having seen a good port.

I'm not so sure about good, but I built a small cron I found on the 
Web. Seems to run OK, but it uses sleep() to schedule wakeups. It would 
probably be better to rewrite it to use the alarmd that is already 
running. cron expects to send stdout/stderr via mail, which doesn't exist 
either, so I modified nbsmtp-1.00 to emulate binmail.


http://www.pell.portland.or.us/~orc
http://andrew.triumf.ca/N810/repository/dists/chinook/user/binary-armel/cron-0.9.deb
http://andrew.triumf.ca/N810/repository/dists/chinook/user/sources/cron-0.9.tar.gz
http://andrew.triumf.ca/N810/repository/dists/chinook/user/binary-armel/nbsmtp-1.00m.deb
http://andrew.triumf.ca/N810/repository/dists/chinook/user/sources/nbsmtp-1.00m.tar.gz

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


GPE ICS/WebDAV/CalDAV

2008-04-01 Thread Andrew Daviel
On Tue, 1 Apr 2008, James Knott wrote:

 Is it possible to sync the GPE calendar with Google calendar?

On a closely related topic, is is possible to connect GPE to a 
standards-based online calendar, as with Mozilla Sunbird ?

(I haven't actually tried GPE yet, so please excuse if it's obvious)

We have spent some time trying to decide on a sitewide shared caledaring 
system, and finally picked Bedework as being standards-based (CalDAV) 
with a Web interface as well. I've also been playing with WebDAV and
CalDAV servers, and have some read-only calendars in ICS v2.0 format 
(there's a ton on the Web).
Of course, I should be able to just use the Bedework Web interface, but 
it would be nice to download events to a local client for going out of
WiFi range..

As I recall, Google support HTTP/ICS download but use their own API for 
upload - maybe CalDAV was not mature enough at the time.
CalDAV in theory is more efficient than WebDAV as calendars can be 
updated with a single event rather than uploading the entire thing, and
also supports scheduling via a free/busy mechanism - theoretically, 
across multiple servers so that you can schedule meetings between groups 
at two different institutions.

As to why not everyone use Google - some organizations and countries 
forbid storing private information offsite/offshore, espcially somewhere 
subject to the Patriot Act.


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


hildon-libs0 - osso-af conflict

2008-04-01 Thread Andrew Daviel

I was just trying to install vncviewer on OS2008 on my N810. Along the 
way dpkg said there was a conflict between hildon-libs0 and osso-af, but 
when I look at the package lists they are orthogonal (osso-af is a 
metapackage with no installed files; the docs are stripped).

I forced it in. Is there any reason I should not have ?

# apt-get install vncviewer  (from extras/bora)
The following packages have unmet dependencies:
   vncviewer: Depends: hildon-libs0 (= 0.14.11-1) but it is not going to be 
installed
E: Broken packages

# dpkg -i hildon-libs0_0.14.11-1_armel.deb
  osso-af conflicts with hildon-libs0

# dpkg -i vncviewer_0.6_armel.deb
  vncviewer depends on hildon-libs0 (= 0.14.11-1); however:
   Package hildon-libs0 is not installed.
  vncviewer depends on libdbus-1-2 (= 0.61); however:
   Package libdbus-1-2 is not installed.

# vncviewer
vncviewer: error while loading shared libraries: libhildonwidgets.so.0: 
cannot open shared object file: No such file or directory


# dpkg --force-conflicts -i hildon-libs0_0.14.11-1_armel.deb
dpkg: regarding hildon-libs0_0.14.11-1_armel.deb containing hildon-libs0:
  osso-af conflicts with hildon-libs0
   hildon-libs0 (version 0.14.11-1) is to be installed.
dpkg: warning - ignoring conflict, may proceed anyway !

# dpkg -i libdbus-1-2_0.61-osso28_armel.deb  (from bora)



-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Mouse button 2/3 on N8*0 ?

2008-04-01 Thread Andrew Daviel

Is there any way to map something to a mouse key ?
I don't see how to do it with xmodmap, or maybe I didn't read the right 
docs.

If I connect to a *nix box with ssh/X11 or Xvnc, I might run some app 
that needs button 2 or 3 (e.g. Xfig needs button 2 to end a polyline).

(I notice from some RTFM - help - that button 3 in the browser is 
implemented as tap-and-hold : save link as etc.)

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: N810 gps troubles

2008-03-31 Thread Andrew Daviel
On Mon, 31 Mar 2008, Frederic Crozat wrote:

 Once you get the almanac downloaded, fix time can be shorter (5
 minutes to 10 minutes in bad conditions). And if you got a fix in the

Any idea where the almanac is stored ? In the GPS chip itself ? Does it 
survive power-down or dead battery ? I gather it's a Texas device 
(GPS5300) with not a lot of info on the Web (contact TI if you're a 
cellphone maker wanting millions of the things, hobbyists need not 
apply). The 2-page teaser suggests that it communicates over a serial 
bus, maybe native NMEA0183.

It also says ..enables a rapid time to first fix from weak satellite 
signals exceeding the A-GPS requirements for 3GPP operation
It's possible that there are some layout issues affecting the performance 
in the N810 - the chip requires an antenna and 11 passive 
components (capacitors, resistors..), so it's possible the design is 
sub-optimal. e.g. compromised to fit it in the space available.

A-GPS being apparently assisted GPS used with a signal from cell towers
which I had not previosuly heard of. Perhaps in a true cellphone 
application the cell system sends some approximate location to
speed up the time to fix (for 911 calling in the US)

I had noticed that, compared to my Garmin GPSmap76 (now several years 
old), that the N810 takes longer to acquire a fix but having got one, is 
able to keep it with less signal (indoors in my wood-framed house), at 
least for a while. For the Garmin, initial setup required priming it with 
an approximate position but I see no means to do that on the N810. 
Perhaps it is now considered unnecessary.



 Also remember GPS antenna is located under the zoom in/out button, so
 try to not hold your n810 with your hand over them (at least for
 initial GPS fix).

I had assumed it was the little plastic square just above the camera, so 
that the best orientation was screen side upwards with a good view of the 
sky. Once I had a fix, then I could put it in my pocket riding a bike.

There seems an awful lot of metal in the N810 case, and radio waves 
traditionally don't penetrate. At least, that's what I learned at school 
but the modern devices seem awfully sensitive and the signal can diffract 
through small holes...


I'm not sure Maemo Mapper really has more information available.
As far as I can figure, gpsd translates NMEA from the device to a
generic format and makes it available to multiple clients on 
localhost:2947.
The NMEA includes $GPGSV GPS Satellites in View. You can see this if you 
connect to the socket with netcat and give an r (raw) command, or
q or y.
In Nokia Map the gps view shows signal levels and satellite position 
graphically, I presume derived from this information.


  - I'm curious. What time-to-first-fix are people experiencing ?

(I guess I should quantify my own experience..)


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Connecting N8*0 to laptop - USB or Ad-Hoc WiFi ?

2008-03-31 Thread Andrew Daviel

If I should take both my N810 and a laptop to some unwired location (my 
boat), how can I have them communicate ?
Bringing a WiFi hub (+ power supply, + inverter...) seems like overkill.

If I could set my laptop in Ad-Hoc or Master mode (which I'm not sure I 
can, or even if the chip supports it; the iwconfig option is rejected in 
Linux and I just get confused in Windows between duelling Microsoft and 
IBM managers), could the N810 connect ?

Or, is it possible to connect via the USB cable and get a shell so I can 
use the laptop keyboard ?
Otherwise, posting files through the SD card would work OK, but no 
keyboard.


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Connecting N8*0 to laptop - USB or Ad-Hoc WiFi ?

2008-03-31 Thread Andrew Daviel
On Mon, 31 Mar 2008, Ryan Pavlik wrote:

 You should be able to join (or even create!) an ad-hoc (Computer-to-Computer) 
 network with the N810 - I see them all the time on my network list.

OK, yes - my old Dell with an Orinoco card will do ad-hoc in both Windows 
and Linux. The N810 shows an icon with a little blob over it to 
differentiate it from AP.

My not-quite-so-old IBM Thinkpad with internal Atheros chip doesn't want 
to do ad-hoc in Linux (with the atheros driver). In Windows I just got 
confused as there are IBM and Microsoft managers fighting to control the 
card. The Orinoco manager on the Dell was easy.

BT might work; I'd have to buy a BT adapter as neither laptop has it, 
plus at this point I don't have much experience with BT (beyond buying 
Logitech's nice Denovo keyboard+basestation and pressing a button to 
pair them...)

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: N810 gps troubles

2008-03-31 Thread Andrew Daviel
On Mon, 31 Mar 2008, Frederic Crozat wrote:

 No, the plastic square is the light sensor ;)

So, where is the GPS antenna and how does it get a signal ...
(my first (near-useless) GPS had 
a pivoting antenna about 2cm * 2cm * 6cm and marine people were 
recommending an external antenna about 10cm across if mounting
a set on a boat .. my Garmin has an internal antenna, but still a jack 
for an external one, and works fine through the fiberglass roof)

  (I guess I should quantify my own experience..)

Outside my house I was seeing about 7 satellites with good signals from 
4. My Garmin got a first fix in 48 seconds vs. 176 seconds for the N810.
After powering off, the Garmin got a second fix in about 2 seconds.
The N810 took about 20 seconds. For a much newer device, that's kind of 
disappointing.

I tried moving the tablet to various orientations but didn't see any 
clear affect on the signal strength, having got a fix.

I take it back about the metal .. the case is plastic painted to look 
like metal, apart from the battery cover and the front fascia, 
and the dark grey panel at the top back is all plastic. I just popped 
it .. holds the funny-looking speakers with audio ducts to the side, and 
an odd floating single contact - maybe it's conductive plastic for EMI 
shielding ...

http://andrew.triumf.ca/andrew/n810.spkr.jpg
http://andrew.triumf.ca/andrew/n810.back1.jpg
http://andrew.triumf.ca/andrew/n810.back2.jp
(video grab from fixed-focus minicam, excuse the blurring..)

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Cross-compiling for the N800

2008-03-31 Thread Andrew Daviel
On Mon, 31 Mar 2008, Peter Flynn wrote:


 All installed, but compiling the utility with cc -o foo foo.c bar.c
 produces a binary which executes perfectly inside the VMware dev img
 window, but whe uploaded to the N800 says

Personally, I installed scratchbox as per
http://tablets-dev.nokia.com/4.0/INSTALL.txt
then have to start the environment up and login.
Then I get a prompt
[sbox-CHINOOK_ARMEL: ~]
and can do gcc, make etc., then copy binaries to the tablet with scp.
Sometimes, the binary segfaults in scratchbox but runs OK on the tablet.
I haven't investigated.

I'm not sure this is the same as you have; I'm not running VMware AFAIK.

I don't normally use GUI on Linux and may or may not have an icon on ny 
FC4 system. Probably not.

Described (including caveat about not heeding warnings...) at 
http://andrew.triumf.ca/andrew/n810-blog.html#scratchbox

Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


QR (mobile codes)

2008-03-25 Thread Andrew Daviel

Anybody played with mobile codes (2D barcodes) ?
Apparently they are a big deal in Japan

I was browsing Nokia's site and found the following:
http://mobilecodes.nokia.com/index.htm
Of course, my 6820 cellphone is too old/small to have a reader, and
my new N810 is Linux not Symbion and doesn't have Java  :-(

After following various links on Google about formats and patents and 
people saying not for Linux yet I found a couple of sites saying QR was 
royalty-free and
http://trac.koka-in.org/libdecodeqr
http://megaui.net/fukuchi/works/qrencode/index.en.html

I managed to build libdecodeqr and the simpletest demo under both FC4 
and Maemo. But it won't decode images on maemo (status 4200 imagereader 
error). On FC4 I can decode many of the test images, also images
made with qrencode. Also a photograph of an image made with qrencode 
(which is the whole point of the exercise).
http://andrew.triumf.ca/59_48_15-260308.jpg

But QR images made with Nokia's online tool give 2009 
CODEDATA_NOT_SUPPORT_ECI, which is somewhat annoying.

I was starting to think this was kind of cool ... we could put QR codes 
on museum displays etc. and if every Japanese cellphone 
out-of-the-box, and most others with an app download, can read them and 
link to a website for more information, it would be neat.

But now I'm wondering about interoperability.
Has anyone played with this on a cellphone ?
Can anyone read my QR image ?

(a while back there was a fad in Japan to have T-shirts with English 
text, but mostly it was gibberish. Interestingly, I think I had a T-shirt 
with Kanji text, and a Japanese friend said that was gibberish, too. Now 
Nokia suggests we have machine-readable gibberish on our shirts, which 
opens the door to some interesting abuse with people wearing messages 
they don't understand (see me naked on www...), much like the legend of 
the Chinese take-out in Britain whose sign apparently read death to the 
round-eyes or some such )

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Locked out of my own machine?!?!?

2008-03-19 Thread Andrew Daviel

 I've searched the site, and the root password on my N800 with OS2008
 2.2007.51-3 is *NOT* rootme. How the heck do I get root access on my
 own @#!$%^ machine!?!?

On my N810 with OS2008, the root password in /etc/passwd
was encrypted with crypt() and disabled (with a ! in front). John the 
Ripper cracked it to rootme in a couple of minutes.
So, yours might indeed be rootme but it won't work because it's locked.
On a normal system, usermod -U root would unlock it.  YMMV.

After beating myself over the head a few times, I decided that the best 
way to get root is probably what Nokia intended in the first place - use 
the flasher to enable RD mode then do sudo gainroot. Flasher 3.0 is 
quite nice and surprisingly painless, in terms of restoring backups,
re-installing registered packages etc. Red Pill mode does not work on
OS2008 (on the N810).

Otherwise as others have said, install openssh-server + openssh-client
then ssh to localhost. (openssh-server instal prompts for a new root 
password). IMO, one should then set up ssh keys and add
PermitRootLogin without-password to /etc/ssh/sshd_config in view of the 
number of SSH bruteforcing attacks on the Internet.

After doing sudo gainroot, you can then do su - to set root's 
environment. Otherwise it inherits user's.

I now have openssh-server.deb saved on the SD card, so if I shoot myself 
in the foot (again) I can do
# ./flasher-3.0 --enable-rd-mode
# ./flasher-3.0 -b
$ sudo gainroot
# apt-get install /media/mmc1/openssh-server.deb
then use scp and rsync to get back to where I was (apt-get over ssh from 
a desktop being a bit easier than poking application-manager with the 
stylus)


Ramblings and documented mistakes at
http://andrew.triumf.ca/andrew/n810-blog.html



-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Encrypted filesystem/containers on N8*0 ?

2008-03-19 Thread Andrew Daviel

Are there any encrypted filesystems that work on the Nokia tablets ?

With all the buzz about people losing laptops with reams of HR records 
etc. it seems having an encrypted FS on an eminently losable device such 
as a tablet would be a good idea. While gpg can be used to encrypt single 
files, it is a real pain if you have lots of temporary files like a 
browser cache, and you have to remember to clean up plaintext with shred 
-u.

I've used BestCrypt on my Linux desktop and laptops for the last few 
years. At the time it seemed the only thing that worked, and I've kept 
going out of inertia, but it's nonfree on Windows and uses x86 
precompiled kernel modules (taints the kernel).

How it works is that you create an encrypted container file (or a raw 
device), then create a filesystem on it (ext2, VFAT, etc.) and mount it.
You give a password to mount the container, after which you have a 
normal-looking filesystem which can contain things like 
.mozilla/xyzdefault/cache and /tmp. I guess you could put /home on it, 
but earlier versions were insufficiently robust to risk it.

(For the paranoid, there was recent buzz about people pulling data such 
as disk encryption keys out of RAM by cooling it, power-cycling then 
booting an alternate low-footprint OS - e.g. if someone steals your 
laptop when it's suspended or on)

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Resetting the screen lock number on Nokia N8*

2008-03-12 Thread Andrew Daviel

I have not (yet) shot myself in this particular foot ... :-7

When working on a password policy, I identified three categories of 
passwords (passwords should not be shared between categories, but that's 
another issue..) :

- weak passwords that you don't write down because all you have to do is
   fill in your email address and it will be sent to you in clear
- strong passwords that you don't write down, and if you forget it
   there's a way to reset it without knowing what it is (ask an
   administrator, remove the battery etc.). E.g. online banking,
   Linux shell passwords.
- strong passwords that you write down and store in a couple of safes,
   because if you forget it you or your heirs are totally screwed. E.g.
   encryption keys, some Windows administrator passwords

I'm wondering what category the Nokia N810 lock number falls in. It 
survives battery removal and OS reflashing, and AFAIK sshd won't start up 
until you have entered the number after booting.

Anyone know how to reset the number if you really have to ?


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Resetting the screen lock number on Nokia N8*

2008-03-12 Thread Andrew Daviel
On Wed, 12 Mar 2008, Austin Che wrote:

 How exactly would you get past the lock ?

You should be able to use the flasher to set the default root
device to the external card and then put on the card an OS that
ignores the device lock on startup.

OK. Of course it must be an ARM OS not some random Knoppix image...

In terms of the original question, for ordinary mortals the answer seems 
to be write it down and keep it safe, unless you know a wizard
spiced with but don't use a sensitive number, because a wizard can read 
it.

Until someone places a foolproof 1-step rescue image on the Web and 
documents exactly how to install and boot it. I presume one might copy
an image to the SD card over USB then use the Nokia flasher to boot it.


Andrew
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


shift-notifier in osso-xterm on N810

2008-03-11 Thread Andrew Daviel

Does anyone know if one can disable the shift notifier in osso-xterm ?

On the N810, if I maximize osso-xterm and slide out the keyboard, I have the 
full screen available, which is almost as good as xterm on my desktop. But as 
soon as I hit a key, it takes about 5 lines worth of vertical to put a shift 
notifier (abc/Abc/ABC/Fn) in the corner, and leaves it there till I close and 
re-open the keyboard. Not that it isn't useful, I just  begrudge it 15% of the 
screen. It might be better as a pop-up that goes away after a second or so.

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: shift-notifier in osso-xterm on N810

2008-03-11 Thread Andrew Daviel
On Tue, 11 Mar 2008, Austin Che wrote:


 Does anyone know if one can disable the shift notifier in osso-xterm ?

Control panel-Text input-Languages-Settings and uncheck word
completion and next word prediction. You can also selectively
show/hide it with shift-space.

Thanks. Now all I have to do is swap characters I never use, such as the 
Yen symbol, for ones I use every few minutes, like '|' 
I find I keep opening and closing the keyboard

.. Oops! Bad move ...

I made .Xmodmap with
   keysym semicolon = semicolon colon bar bar bar
   keysym plus = plus equal Tab Tab Tab
   keysym m = m M Escape Escape Escape

and put
   if [ -x /usr/bin/xmodmap -a -s .Xmodmap ] ; then
 xmodmap .Xmodmap
   fi

in ~user/.profile, and now it won't boot. Keeps looping.
I have the key lock on so sshd won't come up. Bah! Back to the flasher, I 
guess, unless anyone's got any suggestions.


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Is there an implementation of diff for OS2008?

2008-03-10 Thread Andrew Daviel

Jeffrey Mark Siskind wrote on Tue Mar 4:

 Is there an implementation of diff for OS2008?

I recently ported diffutils from my home desktop (Fedora Core 4).
I'm still trying to get my head around Debian packaging and .install 
files (Fedora uses RPM and Yum. Debian's easier, but different) so my 
.install doesn't work. Maybe it just needs to be user instead of 
free.

So far, I have ported a few odd things I can't do without:
   diffutils - diff,sdiff,diff3
   bc  - arbitrary precision calculator
   bzman - emulates man using preformatted, bzipped pages
   cron  - kind of works, but is missing mail
   gnuplot - X based plotting program
   less
   lynx - text-mode web browser
   nc  - netcat tcp/udp client/server

http://andrew.triumf.ca/N810/repository/dists/chinook/free/binary-armel/

Now that I look, diff and less were probably in /scratchbox/tools/bin all 
along, but I couldn't find them on my N810 with apt-get install less.


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Stale timezone rules for Canada

2008-03-10 Thread Andrew Daviel

Yesterday was clock-forward time for most of the US and Canada, but my 
N810 failed to switch. I only bought it a few weeks ago, AND I upgraded 
to the latest OS2008 53.1 or whatever. Canada decided to follow the US
on this province-by-province, but BC decided on 31 March 2006 and the 
Linux zone sources were updated the next day. So I'm wondering why
Nokia has failed to update given nearly 2 years notice.

In Maemo, timezones are in the libc6 package. I have 
maemo-scratchbox-4.0.1 and the zones weren't all correct there, either.
But I was able to update libc and that seemed to fix Vancouver.
Prior to that, I was able to recompile the North American rules with zic
and copy the Vancouver zone to my N810, solving my immediate problem, as 
per my page http://andrew.triumf.ca/dst.html

I have made a stab at collecting updated Canadian zones from my FC4 
system (just because I've got it. It should really be done from source) 
and made
http://andrew.triumf.ca/N810/repository/dists/chinook/free/binary-armel/tzdata-canada-2006.deb

this wants to overwrite files from libc6 but is not a complete 
replacement for libc6. Not sure how to do it in apt-get, but this works:
   dpkg -i --force-overwrite
/var/cache/apt/archives/tzdata-canada-2006_2006g_armel.deb

so now
$ zdump -v America/Yellowknife|grep 2008  gets
America/Yellowknife  Sun Mar  9 08:59:59 2008 UTC = Sun Mar  9 01:59:59 2008 
MST isdst=0 gmtoff=-25200A
instead of
America/Yellowknife  Sun Apr  6 08:59:59 2008 UTC = Sun Apr  6 01:59:59 2008 
MST isdst=0 gmtoff=-25200

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Nokia N810 and Google Maps

2008-03-10 Thread Andrew Daviel
FYI

I just noticed that if I have Fit width to view checked in the browser 
on my N810, that Google Maps won't display. Well, it does, but the maps 
are blank. As I had had it checked the first time I tried Google Maps,
I thought **! it, it won't work! (the Google Map API is something I 
want to play with using the GPS).

(It might be nice to have a mobile version for the N8* tablets, not that 
the regular one won't work, but because I'd like to use less bandwidth if 
I'm connected via my cellphone and paying byte charges. But I think it's 
only available for Symbion, Windows Mobile and Java. Actually, what I
really want is to overlay the Google results on the Nokia or Maemo-mapper 
maps that I already have, rather than downloading tiles over GPRS)


-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users