User talk:Alessandro

From Openmoko

Revision as of 01:39, 4 October 2007 by Alessandro (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Settingsgui bug

I added your repository (it took four tries because it's very poorly documented that the file name in /etc/ipkg/ has to end in ".conf"!), ran ipkg update, and installed settingsgui. This didn't seem to create any way to RUN it from the screen (perhaps you have to reboot? I wasn't willing to do that, seemed too much like Microsoft. My old Zaurus was able to install apps without rebooting.)


The desktop file that the packages installs has to be read by the openmoko application list program.
For this to happen it is enough to restart that application or more simply done the xserver (the
script in /etc/init.d/ would do the trick)

So I ran it from a shell with DISPLAY set. It ran and was able to control the screen brightness. But when dealing with GSM, it said on the terminal:

Executes subprocess [/usr/bin/libgsmd-tool -m shell]
libgsmd-tool: <# # Power-On>
libgsmd-tool: <# Register>
libgsmd-tool: <EVENT: Netreg searching for network >
Exception in thread Thread-3:
Traceback (most recent call last):
 File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
   self.run()
 File "/usr/lib/python2.5/site-packages/SettingsGUI/ProcessInterface.py", line 131, in run
   event[1](line)
 File "/usr/lib/python2.5/site-packages/SettingsGUI/GSMPanel.py", line 112, in network_registration_changed
   location_area = line.split(" ")[7]
IndexError: list index out of range

I don't know why. I was able to manually (with atcmd mode) get my SIM to register, make calls (no audio), and send an SMS. FYI.

Addendum: I tried the last settings page (GPRS), which won't work with T-Mobile Prepaid sim. But when I clicked "Connect", it failed without any error message. In this case I don't even think the GSM modem is connected to T-Mobile yet...perhaps better error reporting here would be good.


For this error you have to ask Kriss who is the developer of SettingsGUI (I just did the package).
I'll drop him an email telling to read here.
Thanks for the bug report. I'll get into this the next days. --kriss 12:54, 14 September 2007 (CEST)
This bug is solved since Version 0.7. --kriss 01:18, 2 October 2007 (CEST)

What does "ipkgorphan" do?

I was unwilling to try it without some brief clue about what it's supposed to do :-)

It reads ipkg database and computes which packages are 'leaf' in the graph. That is those packages
that are not needed by any other package. Examples are the task-openmoko-* packages which are only
meta packages used to install all the needed programs.

This program is useful when you need space in rootfs, as every program it lists can be removed without
breaking any other dependency. It is also useful in the case you want to try a program that needs a
library. You install both packages. Then you try the program and remove it as you don't like it.
The package of the library remains if you don't remember to uninstall it explicitely. That package
name will be shown by ipkgorphan.

elfutils fails to install; conflicts with busybox

root@fic-gta01:~$ ipkg install prelink
Installing prelink (20060712-r2) to root...
Downloading   http://aiurlano.netsons.org/OpenMoko/ipk/armv4t/prelink_20060712-r2_armv4t.ipk
Installing elfutils-dev (0.127-r0) to root...
Downloading http://aiurlano.netsons.org/OpenMoko/ipk/armv4t/elfutils-dev_0.127-r0_armv4t.ipk
Installing elfutils (0.127-r0) to root...
Downloading http://aiurlano.netsons.org/OpenMoko/ipk/armv4t/elfutils_0.127-r0_armv4t.ipk
Configuring elfutils-dev
An error ocurred, return value: 2.
Collected errors:
Package elfutils wants to install file /usr/bin/ar
       But that file is already provided by package busybox
Package elfutils wants to install file /usr/bin/strings
       But that file is already provided by package busybox
root@fic-gta01:~$

Yes, it seems that elfutils contains those file that are already provided by busybox. Removing busybox is not a good idea as it will probably break some other programs. A fast workaround is:

ipkg install elfutils -force-overwrite

which should work without problem until the moment elfutils is uninstalled. At that time, a -force-reinstall of busybox should fix everything back in place. Alessandro 02:39, 4 October 2007 (CEST)

Personal tools

Settingsgui bug

I added your repository (it took four tries because it's very poorly documented that the file name in /etc/ipkg/ has to end in ".conf"!), ran ipkg update, and installed settingsgui. This didn't seem to create any way to RUN it from the screen (perhaps you have to reboot? I wasn't willing to do that, seemed too much like Microsoft. My old Zaurus was able to install apps without rebooting.)


The desktop file that the packages installs has to be read by the openmoko application list program.
For this to happen it is enough to restart that application or more simply done the xserver (the
script in /etc/init.d/ would do the trick)

So I ran it from a shell with DISPLAY set. It ran and was able to control the screen brightness. But when dealing with GSM, it said on the terminal:

Executes subprocess [/usr/bin/libgsmd-tool -m shell]
libgsmd-tool: <# # Power-On>
libgsmd-tool: <# Register>
libgsmd-tool: <EVENT: Netreg searching for network >
Exception in thread Thread-3:
Traceback (most recent call last):
 File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
   self.run()
 File "/usr/lib/python2.5/site-packages/SettingsGUI/ProcessInterface.py", line 131, in run
   event[1](line)
 File "/usr/lib/python2.5/site-packages/SettingsGUI/GSMPanel.py", line 112, in network_registration_changed
   location_area = line.split(" ")[7]
IndexError: list index out of range

I don't know why. I was able to manually (with atcmd mode) get my SIM to register, make calls (no audio), and send an SMS. FYI.

Addendum: I tried the last settings page (GPRS), which won't work with T-Mobile Prepaid sim. But when I clicked "Connect", it failed without any error message. In this case I don't even think the GSM modem is connected to T-Mobile yet...perhaps better error reporting here would be good.


For this error you have to ask Kriss who is the developer of SettingsGUI (I just did the package).
I'll drop him an email telling to read here.
Thanks for the bug report. I'll get into this the next days. --kriss 12:54, 14 September 2007 (CEST)
This bug is solved since Version 0.7. --kriss 01:18, 2 October 2007 (CEST)

What does "ipkgorphan" do?

I was unwilling to try it without some brief clue about what it's supposed to do :-)

It reads ipkg database and computes which packages are 'leaf' in the graph. That is those packages
that are not needed by any other package. Examples are the task-openmoko-* packages which are only
meta packages used to install all the needed programs.

This program is useful when you need space in rootfs, as every program it lists can be removed without
breaking any other dependency. It is also useful in the case you want to try a program that needs a
library. You install both packages. Then you try the program and remove it as you don't like it.
The package of the library remains if you don't remember to uninstall it explicitely. That package
name will be shown by ipkgorphan.

elfutils fails to install; conflicts with busybox

root@fic-gta01:~$ ipkg install prelink
Installing prelink (20060712-r2) to root...
Downloading   http://aiurlano.netsons.org/OpenMoko/ipk/armv4t/prelink_20060712-r2_armv4t.ipk
Installing elfutils-dev (0.127-r0) to root...
Downloading http://aiurlano.netsons.org/OpenMoko/ipk/armv4t/elfutils-dev_0.127-r0_armv4t.ipk
Installing elfutils (0.127-r0) to root...
Downloading http://aiurlano.netsons.org/OpenMoko/ipk/armv4t/elfutils_0.127-r0_armv4t.ipk
Configuring elfutils-dev
An error ocurred, return value: 2.
Collected errors:
Package elfutils wants to install file /usr/bin/ar
       But that file is already provided by package busybox
Package elfutils wants to install file /usr/bin/strings
       But that file is already provided by package busybox
root@fic-gta01:~$

Yes, it seems that elfutils contains those file that are already provided by busybox. Removing busybox is not a good idea as it will probably break some other programs. A fast workaround is:

ipkg install elfutils -force-overwrite

which should work without problem until the moment elfutils is uninstalled. At that time, a -force-reinstall of busybox should fix everything back in place. Alessandro 02:39, 4 October 2007 (CEST)