Why does wifi automatically turn off when eth0 is turned on?

Why does wifi automatically turn off when eth0 is turned on?

What makes you think so? Show the full commands and their complete output where turned off wifi is visible.

I don’t give any commands.
If I pull out the ethernet cable(unplag), then the wifi automaticaky turns on normally and connects to the AP.
When the ethernet cable is inserted into the laptop, the wifi does not turn on.
“Enable wifi” - gray (unavailable for pressing)

Serg

For pressing where? You are apparently using some GUI and some desktop environment, but you did not say which one.

my GUI is xfce.

Your screenshot says “Wi-Fi is disabled by hardware switch” which suggests it is done by your BIOS.

@skoltogyan:

Are you using Network Manager or Wicked to manage your network interfaces?

I`m useing NetworkManager.
I don’t want to switch to Wicked :slight_smile:

What does sudo rfkill return with and without wired connection?

Can you check if there are any scripts placed in /etc/NetworkManager/dispatcher.d/ or /etc/NetworkManager/conf.d/ ?

Edit: What network adapter(s) are you using?

1
When wired Plug-In:
#rfkill
ID=0 TYPE=wlan DEVICE=hp-wifi SOFT=ublocked HARD=unblocked
ID=3 TYPE=wlan DEVICE=phy SOFT=ublocked HARD=blocked

When wired UnPlug:
#rfkill
ID=0 TYPE=wlan DEVICE=hp-wifi SOFT=ublocked HARD=unblocked
ID=3 TYPE=wlan DEVICE=phy SOFT=ublocked HARD=unblocked

2
ls /etc/NetworkManager/dispatcher.d/
20-chrony autofs
( default scripts only)
ls /etc/NetworkManager/dispatcher.d/
ls: cannot access ‘conf.d/’: No such file or directory

3
02:0e.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM4401-B0 100Base-TX (rev 02)
10:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4311 802.11b/g WLAN (rev 01)

So, it indeed gets hard blocked which points to/confirms:

What are the default scripts? On my Gnome Tumbleweed install I don’t have any scripts in there.

Is there really no /etc/NetworkManager/conf.d or did you maybe by accident check /etc/NetworkManager/dispatcer.d/conf.d as it says ls /etc/NetworkManager/dispatcher.d above

Thank you for help.
In the BIOS was:
LAN/WLAN Switching = “Enable”
After set to “Disable” - problem resolved !

Thank you !

1 Like