Click to See Complete Forum and Search --> : MSK 10.0 and USB Mouse


rhb327
06-10-2004, 03:45 PM
I tried this at linuxquestions.org with no response for a week so I thought I would give it a go here. I really think this a module problem. With both a USB keyboard and USB mouse functional excpet for the wheel if I do a modprobe usb-uhci both devices hang; yet, I know this module was there when just the mouse was USB and working. If someone could give me some step by steps I sure would appreciate it.

-Rich

-- Original Post --

I've recently installed Mandrake 10.0 official on my new IDEQ 200V Biostar system. I wanted to share a bit of success with USB mouse and keybaord operation and to ask for a bit of help on one remaining USB issue.

First, during install I could not have either my A4tech usb kb or my IBM optical navigator USB mouse (made by micro innovations) installed or the install would timeout on some USB command (don't remember the error) and by the time the first graphical portion of the install displayed, both the kb and mouse were frozen. So I did my original install with a generic PS2 kb and used a usb->PS2 converter with my mouse.

After install, I decided to move the mouse to USB. I simply edited my XF86Config-4. Here you can see the commented out section was based on the install with the mouse setup as a PS2.

# Section "InputDevice"
# Identifier "Mouse1"
# Driver "mouse"
# Option "Protocol" "ExplorerPS/2"
# Option "Device" "/dev/mouse"
# Option "ZAxisMapping" "6 7"
# EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "6 7"
EndSection

This worked just fine including the wheel. I only have one side button and it appeared to replicate the left button. So the next item was the kb. The BIOS has both kb and mouse USB support enabled.

I tried a bunch of ideas (gathered from here and google) and here is what I noted thus far:

1) I created a modprobe.preload (it didn't exist) and added hid.ko, usbkbd.ko and optionally usbmouse.ko. This seemed to have absolutely no affect at all. I have since deleted this file.

2) I tried a modprobe -r usbmouse as it was suggested that usbmouse and hid don't play well. This does not seem to make much difference.

3) Someone suggested that modprobe.conf should have uhci-usb instead of usb-uhci. I changed this and my kb worked! BUT, uhci-usb could not be found so I removed /sbin/modprobe uhci-usb from modprobe.conf and my kb still works. Currenlty running this setup with some success.

Below you will find configuration information. With the configuration below, I have both my USB kb working and my mouse. The one remaining issue is that I can't get the mouse wheel to work . As aforementioned, when the keyboard was PS2 and modprobe.conf had the /sbin/modprobe uhci-usb my mouse was entirely functional.

Any ideas are much appreciated. If anyone has MSK 10.0 official working with both a USB mouse and kb...could you post your configuration information including XF86Config-4, modprobe.conf, modprobe.preload (if you have one).

Thanks,
Rich

-----------------------------------------------------------------------
uname -r:
2.6.3-7mdk

-----------------------------------------------------------------------
XF86Config-4:
# File generated by XFdrake.

# ************************************************** ********************
# Refer to the XF86Config man page for details about the format of
# this file.
# ************************************************** ********************

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection

Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
AllowMouseOpenFail # allows the server to start up even if the mouse
doesn't work
EndSection

Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "en_US"
Option "XkbOptions" "ctrl:swapcaps"
EndSection

# Section "InputDevice"
# Identifier "Mouse1"
# Driver "mouse"
# Option "Protocol" "ExplorerPS/2"
# Option "Device" "/dev/mouse"
# Option "ZAxisMapping" "6 7"
# EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "6 7"
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "ViewSonic"
ModelName "ViewSonic A90"
HorizSync 30-86
VertRefresh 50-180

# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563
-hsync -vsync

# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
Identifier "device1"
Driver "via"
Option "DPMS"
EndSection

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 16

Subsection "Display"
Depth 8
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 15
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 16
Virtual 1024 768
EndSubsection

Subsection "Display"
Depth 24
Virtual 1024 768
EndSubsection
EndSection

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Screen "screen1"
EndSection

-----------------------------------------------------------------------
modprobe.conf:
(***I removed /sbin/modprobe usb-uhci just after usb-interface below)

alias ieee1394-controller ohci1394

alias sound-slot-0 snd-via82xx

install scsi_hostadapter /sbin/modprobe ppa; /bin/true

install snd-via82xx /sbin/modprobe --first-time --ignore-install snd-via82xx
&& { /sbin/modprobe snd-pcm-oss; /bin/true; }

install usb-interface /sbin/modprobe ehci-hcd; /bin/true

remove snd-via82xx { /sbin/modprobe -r snd-pcm-oss; } ; /sbin/modprobe -r
--first-time --ignore-remove snd-via82xx

-----------------------------------------------------------------------
lsmod:

Module Size Used by
md5 3872 1
ipv6 232352 6
nls_cp850 4736 1
vfat 13760 1
fat 45120 1 vfat
sg 38044 0
st 38616 0
sr_mod 17028 0
sd_mod 16832 2
ppa 12296 1
scsi_mod 114648 5 sg,st,sr_mod,sd_mod,ppa
binfmt_misc 9960 1
lp 12200 0
parport_pc 32832 2
parport 38952 3 ppa,lp,parport_pc
snd-seq-oss 31232 0
snd-seq-midi-event 7552 1 snd-seq-oss
snd-seq 51024 4 snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 51812 0
snd-mixer-oss 17952 1 snd-pcm-oss
snd-via82xx 24128 1
snd-pcm 93156 2 snd-pcm-oss,snd-via82xx
snd-timer 24484 2 snd-seq,snd-pcm
snd-ac97-codec 58148 1 snd-via82xx
gameport 4480 1 snd-via82xx
snd-page-alloc 11972 2 snd-via82xx,snd-pcm
snd-mpu401-uart 7072 1 snd-via82xx
snd-rawmidi 23616 1 snd-mpu401-uart
snd-seq-device 8008 3 snd-seq-oss,snd-seq,snd-rawmidi
snd 52484 14
snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-via82xx,snd-pcm,snd-timer,snd-ac97-codec,snd-mpu401-uart,snd-rawmidi,snd-seq-device
soundcore 9248 1 snd
af_packet 20520 0
hid 53312 0
raw 7616 1
ide-floppy 18752 0
ide-tape 34864 0
ide-cd 40548 0
cdrom 37184 2 sr_mod,ide-cd
floppy 59444 0
ohci1394 33956 0
ieee1394 287856 1 ohci1394
nls_iso8859-1 3904 2
ntfs 85932 1
supermount 37876 2
ehci-hcd 24196 0
usbcore 99132 4 hid,ehci-hcd
rtc 11576 0
ext3 110408 8
jbd 54328 1 ext3

Dark Ninja
06-10-2004, 04:49 PM
Option "ZAxisMapping" "6 7"

If you want the wheel to work on the mouse, I think those numbers need to be '4 5'

"ZAxisMapping" "4 5"