LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Kernel 2.4.26 and usb problems (https://www.linuxquestions.org/questions/linux-hardware-18/kernel-2-4-26-and-usb-problems-182018/)

antipop 05-16-2004 07:40 AM

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

sohmc 05-17-2004 04:33 AM

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

antipop 05-17-2004 05:10 AM

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

sohmc 05-17-2004 05:31 AM

/etc/X11/Xmodmap
-or-
$HOME/.xmodmap

antipop 05-17-2004 05:46 AM

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

sohmc 05-17-2004 06:05 AM

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.

antipop 05-17-2004 11:04 AM

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?

sohmc 05-17-2004 11:50 AM

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.

antipop 05-17-2004 12:04 PM

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]

Muzzy 05-17-2004 12:55 PM

Code:

# modprobe usbhid
should fix your problem.

antipop 05-17-2004 01:07 PM

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)

Muzzy 05-17-2004 03:53 PM

You must have forgotten to select it when you configured your kernel.
Code:

cd /usr/src/linux
make menuconfig

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

antipop 05-18-2004 04:26 AM

10x i'll try that right away :)
I hope X won't be messed again this time :)

Muzzy 05-20-2004 05:21 PM

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.

antipop 05-20-2004 05:29 PM

Quote:

Originally posted by Muzzy
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.
I'm sorry i haven't had the time to try it yet
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

antipop 06-09-2004 09:48 PM

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?

antipop 06-09-2004 09:54 PM

Sorry for the synaptic, i was able to repair, don't mind the message thanks

Muzzy 06-10-2004 12:10 PM

after make dep :
make modules
make modules_install

I think the module is called hid.o, so try
Code:

modprobe hid

antipop 06-10-2004 01:05 PM

after i did a lsmod, i found that there was a module called hid
So now the mouse should work fine on the usb?

Muzzy 06-10-2004 01:39 PM

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?

antipop 06-10-2004 06:20 PM

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

Muzzy 06-11-2004 02:33 PM

You have the correct modules loaded.

Do you have /dev/input/mice ?

How does your mouse section look in /etc/X11/XF86Config?

antipop 06-11-2004 05:27 PM

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

antipop 06-20-2004 04:29 AM

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?

Muzzy 06-20-2004 08:32 AM

Quote:

Is it because i put the hid and all inside the kernel and not as a module?
Possibly, yes. I have them as modules, and it works fine. Try again but using modules. Remember to update your lilo/grub and reboot, and check that the modules are loaded at boot time. If they do not load automatically, modprobe them manually. Please post the exact error messages, if any.

Muzzy 06-20-2004 08:35 AM

You seem to be missing ehci-hcd from lsmod, so make sure you have that selected as a module too, and modprobe it.

antipop 06-20-2004 08:39 AM

i didn't find it in the usb menu when i added the modules

Muzzy 06-20-2004 11:37 AM

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.

antipop 06-20-2004 12:22 PM

alright 10x i'll try that

antipop 06-20-2004 08:00 PM

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.