[maemo-developers] [LONG] New user/devel and newbie question

From: Ulises ulises.cervino at gmail.com
Date: Sat Jan 12 13:29:59 EET 2008
Dear all,

First of all, hi everybody, as the subject says, new user (and
hopefully new developer here).

I got my old Nokia 770 a couple of days ago and I absolutely thrilled
with it. First time mobile user and all, you can't blame me ;)

Anyway, I've been using the thing for a couple of days and I decided
to try to start developing some stuff, just for fun. So I set out to
install the SDK for OS2007 (I installed the HE 2 days after I got the
tablet). Installing maemo 3.2 is no problem (I'm running Ubuntu Gutsy
on my desktop/laptop) however something puzzles me. When I start the
environment (on the Xephyr server) not everything seems to be
available, e.g. no browser, no applets, etc. but I can live with that.
What really bothers me is that when I do a af-sb-init.sh stop, the
desktop doesn't stop. It just stays there, even though the script
outputs that the desktop isn't running anymore. A ps aux shows me  all
the qemu-arm processes happily running. A killall fixes this, but this
is certainly not the best way to go. What's even stranger is that on
the X86 target it all goes dandy but not on the ARM target. Any
ideas/docs I should read? I've spent the last week RTFMing my eyes off
and certainly exhausted google.

Thanks for reading and happy hacking!

Below there's a snapshot of the session:

Start the Xephyr server:

ulises at mochos:~/maemo-scratchbox$ Xephyr :2 -host-cursor -screen
800x480x16 -dpi 96 -ac
Extended Input Devices not yet supported. Impelement it at line 625 in
../../../../hw/kdrive/src/kinput.c
Could not init font path element /usr/share/fonts/X11/cyrillic,
removing from list!

On the Scratchbox X86:

[sbox-SDK_X86: ~] > export DISPLAY=:2
[sbox-SDK_X86: ~] > af-sb-init.sh start
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
Starting DBUS system bus
Starting D-BUS session bus daemon
Starting Maemo Launcher:
maemo-launcher/home/ulises/.osso/current-gtk-key-theme:1: Unable to
find include file: "keybindings.rc"
.
Starting Sapwood image server
maemo-launcher: error rising the oom shield for pid=21122 status=5632
Starting Matchbox window manager
sapwood-server[21135]: GLIB INFO default - server started
matchbox: WARNING: failed to load /usr/share/matchbox/mbnoapp.xpm .
Disabling icons.
matchbox: failed to load keyboard config
Starting clipboard-manager
Starting Keyboard
maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
Starting MAEMO AF Desktop
maemo-launcher: invoking '/usr/bin/maemo_af_desktop.launch'
maemo_af_desktop[21183]: GLIB WARNING ** default - maemo-af-desktop
did not exit properly on the previous session. All home plugins will
be disabled.
/home/ulises/.osso/current-gtk-key-theme:1: Unable to find include
file: "keybindings.rc"
maemo_af_desktop[21183]: GLIB WARNING ** default - Failed to lookup
'TitleTextColor' color!
maemo_af_desktop[21183]: GLIB WARNING ** default - Unable to read
configuration file at
`/home/ulises/.osso/hildon-home/hildon-home.conf': No such file or
directory
maemo_af_desktop[21183]: GLIB DEBUG default - Background loaded from cache
maemo_af_desktop[21183]: GLIB DEBUG default -
hildon-home-window.c:510: load complete
maemo_af_desktop[21183]: GLIB DEBUG default -
background-manager.c:1772: applying background
maemo_af_desktop[21183]: GLIB DEBUG default - HildonHome is lowmem: 0
Showing window
Window shown: 1
DEBUG position: dummy0 0
DEBUG position: dummy0 0
DEBUG position: dummy1 1
[sbox-SDK_X86: ~] > /dev/dsp: Device or resource busy
hildon-input-method[21166]: GLIB MESSAGE default - keyboard up and running
maemo_af_desktop[21183]: GLIB DEBUG default - I couldn't get contents
TRACE LOG: status_bar_main: 1 g_new0
TRACE LOG: status_bar_main: 2 check panel ptr
TRACE LOG: status_bar_main: 3: init dock
maemo_af_desktop[21183]: GLIB WARNING ** default - Could not load
statusbar extension icon: Icon 'qgn_stat_more' not present in theme
maemo_af_desktop[21183]: GLIB WARNING ** default - Failed to lookup
'MenuInfoTextColor' color!
maemo_af_desktop[21183]: GLIB WARNING ** default - Failed to lookup
'MenuInfoTextColor' color!
maemo_af_desktop[21183]: GLIB DEBUG default - Start: 0 Place here: 0
TRACE LOG: status_bar_main: 4 add configured items
TRACE LOG: status_bar_main: 5 add notify for conditional items update
TRACE LOG: status_bar_main: 6 gtk widget show all
TRACE LOG: status_bar_main: 7 if rpc...
TRACE LOG: status_bar_main: 8, status bar initialized successfully
DEBUG position: dummy0 0
DEBUG position: osso-contact-plugin.desktop 1
maemo_af_desktop[21183]: GLIB DEBUG default - signal sended 0
maemo_af_desktop[21183]: GLIB DEBUG default - Creating menu
maemo_af_desktop[21183]: GLIB DEBUG default - select applets activate
maemo_af_desktop[21183]: We could not read lowmem page stats.
/dev/dsp: Device or resource busy
maemo_af_desktop[21183]: GLIB DEBUG default - HildonHome is background: 1
maemo_af_desktop[21183]: GLIB DEBUG default - hn-entry-info.c:590:
adding cache entry (size:26)
maemo_af_desktop[21183]: GLIB DEBUG default - HildonHome is background: 0
/dev/dsp: Device or resource busy

[sbox-SDK_X86: ~] > af-sb-init.sh stop
Stopping MAEMO AF Desktop
Stopping Keyboard
Stopping clipboard-manager
Stopping Matchbox window manager
Stopping Sapwood image server
Stopping D-BUS session bus daemon
Stopping DBUS system bus
Stopping Maemo Launcher: maemo-launchermaemo-launcher: died
comm_dbus_init: getting dbus bus
maemo-launcher: child (pid=21166) terminated due to exit()=1
maemo-launcher: no child 21353 found in the kindergarten.
maemo-launcher: child (pid=21353) terminated due to exit()=1
.
[sbox-SDK_X86: ~] >

Note: on the Xephyr server the desktop has stopped without issues.

On the ARM target:

[sbox-SDK_ARMEL: ~] > export DISPLAY=:2
[sbox-SDK_ARMEL: ~] > af-sb-init.sh start
AF Warning: '/etc/osso-af-init/keyboard.defs' not found
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
Starting DBUS system bus
Starting D-BUS session bus daemon
Starting Maemo Launcher:
maemo-launcher/home/ulises/.osso/current-gtk-key-theme:1: Unable to
find include file: "keybindings.rc"
defender: died my parent is not who he claims to be
maemo-launcher: error rising the oom shield for pid=21515 status=2816
.
Starting Sapwood image server
Starting Matchbox window manager
matchbox: WARNING: failed to load /usr/share/matchbox/mbnoapp.xpm .
Disabling icons.
matchbox: failed to load keyboard config
sapwood-server[21541]: GLIB INFO default - server started
Starting clipboard-manager
Starting MAEMO AF Desktop
maemo-launcher: invoking '/usr/bin/maemo_af_desktop.launch'
[sbox-SDK_ARMEL: ~] > maemo_af_desktop[21569]: GLIB WARNING ** default
- maemo-af-desktop did not exit properly on the previous session. All
home plugins will be disabled.
/home/ulises/.osso/current-gtk-key-theme:1: Unable to find include
file: "keybindings.rc"
maemo_af_desktop[21569]: GLIB WARNING ** default - Could not add
dnotify watch on /usr/share/applications/hildon-home
maemo_af_desktop[21569]: GLIB WARNING ** default - Error when opening
plugin registry: Error opening directory
'/usr/share/applications/hildon-home': No such file or directory
maemo_af_desktop[21569]: GLIB WARNING ** default - Failed to lookup
'TitleTextColor' color!
maemo_af_desktop[21569]: GLIB WARNING ** default - Unable to read
configuration file at
`/home/ulises/.osso/hildon-home/hildon-home.conf': No such file or
directory
maemo_af_desktop[21569]: GLIB DEBUG default - Background loaded from cache
maemo_af_desktop[21569]: GLIB DEBUG default -
hildon-home-window.c:510: load complete
maemo_af_desktop[21569]: GLIB DEBUG default -
background-manager.c:1772: applying background
maemo_af_desktop[21569]: GLIB DEBUG default - HildonHome is lowmem: 0
Showing window
Window shown: 1
DEBUG position: dummy0 0
DEBUG position: dummy0 0
DEBUG position: dummy1 1
Unsupported setsockopt level=1 optname=2
Unable to set for a fresh socket
maemo_af_desktop[21569]: GLIB DEBUG default - I couldn't get contents
maemo_af_desktop[21569]: GLIB DEBUG default - Failed to load plugin
osso-contact-plugin.desktop (libosso-contact-plugin.so)
TRACE LOG: status_bar_main: 1 g_new0
TRACE LOG: status_bar_main: 2 check panel ptr
TRACE LOG: status_bar_main: 3: init dock
maemo_af_desktop[21569]: GLIB WARNING ** default - Could not load
statusbar extension icon: Icon 'qgn_stat_more' not present in theme
TRACE LOG: status_bar_main: 4 add configured items
TRACE LOG: status_bar_main: 5 add notify for conditional items update
TRACE LOG: status_bar_main: 6 gtk widget show all
TRACE LOG: status_bar_main: 7 if rpc...
TRACE LOG: status_bar_main: 8, status bar initialized successfully
maemo_af_desktop[21569]: GLIB DEBUG default - Creating menu

[sbox-SDK_ARMEL: ~] > af-sb-init.sh stop
AF Warning: '/etc/osso-af-init/keyboard.defs' not found
Stopping MAEMO AF Desktop
Stopping clipboard-manager
Stopping Matchbox window manager
Stopping Sapwood image server
Stopping D-BUS session bus daemon
Stopping DBUS system bus
Stopping Maemo Launcher: maemo-launcher.

Note: the desktop is still running, only after a killall
qemu-arm-0.8.2-sb2 the desktop stops running, that (I'm guessing here)
leads to the message above

maemo_af_desktop[21569]: GLIB WARNING ** default - maemo-af-desktop
did not exit properly on the previous session. All home plugins will
be disabled.

Again, thanks for reading and any help will be greatly appreciated.

Cheers!
-- 

Ulises Cerviño Beresi

...y miren lo que son las cosas que para que nos vieran nos tapamos el
rostro; para que nos nombraran nos negamos el nombre; apostamos el presente
para tener futuro y para vivir...morimos.
--- Subcomandante Marcos. Ejército Zapatista de Liberación Nacional.

More information about the maemo-developers mailing list