Kernel 2.4.26 and usb problems
I've installed a debian distro on my comp with the kernel 2.4.26
However i still have some problems with the usb First : Is there a way to know if the usb2.0 is working at full speed? I have an external usb2 hard disk and if i use hdparm to see the speed i get less than 1MB/sec which is really low compared to what i get in windows Second : i have an explorer intellimouse mouse, i want to put it on the usb and have the 5 buttons working. However last time i tried it on usb i couldn't load X, the server was unable to find the mouse on the usb port (even if i configured the XF86 file ). I'm still new to linux, so if you need more information tell me what i need to do to give it to you |
Don't know about the first question, but I can field the second.
X is funny...in order to get mice with more than one button to work right, you'll need to do some tricky stuff. here's a web page that has helped me: http://www.deadman.org/X/xbuttons.shtml |
I changed the XF86 file but i don't know where to put the xmodmap -e "pointer = 1 2 3 6 7 4 5" line
|
/etc/X11/Xmodmap
-or- $HOME/.xmodmap |
so i should create a new file?
Do i only put the line and save? ps the mouse isn't working on usb, only on ps2 |
create and save the file. you may need to source the file in an startup file (e.g. $HOME/.xinitrc)
For USB, you may need to recompile your kernel so it includes USB HID drivers. |
I don't have a .xinitrc file in my home (as i said i'm a newb to linux)
For the usb i installed the HID driver when i installed debian, is there a way to be sure about it and that it's working fine? |
Open up a text editor and save the needed info into your home directory under the file name .xinitrc
Yes. try commands 'lsmod', or look in /lib/modules/kernelversion/... for drivers usbcore, hid. |
I have this about mouse in the lsmod
usbkbd 3640 0 (unused) input 3648 0 [hid usbmouse keybdev usbkbd] usb-uhci 23568 0 (unused) usbcore 63756 0 [usb-storage hid usbmouse usbkbd usb-uhci] |
Code:
# modprobe usbhid |
modprobe: Can't locate module usbhid
This is what i get, i'm pretty sure i installed it with debian however i can't make my mouse work with X (i've a failure and i can't launch it) If i do a more /dev/input/mice (or the various mouse there is) or more /dev/usb/mouse(0-15) i always get a reply that it can't open the file (or something along this line) |
You must have forgotten to select it when you configured your kernel.
Code:
cd /usr/src/linux USB support --- USB Human Interface Devices (HID) <M> USB Human Interface Device (full HID) support[*] HID input layer support Then recompile and install modules, then modprobe again, and this should fix your problem. If you find you are missing other kernel modules, check your kernel configuration again. It is very easy to forget a module, especially if it is the first time you have tried to build a kernel. |
10x i'll try that right away :)
I hope X won't be messed again this time :) |
Any luck? If it works, please post back so that others that search the archives will know that you fixed your problem. If not, then maybe I can help some more.
|
Quote:
i'm now on a small vacation till the end of the week, as soon as i come back i'll try it and i promise i'll reply back with anything new |
Sorry for the late reply but i was kinda busy
I did the "make menuconfig" then it asked me to do a "make dep" which i did I then did a "modprobe usbhid" but without any result, maybe i have to reboot to have it installed ps : i don't know what happened but i can't launch synaptic anymore, it's telling me it has a problem with pango, do you know how i can fix this? |
Sorry for the synaptic, i was able to repair, don't mind the message thanks
|
after make dep :
make modules make modules_install I think the module is called hid.o, so try Code:
modprobe hid |
after i did a lsmod, i found that there was a module called hid
So now the mouse should work fine on the usb? |
Maybe - try it! You may need some more modules - I have usb-uhci and ehci-hcd too - not sure what they do, but I think you need them to get any USB device to work. Can you post your lsmod?
|
This is my lsmod, i tried to make the mosue work on the usb port but it doesn't work
Module Size Used by Not tainted snd-cs46xx 71368 3 (autoclean) snd-ac97-codec 50236 0 (autoclean) [snd-cs46xx] snd-pcm-oss 39428 0 (autoclean) (unused) snd-mixer-oss 13880 0 (autoclean) [snd-pcm-oss] snd-pcm 62596 1 (autoclean) [snd-cs46xx snd-pcm-oss] snd-timer 14660 0 (autoclean) [snd-pcm] snd-page-alloc 6548 0 (autoclean) [snd-cs46xx snd-pcm] gameport 1676 0 (autoclean) [snd-cs46xx] snd-rawmidi 13984 0 (autoclean) [snd-cs46xx] snd-seq-device 4240 0 (autoclean) [snd-rawmidi] snd 33764 2 (autoclean) [snd-cs46xx snd-ac97-codec snd-pcm-oss snd-mi xer-oss snd-pcm snd-timer snd-rawmidi snd-seq-device] soundcore 3940 6 (autoclean) [snd] af_packet 13608 1 (autoclean) nls_cp437 4348 1 (autoclean) ntfs 54464 1 (autoclean) dm-mod 29608 0 (unused) 8139too 15240 1 mii 2464 0 [8139too] crc32 2912 0 [8139too] usb-storage 70048 0 (unused) scsi_mod 95076 1 [usb-storage] ieee1394 186628 0 (unused) hid 21988 0 (unused) usbmouse 2264 0 (unused) keybdev 2244 0 (unused) usbkbd 3640 0 (unused) input 3648 0 [hid usbmouse keybdev usbkbd] usb-uhci 23568 0 (unused) usbcore 63756 0 [usb-storage hid usbmouse usbkbd usb-uhci] rtc 7112 0 (autoclean) reiserfs 190256 2 (autoclean) isofs 26612 0 (autoclean) vfat 10892 0 (autoclean) fat 32792 0 (autoclean) [vfat] ext2 51176 0 (autoclean) ext3 82536 0 (autoclean) jbd 42980 0 (autoclean) [ext3] ide-detect 288 0 (autoclean) (unused) ide-disk 16928 4 (autoclean) piix 8904 2 (autoclean) ide-core 111228 4 (autoclean) [usb-storage ide-detect ide-disk piix] unix 15500 130 (autoclean) ps : i also have to type everytime the xmodmap command, i create a file called .xinitrc but it doesn't seems to load at startup in the file i only wrote the command, nothing else |
You have the correct modules loaded.
Do you have /dev/input/mice ? How does your mouse section look in /etc/X11/XF86Config? |
I have the /dev/input/mice
I have to check the XF86Confing-4 file to check where it's pointing When i do a more /dev/input/mice it doesn't tell me that the device doesn't exist (like for the others files) but i don't get any symbols when i move the mouse Maybe i should try updating the XF file and then reboot the comp with the mouse on the usb to see if this work |
I tied to boot with the /dev/input/mice in the XF86 file but X crashes and tells me that he didn't found the mouse
I really don't know what to do next, i've tried everything you said Is it because i put the hid and all inside the kernel and not as a module? |
Quote:
|
You seem to be missing ehci-hcd from lsmod, so make sure you have that selected as a module too, and modprobe it.
|
i didn't find it in the usb menu when i added the modules
|
Under 'Code maturity level options', select 'Prompt for development and/or incomplete code/drivers' and then it will appear under USB :) It is marked as EXPERIMENTAL so it won't even show up in the menu unless this option is selected.
|
alright 10x i'll try that
|
i've added ehci and i switch the others to modules (i added them to the modules files so to load them at booting) but htat didn't help, the mouse still won't work when it's in the usb port
I can post the result i get with dmesg (or i can link it here) |
All times are GMT -5. The time now is 07:27 AM. |