LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-01-2022, 01:11 PM   #1
MALDATA
Member
 
Registered: Mar 2005
Posts: 157

Rep: Reputation: 19
USB wifi interface always dormant until a reboot


I installed a USB wifi interface (Realtek RTL88x2bu) on a Debian Bullseye machine. The device (wlan1) appears correctly, and reports itself as "dormant:"
Code:
$ ip link show wlan1
4: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 54:ef:33:eb:81:53 brd ff:ff:ff:ff:ff:ff
If I configure a systemd-networkd file like this:
Code:
[Match]
Name=wlan1

[Network]
DHCP=yes
IgnoreCarrierLoss=3s
I can then configure wpa_supplicant for my SSID, I can reboot, and it connects to my network without issue.

However, for various reasons, I need to be able to get this interface configured without rebooting. So, when the device is dormant, I need to be able to configure wpa_supplicant and systemd-networkd, and then somehow get it out of the "dormant" state. I tried the usual stuff, like:
  • Restarting the systemd-networkd service
  • Restarting the wpa_supplicant service
  • ip link set dev wlan1 up
  • ip link set dev wlan1 mode default
  • iw dev wlan1 set power_save off

but it always stays dormant until a reboot.

I googled for a while, and found a few threads that suggested some things that are not applicable in my case. For example, I found a few threads in which people had used network-manager, and a few in which people had changed settings in some power management daemon. However, I do not have those services installed on my machine.

It's not clear to me if this is the behavior of the hardware driver, or if the problem is in userspace and I just don't know how to get it out of its "dormant" state.

Let me know if you have any thoughts. Thanks!
 
Old 11-03-2022, 08:14 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,744

Rep: Reputation: Disabled
Maybe try
Code:
rfkill list;rfkill unblock all
 
Old 11-03-2022, 09:55 AM   #3
MALDATA
Member
 
Registered: Mar 2005
Posts: 157

Original Poster
Rep: Reputation: 19
Thanks for the help! I can confirm that rfkill is not blocking any devices:

Code:
$ rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: phy1: Wireless LAN
        Soft blocked: no
        Hard blocked: no
2: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
 
Old 11-03-2022, 11:10 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,697

Rep: Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673
It may be something else, on my system with wireless working I have a similar output
Code:
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether d8:9c:67:22:4a:11 brd ff:ff:ff:ff:ff:ff
what is output of
Code:
 iw dev
maybe
Code:
dhclient wlan1

Last edited by colorpurple21859; 11-03-2022 at 11:14 PM.
 
Old 11-05-2022, 12:48 PM   #5
MALDATA
Member
 
Registered: Mar 2005
Posts: 157

Original Poster
Rep: Reputation: 19
Doesn't seem to change anything:

Code:
$ ip link show wlan1
4: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state DORMANT mode DORMANT group default qlen 1000
    link/ether 54:ef:33:eb:81:53 brd ff:ff:ff:ff:ff:ff

$ iw dev                                                  
phy#1                                                                                                                                            
        Interface wlan1                                                 
                ifindex 4     
                wdev 0x100000001                                        
                addr 54:ef:33:eb:81:53                                                                                                           
                type managed
                txpower -100.00 dBm                                                                                                              
phy#0                                                                   
        Unnamed/non-netdev interface 
                wdev 0x2                                                
                addr e6:5f:01:90:4e:d1
                type P2P-device                                         
                txpower 31.00 dBm                                                                                                                
        Interface wlan0                                                 
                ifindex 3                                                                                                                        
                wdev 0x1                                                
                addr e4:5f:01:90:4e:d1                               
                type managed                                            
                channel 34 (5170 MHz), width: 20 MHz, center1: 5170 MHz                                                                          
                txpower 31.00 dBm

$ sudo dhclient wlan1

$ ip link show wlan1
4: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state DORMANT mode DORMANT group default qlen 1000
    link/ether 54:ef:33:eb:81:53 brd ff:ff:ff:ff:ff:ff
 
Old 11-08-2022, 10:33 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,697

Rep: Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673Reputation: 1673
Code:
ifup wlan1
ip addr

Last edited by colorpurple21859; 11-08-2022 at 10:36 PM.
 
Old 11-10-2022, 10:30 PM   #7
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 373

Rep: Reputation: 68
disable power management wifi/networking settings. check bios for settings. depending on laptop or not you may have hidden/advanced menu for bios with additional settings.

does this command do anything for you? got kde or what desktop?

ip link set wlan1 up
iw dev wlan1 scan
lspci -v
lsmod

dmesg | grep firmware
dmesg | grep real

dmesg plain.

did you try rmod or modprobe -r kerneldriver to remove kernel module if it is kernel module and not built in.

Last edited by mrapathy; 11-10-2022 at 10:31 PM.
 
  


Reply

Tags
bullseye, network, wifi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GitLab U-turns on deleting dormant projects after backlash LXer Syndicated Linux News 0 08-06-2022 06:42 PM
[SOLVED] Dragora marked as 'dormant' on distrowatch san2ban Dragora GNU/Linux-Libre 4 06-24-2015 11:51 AM
The dormant Behemoth of Linux Questions jens General 3 09-12-2014 10:32 PM
LXer: Tizen's Dawati Shell Has Gone Dormant LXer Syndicated Linux News 0 11-04-2012 07:20 AM
LXer: Open-Source Skype Effort Is Dormant Or Dead LXer Syndicated Linux News 0 03-09-2012 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration