Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - USB input device of photon: (3 Items)
   
USB input device of photon  
Hi,

I am using usb-keyboard and usb-mouse as input device of photon. If I boot the PC everything is ok, keyboard and mouse 
working fine.
If I unplug the mouse and plug it in again, the mouse is not working anymore.

sysint:
#io-usb
#devu-mouse
#devu-kbd

input.xx:
kbd -R fd-dev-usbkbd0 msoft fd -d/dev/usbmouse0

I noticed, after plug in the mouse again there is a new /dev/mouse1.
The Input is still looking for /dev/mouse0.

I am able to fix this manual:
slay devu-mouse
devu-mouse &
Input msoft fd -d/dev/mouse0

After that, mouse is working.
But I need a solution without any manual operation.

Is there a solution??

Regards

Ulrich Mailänder

Attachment: HTML sf-attachment-mime35746 6.58 KB
Re: USB input device of photon  
Hi Ulrich,

QNX 4 doesn't support hotplugging. But it is possible to implement your own specific hotplugging manager. You can parse 
usb utility output in your shell script to catch insertion of HID devices and relaunch Input. Also you can use USB SDK 
to develop manager that can monitor USB events.

Respectfully,
Oleg

29 нояб. 2017 г., в 11:31:20, Mailaender, Ulrich <community-noreply@qnx.com> написал:

> Hi,
>  
> I am using usb-keyboard and usb-mouse as input device of photon. If I boot the PC everything is ok, keyboard and mouse
 working fine.
> If I unplug the mouse and plug it in again, the mouse is not working anymore.
>  
> sysint:
> #io-usb
> #devu-mouse
> #devu-kbd
>  
> input.xx:
> kbd –R fd-dev-usbkbd0 msoft fd –d/dev/usbmouse0
>  
> I noticed, after plug in the mouse again there is a new /dev/mouse1.
> The Input is still looking for /dev/mouse0.
>  
> I am able to fix this manual:
> slay devu-mouse
> devu-mouse &
> Input msoft fd –d/dev/mouse0
>  
> After that, mouse is working.
> But I need a solution without any manual operation.
>  
> Is there a solution??
>  
> Regards
> 
> Ulrich Mailänder
> 
> <Вложенный файл Почты.html>

Re: USB input device of photon  
Have you tried a wildcard in the commands ie... mouse* instead of mouse0 ?
Not sure if will work but its worth a shot.