If the VirtualHere server (vhusbdarmpi3) is running on my Pi3, my micro-SD card reader (with card) isn't recognized as a storage device. If I stop VirtualHere server, it is recognized. Here's what udevadm monitor -k says:
Insert card reader with VirtualHere server running:
root@Pi3:/~# udevadm monitor -k
monitor will print the received events for:
KERNEL - the kernel uevent
KERNEL[88552.134274] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3 (usb)
Insert card reader with VirtualHere server stopped:
root@Pi3:/~# udevadm monitor -k
monitor will print the received events for:
KERNEL - the kernel uevent
KERNEL[88485.314212] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3 (usb)
KERNEL[88485.314645] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0 (usb)
KERNEL[88485.316134] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0 (scsi)
KERNEL[88485.316344] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/scsi_host/host0 (scsi_host)
KERNEL[88485.316568] bind /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0 (usb)
KERNEL[88485.316892] bind /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3 (usb)
KERNEL[88486.321791] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0 (scsi)
KERNEL[88486.321996] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0 (scsi)
KERNEL[88486.322128] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0 (scsi_disk)
KERNEL[88486.322393] bind /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0 (scsi)
KERNEL[88486.322535] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0/scsi_device/0:0:0:0 (scsi_device)
KERNEL[88486.322784] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0/scsi_generic/sg0 (scsi_generic)
KERNEL[88486.323101] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0/bsg/0:0:0:0 (bsg)
KERNEL[88486.646061] add /devices/virtual/bdi/8:0 (bdi)
KERNEL[88486.653077] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[88486.653341] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1 (block)
KERNEL[88486.653561] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda2 (block)
KERNEL[88486.653783] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda3 (block)
The vendor/product IDs are
root@Pi3:/root# lsusb
Bus 001 Device 031: ID 05e3:0749 Genesys Logic, Inc.
I can stop the server, insert the card reader, and then restart the server as a workaround.
I presume this is the sort of thing for which the server event system was developed, but its use for that purpose is clearly above my pay grade.
Help?
.
OK that is expected, to change this default - stop the server process and then edit the server config.ini and add the line
AutoAttachToKernel=1
Then save the config.ini file and start the server again
Perfect - that solved the
Perfect - that solved the problem!
Thanks for the great support!