Active Topics

 


Reply
Thread Tools
Posts: 6 | Thanked: 1 time | Joined on Jun 2010
#1
I am new to Maemo . I recently installed it following the link given below :

http://wiki.maemo.org/Documentation/...K_Installation

I started with developing GUI Hello World Application following the link given below :

http://wiki.maemo.org/Documentation/...ment/Maemo_SDK

I started Starting Virtual X Server (Xephyr) using the command in terminal:

$ Xephyr :2 -screen 800x480x16 -dpi 96 -ac - &

I omitted '-host cursor' and'-kb' from the command since it was mentioned in the link ---
"Ubuntu 10.04 users using the package in the repositories will have to run the same command without the -host-cursor and -kb, however the terminal window will have to stay open. "

After this I started UI framework in the scratchbox using command:
[sbox-FREMANTLE_X86: ~] > af-sb-init.sh start

I got screen required but the problem is that I dont see my mouse cursor whenever I move inside the Xephyr window.
Though I am able to use the options (by guessing the location of my cursor and clicking on it) present on the screen like "settings" or "user guide" etc but I am not able see my cursor due to which its getting difficult to use other options.

I am new to Maemo 5 SDK and am using ubuntu 10.04.

Kindly help.
 

The Following User Says Thank You to maemo.learner For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#2
You should see the host cursor, not sure why you can't.
Replace the transp file in /usr/share/icons/default/cursors with a non transparent cursor.
In your host OS that should be /scratchbox/users/<username>/targets/FREMANTLE_X86/usr/share/icons/

Good luck with maemo, and welcome aboard
 

The Following 2 Users Say Thank You to MohammadAG For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#3
I can not see the mouse cursor, too. It may have something to do with
omitting the host-cursor option. I don't know why it is necessary with
ubuntu 10.04. But if you use the host-cursor option, the cursor is
visible in Xephyr but it also segfaults often, mostly after
ab-sb-init.sh stop.
Until some weeks ago I used ubuntu 8.04, and here the Xephyr was
working ok all the time.

regards
nicolai
 

The Following User Says Thank You to nicolai For This Useful Post:
Posts: 6 | Thanked: 1 time | Joined on Jun 2010
#4
Originally Posted by MohammadAG View Post
You should see the host cursor, not sure why you can't.
Replace the transp file in /usr/share/icons/default/cursors with a non transparent cursor.
In your host OS that should be /scratchbox/users/<username>/targets/FREMANTLE_X86/usr/share/icons/

Good luck with maemo, and welcome aboard
As you said, I renamed the file transp with with name non transparent cursor.

Kindly correct me if I did something wrong.

I am sorry but this did not make any change. When I start Xephyr, I can see my cursor in the form of "cross", but when I start go inside the scratchbox environment and write this command :

[sbox-FREMANTLE_X86: ~] > af-sb-init.sh start

I am not able to see my cursor.

Also when I stop this with the command
[sbox-FREMANTLE_X86: ~] > af-sb-init.sh stop

I could again see my cursor in the form of cross.

Kindly help.
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#5
Start it with
Code:
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac &
 

The Following 2 Users Say Thank You to MohammadAG For This Useful Post:
Posts: 6 | Thanked: 1 time | Joined on Jun 2010
#6
Originally Posted by MohammadAG View Post
Start it with
Code:
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac &
Thanks a lot ..

This one has worked..

We should include this in Installation Instructions, I guess.

But there is one more issue I would like to discuss with everyone here which I face as soon as I use above command.

I used to this even before using "-host-cursor" in the command.

In terminal, I get a statement like :
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.

Is this avoidable ?

Is it going to hamper my experience in Maemo ?

Kindly help .
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#7
Nope, I get it too, just go on with starting the UI
Code:
mohammad@mohammad-laptop:~$ [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
Ignoring device from udev.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 35 requests (35 known processed) with 0 events remaining.
^C
[1]+  Exit 1                  Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac
mohammad@mohammad-laptop:~$
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#8
Originally Posted by MohammadAG View Post
You should see the host cursor, not sure why you can't.
Replace the transp file in /usr/share/icons/default/cursors with a non transparent cursor.
In your host OS that should be /scratchbox/users/<username>/targets/FREMANTLE_X86/usr/share/icons/

Good luck with maemo, and welcome aboard
Wohooo! Thanks!
That was why my QtCreator out of scratchbox didn't show any cursor even when running on display :0
 
Posts: 282 | Thanked: 337 times | Joined on Dec 2009 @ Austin, TX, USA
#9
This has really been bugging me...thanks for the tip!!
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:02.