Code: Select all
sudo usb_modeswitch -v 0bda -p 1a2b -P c811 -K
I know that there are other post about similar problems, but not offers solution for my case.
From dmesg from booting.
Code: Select all
[ 44.052757] usb 2-1.2: new high-speed USB device number 5 using ehci-pci
[ 44.161591] usb 2-1.2: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 2.00
[ 44.163033] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 44.164401] usb 2-1.2: Product: DISK
[ 44.167222] usb 2-1.2: Manufacturer: Realtek
[ 44.171144] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[ 44.173943] scsi host2: usb-storage 2-1.2:1.0
Code: Select all
[ 47.922192] usb 2-1.2: USB disconnect, device number 5
[ 48.144766] usb 2-1.2: new high-speed USB device number 6 using ehci-pci
[ 48.253556] usb 2-1.2: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[ 48.253565] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 48.253568] usb 2-1.2: Product: 802.11ac NIC
[ 48.253570] usb 2-1.2: Manufacturer: Realtek
[ 48.253572] usb 2-1.2: SerialNumber: 123456
Code: Select all
Use top device dir /sys/bus/usb/devices/2-1.2
Check class of first interface ...
Interface class is 08.
----------------
USB values from sysfs:
manufacturer Realtek
product DISK
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
ConfigList: /etc/usb_modeswitch.d/0bda:1a2b pack/0bda:1a2b pack/
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/0bda:1a2b
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
Use top device dir /sys/bus/usb/devices/2-1.2
Check class of first interface ...
Interface class is 08.
----------------
USB values from sysfs:
manufacturer Realtek
product DISK
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
ConfigList: /etc/usb_modeswitch.d/0bda:1a2b pack/0bda:1a2b pack/
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/0bda:1a2b
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
Command line:
usb_modeswitch -W -D -u -1 -b 2 -g 5 -v 0bda -p 1a2b -f $flags(config)
Use top device dir /sys/bus/usb/devices/2-1.2
Check class of first interface ...
Interface class is 08.
----------------
USB values from sysfs:
manufacturer Realtek
product DISK
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
ConfigList: /etc/usb_modeswitch.d/0bda:1a2b pack/0bda:1a2b pack/
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/0bda:1a2b
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
Command line:
usb_modeswitch -W -D -u -1 -b 2 -g 5 -v 0bda -p 1a2b -f $flags(config)
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
Read long config from command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.6.1 (C) Josua Dietze 2017
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x0bda
DefaultProduct= 0x1a2b
TargetVendor= 0x0bda
TargetProduct= 0xc811
StandardEject=1
System integration mode enabled
Use given bus/device number: 002/005 ...
Look for default devices ...
bus/device number matched
found USB ID 0bda:1a2b
vendor ID matched
product ID matched
Found devices in default mode (1)
Get the current device configuration ...
Use interface number 0
with class 8
Use endpoints 0x0b (out) and 0x8a (in)
USB description data (for identification)
-------------------------
Manufacturer: Realtek
Product: DISK
Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active drivers ...
Set up interface 0
Use endpoint 0x0b for message sending ...
Trying to send message 1 to endpoint 0x0b ...
Sending the message returned error -7. Try to continue
Read the response to message 1 (CSW) ...
Response reading failed (error -8)
Device is gone, skip any further commands
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Target config not matching - current values are
2-1.2:1.0/bInterfaceClass: 08
bConfigurationValue: 1
bNumConfigurations: 1
busnum: 2
devnum: 5
idProduct: 1a2b
idVendor: 0bda
manufacturer: Realtek
product: DISK
serial:
Mode switching may have failed. Exit
Code: Select all
Use top device dir /sys/bus/usb/devices/2-1.2
Check class of first interface ...
Interface class is 08.
----------------
USB values from sysfs:
manufacturer Realtek
product DISK
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
ConfigList: /etc/usb_modeswitch.d/0bda:1a2b pack/0bda:1a2b pack/
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/0bda:1a2b
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
Use top device dir /sys/bus/usb/devices/2-1.2
Check class of first interface ...
Interface class is 08.
----------------
USB values from sysfs:
manufacturer Realtek
product DISK
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
ConfigList: /etc/usb_modeswitch.d/0bda:1a2b pack/0bda:1a2b pack/
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/0bda:1a2b
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
Command line:
usb_modeswitch -W -D -u -1 -b 2 -g 6 -v 0bda -p 1a2b -f $flags(config)
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
Read long config from command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.6.1 (C) Josua Dietze 2017
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x0bda
DefaultProduct= 0x1a2b
TargetVendor= 0x0bda
TargetProduct= 0xc811
StandardEject=1
System integration mode enabled
Use given bus/device number: 002/006 ...
Look for default devices ...
bus/device number matched
found USB ID 0bda:1a2b
vendor ID matched
product ID matched
Found devices in default mode (1)
Get the current device configuration ...
Use interface number 0
with class 8
Use endpoints 0x0b (out) and 0x8a (in)
USB description data (for identification)
-------------------------
Manufacturer: Realtek
Product: DISK
Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active drivers ...
OK, driver detached
Set up interface 0
Use endpoint 0x0b for message sending ...
Trying to send message 1 to endpoint 0x0b ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response successfully read (13 bytes), status 1
Trying to send message 2 to endpoint 0x0b ...
OK, message successfully sent
Read the response to message 2 (CSW) ...
Response successfully read (13 bytes), status 0
Trying to send message 3 to endpoint 0x0b ...
Sending the message returned error -1. Try to continue
Read the response to message 3 (CSW) ...
Device seems to have vanished after reading. Good.
Device is gone, skip any further commands
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Read attributes ...
Target config not matching - current values are
2-1.2:1.0/bInterfaceClass: ff
bConfigurationValue: 1
bNumConfigurations: 1
busnum: 2
devnum: 7
idProduct: c811
idVendor: 0bda
manufacturer: Realtek
product: 802.11ac NIC
serial: 123456
Mode switching may have failed. Exit