Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Mouse in angstrom-x11-image
PostPosted: Tue Jan 26, 2010 12:28 pm 
Offline

Joined: Tue Jul 07, 2009 5:05 pm
Posts: 14
Hi everybody!
I'm working with AT91SAM9261EK. Linux kernel is 2.6.30. Rootfs image is build with Openembedded (x11-image). I use CRT monitor (480x640) instead touchscreen. After first boot the mouse pointer was invisible. After some corrections in rootfs it has become visible but USB-mouse still doesn't work:

1)In file /etc/sysconfig/gpelogin instead string
Code:
AUTOLOGIN="false"

I've written
Code:
AUTOLOGIN="true"

2)In file /etc/profile.d/tslib.sh instead string
Code:
TSLIB_TSDEVICE=/dev/input/touchscreen0

I've written
Code:
TSLIB_TSDEVICE=/dev/input/mouse0

3)In directory /etc/X11/Xinit.d I've removed the script 30xTs_Calibrate
4) in file /etc/matchbox/session instead string
Code:
exec matchbox-window-manager -use_cursor no $@

I've written
Code:
exec matchbox-window-manager -use_cursor yes $@

Maybe someone has any suggestions how to enable USB-mouse in Angstrom-x11???


Top
 Profile  
 
 Post subject: Re: Mouse in angstrom-x11-image
PostPosted: Wed Jan 27, 2010 10:21 am 
Offline

Joined: Mon Dec 14, 2009 4:35 pm
Posts: 7
Hi, kusmich
I`v just succeed to make a usb mouse start working on 9263 - EK with Angstom. I did the changes you have done plus the following one in
file /etc/X11/Xserver

Code:
"Atmel AT91SAM9261-EK" | "Atmel AT91SAM9263-EK")
                ARGS="$ARGS -mouse tslib -dpi 100 -rgba bgr -screen 320x240" ;;


Changed to
Code:
"Atmel AT91SAM9261-EK" | "Atmel AT91SAM9263-EK")
                ARGS="$ARGS -mouse /dev/input/mice -dpi 100 -rgba bgr -screen 800x600" ;;


Good luck


Top
 Profile  
 
 Post subject: Re: Mouse in angstrom-x11-image
PostPosted: Wed Jan 27, 2010 7:48 pm 
Offline

Joined: Tue Jul 07, 2009 5:05 pm
Posts: 14
Thank's, dmrgb, very much! I've already done the same thing (about Xserver). BUT - nothing.
I did the same changes with angstrom-x11-DEMO-image (not built but downloaded from linux4sam.org). And the mouse became to work. But I need mouse to work in MY x11-image built with openembedded. I saw there were many differences between these two images. In DEMO-image there are kernel-module-usbhid and kernel-module-usbmouse. And in my image there aren't such packages. I tried to find them in angstrom feed but I couldn't find them((( Where can I download it???


Top
 Profile  
 
 Post subject: Re: Mouse in angstrom-x11-image
PostPosted: Thu Jan 28, 2010 9:02 am 
Offline

Joined: Mon Dec 14, 2009 4:35 pm
Posts: 7
For now I`m using the demo-image and I don`t know where can be found this packages.
Sorry :(


Top
 Profile  
 
 Post subject: Re: Mouse in angstrom-x11-image
PostPosted: Wed Feb 03, 2010 8:05 pm 
Offline

Joined: Tue Jul 07, 2009 5:05 pm
Posts: 14
So, the problem seems to be solved :D
I've compiled stable/2009 version of Angstrom for AT91SAM9263 (it also fits to my AT91SAM9261EK). I applyed changes which I described in previous posts AND I have taken the file /usr/bin/Xfbdev from Angstrom-x11-demo-image and replaced the Xfbdev in my image with it. Now the usbmouse works!!! Maybe it's a bug in Xfbdev which comes with this version of OpenEmbedded...


Top
 Profile  
 
 Post subject: Re: Mouse in angstrom-x11-image
PostPosted: Thu Mar 25, 2010 12:27 pm 
Offline

Joined: Tue Jul 07, 2009 5:05 pm
Posts: 14
Hi everybody!!!
Yesterday I've solved a problem with Xfbdev in Angstrom 2009/stable branch. The version of kdrive is 1.4.0 and it requires a little different parameters to start xserver than kdrive-1.2.0 which is used in Angstrom-2007.
So, in file /etc/X11/Xserver you need to write:
NOT
Code:
-mouse /dev/input/mouse0
or
-mouse /dev/input/mice

BUT
Code:
-mouse evdev

evdev is a driver name understandable for Xfbdev (it corresponds to the /dev/input/eventN and /dev/input/mouseN, N=0,1...)

And also you need to modify file /etc/profile.d/tslib.sh:
NOT
Code:
TSLIB_DEVICE=/dev/input/touchscreen0
export TSLIB_DEVICE

BUT
Code:
TSLIB_DEVICE=
export TSLIB_DEVICE


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: