Mouse and Keyboard Problems, think it got to do with my external usb-drive
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
USB-Mouse and USB-Keyboard Problems. I think it had to do with my usb-drive
Hi,
I changed my /etc/rc.d/rc.modules
Code:
# USB Mass Storage support:
/sbin/modprobe usb-storage
And then when I power on my usb drive after 1 minute my usb mouse or/and usb keyboard get crazy. Sometimes without power on my usb drive, but with the module usb-storage loaded. If the module isn't load I have no problems.
I got a USB-Keyboard called zBoard and a usb-mouse called Razer Diamondback. My extern drive is a Trekstor Mobile HDD Datastation maxi x.u.
Here is my lsmod with usb-storage and usb-drive powered up:
Here without usb-drive and a reboot, because my keyboard gets mad an repeated the last i 10.000 times, and it keeps repeating when I unplug the keyboard.
Now I still got problems, without the usb-drive and module. I killed the programm called KwikDisk. It seems that was the problem. But I want KwikDisk, or is there a better program?
root@blackpower:/home/rex# lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7800 GT] (rev a1)
05:07.0 Ethernet controller: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
05:08.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
05:08.1 Input device controller: Creative Labs SB Audigy Game Port (rev 04)
05:08.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
root@blackpower:/home/rex# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 012: ID 03eb:3301 Atmel Corp. at43301 4-port Hub
Bus 002 Device 013: ID 1532:0001
Bus 002 Device 014: ID 1038:0100 Ideazon, Inc. Zboard
Bus 002 Device 003: ID 04f9:012b Brother Industries, Ltd
Bus 002 Device 004: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 001 Device 001: ID 0000:0000
root@blackpower:/home/rex#
IT's still not working, without the KWIKDISK I still got problems, my mouse stops working until I replug it 10 times...
Here is my lsusb with the external drive:
Code:
root@blackpower:/home/rex# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 012: ID 03eb:3301 Atmel Corp. at43301 4-port Hub
Bus 002 Device 014: ID 1038:0100 Ideazon, Inc. Zboard
Bus 002 Device 003: ID 04f9:012b Brother Industries, Ltd
Bus 002 Device 004: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 002 Device 018: ID 1532:0001
Bus 001 Device 001: ID 0000:0000
root@blackpower:/home/rex#
the last things I changed, is my group and then trying to get my usb-drive working. Changed the fstab stettings AND acitvated APM. And now I got these problems... I got mad, I work now 10 minutes and got no problems. But when I start my usb-drive I'm sure to get these problems again...
after waiting several hours, after a good sleep, everything is working now. :-)
But I got still a problem, my external drive has only a speed of 3,2 M/s. This is to slow. In the KDE Info Center I got this info:
USB TO IDE
PCI device 10de:005b (nVidia Corporation) (1)
Linux 2.4.33.3 ehci_hcd
USB-Version: 2.00
Speed: 480 Mbit/s
After some time, my USB drive gets disconnect.
And then I can't mount it:
Here a dmesg | tail :
hub.c: new USB device 00:02.1-2, assigned address 9
usb.c: USB device not accepting new address=9 (error=-71)
hub.c: new USB device 00:02.1-2, assigned address 10
usb.c: USB device not accepting new address=10 (error=-71)
Device 08:35 not ready.
I/O error: dev 08:35, sector 0
FAT: unable to read boot sector
After power down and up of the usb drive I got this:
usb.c: USB device not accepting new address=9 (error=-71)
hub.c: new USB device 00:02.1-2, assigned address 10
usb.c: USB device not accepting new address=10 (error=-71)
Device 08:35 not ready.
I/O error: dev 08:35, sector 0
FAT: unable to read boot sector
hub.c: new USB device 00:02.1-2, assigned address 11
usb.c: USB device not accepting new address=11 (error=-71)
hub.c: new USB device 00:02.1-2, assigned address 12
usb.c: USB device not accepting new address=12 (error=-71)
It looks for me, that the Dreckstor Device don't accept the address which linux want to give him... But what can I do? Buy a better usb-drive? It was so cheap
Can Linux give this device the same address again and again? Maybe I find an addrress which is working. But where can I adjust this? I will go into a journey in /etc.... bye.
Edit:
After power down, unplug usb cable, power up, plug usb calple I got this dmesg:
hub.c: new USB device 00:02.1-1, assigned address 15
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 15
I wish my problems disappeared like that-lucky you!
You low transfer rate is probably due to the possibility of the 'low performance usb driver' module enabled.
Take a look at your kernel config (cd /usr/src/linux ; make xconfig)and see if thats the case(look under the main heading 'block devices').
If you're using a stock kernel I don't think Pat enabled it; it happens when you compile your own kernel with a make oldconfig or such....
from the article
So, it is better for certain things and worse for others. In 2.6.10
there are much larger warnings to Distros not to enable it, as it's not
ready yet. The problem is that if you compile your kernel with
CONFIG_BLK_DEV_UB then the devices it believes it can handle (a subset
of the usb-storage devices), then usb-storage will *not* bind to those
devices even if the ub driver is not loaded. Note though that you can
have one device bound to ub and another to usb-storage on the same
machine without problems as long as ub doesn't believe it should have
that 2nd device.
I can't find anything like CONFIG_BLK_DEV_UB in the section you told. And I can't find the subset of usb-storage devices in xconfig.
Another linux newbie question, are the settings shown in xconfig the actual settings of my kernel I'm using? Thx.
Edit: I will try the following today:
-Deactivate hotplug
-activate each module I need in /etc/rc.modules
I don't know much, but I "believe" this would work. Because in lsmod there are all 3 usb-driver, I think I will only need one for my nvidia board. Asus A8N-SLI nforce4.
I think it was with Windows XP or PQmagic, I don't know.
I want to copy all my data from the external drive (170GB) on my Harddisk and format/resize the first partition with ext2 and the second with vfat.
At the moment the first is ntfs and the second vfat (fat32).
Now I deactivate rc.hotplug with chmod -x and edit the rc.modules. And now I have 430 kb/s per second and not 4 Mb/s. :-(
Edit: In the KDE Info tool my usb-drive is shown as usb 2.0. and a Speed with 12 Mb/s not with over 400 as I mentioned before.
Edit2: Here is my dmesg when I power my usb-drive on:
Code:
hub.c: new USB device 00:02.0-1, assigned address 5
scsi5 : SCSI emulation for USB Mass Storage devices
Vendor: WDC WD20 Model: 00BB-00GUC0 Rev: 0811
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sdd at scsi5, channel 0, id 0, lun 0
SCSI device sdd: 390721968 512-byte hdwr sectors (200050 MB)
sdd: sdd1 sdd2 < sdd5 >
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 5
Edit 3:
The module ehci-hcd was missing. Now I have 3-4 Mb/s again. But still too slow....
Device Drivers -> Block Devices -> Low performance usb driver
<my brain thoughts>That is a bit slow. You should be getting 7~10megs a second.
Shielded usb cable? getting fast transfer on another system? </end>
Sry, maybe I'm stupid or using a other system like you. I got no entry Device Drivers. I got an entry Block Devices and USB Support. But I can't find Low performance usb driver there and also not in other entries.
The usb cable is shielded and with Windows XP I needed 2 hours for a complete restore of my personal data and with linux I need 6-7 hours.
Edit: I activated hotplug again and restored my rc.modules. Because I got to many problems. World of Warcraft had not start. The next thing I will try is: Copy all data on my harddisk and format my usb-drive with ext2 and make only one partition. I don't need an fat partition because, I will never have to do anything with Windows XP again at my home. Because I really really reaaly hate M$ XP.
The only thing I'm using XP is in my vmware player for support...
Edit2: Sometimes I can't copy files, I hope this will not happen with the new filesystem
Here is a dmesg, with an i/o error when this happens:
(The error begins with SCSI-Disk error)
Code:
hub.c: new USB device 00:02.1-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:02.1-1, assigned address 3
usb.c: USB device 3 (vend/prod 0x5e3/0x702) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi5 : SCSI emulation for USB Mass Storage devices
Vendor: WDC WD20 Model: 00BB-00GUC0 Rev: 0811
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sdd at scsi5, channel 0, id 0, lun 0
SCSI device sdd: 390721968 512-byte hdwr sectors (200050 MB)
sdd: sdd1 sdd2 < sdd5 >
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
USB Mass Storage support registered.
SCSI disk error : host 5 channel 0 id 0 lun 0 return code = 8000002
Current sd08:35: sns = 70 4
ASC=4b ASCQ= 0
Raw sense data:0x70 0x00 0x04 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x4b 0x00 0x00 0x00 0x00 0x00
I/O error: dev 08:35, sector 207830512
Uhm, yes, I loved to try the 2.6 kernel. I also loaded the huge 2.6 kernel. But I got problems loading modules, the directory to the modules doesn't exist. The Number was wrong. /lib/modules/<kernel version number>
I'm using 2.4.33.3 kernel. I will try to install as second option the 2.6 kernel in lilo and try again. Thx for the hint.
usb 1-1: new high speed USB device using ehci_hcd and address 4
usb 1-1: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi4 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: WDC WD20 Model: 00BB-00GUC0 Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdd: 390721968 512-byte hdwr sectors (200050 MB)
sdd: test WP failed, assume Write Enabled
sdd: assuming drive cache: write through
SCSI device sdd: 390721968 512-byte hdwr sectors (200050 MB)
sdd: test WP failed, assume Write Enabled
sdd: assuming drive cache: write through
sdd: sdd1 sdd2 < sdd5 >
sd 4:0:0:0: Attached scsi disk sdd
sd 4:0:0:0: Attached scsi generic sg3 type 0
usb-storage: device scan complete
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.