How to start a USB Mouse under Photon

Hi everybody,

Recently I have installed QNX 6.3 in my laptop PACKARD BELL EASYNOTE
H5530, during installation I had to disable DMA for booting QNX because
QNX didnt boot, after installing SP2 DMA appears to work.

QNX reconize my touchpad mouse, however I would like to use my USB
Mouse: Logitech Premiun Optical. If I connect my usb mouse, photon don’t
start when trying to dectect input device, so I thought to start it
manually. Reading QNX Documentation I did the followin steps:

1.- Start io-usb: io-usb -d ohci &
2.- Test usb: usb
Device Address : 1
Vendor : 0x046d (Logitech)
Product : 0xc03e (USB-PS/2 Optical Mouse)
Class : 0x00 (Independant per interface)

USB 1 (OHCI) v1.10, v1.01 DDK, v1.01 HCD
3.- Start devu-mouse: devu-mouse &
4.- ls /dev/usb* and appears /dev/usbmouse0.
5.- devi-hirun msys fd -d/dev/usbmouse0 &

However after this my mouse doesn’t work. So I tried again with
devh-usb.so ( before I did slay devu-mouse io-usb ).

1.- Start io-usb: io-usb -d ohci &
2.- Start io-hid: io-hid -d usb &
3.- Display hid information: hidview
HIDD v1.00, v1.00 DDK

Device Address : 0
Vendor : 0x046d (Logitech)
Product : 0xc03e (USB-PS/2 Optical Mouse)
Version : r2.00
Usage : Mouse
4.- devi-hirun msys fd -d/dev/io-hid/io-hid &
There was the following error:
Error: DCMD_CHR_TTYINFO failed
Error: unable to reset module fd

I hope someone might help me,


Thanks,


Eugenio

Instead of devi-hirun, use devi-hid.

ie.

devi-hid mouse

You might have difficulties running this without Photon.
Read “use /usr/photon/bin/inputtrap” for more information on
how you can override how the input driver is started for Photon.
Specifically the parts dealing with the /etc/system/trap/input*
files.

Cheers,
James

At a glance, the rest looks correct.
Eugenio Yime wrote:

However after this my mouse doesn’t work. So I tried again with
devh-usb.so ( before I did slay devu-mouse io-usb ).

1.- Start io-usb: io-usb -d ohci &
2.- Start io-hid: io-hid -d usb &
3.- Display hid information: hidview
HIDD v1.00, v1.00 DDK

Device Address : 0
Vendor : 0x046d (Logitech)
Product : 0xc03e (USB-PS/2 Optical Mouse)
Version : r2.00
Usage : Mouse
4.- devi-hirun msys fd -d/dev/io-hid/io-hid &
There was the following error:
Error: DCMD_CHR_TTYINFO failed
Error: unable to reset module fd

Thanks for replaying:

Well my USB mouse didn’t start, here is the output for devi-hid mouse:

devi-hid -vvv mouse

Looking up mouse in module table
Resetting module mouse
Resetting module rel
Input: start# Photon interface
Device insertion: device instance = 8060068, device no = 0
interrogate bus, returning rel
Attach mouse report

I’m using a terminal inside photon. I don’t know if QNX only support one
mouse and I’m trying to use two: thouchpad and USB.

Thanks,


Eugenio.


James MacMillan wrote:
Instead of devi-hirun, use devi-hid.

ie.

devi-hid mouse

You might have difficulties running this without Photon.
Read “use /usr/photon/bin/inputtrap” for more information on
how you can override how the input driver is started for Photon.
Specifically the parts dealing with the /etc/system/trap/input*
files.

Cheers,
James

At a glance, the rest looks correct.
Eugenio Yime wrote:

However after this my mouse doesn’t work. So I tried again with
devh-usb.so ( before I did slay devu-mouse io-usb ).

1.- Start io-usb: io-usb -d ohci &
2.- Start io-hid: io-hid -d usb &
3.- Display hid information: hidview
HIDD v1.00, v1.00 DDK

Device Address : 0
Vendor : 0x046d (Logitech)
Product : 0xc03e (USB-PS/2 Optical Mouse)
Version : r2.00
Usage : Mouse
4.- devi-hirun msys fd -d/dev/io-hid/io-hid &
There was the following error:
Error: DCMD_CHR_TTYINFO failed
Error: unable to reset module fd