openmoko-panel-plugin for current kernel and FSO

2011-11-14 Thread Niccolo Rigacci
Hi,

I revived the old openmoko-panel-plugin.

The project is abandoned by its authors, but I decided to revive 
it, at least on my OpenMoko FreeRunner running Debian Sid.

I dropped support for older kernels and old FSO implementation, 
because I have not enough resources to mantain them.

At the moment consider it just a personal project, but you can 
find the souce, a tarball and the Debian package:

http://sourceforge.net/projects/openmoko-panel/

I renamed the project openmoko-panel, the Debian package 
conflicts with openmoko-panel-plugin.

I wish to thanks the developers which wrote the software and 
realeased it under a free license: xaos x, Sebastian Ohl and 
Christian Adams.

Any feedback is apreciated.

-- 
Niccolo Rigacci
Firenze - Italy
Tel. ufficio: 055-0118525

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GTA02: Should I install fso-frameworkd, fso-deviced or both?

2011-10-26 Thread Niccolo Rigacci
Thanks Rico for your answer,

 fso-frameworkd and fso-deviced both provide org.freesmartphone.odeviced 
 interface but in fso-framworkd it's disabled by default.

If I understand well the two interfaces are not identical, i.e. 
the battery info is available at different nodes. In one case it 
is:

org.freesmartphone.odeviced \
/org/freesmartphone/Device/PowerSupply/3 \
org.freesmartphone.Info.GetInfo

in the other it is:

org.freesmartphone.odeviced \
/org/freesmartphone/Device/PowerSupply/battery \
org.freesmartphone.Device.PowerSupply.GetInfo

Is one interface preferred/deprecated/obsolete or whatever 
respect the other?

I don't understant the rationale of that duplication.

Thanks again.

-- 
Niccolo Rigacci
Firenze - Italy
Tel. ufficio: 055-0118525

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Debian sid, openmoko-panel-plugin: battery dbus broken and abnormal CPU usage

2011-10-25 Thread Niccolo Rigacci
Hi to all,

after a recent upgrade the battery icon on the 
openmoko-panel-plugin stopped to work.

It seems that the dbus interface changed from:

mdbus2 -s org.freesmartphone.odeviced \
/org/freesmartphone/Device/PowerSupply/battery \
org.freesmartphone.Device.PowerSupply.GetInfo

to this one:

mdbus2 -s org.freesmartphone.odeviced \
/org/freesmartphone/Device/PowerSupply/3 \
org.freesmartphone.Info.GetInfo

Is it normal or something is messed with my dbus/fso settings?

Also i see an high CPU usage by openmoko-panel-plugin and 
fsodeviced, but may be it is caused by the panel querying the 
wrong dbus interface.


Here are the packages I installed:

linux-image-2.6.34-openmoko-gta02 20101212.git049b71de-2
dbus  1.4.16-1
fso-config-gta02  20100210
fso-deviced   0.9.5+git20110805-1
fso-deviced-openmoko  0.9.5+git20110805-1
fso-frameworkd0.9.5.9+git20110512-2
fso-usaged0.9.5+git20110805-2
openmoko-panel-plugin 0.12-1

-- 
Niccolo Rigacci
Firenze - Italy
Tel. ufficio: 055-0118525

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


GTA02: Should I install fso-frameworkd, fso-deviced or both?

2011-10-25 Thread Niccolo Rigacci
Please help, I'm very confused!

Can someone tell me what are the differences between 
fso-frameworkd and fso-deviced packages?

What should I install on my GTA02 FreeRunner?

It seems that the DBus interface changes running one or the 
other, but they let access the same hardware.

Many thanks!


P.S. I installed Debian Sid from Debian and 
pkg-fso.alioth.debian.org.

-- 
Niccolo Rigacci
Firenze - Italy
Tel. ufficio: 055-0118525

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


xserver-xorg uses 100% CPU with Debian wheezy/sid

2011-10-24 Thread Niccolo Rigacci
Hi,

is someone else experiencing the same problem of mine?

When I start X everything seems fine, but as I touch the screen 
the CPU usage by the X process, reaches 100%.

I'm running Debian wheezy/sid on the OpenMoko GTA02, with the 
following packages:

linux-image-2.6.34-openmoko-gta02 20101212.git049b71de-2
libts-0.0-0   1.0-9
xserver-xorg-core 2:1.11.1.901-2
xserver-xorg-input-tslib  0.0.6-7+b1
xserver-xorg-input-evdev  1:2.6.0-2+b2
udev  172-1
hal   0.5.14-7

X is starting on defaults, no xorg.conf file.

I tried also with any deamon stopped (the ones that I can stop), 
starting just X or startx, using fbdev or glamo driver: no 
changes.

I also tried to revert libts-0.0-0 to 1.0-7, but it seems NO the 
same problem as Debian bugs #623095 or #623974.

As soon I touch the screen, X emits this warning:

selected device is not a touchscreen I understand

but the pointer is indeed woring.


If I strace X, I see this endless loop:

select(256, [1 3 4 5 7 9 11 12], NULL, NULL, {569, 897000}) = 1 (in [12], left 
{569, 896900})
rt_sigprocmask(SIG_BLOCK, [IO], [], 8)  = 0
rt_sigprocmask(SIG_UNBLOCK, [IO], NULL, 8) = 0
clock_gettime(CLOCK_MONOTONIC, {1719, 218454002}) = 0
clock_gettime(CLOCK_MONOTONIC, {1719, 219599002}) = 0


-- 
Niccolo Rigacci
Firenze - Italy
Tel. ufficio: 055-0118525

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: xserver-xorg uses 100% CPU with Debian wheezy/sid

2011-10-24 Thread Niccolo Rigacci
On Mon, Oct 24, 2011 at 05:37:39PM +0300, Timo Juhani Lindfors wrote:
 Niccolo Rigacci nicc...@rigacci.org writes:
  When I start X everything seems fine, but as I touch the screen 
  the CPU usage by the X process, reaches 100%.
 
 This is a known issue I think.
 
  X is starting on defaults, no xorg.conf file.
 
 How did you install the system? install.sh creates an xorg.conf that
 does not use tslib.

This is the origin of the problem: I installed from install.sh 
some months ago: several thigs went wrong and I had to manually 
adjust them.

Following the notes by Nikolaus Schaller I wrote an xorg.conf 
which works nice, may be I will post it somewhere.

Perhaps a note on Debian Wiki should be added too?

-- 
Niccolo Rigacci
Firenze - Italy
Tel. ufficio: 055-0118525

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPSDproxy: send GPS data from gpsd to a remote server

2009-01-15 Thread Niccolo Rigacci
On Thu, Jan 15, 2009 at 09:50:04AM +0100, Jean-Philippe Andriot wrote:
  shouldn't this use two fork()'s? See Stevens's Advanced Programming
  in the Unix Environment book or take a look at how e.g. tor makes
  itself a daemon:
 
 man 3 daemon should do it better :)

Wow!!!

Excellent audit and very interesting suggestion in a few hours, 
and just for free

I thank you very much.

I suspect that forking without redirecting stdin/out/err 
(as I did) causes some trouble during shutdown, because my 
FreeRunner hangs.

I will investigate and fix.

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


GPSDproxy: send GPS data from gpsd to a remote server

2009-01-14 Thread Niccolo Rigacci
Hi,

I released a little software to proxy GPS data read from gpsd to 
a remote server. I use it to store my live track on a Postgres 
database (running on my home server) via GPRS connection.

The software is hosted here:
http://sourceforge.net/projects/gpsdproxy/

This is the announce:

This is the first release of GPSDproxy, a small program which 
reads GPS data from a running gpsd process 
(http://gpsd.berlios.de/) and forwards it to a remote server via 
an UDP connection.
 
GPSDproxy is intended to be run on GPS enabled mobile devices. 
The main features are: 
 
* Very low traffic: can upload the position every 10 seconds, 
24h/24h, 7days/week and consume less than 100Mb/month (telco-plan 
friendly). 
 
* Assume an unreliable connection, like GPRS mobile. Uses UDP 
protocol without TCP/IP retransmission overhead. No akwnoledgment 
from the server is required. Assumes that some data can be lost 
(future versions can implement some sort of 
aknowledge/retransmit). 
 
* Firewall friendly: mobile GPRS connections are often placed 
behind a NAT firewall, gpsdproxy works with just one outgoing UPD 
port. 
 
* Written in C for performance and small footprint. 
 
Included in this release there is the source code of a simple 
server (written in Python), which receives position data from 
several GPSDproxy clients and store it into a PostgreSQL/PostGIS 
database. 

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS unreliable: long lasting connection fail

2009-01-14 Thread Niccolo Rigacci
On Wed, Jan 14, 2009 at 04:53:16PM -0700, Eldon Koyle wrote:
 
 If you have the 'persist' option in /etc/ppp/peers/connection name,
 pppd will reconnect after errors.  To reconnect, it closes the device then
 reopens it.  With gsm0710muxd, when /dev/pts/N gets closed it is
 deallocated.  Then, pppd is trying to reconnect to a device that doesn't
 exist.

This is very interesting and disappointing :-(

But I experienced a different problem, because I don't use 
gsm0710muxd, so the device should be always valid.

What I noticed is that pppd release the lock file of the serial 
line, then it stays in a select loop, without retrying.

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS unreliable: long lasting connection fail

2009-01-12 Thread Niccolo Rigacci
On Mon, Jan 12, 2009 at 08:13:56AM +, Tom Yates wrote:

 i use 2008.12 with gsm0710uxd, and i've had fairly long travelling GPRS  
 calls (15-20 minutes on the train back from london).

Please tell me: with gsm0710uxd the connection is still done by 
pppd/chat?

 since i have an  
 all-you-can-eat GPRS plan, i'd happily try this for myself and give you  
 feedback.  how long is long-lasting, for you?

I hope to last 12 hours or so, because I do GPS live tracking 
with position upload to the internet every 5/10 seconds.

But the real problem is that if the connection fails, it will not 
restart again. I can add a cronjob to test connection and restart 
it, but I know that pppd should manage the fault.

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS unreliable: long lasting connection fail

2009-01-12 Thread Niccolo Rigacci
On Mon, Jan 12, 2009 at 09:41:57AM +, Tom Yates wrote:

 I hope to last 12 hours or so, because I do GPS live tracking
 with position upload to the internet every 5/10 seconds.

 my battery won't last that long!

I use a car lighter adapter :-)

 i'm not sure that pppd is handling the autorecovery, though; i have a  
 vague feeling it's the call handling between the calypso chip and the 
 base station(s)

I can pass from cell to cell through long highway tunnels and the 
GSM modem handles the connection recover transparently, pppd does 
not notice it. But if the pppd notice the failure (due LCP echo 
request timeout), it cannot recover.

I had experience of PPP over DSL lines, where persist and 
holdoff parameters did the trick, but it seems that pppd on the 
FreeRunner has a bug.

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS unreliable: long lasting connection fail

2009-01-12 Thread Niccolo Rigacci
On Mon, Jan 12, 2009 at 06:07:45AM -0800, bytestore wrote:
 
 lcp-echo-interval 3
 lcp-echo-failure 12
 ipcp-restart 10
 persist
 holdoff 15

I suggest you the maxfail 0, if chat fails you get only 10 
tries. 

This is mine:

...
lcp-echo-interval 20
lcp-echo-failure 9
maxfail 0
holdoff 1
persist

Here it is a pppd log, after the Connect script failed, nothing 
more succeeded.

Jan 11 15:29:32 om-gta02 daemon.debug pppd[670]: Script /etc/ppp/ip-up finished 
(pid 712), status = 0x0
Jan 11 15:33:46 om-gta02 daemon.info pppd[670]: No response to 9 echo-requests
Jan 11 15:33:46 om-gta02 daemon.notice pppd[670]: Serial link appears to be 
disconnected.
Jan 11 15:33:46 om-gta02 daemon.info pppd[670]: Connect time 4.3 minutes.
Jan 11 15:33:46 om-gta02 daemon.info pppd[670]: Sent 2871 bytes, received 628 
bytes.
Jan 11 15:33:46 om-gta02 daemon.notice pppd[670]: restoring old default route 
to usb0 [192.168.0.200]
Jan 11 15:33:46 om-gta02 daemon.debug pppd[670]: Script /etc/ppp/ip-down 
started (pid 792)
Jan 11 15:33:46 om-gta02 daemon.debug pppd[670]: sent [LCP TermReq id=0x3 Peer 
not responding]
Jan 11 15:33:47 om-gta02 daemon.debug pppd[670]: Script /etc/ppp/ip-down 
finished (pid 792), status = 0x0
Jan 11 15:33:49 om-gta02 daemon.debug pppd[670]: sent [LCP TermReq id=0x4 Peer 
not responding]
Jan 11 15:33:52 om-gta02 daemon.notice pppd[670]: Connection terminated.
Jan 11 15:33:52 om-gta02 daemon.notice pppd[670]: Modem hangup
Jan 11 15:33:54 om-gta02 daemon.info pppd[670]: Serial port initialized.
Jan 11 15:35:01 om-gta02 daemon.err pppd[670]: Connect script failed

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


GPRS unreliable: long lasting connection fail

2009-01-11 Thread Niccolo Rigacci
Hello,

I cannot get a reliable GPRS connection lasting for some hours, 
while driving.

There is a problem with pppd, which does not restart the gprs 
connection when failed: it seems that pppd options persist and 
holdoff are not honored.

I opened a bug ticket, which did not get reply:
https://docs.openmoko.org/trac/ticket/1955

I tried Om2007.2 and Om2008.12 without GPS multiplexing: I
just stop gsmd (2007.2) or qpe (2008.12) before starting pppd and 
chat, but the problem is still there.

- Can gsm0710muxd (GSM multiplexer) help in some way?

- Does GPRS require pppd or are there different software 
  solutions? Don't know FSO, etc...

What are other experiences with long-lasting GPRS calls?

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


GPRS internet connection applet

2008-08-06 Thread Niccolo Rigacci
Hi,

I just wondering if it exists an applet to start/stop the GPRS 
ppp connection (I use OM2007.2).

Following the guidelines of this page 
http://wiki.openmoko.org/wiki/GPRS
I wrote a little PythonGTK applet, that is working well.

But I'm a very beginner in OpenMoko, Python and GTK, so may be I 
get the wrong approach.

The applet is callet PyPPP, screenshot and download here:
http://www.rigacci.org/wiki/doku.php/doc/appunti/hardware/freerunner#connessione_internet_via_gprs
 

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS internet connection applet

2008-08-06 Thread Niccolo Rigacci
On Wed, Aug 06, 2008 at 12:33:32PM -0400, Daniel Benoy wrote:
 How did you get pygtk running?  I have the problem here:
 http://docs.openmoko.org/trac/ticket/1718

Installing was a little nightmare, because of repositories 
missing packages that were listed, etc.

I had to wipe all the opkg lists, download packages from two 
different repo, and manually install them.

Don't know if I can reproduce the recipe, howerver here I have 
the list of packages and the two repo I used:
http://www.rigacci.org/wiki/doku.php/doc/appunti/hardware/freerunner#connessione_internet_via_gprs
In Italian, sorry, but I think you can manage the list.

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS internet connection applet

2008-08-06 Thread Niccolo Rigacci
On Wed, Aug 06, 2008 at 10:36:54AM -0400, xaos x wrote:
 the fact that after you stop the gprs call, you have to restart 
 X to get the gsm modem to register on the phone network again. 
 Any workarounds you know of for this?

It seems the problem is here too. I have a data-only telco plan, 
so I can check only sending SMS.

I can send an SMS and place a ppp call. After this, I cannot send 
SMS again, despite the gsmd is restarted and the operator name is 
reported in the top right of the screen.

No error is reported by the FreeRunner, but SMS is not recevied.

Is there some log/debuggin of gsm and sms operations?

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


How to customize the Power button menu

2008-07-29 Thread Niccolo Rigacci
Hi,

I'm using the OM2007.2 on the Neo FreeRunner.
I wish to customize the Power button menu, i.e. I want a 
menu item to go immediately to sleep, instead of using the 
unreliable power management.

Of course I also need to know how to put the Neo on sleep... :-)

-- 
Niccolo Rigacci
Firenze - Italy

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community