I am in need of USB mouse support in FIRE.
While it is sorta their, there are a few things lacking.
On boot there is no device node created for the USB mouse
on boot. Further the X11 config doesn't have support
for the USB mouse in it.
I have made the device node manually and GPM worked great,
so all the frame work is in place. X11 is more
difficult to test.
The following page:
http://www.linux-usb.org/USB-guide/x194.html
Indicates how one can setup X11 for both PS/2 and USB
support,
my thoughts are this is probably the most convinient
for all. I have used GPM in this mixed mode and to
works great, so I don't forsee any problems with X11
also being mixed.
I am not quite sure how to rebuild the CD with the
changes in place (something for me to figure out this
afternoon), but I figured I should mention this before
the next release.
I can't get the new account thing working, my email
address is arlt at cpsc.ucalgary.ca
Logged In: NO
I made the changes I thought were needed, but I was not able
to successfully boot off the CDROM. I have the El Torito
(or however thats spelled) boot image, and the contents of
the images directory.
What else is needed? The boot catalog?
The kernel freezes after the ramdisk0 found message.
The changes I made likely did not affect the boot, just some
missing peices that I should have passed mkisofs
Logged In: YES
user_id=630382
Can't seem to find the send attachment button...
But I did manage to login. Progress I guess.
*** orig/sbin/dlg/GPM-Mouse Sat Mar 9 12:15:01 2002
--- new/sbin/dlg/GPM-Mouse Fri Oct 25 13:32:54 2002
***************
*** 5,11 ****
--menu "What type of mouse do you have attached
locally? \n\
Make your selection below:" 20 75 10 \
"ps2" "typical ps2 9-pin mice" \
! "usb" "USB mice" 2> $tempfile
retval=$?
choice=`cat $tempfile`
case $choice in
--- 5,12 ----
--menu "What type of mouse do you have attached
locally? \n\
Make your selection below:" 20 75 10 \
"ps2" "typical ps2 9-pin mice" \
! "usb" "USB mice" \
! "both" "ps2 and USB mice" 2> $tempfile
retval=$?
choice=`cat $tempfile`
case $choice in
***************
*** 15,21 ****
;;
usb)
echo "`date` - Starting gpm mouse support for usb mouse"
! /usr/sbin/gpm -t ps2 -m /dev/input/mouse
;;
esac
--- 16,26 ----
;;
usb)
echo "`date` - Starting gpm mouse support for usb mouse"
! /usr/sbin/gpm -t ps2 -m /dev/input/mice
;;
+ both)
+ echo "`date` - Starting gpm mouse support for USB
and PS/2 mice"
+ /usr/sbin/gpm -t ps2 -m /dev/input/mice -M -t ps2 -m
/dev/mouse
+ ;;
esac
Logged In: YES
user_id=630382
I can submit the XF86Config file changes, but they are not
tested; so I shall wait for that before submitting them.
mknod /dev/input/mice c 13 63
will create the desired USB mouse device node.
Logged In: YES
user_id=630382
My USB KVM switch has arrived! As such I have been playing...
For a mouse and keyboard to work I have re-discovered that
the following kernel modules need to be loaded:
usbmouse
usbkbd
usb-uhci
usbcore
usbcore will be loaded when any of the above are, so you can
skip that one
With these modules loaded, keyboard support happens with no
additional effort.
Logged In: YES
user_id=630382
To hell with testing... I will break down and buy a CDRW
disc tomorrow maybe..
Anyway, XF86Config (assuming this is for XFree 3.x)
*** orig/etc/XF86Config Thu Feb 7 23:40:18 2002
--- new/etc/XF86Config Fri Oct 18 15:32:21 2002
***************
*** 76,82 ****
--- 76,93 ----
EndSection
+ # Xinput section (for USB mouse support *with* PS/2 mouse
support)
#
**********************************************************************
+ Section "Xinput"
+ SubSection "Mouse"
+ DeviceName "USB Mice"
+ Protocol "IMPS/2"
+ Port "/dev/input/mice"
+ AlwaysCore
+ EndSubSection
+ EndSection
+
+ #
**********************************************************************
# Keyboard section
#
**********************************************************************
Logged In: YES
user_id=630382
The XFree 4.x config file.
Both this and the last config diff use PS/2 as the primary
pointer and USB as another pointer. All that is needed for
XFree to be happy is the device node /dev/input/mice.
Actually having a USB mouse is not needed.
*** orig/etc/XF86Config-4 Thu Feb 7 23:40:18 2002
--- new/etc/XF86Config-4 Fri Oct 18 15:37:08 2002
***************
*** 5,10 ****
--- 5,11 ----
Identifier "Anaconda Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
+ InputDevice "USB Mice" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
***************
*** 86,91 ****
--- 87,101 ----
Option "Emulate3Buttons" "yes"
EndSection
+ Section "InputDevice"
+ Identifier "USB Mice"
+ Driver "mouse"
+ Option "Protocol" "IMPS/2"
+ Option "Device" "/dev/input/mice"
+ Option "ZAxisMapping" "4 5"
+ Option "Buttons" "5"
+ EndSection
+
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
Logged In: YES
user_id=630382
I didn't break down. But I did figure out how to test
XFree86. Man is that thing a memory hog! Now I see why
Xfbdev is being used.
Well, I gave up on using the included XF86Config-4, and made
my own. It works with PS/2 and USB mice (at the same time),
and uses the fbdev device. It was generated using XFree86
-config, and hacked using vi
XFree86 3.3 isn't installed on Fire, so I am not going to
bother with its config.
-- start of XF86Config-4 --
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "USB Mice" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "extmod"
Load "record"
Load "xie"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/mouse"
EndSection
Section "InputDevice"
Identifier "USB Mice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 30.0-80.0
VertRefresh 56.0-76.0
EndSection
Section "Device"
Identifier "Card0"
#
Driver
"vesa"
Driver "fbdev"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
Logged In: YES
user_id=630382
So after all that blood and sweat, Xfbdev from XFree86 4.2.0
will use a USB mouse with zero problems if one links
/dev/mouse to /dev/input/mice.
Infact, it now (new to 4.2.0) tries to auto recognize what
/dev/mouse is. Now I am not sure exactly how to make
/dev/mouse point to the right device, but that seems to be
the last hurtle; and an easy one (probably).
http://www.cpsc.ucalgary.ca/~arlt/Xfbdev has the binary I
compiled and tested
http://www.cpsc.ucalgary.ca/~arlt/kdrive.html has the
directions for compiling Xfbdev
I will patch the XFree source tree to 4.2.1 and try the bug
fixed verision later, I am guessing if you were willing to
use 4.1.0 bugs were not at the X bugs were no a big concern.
Logged In: YES
user_id=630382
Xfbdev 4.2.1 works flawlessly.
Rather than clutter things up here, I have made a web page
of these
and other FIRE enhancements.
http://www.cpsc.ucalgary.ca/~arlt/fire/
It has other things in it as well. If you are USB happy,
you want to look at it.