nanogui: Thread: problem with USB mouse and keyboard


[<<] [<] Page 1 of 1 [>] [>>]
Subject: problem with USB mouse and keyboard
From: "Mangesh Edake (ext)" ####@####.####
Date: 1 Oct 2008 12:56:56 -0000
Message-Id: <1222865965.6401.50.camel@localhost.localdomain>

Hello all,

I am having following setup on ARM9 Linux board,
	microwin/nano-X => CVS snapshot
	nxlib-0.45
	fltk-1.1.6

The microwin/nano-X configuration I'm using is config.uclibc with 
SERMOUSE=Y and SCANKBD=Y. 

I am using USB keyboard and Mouse as input devices, which gets detected
as soon as connected to board.  But when I run fltk demo or the nano-X
demo application, mouse pointer gets displayed on middle of the screen
and as mouse is slightly moved, the pointer goes to the top of the
screen and stays there. For any further movement, it moves horizontally
at the top of the screen. Also the fltk demo detects random click events
and opens too many windows and finally hangs.... 

I have MOUSE_PORT=/dev/mouse which is symlink to /dev/input/event1 and
MOUSE_TYPE=ps2 in mou_ser.c. Also tried with ms, pc and logi MOUSE_TYPE
but the behavior is same.

With USB keyboard I could not test the alphanumeric keys because
application hangs due to mouse... although keys like tab( for
navigation), space (for selection) and escape (for exit) works to some
extent.

I am executing fltk demo this way, 

microwin # ./bin/nano-X &

fltk # ./test/demo


Is it that microwin/nano-X need special handling for USB-HID, as X11 has
something like mouUSBRead()..? 

I may be doing something wrong... but I hope someone on the list would
suggest some solution.

Thanks in anticipation.

--
Best Regards,
Mangesh Edake.





Subject: Re: [nanogui] problem with USB mouse and keyboard
From: "Vinod Chaudhary" ####@####.####
Date: 1 Oct 2008 13:47:43 -0000
Message-Id: <07a701c923cc$4b06fee0$8c01660a@einpxp131>

Hi,

I think you are using linux kernel so build the Device Drivers  ---> Input 
device support  --->Mouse interface and specify screen resolution with that 
driver. Use "/dev/mice" interface created by this interface.

Because on "/dev/input/event0" provide the raw data and not calibrated.

For the keypad you have to write driver like scan_kbd.c to read from 
""/dev/input/event0" or "/dev/input/event1" where your keyboard is attached.

Thanks,
Vinod


----- Original Message ----- 
From: "Mangesh Edake (ext)" ####@####.####
To: ####@####.####
Sent: Wednesday, October 01, 2008 6:29 PM
Subject: [nanogui] problem with USB mouse and keyboard


> Hello all,
>
> I am having following setup on ARM9 Linux board,
> microwin/nano-X => CVS snapshot
> nxlib-0.45
> fltk-1.1.6
>
> The microwin/nano-X configuration I'm using is config.uclibc with
> SERMOUSE=Y and SCANKBD=Y.
>
> I am using USB keyboard and Mouse as input devices, which gets detected
> as soon as connected to board.  But when I run fltk demo or the nano-X
> demo application, mouse pointer gets displayed on middle of the screen
> and as mouse is slightly moved, the pointer goes to the top of the
> screen and stays there. For any further movement, it moves horizontally
> at the top of the screen. Also the fltk demo detects random click events
> and opens too many windows and finally hangs....
>
> I have MOUSE_PORT=/dev/mouse which is symlink to /dev/input/event1 and
> MOUSE_TYPE=ps2 in mou_ser.c. Also tried with ms, pc and logi MOUSE_TYPE
> but the behavior is same.
>
> With USB keyboard I could not test the alphanumeric keys because
> application hangs due to mouse... although keys like tab( for
> navigation), space (for selection) and escape (for exit) works to some
> extent.
>
> I am executing fltk demo this way,
>
> microwin # ./bin/nano-X &
>
> fltk # ./test/demo
>
>
> Is it that microwin/nano-X need special handling for USB-HID, as X11 has
> something like mouUSBRead()..?
>
> I may be doing something wrong... but I hope someone on the list would
> suggest some solution.
>
> Thanks in anticipation.
>
> --
> Best Regards,
> Mangesh Edake.
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>
>
> Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com
> 

-- 
_____________________________________________________________________
Disclaimer: This e-mail message and all attachments transmitted with it
are intended solely for the use of the addressee and may contain legally
privileged and confidential information. If the reader of this message
is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution, copying, or other use of
this message or its attachments is strictly prohibited. If you have
received this message in error, please notify the sender immediately by
replying to this message and please delete it from your computer. Any
views expressed in this message are those of the individual sender
unless otherwise stated.Company has taken enough precautions to prevent
the spread of viruses. However the company accepts no liability for any
damage caused by any virus transmitted by this email.
_____________________________________________________________________
 
Subject: Re: [nanogui] problem with USB mouse and keyboard
From: "Mangesh Edake (ext)" ####@####.####
Date: 7 Oct 2008 12:18:04 -0000
Message-Id: <1223382030.7171.3.camel@localhost.localdomain>

Thanks Vinod.. sorry for the late response.

It is working with /dev/mice.
The user interface driver for mouse (mousedev.c)
was absent in my kernel image. Problem was solved once I added the
driver.

--
Thanks and Regards,
Mangesh Edake.



On Wed, 2008-10-01 at 19:17 +0530, Vinod Chaudhary wrote:
> Hi,
> 
> I think you are using linux kernel so build the Device Drivers  ---> Input 
> device support  --->Mouse interface and specify screen resolution with that 
> driver. Use "/dev/mice" interface created by this interface.
> 
> Because on "/dev/input/event0" provide the raw data and not calibrated.
> 
> For the keypad you have to write driver like scan_kbd.c to read from 
> ""/dev/input/event0" or "/dev/input/event1" where your keyboard is attached.
> 
> Thanks,
> Vinod
> 
> 
> ----- Original Message ----- 
> From: "Mangesh Edake (ext)" ####@####.####
> To: ####@####.####
> Sent: Wednesday, October 01, 2008 6:29 PM
> Subject: [nanogui] problem with USB mouse and keyboard
> 
> 
> > Hello all,
> >
> > I am having following setup on ARM9 Linux board,
> > microwin/nano-X => CVS snapshot
> > nxlib-0.45
> > fltk-1.1.6
> >
> > The microwin/nano-X configuration I'm using is config.uclibc with
> > SERMOUSE=Y and SCANKBD=Y.
> >
> > I am using USB keyboard and Mouse as input devices, which gets detected
> > as soon as connected to board.  But when I run fltk demo or the nano-X
> > demo application, mouse pointer gets displayed on middle of the screen
> > and as mouse is slightly moved, the pointer goes to the top of the
> > screen and stays there. For any further movement, it moves horizontally
> > at the top of the screen. Also the fltk demo detects random click events
> > and opens too many windows and finally hangs....
> >
> > I have MOUSE_PORT=/dev/mouse which is symlink to /dev/input/event1 and
> > MOUSE_TYPE=ps2 in mou_ser.c. Also tried with ms, pc and logi MOUSE_TYPE
> > but the behavior is same.
> >
> > With USB keyboard I could not test the alphanumeric keys because
> > application hangs due to mouse... although keys like tab( for
> > navigation), space (for selection) and escape (for exit) works to some
> > extent.
> >
> > I am executing fltk demo this way,
> >
> > microwin # ./bin/nano-X &
> >
> > fltk # ./test/demo
> >
> >
> > Is it that microwin/nano-X need special handling for USB-HID, as X11 has
> > something like mouUSBRead()..?
> >
> > I may be doing something wrong... but I hope someone on the list would
> > suggest some solution.
> >
> > Thanks in anticipation.
> >
> > --
> > Best Regards,
> > Mangesh Edake.
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ####@####.####
> > For additional commands, e-mail: ####@####.####
> >
> >
> >
> > Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com
> > 


[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.