I just downloaded the QNX Momentics trial CD and it boots fine, but once the
GUI fires up, my mouse and keyboard disappear! I’m using a Logitech USB
combination device… Should this work, or do I need an additional driver
on the CD?
S
–
Stephen Sprunk “Stupid people surround themselves with smart
CCIE #3723 people. Smart people surround themselves with
K5SSS smart people who disagree with them.” --Aaron Sorkin
Here is a script that will give you mouse:
#! /bin/sh
icfg=/etc/system/trap/input.${HOSTNAME}
pidin | grep uhci >/dev/null 2>&1
if [ $? -ne 0 ]; then
devu-uhci
fi
waitfor /dev/usb
unfortunately, presence of /dev/usb
does not really mean the bus is ready
typeset -i timeout=5
printf “Waiting for the USB bus to initialize”
while [ $timeout -gt 0 ]; do
usb | grep Device >/dev/null 2>&1 && break
timeout=$timeout-1
printf “.”
sleep 1
done
echo
usb | grep .ouse >/dev/null 2>&1
if [ $? -eq 0 ]; then
printf "USB mouse detected: "
echo $(usb | grep Vendor | awk ‘{print $4}’)
devu-mouse
cat <<@ >$icfg
devi-hirun kbd fd -d /dev/kbd msoft fd -d /dev/usbmouse0
@
else
test -f $icfg && rm $icfg
fi
You need to modify the devi-hirun line to also handle USB keyboard (i
don’t have it, so I leave this as excercize for the reader).
Once done, add this script into /etc/rc.d/rc.local
– igor
Stephen Sprunk wrote:
I just downloaded the QNX Momentics trial CD and it boots fine, but once the
GUI fires up, my mouse and keyboard disappear! I’m using a Logitech USB
combination device… Should this work, or do I need an additional driver
on the CD?
S
–
Stephen Sprunk “Stupid people surround themselves with smart
CCIE #3723 people. Smart people surround themselves with
K5SSS smart people who disagree with them.” --Aaron Sorkin
In bios ensure USB controller is enabled, ensure Legacy USB is disabled.
Once QNX is booted, start usb stack (devu-uhci or devu-ohci), then start
devu-kbd and devu-mouse. You can put these commands in your
/etc/rc.d/rc.local file to have then started automatically at startup (you
will have to create this file and give it execute permissions)
Modify/create a /etc/system/trap/input. file and add devi-hirun
command line to support usb devices.
example:
devi-hirun kbd -R fd -d/dev/usbkbd0 msoft fd -d/dev/usbmouse0 &
See the following utility docs for more info:
devu-uhci
devu-ohci
devu-mouse
devu-kbd
inputtrap
Note: USB mouse and keyboard will only work in photon, if you are running in
text mode keyboard will not work.
Regards,
Joe
“Stephen Sprunk” <stephen@sprunk.org> wrote in message
news:c063gp$cij$1@inn.qnx.com…
I just downloaded the QNX Momentics trial CD and it boots fine, but once
the
GUI fires up, my mouse and keyboard disappear! I’m using a Logitech USB
combination device… Should this work, or do I need an additional driver
on the CD?
S
–
Stephen Sprunk “Stupid people surround themselves with smart
CCIE #3723 people. Smart people surround themselves with
K5SSS smart people who disagree with them.” --Aaron Sorkin