Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#3869 - UDEV / USB / Keyboard breakage
Attached to Project:
Arch Linux
Opened by ozar (ozar) - Tuesday, 31 January 2006, 04:15 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 05 February 2006, 15:01 GMT
Opened by ozar (ozar) - Tuesday, 31 January 2006, 04:15 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 05 February 2006, 15:01 GMT
|
DetailsI'm not sure which is causing this issue but they appear related, because when I plug in my USB flash-drive, all works fine the way it has been for about 8 months, but starting about two weeks ago when I unmount and unplug the flash-drive, I no longer have a functioning keyboard (can't enter any text into any application), and the drive can not be plugged in to a working state again. The mouse continues to work properly. When I try to shutdown X for a reboot to get things working again, X hangs, and I have to reboot with ctrl-alt-delete. Once rebooted, the system works fine again, unless I repeat the USB flash-drive process, whereas the keyboard stops working again, X hangs, and the system must be rebooted.
Currently the system is running the 2.6.15 kernel, and UDEV from "current". I've tried the recent kernel upgrade, and udev 083 from testing but got the same results. I have no special udev rules in place, just using the default rules. My /etc/fstab looks like this: # # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> none /dev/pts devpts defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/hdc /mnt/dvd iso9660 ro,user,noauto,unhide 0 0 /dev/hdd /mnt/cd iso9660 ro,user,noauto,unhide 0 0 /dev/sda1 /mnt/flash vfat user,noauto,noatime 0 0 /dev/fd0 /mnt/fl vfat user,noauto 0 0 /dev/hda7 swap swap defaults 0 0 /dev/hda6 / ext3 defaults 0 1 /dev/hda8 /home ext3 defaults 0 1 Any help would be most appreciated because I do use my flash drives quite often. Thanks in advance... ozar |
This task depends upon
You are using a usb keyboard right?
CONFIG_USB_BANDWIDTH=y
CONFIG_USB_DYNAMIC_MINORS=y
perhaps it's a weird kernel bug in this experimental stuff
You might be right about it being a kernel bug, but no, the keyboard is ps/2, not usb. That's why it's surprising to me that the keyboard is effected by the unplugging of the USB drive. I do have experience compiling kernels, but have been trying to run on the stock kernels without doing any compiling, so I'm going to wait to see if you have any other ideas before fooling with the kernel.
Thanks for your assistance. :)
ozar
An update... I just noticed that the kernel has been updated to 2.6.15.2 so I might wait until it reaches the Arch repo to see if it helps any. Of course, in the interim, my system will break each time I unplug the USB drive. ;)
ozar
Just wanted to let you know that I installed the new 2.6.15.2-1 kernel from the Arch repo along with a few other upgrades and the problems seem to have cleared up, so I'm guessing it was the new kernel that did the trick. If the problem should reappear, I'll let you know.
Thanks again for your help...
ozar
Thought the new kernel fixed it, but this problem still seems to be happening intermittently. Some of the time, right after unplugging the USB flash drive I'm getting an xserver error when I try to log out saying that the xserver can't be stopped, so it's some type of xserver hang. I'm also still loosing the PS/2 keyboard at times right after unplugging the USB flash drive. The only thing I can do is reboot, and then I notice that the system is having to utilize the ext3 journal to recover from a corrupted file system.
Hope this helps to determine a possible fix.
ozar :)
I've found that some of the earlier problems were indeed cleared up with the newer kernel, but some of it is still happening. Now, when I'm using the USB flash drive, all works well as long as I don't print to the USB printer. If I do print and then unplug the USB flash drive, the xserver always hangs when I try to log out. Upon system reboot, the file system is somewhat corrupted and the journal has to be recovered, then I get an error message about an orphaned inode having to be cleared.
So it appears to be USB related, if not in some way also UDEV related.
Hope this helps in some way,
regards,
ozar :)
I had hoped that upgrading to the new kernel (2.6.15.4-1) and udev that went into the repos today would clear up these problems, but unfortunately they persist on an intermittent basis. The ps/2 keyboard becomes frozen (can't enter any text) at times after unplugging the USB flash drive, and then the xserver hangs at shutdown. The USB printer is always causing hangs at shutdown if I print anything file that is stored on the USB flash drive. These problems only began to occur with the release of the 2.5.15 kernels and other subsequent files.
Hope this helps to determine the problem... thanks for your help with it.
ozar :)
The system is now running fine on the current stock 2.6.15-4 kernel and udev 084-4 as long as I don't plug in my USB flash drive. If I do plug it in, things continue to work properly as long as I leave it plugged in. If I umount and unplug the drive, things start to go wrong and I can't determine if the problem lies with the kernel, udev, or USB.
Now to the current issues. Once the USB flash drive is unmounted and unplugged the X server hangs when I go to shutdown/reboot. This happens whether I actually do any work using the flash drive, or not, which is unlike the problems reported here earlier.
Now, the error messages I'm getting at shutdown/reboot...
First off, the screen goes black and stays that way for about 8 to 10 seconds, then I get these screen errors:
waiting for X server to shutdown
xinit: X server slow to shutdown, sending KILL signal
waiting for server to die ...
xinit: can't kill server
Then I see about 4 or 5 PID errors (including PID numbers) that look like this:
Init: PID seems to hang
Init: PID seems to hang
Init: PID seems to hang
Init: PID seems to hang
Init: PID seems to hang
Then the system shuts down, or reboots, but I notice upon reboot that the filesystem journal has to be recovered (I'm using ext3 filesystem). The system then reboots and all is well again until I plugin and then remove the USB flash drive, where the process repeats itself.
I hope this helps in some way to determine what the problem/fix might be.
Thanks for any assistance with this matter.
Regards,
ozar
and if it solves it?
Regards,
ozar
I think you can close this bug at the current time unless you have further input or questions about it. I plugged in another brand of USB flash drive (SanDisk Cruzer Mini) and it works without any of the problems described above. For your information, the "non-working" usb flash drive is the Corsair Flash Voyager. It's always worked perfectly in Arch before and it works fine in other distros still, but Arch no longer likes it for whatever reason. Anyway, just wanted to let you know what I've figured out.
Thanks again for all your help with it.
ozar