Re: Never Try to Outsmart the OS

2007-05-14 Thread Mike Cowlishaw
> Mikhail,
> 
> the version that I am running is 0.9.1 and I am pretty sure that I used
> the application manager to install it.  If you would like a screenshot
> or something like that I can send it to you off list. Just let me know
> what you need.
> 
> In the scale of annoyances, this is not, for me a biggie since there is
> a simple workaround. Interestingly, and contrary to my understanding of
> X11vnc, X11vnc seems to stop running after a period of inactivity (i.e.
> no connection) and then it must be restarted.

I used to see that, and then or no apparent reason it stopped dropping the
connection and seems completely reliable now.

> I would have thought that,
> since it runs as a daemon/service, that it would remain
> running/listening once it is started.
> 
> In fact, it would be nice if the load-applet could be enhanced to
> include "stop" and "restart" as options for those processes that are
> installed as daemons and, furthermore, to somehow distinguish them in
> the process list from those processes that are not daemons/services.

Even better would be a way to allow connections to services when the N800 is
offline (as on a 'plane) or not connected to Wi-Fi.  This is a real
show-stopper .. nobody seems to know a workaround. :-(

mfc


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


RE: Localhost unavailable when wi-fi offline or not connected

2007-05-02 Thread Mike Cowlishaw
Hmm, yes, same discussion - thanks.  Unfortunately that thread just faded
out with no real solution for how to connect to running server on N800 when
offline.   One suggestion 'rewrite the application'  definitely not an
option (especially as I've spent two months porting it to N800.).

 

mfc

 

-Original Message-
From: Antonio Gomes [mailto:[EMAIL PROTECTED] 
 

maybe same discussion at
http://maemo.org/pipermail/maemo-developers/2007-February/007762.html ? 

On 5/1/07, Mike Cowlishaw <[EMAIL PROTECTED]> wrote:

Hi, I have a Wiki running on my N800 using the usual configuration (for many
applications) of a TCP/IP server running on the local host address
(127.0.0.1) and an TCP/IP client on the same device.  (In this case an HTTP 
web server and the Opera browser.)

While trying to test this on an aeroplane at the weekend -- with Wi-Fi
offline, of course -- the browser would not connect to the server.  I've
since experimented further and find a similar (or the same) problem occurs 
online if no Wi-Fi connection is active.

This is a showstopper for my application as it means I cannot easily view my
data unless online and connected -- is there a fix/workaround?

Thanks -- mfc 

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


Localhost unavailable when wi-fi offline or not connected

2007-05-01 Thread Mike Cowlishaw
Hi, I have a Wiki running on my N800 using the usual configuration (for many
applications) of a TCP/IP server running on the local host address
(127.0.0.1) and an TCP/IP client on the same device.  (In this case an HTTP
web server and the Opera browser.)

While trying to test this on an aeroplane at the weekend -- with Wi-Fi
offline, of course -- the browser would not connect to the server.  I've
since experimented further and find a similar (or the same) problem occurs
online if no Wi-Fi connection is active.

This is a showstopper for my application as it means I cannot easily view my
data unless online and connected -- is there a fix/workaround?

Thanks -- mfc


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


RE: x11vnc -- problems solved

2007-04-21 Thread Mike Cowlishaw
> do you know what if any are the side effects of disabling the use of the
pressure information on the N800 as a result of implementing your
workaround? In other words does this break some other functionality of the
N800, or is the pressure information something that is there as a latent
"feature" but not actually used by the N800?

I'm sure Nokia folk can answer that better than I, but I think it affects
detecting whether a wide area pressure is detected (as by a finger or thumb
fleshy part) rather than a touch from a stylus or fingernail.  As I don't
use fingers directly on the screen (I really hate the grease marks) this
makes no difference to me.

> If the answer is yes, then it might be possible to write a script to
disable it when VNC functionality is needed but to be able to turn it back
on when the pressure functionality is needed.

It would be even nicer if it were a checkbox in the Text Input Settings (or
other) applet in the Control Panel...

mfc

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


x11vnc -- problems solved

2007-04-21 Thread Mike Cowlishaw
Many thanks to everyone who helped me get x11vnc problems sorted out; I
finally fixed the 'last big one' (enter key not working as expected).  I
have summarised my experiences and the workaround at:

http://maemo.org/maemowiki/How_to_use_x11vnc_to_'drive'_the_N800_from_a_PC

in case anyone else wants to give projected demos of the N800, get
screenshots, etc., from their PC or laptop.

mfc

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


RE: disabling pressure information (for x11vnc)

2007-04-18 Thread Mike Cowlishaw
Hi, many thanks ... I can form that: 

> >   If you want to disable pressure information usage, you need to run
> >   the device X server with XInput protocol/extension disabled.  Just
> >   add  "-extension XInputExtension" to the /etc/init.d/x-server file
> >   X server options and reboot the device.
> >
> > Where it is added to the end of the
> > ARGS="" string, preceded by a space.  

Does indeed mean that the mouse over X11vnc now works on the task manager
pane on the left.  Many thanks!

It doesn't completely fix the problems though .. the other big problem is
still there, in that in X-terminal pressing the enter key brings up the
thumb keyboard and does not enter the data.  One can achieve an Enter by
clicking on the window (which brings up the stylus keyboard) and then on the
Enter key there, but that's terribly inconvenient.  Any suggestions?

mfc

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


RE: x11vnc dropping connection

2007-04-17 Thread Mike Cowlishaw
Adding to the datapoints here, my Access Point is:

 D-Link Wireless 108G MIMO ADSL 2/2+ Router

In general this seems to work extremely well with the N800 .. I can wander
all over my house with the N800 and I don't recall losing a connection,
whereas a standard laptop with builtin wireless tells to lose connection in
the room most distance from the router.

[I am using x11vnc with the router, N800, and PC all in the same room.]

mfc 

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


RE: Scratchbox and maemo development

2007-04-12 Thread Mike Cowlishaw
John, thanks ...

> another example of a very good ARM emulator is the one that Microsoft has
created for Windows Mobile SW developers. This emulator has already been
updated to support WM 6.0 and it can be obtained either as a part of the
Windows Mobile SDK or, stand alone.  
...
> To my way of thinking, and to the extent it is not already doing so, Nokia
itself should make the investment to produce/maintain an emulator at least
for its own Internet Tablet hardware and make this available to this
community.  For sure they must already have such emulators for their own in
house mobile handset sw development staff. 

Just to clarify .. an ARM emulator in itself is not sufficient, however
excellent.  What makes it really easy to port applications is a
'whole-device' emulator such as Palm provided (I recall it was first written
by a non-Palm developer, which they then bought from him and made it
in-house; I forget the details).

Mike

___
maemo-developers mailing list
[EMAIL PROTECTED]
https://maemo.org/mailman/listinfo/maemo-developers


Re: Scratchbox and maemo development

2007-04-12 Thread Mike Cowlishaw
> > Said that, the main elements to consider are:
> >
> > - Development via Scratchbox vs development models bypassing SB
> > - SB vs SB2
> 
> > Several pieces moving around, we need to consider all those and come up
> > with a sensible strategy, and results. All this work is for you guys.
> > Developers, please have your say.

>From this developer's experience, Scratchbox has not been a joy of my life.


I'm in the progress of porting a relatively small application from Windows
(originally OS/2) to the N800 -- a webserver (GoServe) running a Wiki.

First I had to port it to Linux (I used ubuntu because the maemo VMware
image uses that).  That had problems -- but not unexpected (I first used
Unix in 1978, and have used several flavours of Unix and Linux on and off
since then).

Then I had to port it again to Scratchbox X86.  A whole set of new problems;
different levels of libraries, pthreads just didn't work so I had to make my
webserver single-threaded, and several build scripts had to be rewritten

Then I had to port it again to Scratchbox ARMEL.  Here I had to duplicate
all my build and run scripts in bash, because Rexx scripts (which run fine
in Scratchbox X86 and on the real N800 device!) cannot call commands or
other Rexx scripts in the Scratchbox ARMEL environment.  I cannot run the
server to test in the Scratchbox environment but instead have to use the
real device (hence my interest in x11vnc recently :-).

- - -

This is a *big* contrast to when I last programmed for a portable device (an
early Palm, about 8 years ago).  The SDK for that came with a complete
emulator for the device, which ran as an application (under Windows, but the
host is not important) -- what you saw on the Windows screen was *exactly*
what you saw on the actual device.  After using it for a few months, I was
happy to put out code for others to use without even trying it on the real
device.  And, later, I could add features for others to use on their more
advanced (newer) devices without having to go out and buy each and every
hardware variation.

- - -

So that's my feedback: please provide an emulator that runs on some host (a
Debian Linux is fine) for which one can cross-compile and run the resulting
binaries such that what you'll see on the emulator screen is what you'll see
on the actual device.

[Yes, inputs might be a bit different -- the pressure sensor is an
interesting case -- but at least the stylus and hardware keyboard input
should be possible.]

Hope that helps!

Mfc  (google: Mike Cowlishaw)

___
maemo-developers mailing list
[EMAIL PROTECTED]
https://maemo.org/mailman/listinfo/maemo-developers


RE: disabling pressure information (for x11vnc)

2007-04-12 Thread Mike Cowlishaw
> > I get the same problem as you with the x11vnc not responding to clicks
> > on
> > the docking/application bar. It's frustrating as heck because it was
> > inversely so neat to even find a vnc server for this. It is definately
> > an
> > x11vnc issue as I tried 2 different VNC viewers, and if I maximize
> > applications I can still register clicks in that area.
> 
> I think the issue is that x11vnc uses the XTest protocol/extension to
> simulate the events at the device and XTest doesn't support pressure
> information.  Pressure information is needed for detecting whether
> the device is used with fingers or stylus.
> 
> If you want to disable pressure information usage, you need to run
> the device X server with XInput protocol/extension disabled.  Just
> add  "-extension XInputExtension" to the /etc/init.d/x-server file
> X server options and reboot the device.  Note that if you make a mistake
> and X server doesn't start, your device could end up in a reboot loop.

That sounds promising!  Is there a 'safe' way to disable this (e.g., via an
installable applet)?

mfc


___
maemo-developers mailing list
[EMAIL PROTECTED]
https://maemo.org/mailman/listinfo/maemo-developers


Re: x11vnc no response to taps on left of screen

2007-04-10 Thread Mike Cowlishaw
> "ext Jeffrey Barish" <[EMAIL PROTECTED]> writes:
> 
> > Also, the N800 has an annoying habit of dropping the WiFi connection
> > because it is not detecting any taps on the screen.
> 
> We don't have such functionality at all. We do have idle timer which
> disconnects the connection after a specified timeout if there's no
> traffic. But if I recall correctly, it should be disabled for WLAN by
> default

I'm seeing the same thing .. it appears to be the same timeout as the
display -- when the display switches off the x11vnc server needs a stop and
(re-)start.  WLAN setting under Connectivity is indeed shown as Indefinite.

> You must be seeing something else. What AP are you using and what are
> it's settings?

[I am using N800 out of the box with the
RX-34_2007SE_3.2007.10-7_PR_COMBINED_MR0_ARM update; no extras installed yet
other than osso-xterm and ooRexx.  RedPill mode enabled.]
 
> And what do you mean by dropping? Does UI inform that connection is
> disconnected or is the WLAN connections just "jammed", ie. no data is
> transferred?

It's the VNC client-server connection that drops, not necessarily the WLAN.

mfc


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


x11vnc no response to taps on left of screen

2007-04-08 Thread Mike Cowlishaw
> Message: 16
> Date: Sat, 07 Apr 2007 17:27:20 -0600
> From: Jeffrey Barish <[EMAIL PROTECTED]>
> Subject: x11vnc no response to taps on left of screen
> To: maemo-developers@maemo.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii
> 
> Well, I finally got something to work.  I was getting pretty discouraged.
> I installed x11vnc and connected to it with Krdc.  I get a nice display of
> the N800 desktop and I can tap on most things and get an appropriate
> response.  

Ditto -- this looks like an excellent way of getting screenshots of the
N800, also for live demos using a projector attached to laptop.

> However, when I tap on items on the left side of the screen (in
> the task navigation area) such as the globe, nothing happens.  

I have exactly the same problem, also others (notably the Enter key brings
up the thumb keyboard).

> Also, the
> N800 has an annoying habit of dropping the WiFi connection because it is
> not detecting any taps on the screen.  

Yes, this seems to be when the N800 switches to standby.  It would be nice
in x11vnc restarted automatically...

But the big problem is the 'dead' area of the screen ...

[I also tried two VNC clients, so I don't think the problem is in the
client(s).]

mfc


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


RE: Error building maemopad package

2007-03-26 Thread Mike Cowlishaw
Thanks for the quick reply ...

> -Original Message-
> From: Daniel Stone [mailto:[EMAIL PROTECTED]
> On Sun, Mar 25, 2007 at 03:46:05PM +0100, ext Mike Cowlishaw wrote:
> > Hi, I am working my way through the Maemo 3.0 tutorial, and everything
> > was
> > working as expected until I got to step 4 of the maemopad example.  This
> > 'dpkg-buildpackage -rfakeroot -b' appears to go well, but ends with:
> >
> >   dh_link
> >   ln: creating symbolic link
> >   `debian/tmp/etc/others-menu/extra_applications/0112_maemopad.desktop'
> >   to `/usr/share/applications/hildon/maemopad.desktop': Operation not
> >   permitted
> >
> >   dh_link: command returned error code 256
> >   make: *** [binary-arch] Error 1
> >
> > ... which is a bit of a show-stopper.  Any ideas as to what might cause
> > this?
> 
> Are you working on a filesystem which doesn't allow symbolic links?

No, I am using the VMWare appliance (ubuntu with Scratchbox, etc., ready
installed), to which I added the Nokia binaries as per INSTALL.txt.  The
maemo_hello program and the desktop work as shown, but I'm now stuck :-(

All suggestions welcome!

mfc


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


Error building maemopad package

2007-03-25 Thread Mike Cowlishaw
Hi, I am working my way through the Maemo 3.0 tutorial, and everything was 
working as expected until I got to step 4 of the maemopad example.  This 
'dpkg-buildpackage -rfakeroot -b' appears to go well, but ends with:

  dh_link
  ln: creating symbolic link 
  `debian/tmp/etc/others-menu/extra_applications/0112_maemopad.desktop'
  to `/usr/share/applications/hildon/maemopad.desktop': Operation not 
  permitted

  dh_link: command returned error code 256
  make: *** [binary-arch] Error 1

... which is a bit of a show-stopper.  Any ideas as to what might cause 
this?

Mike Cowlishaw
-

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


meta-question re maemo-developers Digest

2007-02-22 Thread Mike Cowlishaw
I subscribed to this as a daily digest (and just checked that my setting is
indeed that) -- but I'm being bombarded by several (at least four, with just
a few posts) every day.  Anyone have any idea why?  

Thanks!

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


VMWare appliance maemo and Samba

2007-02-20 Thread Mike Cowlishaw
Very many thanks for setting up a VMWare appliance for maemo!  This allowed
me to compile and run the canonical 'Hello world' example in just a few
hours -- I hadn't run Linux for a few years; it's good to be back :-).

I'm running as a virtual machine on a Windows XP host, and I think the one
think I need before being able to start a serious application port to the
N800 is to be able to share files easily between the virtual machine and the
XP host.  I'm almost there, but not quite:

I installed Samba using the synaptic package install, then used Share
Folders to set a share for my home directory (and also set the workgroup
name for my local network).   All seemed to take, but:

  -- I cannot see any of the Windows machine (or myself) in the Windows
 Network on Ubuntu

  -- from the Windows side, I can see the machine UBUNTU-MAEMO  (so I think
 Samba is running OK) -- but when I try and connect to the share the 
 Password dialog just gets re-presented, as though the user and password
 are wrong.

Any ideas?

mfc

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