--- Begin Message ---
Package: linux-image-2.6.26-2-amd64
Version: 2.6.26-21lenny4
Severity: low
while trying to use a usb
0bda:0111 Realtek Semiconductor Corp. Card Reader
to access a sd-card i found that there is no output on from
udevadm monitor
when plugging such a card in our out.
instead i have to use
fdisk -l
as workaround to trigger an add event.
after this the available partitions are reflected by needed device
nodes. however removing the media doesn't remove the node, also issuing
fdisk -l
after removing medias doesn't remove the nodes, but produces empty output.
altering the partitions on the media and typing
fdisk -l
again, triggers several events like change and add(see 1st attachment).
hint that dmesg shows the following while booting, with no media attached:
[ 20.776270] usb-storage: device scan complete
[ 20.785462] scsi 2:0:0:0: Direct-Access Generic- Compact Flash
1.00 PQ: 0 ANSI: 0 CCS
[ 20.794372] scsi 2:0:0:1: Direct-Access Generic- SM/xD-Picture
1.00 PQ: 0 ANSI: 0 CCS
[ 20.801364] scsi 2:0:0:2: Direct-Access Generic- SD/MMC
1.00 PQ: 0 ANSI: 0 CCS
[ 20.808465] scsi 2:0:0:3: Direct-Access Generic- MS/MS-Pro
1.00 PQ: 0 ANSI: 0 CCS
[ 20.838612] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[ 20.842173] sd 2:0:0:1: [sdd] Attached SCSI removable disk
[ 20.846141] sd 2:0:0:2: [sde] Attached SCSI removable disk
[ 20.850145] sd 2:0:0:3: [sdf] Attached SCSI removable disk
in fact sdc-sdf exist after booting.
see attachment 2 for output of
lsusb -v
attachement 3 contains lsmod
an usb-port included in the device works well with flash drives.
also the sd-card doesn't make problems with other readers (on other
computers)
the realtek readers LED lights up when plugging in a sd-card.
I'm using debian lenny x86_64 (5.0.4)
UDEV [1270662812.542976] remove /block/sde/sde1 (block)
UEVENT[1270662812.555433] change /block/sde (block)
UEVENT[1270662812.555465] add /block/sde/sde1 (block)
UEVENT[1270662812.555472] add /block/sde/sde2 (block)
UDEV [1270662812.564464] change /devices/pci0000:00/0000:00:0b.1/usb2/2-2/2-2:1.0/host2/target2:0:0/2:0:0:2 (scsi)
UDEV [1270662812.634868] change /block/sde (block)
UDEV [1270662812.696835] add /block/sde/sde2 (block)
UDEV [1270662812.723488] add /block/sde/sde1 (block)
# lsusb -s 2:2 -v
Bus 002 Device 002: ID 0bda:0111 Realtek Semiconductor Corp. Card Reader
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x0111 Card Reader
bcdDevice 11.22
iManufacturer 1 Generic
iProduct 2 USB2.0-CRW
iSerial 3 20021111153705700
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 CARD READER
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 5 Bulk-In, Bulk-Out, Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
# lsmod
Module Size Used by
nfsd 248616 17
auth_rpcgss 47520 1 nfsd
exportfs 8704 1 nfsd
nfs 252080 0
nfs_acl 7552 2 nfsd,nfs
lockd 68944 2 nfsd,nfs
sunrpc 197992 13 nfsd,auth_rpcgss,nfs,nfs_acl,lockd
twofish 11136 5
twofish_common 18560 1 twofish
ipv6 288456 23
ipt_LOG 10116 1
xt_limit 7172 1
xt_tcpudp 7680 16
nf_conntrack_ipv4 19352 13
xt_state 6656 13
nf_conntrack 71440 2 nf_conntrack_ipv4,xt_state
ipt_REJECT 7552 3
iptable_filter 7424 1
ip_tables 21520 1 iptable_filter
x_tables 25224 6 ipt_LOG,xt_limit,xt_tcpudp,xt_state,ipt_REJECT,ip_tables
sha256_generic 13696 0
aes_x86_64 12416 4
aes_generic 32552 1 aes_x86_64
cbc 7936 7
dm_crypt 17032 1
crypto_blkcipher 21636 9 cbc,dm_crypt
loop 19468 0
ide_cd_mod 36360 0
cdrom 37928 1 ide_cd_mod
usb_storage 95936 0
pcspkr 7040 0
snd_pcm 81800 0
snd_timer 25744 1 snd_pcm
snd 63688 2 snd_pcm,snd_timer
soundcore 12064 1 snd
snd_page_alloc 13072 1 snd_pcm
k8temp 9216 0
forcedeth 54032 0
amd74xx 13448 0 [permanent]
ehci_hcd 36108 0
ohci_hcd 25092 0
i2c_nforce2 10752 0
i2c_core 27936 1 i2c_nforce2
button 11680 0
evdev 14208 0
ext3 125072 7
jbd 51240 1 ext3
mbcache 12804 1 ext3
dm_mirror 20608 0
dm_log 13956 1 dm_mirror
dm_snapshot 19400 0
dm_mod 58864 32 dm_crypt,dm_mirror,dm_log,dm_snapshot
sd_mod 29376 8
thermal 22688 0
processor 42304 1 thermal
fan 9352 0
thermal_sys 17728 3 thermal,processor,fan
ata_generic 10116 0
sata_nv 28680 6
libata 165600 2 ata_generic,sata_nv
scsi_mod 161016 3 usb_storage,sd_mod,libata
dock 14112 1 libata
ide_pci_generic 9220 0 [permanent]
ide_core 128284 3 ide_cd_mod,amd74xx,ide_pci_generic
raid1 24192 2
md_mod 80292 3 raid1
--- End Message ---
--- Begin Message ---
bug is invalid
installing hal 0.5.11-8 solved the problem.
hal started polling the devices for itself after installing.
here is some output produced meanwhile:
hal-disable-polling --enable-polling --udi
/org/freedesktop/Hal/devices/storage_serial_Generic__SD_MMC_20021111153705700_0_2
Polling is already enabled on the given drive.
ps ax | grep hal
4481 ? Ss 0:00 /usr/sbin/hald
4482 ? S 0:00 hald-runner
4502 ? S 0:00 hald-addon-input: Listening on
/dev/input/event4 /dev/input/event3 /dev/input/event2 /dev/input/event1
4509 ? S 0:00 hald-addon-acpi: listening on acpid socket
/var/run/acpid.socket
4513 ? S 0:00 hald-addon-storage: polling /dev/hda (every
2 sec)
4525 ? S 0:00 hald-addon-storage: polling /dev/sdc (every
2 sec)
4527 ? S 0:00 hald-addon-storage: polling /dev/sdd (every
2 sec)
4529 ? S 0:00 hald-addon-storage: polling /dev/sde (every
2 sec)
4531 ? S 0:00 hald-addon-storage: polling /dev/sdf (every
2 sec)
*media inserted*
Apr 13 17:39:41 server kernel: [15541.068453] sd 2:0:0:2: [sde] 15659008
512-byte hardware sectors (8017 MB)
Apr 13 17:39:41 server kernel: [15541.071070] sd 2:0:0:2: [sde] Write
Protect is off
Apr 13 17:39:41 server kernel: [15541.074322] sd 2:0:0:2: [sde] 15659008
512-byte hardware sectors (8017 MB)
Apr 13 17:39:41 server kernel: [15541.077074] sd 2:0:0:2: [sde] Write
Protect is off
Apr 13 17:39:41 server kernel: [15541.077116] sde: sde1
Ben Hutchings schrieb:
On Wed, 2010-04-07 at 21:36 +0200, lirel83 wrote:
Package: linux-image-2.6.26-2-amd64
Version: 2.6.26-21lenny4
Severity: low
while trying to use a usb
0bda:0111 Realtek Semiconductor Corp. Card Reader
to access a sd-card i found that there is no output on from
udevadm monitor
when plugging such a card in our out.
[...]
This is very likely a bug in the reader itself. The usb-storage driver
normally relies on the device to report media changes.
It is possible that you can work around this by configuring the 'HAL'
service to poll the device i.e. check for changes regularly, as it
already does for CD drives.
First you would need to find the HAL Universal Device Identifier (UDI)
for the device. You can list the devices HAL knows with 'lshal'; the
reader will have a UDI beginning with:
/org/freedesktop/Hal/devices/storage_serial_
and the 'storage.originating_device' for it will begin with:
/org/freedesktop/Hal/devices/usb_device_bda_111_
You can then run 'hal-disable-polling --enable-polling' followed by the
reader's UDI. Note that I have not tried this myself and don't know
that it will really work.
Ben.
--- End Message ---