GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have build and installed Kernel 2.6.8 in my machine which has Red Hat Linux
9.0 installed. The mouse [Logitech Mouse with 3 buttons] supports works fine in Red Hat Linux 9.0 but it is not detected by Kernel 2.6.8. I have modified the rc.sysinit and halt scripts as suggested by some articles posted on the net. I have included USB support and have usbmose, usbkdb, usbcore and uhci-hcd modules loaded at the time of booting kernel 2.6.8.
Please guide me how to proceed to provide the mouse support in my kernel 2.6.8.
My configuration file is as follows:
#
# Input device support
#
CONFIG_INPUT=y
#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_INPORT is not set
# CONFIG_MOUSE_LOGIBM is not set
# CONFIG_MOUSE_PC110PAD is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set
#
# USB HID Boot Protocol drivers
#
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
I have spend two days on it and looking for the help to find the way out of this problem.
I have a working 2.6.8 (allthough mine has debian patches) my config is almost the same except I also have USB_HIDINPUT and I dont have USB HID Boot Protocol drivers.
Excerts from make xconfig:
------------------------------------------------
HID input layer support (USB_HIDINPUT)
Say Y here if you want to use a USB keyboard, mouse or joystick,
or any other HID input device. You also need "Input core support",
(CONFIG_INPUT), which you select under "Input device support", above.
------------------------------------------------
USB HIDBP Keyboard (simple Boot) support (USB_KBD)
Say Y here only if you are absolutely sure that you don't want
to use the generic HID driver for your USB keyboard and prefer
to use the keyboard in its limited Boot Protocol mode instead.
This is almost certainly not what you want. This is mostly
useful for embedded applications or simple keyboards.
------------------------------------------------
USB HIDBP Mouse (simple Boot) support (USB_MOUSE)
Say Y here only if you are absolutely sure that you don't want
to use the generic HID driver for your USB mouse and prefer
to use the mouse in its limited Boot Protocol mode instead.
This is almost certainly not what you want. This is mostly
useful for embedded applications or simple mice.
Last edited by spacedoubtman; 09-05-2004 at 07:05 AM.
Thanks for your reply. I have implemented your suggestions but the problem still persists. I have removed the support of Boot Protocol devices and hence usbkdb and usbmouse won't be available.
#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
CONFIG_HID_FF=y
# CONFIG_HID_PID is not set
# CONFIG_LOGITECH_FF is not set
# CONFIG_THRUSTMASTER_FF is not set
# CONFIG_USB_HIDDEV is not set
#
# USB HID Boot Protocol drivers
#
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_MTOUCH is not set
# CONFIG_USB_EGALAX is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set
I have observed something which I would like to share with you. Do we need to change XF86Config file when we are migrating from Kernel 2.4 to 2.6.8 ?
Whenever I boot my system [ either in Kernel 2.4 or 2.6.8], I am prompt by kudzu to configure/
unconfigure the following hardware devices:
1. LGI|8051
2. Generic PS/2 Wheel Mouse
If I configure LGI|8051 only in my Kernel 2.4, then everything works fine and I get mouse support. But If try to do the same thing in Kernel 2.6.8 [ i.e configure LGI|8051 and don't configure Generic PS/2], then my Kernel gives error in launching X Server and error is as follows:
xf86OpenSerial can't open device /dev/ttyS1
My XF86Config contents are as follows:
# XFree86 4 configuration created by redhat-config-xfree86
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
In a console you can go cat /dev/input/mice, then when you move the mouse you should see lots of garbage being output if the device is working.
I also have a usb 3 button logitech and my XF86Config-4 is the same. I dont know if it will help but here is an excert from lsmod and a quick excert from my .config.
good luck
If you still have problems I can email you my entire .config
ii:~# lsmod
Module Size Used by
uhci_hcd 29520 0
usbhid 22656 0
usbcore 102564 4 uhci_hcd,usbhid
CONFIG_USB=m
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_UHCI_HCD=m
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_EVDEV=m
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=m
As suggested , I have done cat /dev/input/mice and when I move mouse, I couldnot see any garbage coming on my terminal. It will be a great help, if you could email your .config file.
My email id is mdlinux7@yahoo.co.in
If you to a
tail -f /var/log/messages
or whatever your log file is and then unplug and plug in your usb mouse that might give you a clue as to what is going wrong. My 2.6.8 works with a usb mouse. Here are the important parts of my .config (everything else in usb is set to no):
#
# USB support
#
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_UHCI_HCD=m
#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
#
# USB HID Boot Protocol drivers
#
CONFIG_USB_MOUSE=m
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.