Участник с: 20 марта 2021
|
Помогите разобраться с работой адаптера. До недавнего времени всё работало, в один прекрасный день при включении компа начал определяться как usb диск с драйверами
Установлены драйверы rtl8821cu/5.8.1.7.6.14798a1, 5.16.12-arch1-1, x86_64: installed rtl8821cu/5.8.1.7.6.14798a1, 5.16.12-lqx2-1-lqx, x86_64: installed
dmesg
[ 3301.659616] usb 5-2: new high-speed USB device number 7 using xhci_hcd
[ 3301.785827] usb 5-2: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 2.00
[ 3301.785831] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3301.785832] usb 5-2: Product: DISK
[ 3301.785833] usb 5-2: Manufacturer: Realtek
[ 3301.786145] usb-storage 5-2:1.0: USB Mass Storage device detected
[ 3301.786243] scsi host9: usb-storage 5-2:1.0
[ 3302.829042] scsi 9:0:0:0: Direct-Access Realtek Driver Storage 1.00 PQ: 0 ANSI: 0 CCS
[ 3302.829551] sd 9:0:0:0: [sdc] 16000 512-byte logical blocks: (8.19 MB/7.81 MiB)
[ 3302.831718] sd 9:0:0:0: [sdc] Write Protect is on
[ 3302.831721] sd 9:0:0:0: [sdc] Mode Sense: 03 00 80 00
[ 3302.833913] sd 9:0:0:0: [sdc] No Caching mode page found
[ 3302.833915] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 3302.842540] sdc:
[ 3302.847716] sd 9:0:0:0: [sdc] Attached SCSI removable disk
[ 3308.789677] FAT-fs (sdc): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[3932.393083] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[3932.393283] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[3932.393299] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
KERNEL[3932.393402] add /devices/virtual/workqueue/scsi_tmf_9 (workqueue)
KERNEL[3932.393441] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9 (scsi)
KERNEL[3932.393457] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/scsi_host/host9 (scsi_host)
KERNEL[3932.393513] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
KERNEL[3932.393530] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [3932.394290] add /devices/virtual/workqueue/scsi_tmf_9 (workqueue)
UDEV [3932.934964] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [3932.935921] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [3932.936638] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
UDEV [3932.937145] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9 (scsi)
UDEV [3932.937699] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/scsi_host/host9 (scsi_host)
UDEV [3932.938260] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
UDEV [3932.940371] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[3933.458150] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0 (scsi)
KERNEL[3933.458180] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0 (scsi)
KERNEL[3933.458193] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/scsi_device/9:0:0:0 (scsi_device)
KERNEL[3933.458212] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/bsg/9:0:0:0 (bsg)
KERNEL[3933.458224] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/scsi_disk/9:0:0:0 (scsi_disk)
UDEV [3933.459011] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0 (scsi)
UDEV [3933.459646] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0 (scsi)
UDEV [3933.460346] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/scsi_device/9:0:0:0 (scsi_device)
UDEV [3933.460766] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/bsg/9:0:0:0 (bsg)
UDEV [3933.460933] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/scsi_disk/9:0:0:0 (scsi_disk)
KERNEL[3933.463015] add /devices/virtual/bdi/8:32 (bdi)
UDEV [3933.463308] add /devices/virtual/bdi/8:32 (bdi)
KERNEL[3933.471554] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
KERNEL[3933.472002] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
KERNEL[3933.474296] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
KERNEL[3933.476639] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0 (scsi)
UDEV [3933.685170] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
UDEV [3933.794170] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
UDEV [3933.906611] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
UDEV [3933.907209] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0 (scsi)
KERNEL[3938.969495] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
UDEV [3939.068727] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
Добавил адаптер в виртуальную машину с windows, с внутреннего диска адаптера установил драйвер, и теперь при запуске виртуальной машины в арче заводиться сеть
udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[3986.320854] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/bsg/9:0:0:0 (bsg)
KERNEL[3986.320877] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/scsi_device/9:0:0:0 (scsi_device)
KERNEL[3986.320888] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/scsi_disk/9:0:0:0 (scsi_disk)
KERNEL[3986.321790] remove /devices/virtual/bdi/8:32 (bdi)
KERNEL[3986.321957] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
UDEV [3986.322202] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/bsg/9:0:0:0 (bsg)
UDEV [3986.322449] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/scsi_disk/9:0:0:0 (scsi_disk)
UDEV [3986.322475] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/scsi_device/9:0:0:0 (scsi_device)
UDEV [3986.322500] remove /devices/virtual/bdi/8:32 (bdi)
UDEV [3986.323362] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
KERNEL[3986.338741] unbind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0 (scsi)
KERNEL[3986.338760] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0 (scsi)
KERNEL[3986.338771] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0 (scsi)
KERNEL[3986.338822] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/scsi_host/host9 (scsi_host)
KERNEL[3986.338837] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9 (scsi)
UDEV [3986.339424] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/scsi_host/host9 (scsi_host)
UDEV [3986.339435] unbind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0 (scsi)
UDEV [3986.339857] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0/9:0:0:0 (scsi)
UDEV [3986.340237] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9/target9:0:0 (scsi)
UDEV [3986.340588] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/host9 (scsi)
KERNEL[3986.347721] remove /devices/virtual/workqueue/scsi_tmf_9 (workqueue)
KERNEL[3986.347761] unbind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
UDEV [3986.347955] remove /devices/virtual/workqueue/scsi_tmf_9 (workqueue)
UDEV [3986.348365] unbind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
KERNEL[3998.256772] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[3998.383881] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [3998.384756] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [3998.385692] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[3998.842779] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[3998.971869] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [3998.972418] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [3998.973327] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[4020.959855] unbind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
KERNEL[4020.959884] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
KERNEL[4020.959971] unbind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[4020.959990] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [4020.960993] unbind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
UDEV [4020.961380] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
UDEV [4020.962105] unbind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [4020.966279] remove /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[4021.416077] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[4021.417783] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
KERNEL[4021.417851] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
KERNEL[4021.562819] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/ieee80211/phy2 (ieee80211)
KERNEL[4021.562852] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/ieee80211/phy2/rfkill2 (rfkill)
KERNEL[4021.562924] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0 (net)
KERNEL[4021.562934] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/rx-0 (queues)
KERNEL[4021.562942] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/rx-1 (queues)
KERNEL[4021.562951] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/rx-2 (queues)
KERNEL[4021.562960] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/rx-3 (queues)
KERNEL[4021.562967] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/tx-0 (queues)
KERNEL[4021.562975] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/tx-1 (queues)
KERNEL[4021.562983] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/tx-2 (queues)
KERNEL[4021.562991] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/tx-3 (queues)
KERNEL[4021.563076] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
KERNEL[4021.563171] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [4022.106311] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [4022.107295] change /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
UDEV [4022.107943] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
UDEV [4022.108459] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/ieee80211/phy2 (ieee80211)
UDEV [4022.109087] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/ieee80211/phy2/rfkill2 (rfkill)
UDEV [4022.248597] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0 (net)
UDEV [4022.249636] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/rx-0 (queues)
UDEV [4022.249658] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/rx-1 (queues)
UDEV [4022.250391] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/rx-2 (queues)
UDEV [4022.250652] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/tx-0 (queues)
UDEV [4022.251006] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/tx-2 (queues)
UDEV [4022.251022] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/tx-1 (queues)
UDEV [4022.251036] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/rx-3 (queues)
UDEV [4022.251055] add /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0/net/wlan0/queues/tx-3 (queues)
UDEV [4022.251713] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.0 (usb)
UDEV [4022.254101] bind /devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2 (usb)
dmesg
[ 3358.643200] usb 5-2: reset high-speed USB device number 7 using xhci_hcd
[ 3359.230195] usb 5-2: reset high-speed USB device number 7 using xhci_hcd
[ 3380.555958] usb 5-2: USB disconnect, device number 7
[ 3380.893007] usb 5-2: new high-speed USB device number 8 using xhci_hcd
[ 3381.019271] usb 5-2: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[ 3381.019276] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3381.019277] usb 5-2: Product: 802.11ac NIC
[ 3381.019278] usb 5-2: Manufacturer: Realtek
[ 3381.019279] usb 5-2: SerialNumber: 123456
[ 3396.096863] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready Я так понимаю, что нужно сменить режим, чтобы определялся не usb накопитель, а сам адаптер. Кто подскажет?
inxi -n
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8168
IF: enp9s0 state: up speed: 100 Mbps duplex: full mac: 18:XX:XX:52:XX:a0
Device-2: Realtek RTL8188GU 802.11n WLAN Adapter (Driver CDROM Mode)
type: USB driver: usb-storage
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8168
IF: enp9s0 state: up speed: 100 Mbps duplex: full mac: 18:XX:XX:52:XX:a0
Device-2: Realtek 802.11ac NIC type: USB driver: rtl8821cu
IF: wlan0 state: up mac: 98:XX:XX:9a:XX:94
|