No harm in trying it. It’s been used many times before. I’m not sure on anything without trying. It can’t hurt.
Well he might, the issue lies in the power management, since the card is working after a complete shutdown/re-plug and it bugs out after reboot (and after suspend/hibernation I suppose?).
Another solution might be to write a script that completely powers-off the adapter when the reboot command is being issued
I can see it happening with suspend and or hibernation because it has to power back up and i don’t think it can do that without booting up? The rebooting i know it disconnects from usb but it should power on after booting up. The only recent update to that module is a package in the AUR which is a dkms version.
I will post back after what doing @Dev0ut suggested. I think as mentioned above card doesn’t power up and when restarting it goes to suspension or sleep mode. When the hardware is getting picked up by the kernel I see the status indicator light on the USB dongle blinks. It tries to power up it stops the boot process hits the login or in my case lightDM.
I will after having some tea
iwconfig
output after rebooting.
sinux at sinux-pch in ~
↪ iwconfig
lo no wireless extensions.
enp0s31f6 no wireless extensions.
sinux at sinux-pch in ~
↪ inxi -Na
Network: Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel port: f040 bus-ID: 00:1f.6
chip-ID: 8086:15b8 class-ID: 0200
sinux at sinux-pch in ~
↪ ethtool -i wlan0
Cannot get driver information: No such device
@Dev0ut I added the GRUB command as you said did a couple of restarts but the output is still the same.
My GRUB
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog usbcore.autosuspend=-1"
Can you post iwconfig
and ifconfig
when the card is working?
iwconfig
sinux at sinux-pch in ~
↪ iwconfig
lo no wireless extensions.
enp0s31f6 no wireless extensions.
wlan0 IEEE 802.11 ESSID:"Trojan_HackAtack"
Mode:Managed Frequency:2.462 GHz Access Point: C4:F0:81:1D:59:1B
Bit Rate=43.3 Mb/s Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-23 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:65 Missed beacon:0
ifconfig
sinux at sinux-pch in ~
↪ ifconfig
enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::6427:b86a:560:e4bb prefixlen 64 scopeid 0x20<link>
ether 30:5a:3a:80:ad:c3 txqueuelen 1000 (Ethernet)
RX packets 1735 bytes 1158130 (1.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1607 bytes 293769 (286.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xf7000000-f7020000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 205 bytes 35972 (35.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 205 bytes 35972 (35.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.4 netmask 255.255.255.0 broadcast 192.168.8.255
inet6 2402:4000:21c0:ec6c:c4f0:811d:591b:2 prefixlen 128 scopeid 0x0<global>
inet6 2402:4000:21c0:ec6c:1ebf:ceff:fe8d:6ae9 prefixlen 64 scopeid 0x0<global>
inet6 2402:4000:21c0:ec6c:73bd:9843:615f:8c8b prefixlen 64 scopeid 0x0<global>
inet6 fe80::723d:8e71:1e06:813e prefixlen 64 scopeid 0x20<link>
ether 1c:bf:ce:8d:6a:e9 txqueuelen 1000 (Ethernet)
RX packets 6450 bytes 8812206 (8.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3769 bytes 444157 (433.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
NOTE: I just installed the driver from AUR didn’t get any error but the issue is still the same. Going to try adding that parameter to grub default again.
Type in terminal sudo ifconfig wlan0 down
then try to reboot (it will power off your card before the reboot)
then
sudo ifconfig wlan0 up
after boot and tell me if it works
will do give me a sec.
I’ve made a mistake, it’s down
instead of disable
and up
instead of enable
I ran the down command as you said then rebooted and when I run the up command it give the below output.
sinux at sinux-pch in ~
↪ sudo ifconfig wlan0 up
[sudo] password for sinux:
wlan0: ERROR while getting interface flags: No such device
this is what happens the card is undetected until I remove and reinsert it. But I see the indicator light is in suspended or in sleep mod. I should check this with the Debian-based distro as well to see it this same problem is there. If so it might be caused by the kernel (I know I might be saying something dumb).
Can you post lsusb
with working device and lsusb -t
?
lsusb
with the none working device.
inux at sinux-pch in ~
↪ lsusb
Bus 002 Device 003: ID 0718:1912 Imation Corp. Apollo M300
Bus 002 Device 002: ID 0bc2:a013 Seagate RSS LLC Backup+ BK
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 04b3:310d IBM Corp.
Bus 001 Device 008: ID 03f0:0024 HP, Inc KU-0316 Keyboard
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 003: ID 0bc2:231a Seagate RSS LLC Expansion Portable
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb
with a working device.
sinux at sinux-pch in ~
↪ lsusb
Bus 002 Device 003: ID 0718:1912 Imation Corp. Apollo M300
Bus 002 Device 002: ID 0bc2:a013 Seagate RSS LLC Backup+ BK
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 04b3:310d IBM Corp.
Bus 001 Device 008: ID 03f0:0024 HP, Inc KU-0316 Keyboard
Bus 001 Device 010: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 003: ID 0bc2:231a Seagate RSS LLC Expansion Portable
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -t
also when the card works
With a working card.
sinux at sinux-pch in ~
↪ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
|__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 9: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 10, If 0, Class=Vendor Specific Class, Driver=mt7601u, 480M
|__ Port 3: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 9, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 10: Dev 3, If 0, Class=Mass Storage, Driver=uas, 480M
Can you post ls /sys/bus/pci/drivers/xhci_hcd/
? (we can try to disable the usb and then re-enable)
sinux at sinux-pch in ~
↪ ls /sys/bus/pci/drivers/xhci_hcd/
0000:00:14.0 bind module new_id remove_id uevent unbind
Card is working at the moment.
Can you run this script after reboot?
echo -n "0000:00:14.0" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
sleep 10s
echo -n "0000:00:14.0" | tee /sys/bus/pci/drivers/xhci_hcd/bind
save it as test.sh
and run it with sudo bash test.sh
(don’t forget to cd
in to the directory where the script is located)
P.S. It will disconnect ALL usb for about 10s
Ah … will do. It disconnects everything for 10s and reconnects them. I’ll run it and let you know what happened.
If it gives an error then sudo -i
then
cd
in to the script directory and type chmod u+s test.sh
after that it should work with sudo bash test.sh