LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 09-05-2004, 04:46 AM   #1
dahuja76
LQ Newbie
 
Registered: Sep 2004
Location: India
Posts: 2

Rep: Reputation: 0
Mouse Support in Kernel 2.6.8


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

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768

#
# 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.

Regards
Dinesh
 
Old 09-05-2004, 07:03 AM   #2
spacedoubtman
LQ Newbie
 
Registered: Feb 2004
Location: Brisbane, QLD, Australia
Distribution: Debian
Posts: 29

Rep: Reputation: 15
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.
 
Old 09-06-2004, 04:47 AM   #3
dahuja76
LQ Newbie
 
Registered: Sep 2004
Location: India
Posts: 2

Original Poster
Rep: Reputation: 0
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

Please guide me what to do next.
 
Old 09-06-2004, 07:14 AM   #4
dahuja76
LQ Newbie
 
Registered: Sep 2004
Location: India
Posts: 2

Original Poster
Rep: Reputation: 0
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

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection

Section "Files"

# 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

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"

# 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

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS1"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"

# 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

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "StudioWorks"
DisplaySize 270 200
HorizSync 30.0 - 54.0
VertRefresh 50.0 - 120.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "ati"
VendorName "Videocard vendor"
BoardName "ATI Mach64 3D Rage IIC"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
 
Old 09-06-2004, 07:59 AM   #5
spacedoubtman
LQ Newbie
 
Registered: Feb 2004
Location: Brisbane, QLD, Australia
Distribution: Debian
Posts: 29

Rep: Reputation: 15
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
 
Old 09-06-2004, 08:40 AM   #6
dahuja76
LQ Newbie
 
Registered: Sep 2004
Location: India
Posts: 2

Original Poster
Rep: Reputation: 0
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

Thanks for your guidance.

Regards
Dinesh
 
Old 09-06-2004, 10:56 AM   #7
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
I'm not sure about the 2.6.8 kernel, but the 2.4 kernel requires gpm to be running. I have a MS Intellimouse hooked up via USB, and here's my setup:

CONFIG_USB=m
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI_HCD=m
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
CONFIG_USB_AIPTEK=m
CONFIG_USB_WACOM=m
CONFIG_USB_KBTAB=m
CONFIG_USB_POWERMATE=m
CONFIG_USB_ATI_REMOTE=m

part from lsmod output:
usbhid 29120 0
usbmouse 4480 0

mouse section from /etc/X11/xorg.conf:
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/mouse"

and this is the command for gpm that gets issued whenever I get into multi-user mode:
/usr/sbin/gpm -m /dev/mouse -t imps2
 
Old 09-07-2004, 02:22 AM   #8
spacedoubtman
LQ Newbie
 
Registered: Feb 2004
Location: Brisbane, QLD, Australia
Distribution: Debian
Posts: 29

Rep: Reputation: 15
I've sent my .config - good luck.

I dont run gpm - I should tho as I miss the mouse in the console.
 
Old 09-07-2004, 09:34 PM   #9
Hunter555
LQ Newbie
 
Registered: Sep 2004
Location: Australia
Distribution: Gentoo - gnome - kernel 2.6.8
Posts: 4

Rep: Reputation: 0
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

Modules I then autoload (this part is important):

usbcore
ohci-hcd
usbhid
usb-storage
 
Old 09-07-2004, 10:52 PM   #10
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
ok, but what's your output from lsmod?

And is the mouse a 3 button mouse, or a 2 button mouse with a wheel that also acts as a button?
 
Old 09-07-2004, 11:21 PM   #11
Hunter555
LQ Newbie
 
Registered: Sep 2004
Location: Australia
Distribution: Gentoo - gnome - kernel 2.6.8
Posts: 4

Rep: Reputation: 0
Mouse is a usb wheel mouse... so it's two buttons and a wheel that also acts as a button.

Code:
Module                  Size  Used by
usbnet                 19400  0 
usbmouse                4736  0 
serport                 3456  0 
usb_storage            28800  0 
usbhid                 24008  0 
ohci_hcd               19972  0 
usbcore               108004  7 usbnet,usbmouse,usb_storage,usbhid,ohci_hcd
8139too                21952  0 
snd_emu10k1_synth       7424  0 
snd_emux_synth         37376  1 snd_emu10k1_synth
snd_seq_virmidi         6528  1 snd_emux_synth
snd_seq_midi_emul       7296  1 snd_emux_synth
snd_emu10k1            95304  3 snd_emu10k1_synth
snd_util_mem            3904  2 snd_emux_synth,snd_emu10k1
snd_hwdep               8032  2 snd_emux_synth,snd_emu10k1
fglrx                 216100  9

Last edited by Hunter555; 09-07-2004 at 11:23 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux W/ Mouse Support mtecknology Linux - Laptop and Netbook 2 11-17-2005 11:40 PM
No mouse support Echo Kilo Slackware 4 03-06-2005 11:15 PM
Wisetech optical mouse and mouse wheel support bigredgiant1 Linux - Hardware 2 12-31-2003 04:57 AM
Enabling USB mouse support in kernel 2.4 Craigwd Linux - Software 3 12-22-2001 05:43 PM
Scroll mouse support sancho5 Linux - General 3 07-21-2001 10:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration