View Single Post
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#3037
I tried to set up a new Wheezy/armhf image from scratch and I have good and bad news.

the good:
Gimp works without crashing when using the text tool.

the bad:
For some reason I'm unable to get keyboard support in lxde (via debbie it works fine in roxterm and gimp).
Just for reference, I also created an armel image and I have the same problems there, so I'm pretty sure it's not architecture-specific, but I'm missing some "magic".

what I did in detail:
1. I created a 1GB image on my Cubieboard2, formatted it with ext2 and installed Wheezy via debootstrap.
2. Once chrooted into the image I told apt not to install recommended and suggested packages by default. Maybe that's part of the problem, but if it is i'd like to know what I'm missing.
3. I installed these packages:
Code:
roxterm-gtk2
lxde-core
dbus-x11
xserver-xephyr
4. I copied these scripts and binaries from my working Wheezy/armel image to the corresponding location in the new image:
Code:
/sbin/qobi-wmhint-fix
/usr/bin/set-focus
/usr/bin/startlxde1
/usr/bin/xephfocus
/usr/bin/xephwm
/usr/bin/xephwm5
/usr/bin/xkbset
/usr/bin/xkbset-gui
5. I copied the image to my N900.
6. /var/lock and /var/run/dbus were regular files, not a directory. I tried both leaving them this way as well as replacing them with directories for bind-mountpoints.
7. I ran debian-lxde, the gui came up and the mouse cursor works fine. However, the HW keyboard doesn't work at all.

In addition to the packages I installed right from the start I also tried with these packages installed, but without any change:
Code:
locales
locales-all
hal
wmctrl
xserver-xorg-input-keyboard
Input via xvkbd (onscreen keyboard) works partially. Letters work, digits and most special characters (/-) don't, just like during the jessie dist-upgrade in my working image [1]. libc6 and libc-bin are installed and after seeing this behavior I installed locales and locales-all.
I also tried the following which came from an early post of qole [2] in this thread, but I have the feeling (not more) that my problem is not actually/not only the keyboard focus:
Code:
sudo closechroot
touch ~/.synchroot
debbie test

When I start debian-lxde from xterm I get the messages in the textfile attached to this post.
For reference I also attached the output of my working armel image.

In the not_working output there is this line:
Code:
mount: mounting /var/run/dbus on /.debian/var/run/dbus failed: No such file or directory
If the latter is a directory in the image it really isn't there once the chroot is running when it is a directory. But when it's a file it doesn't make any difference, except that the line wil read like this instead:
Code:
mount: mounting /var/run/dbus on /.debian/var/run/dbus failed: Not a directory

A 2nd difference is this line in the not_working output:
Code:
chroot: can't execute '/sbin/qobi-wmhint-fix': No such file or directory
However, the file is there:
Code:
~# ls /.debian/sbin/qobi-wmhint-fix 
/.debian/sbin/qobi-wmhint-fix
But if I call it from within the lxde-desktop I get this error:
Code:
# pwd
/sbin
# qobi-wmhint-fix
sh: 18: qobi-wmhint-fix: not found
Now, I know this isn't supposed to work, but I would have expected some other error message.
I guess this is the most likely candidate for the problem's reason, but I don't know how to fix it.


Then there's the last line which is only in the not_working output:
Code:
** (roxterm:7392): WARNING **: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
Where is that variable supposed to come from, and is it essential for the keyboard to work?

I'm running out of ideas. Can somebody give me a hint please?


btw: a halfway recent kernel power (>v49) will be necessary for armhf to run stable, I guess due to the Thumb errata fixes missing in previous versions.

[1] http://talk.maemo.org/showpost.php?p...postcount=3030
[2] http://talk.maemo.org/showpost.php?p...3&postcount=75
Attached Files
File Type: txt not_working.txt (6.0 KB, 171 views)
File Type: txt working.txt (6.0 KB, 149 views)
 

The Following 3 Users Say Thank You to sulu For This Useful Post: