You are not logged in.

#1 2025-07-26 15:33:36

MickeyRat
Member
Registered: 2011-11-15
Posts: 145

[SOLVED] Wireless attempt to connect when wired connect is established

This sure sounds like the kind of problem people are going to say I should have found the solution on my own but, I haven't. I have a laptop using a USB ethernet adapter and network manager. It works but, when I use the ethernet adapter, wireless attempts (unsuccessfully) to connect even though the wired connection has been established. I can disconnect the wireless (still spinning) connection in network manager applet and everything works. It doesn't try to connect again. So, I can live with it but, I'd rather not. Any help would be appreciated.

Last edited by MickeyRat (2025-07-27 17:07:28)


Some cause happiness wherever they go; others whenever they go.
- Oscar Wilde

Offline

#2 2025-07-26 17:40:34

-thc
Member
Registered: 2017-03-15
Posts: 995

Re: [SOLVED] Wireless attempt to connect when wired connect is established

What is your goal exactly? Disable the known wireless connection only if the USB Ethernet adapter is up? Is the WiFi out of reach in that case?

Offline

#3 2025-07-26 18:28:01

MickeyRat
Member
Registered: 2011-11-15
Posts: 145

Re: [SOLVED] Wireless attempt to connect when wired connect is established

-thc wrote:

What is your goal exactly? Disable the known wireless connection only if the USB Ethernet adapter is up? Is the WiFi out of reach in that case?

Thanks for the reply.

I really only use wireless when I'm using my laptop away from my desk. My preference would be to have the wireless connect in the absence of a wired connection and that is how it worked at one time. I was having some other issues so I'm not certain when it stopped working that way. What's happening now is that the wired connection succeeds but, it tries to make the wireless connection anyway. Until I stop it by disconnecting the wireless connection through the Network Manager Applet, the icon in the tray spins as if it's waiting on a connection. I'm not sure whether I actually have a working connection while that spinning thing is going on. I'm programmed to think it means I don't have a connection but, it's possible that I do.


Some cause happiness wherever they go; others whenever they go.
- Oscar Wilde

Offline

#4 2025-07-26 20:06:11

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,056

Re: [SOLVED] Wireless attempt to connect when wired connect is established

NM is supposed to prefer the wired connection anyway, please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Offline

#5 2025-07-26 20:25:36

-thc
Member
Registered: 2017-03-15
Posts: 995

Re: [SOLVED] Wireless attempt to connect when wired connect is established

MickeyRat wrote:

I really only use wireless when I'm using my laptop away from my desk. My preference would be to have the wireless connect in the absence of a wired connection and that is how it worked at one time.

Does that mean you don't need any WiFi connection at your desk?
If yes, just delete those saved, reachable WiFi connections (in "Network connections").

Offline

#6 2025-07-26 20:48:35

MickeyRat
Member
Registered: 2011-11-15
Posts: 145

Re: [SOLVED] Wireless attempt to connect when wired connect is established

Thank you both for replynig.

seth wrote:

NM is supposed to prefer the wired connection anyway, please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Output below

bluetooth.service                        | bluetooth.target.wants
dbus-org.bluez.service                   | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.resolve1.service    | system
display-manager.service                  | system
gcr-ssh-agent.socket                     | sockets.target.wants
getty@tty1.service                       | getty.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire-media-session.service           | pipewire.service.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
sshd.service                             | multi-user.target.wants
syncthing@mickeyrat.service              | multi-user.target.wants
systemd-resolved.service                 | sysinit.target.wants



-thc wrote:

Does that mean you don't need any WiFi connection at your desk?
If yes, just delete those saved, reachable WiFi connections (in "Network connections").

While I don't use wireless at my desk, I do use it in other parts of my home. I'd prefer not to have to specify the password every time.


Some cause happiness wherever they go; others whenever they go.
- Oscar Wilde

Offline

#7 2025-07-26 20:54:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,056

Re: [SOLVED] Wireless attempt to connect when wired connect is established

replace pulseaudio w/ pipewire-pulse and pipewire-media-session w/ wireplumber (the other two services are turning bitrot) but you don't have a concurrent network manager or explicit wpa_supplicant/iwd service…

Please post your complete system journal for an affected boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

for the running one.

Offline

#8 2025-07-26 21:13:10

MickeyRat
Member
Registered: 2011-11-15
Posts: 145

Re: [SOLVED] Wireless attempt to connect when wired connect is established

seth wrote:

replace pulseaudio w/ pipewire-pulse and pipewire-media-session w/ wireplumber (the other two services are turning bitrot) but you don't have a concurrent network manager or explicit wpa_supplicant/iwd service…

Please post your complete system journal for an affected boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

for the running one.

Done

http://0x0.st/85VI.txt

I seem to remember that I had to leave that pulsesudio stuff in to get a volume icon in the tray. That was some time back though. There are likely alternatives now.

Now you're going through my journal. Heaven knows what other sloppy stuff you're going to find. smile OTOH I'm pretty much self taught. Any constructive criticism is a chance to learn.


Some cause happiness wherever they go; others whenever they go.
- Oscar Wilde

Offline

#9 2025-07-26 21:45:53

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,056

Re: [SOLVED] Wireless attempt to connect when wired connect is established

Jul 26 17:05:06 chico kernel: e1000e 0000:00:1f.6 enp0s31f6: renamed from eth1
Jul 26 17:05:07 chico kernel: r8152 4-2.4:1.0 enp59s0u2u4: renamed from eth0
Jul 26 17:05:07 chico kernel: iwlwifi 0000:02:00.0 wlp2s0: renamed from wlan0

Jul 26 17:05:08 chico NetworkManager[702]: <info>  [1753563908.1897] device (wlp2s0): set-hw-addr: set MAC address to 2A:5F:25:6C:06:96 (scanning)

Jul 26 17:05:09 chico systemd-logind[705]: New session 1 of user mickeyrat.

Jul 26 17:05:10 chico NetworkManager[702]: <info>  [1753563910.4038] device (enp59s0u2u4): carrier: link connected
Jul 26 17:05:10 chico kernel: r8152 4-2.4:1.0 enp59s0u2u4: carrier on
Jul 26 17:05:10 chico NetworkManager[702]: <info>  [1753563910.4043] device (enp59s0u2u4): state change: unavailable -> disconnected (reason 'carrier-changed', managed-type: 'full')
Jul 26 17:05:10 chico NetworkManager[702]: <info>  [1753563910.5569] device (enp59s0u2u4): state change: secondaries -> activated (reason 'none', managed-type: 'full')
Jul 26 17:05:10 chico NetworkManager[702]: <info>  [1753563910.5573] manager: NetworkManager state is now CONNECTED_SITE
Jul 26 17:05:10 chico NetworkManager[702]: <info>  [1753563910.5576] device (enp59s0u2u4): Activation: successful, device activated.
Jul 26 17:05:10 chico NetworkManager[702]: <info>  [1753563910.9151] manager: NetworkManager state is now CONNECTED_GLOBAL

Jul 26 17:05:11 chico NetworkManager[702]: <info>  [1753563911.8225] policy: auto-activating connection 'mickeyrat' (16f65068-6aca-46a5-a788-1a1915a2ecc3)
Jul 26 17:05:11 chico NetworkManager[702]: <info>  [1753563911.8236] device (wlp2s0): Activation: starting connection 'mickeyrat' (16f65068-6aca-46a5-a788-1a1915a2ecc3)
Jul 26 17:05:11 chico NetworkManager[702]: <info>  [1753563911.8238] device (wlp2s0): state change: disconnected -> prepare (reason 'none', managed-type: 'full')

Jul 26 17:05:11 chico wpa_supplicant[750]: wlp2s0: Trying to associate with 10:c3:7b:98:fc:c8 (SSID='mickeyrat' freq=2442 MHz)
Jul 26 17:05:11 chico NetworkManager[702]: <info>  [1753563911.9079] device (wlp2s0): supplicant interface state: authenticating -> associating
Jul 26 17:05:11 chico NetworkManager[702]: <info>  [1753563911.9080] device (p2p-dev-wlp2s0): supplicant management interface state: authenticating -> associating
Jul 26 17:05:11 chico kernel: wlp2s0: associate with 10:c3:7b:98:fc:c8 (try 1/3)
Jul 26 17:05:11 chico kernel: wlp2s0: associated
Jul 26 17:05:11 chico wpa_supplicant[750]: wlp2s0: Associated with 10:c3:7b:98:fc:c8
Jul 26 17:05:11 chico NetworkManager[702]: <info>  [1753563911.9310] device (wlp2s0): supplicant interface state: associating -> 4way_handshake
Jul 26 17:05:11 chico NetworkManager[702]: <info>  [1753563911.9311] device (p2p-dev-wlp2s0): supplicant management interface state: associating -> 4way_handshake

Jul 26 17:05:33 chico NetworkManager[702]: <info>  [1753563933.2256] device (wlp2s0): state change: deactivating -> disconnected (reason 'user-requested', managed-type: 'full')
Jul 26 17:05:33 chico NetworkManager[702]: <info>  [1753563933.2263] dhcp6 (wlp2s0): canceled DHCP transaction
Jul 26 17:05:33 chico NetworkManager[702]: <info>  [1753563933.2263] dhcp6 (wlp2s0): state changed no lease
Jul 26 17:05:33 chico NetworkManager[702]: <info>  [1753563933.2528] device (wlp2s0): set-hw-addr: set MAC address to F6:30:3F:7B:1D:51 (scanning)

What sticks out a bit is that there's two ethernet devices, one is a USB dongle and that seems the one you're using (…as, on a closer read, your OP states wink)
No idea whether and which part of that irritates NM. Can you try to use the e1000e NIC and unplug the ethernet dongle?
You could perhaps  https://wiki.archlinux.org/title/Networ … plugged_in ?

Offline

#10 2025-07-26 22:04:47

MickeyRat
Member
Registered: 2011-11-15
Posts: 145

Re: [SOLVED] Wireless attempt to connect when wired connect is established

seth wrote:

What sticks out a bit is that there's two ethernet devices, one is a USB dongle and that seems the one you're using (…as, on a closer read, your OP states wink)
No idea whether and which part of that irritates NM. Can you try to use the e1000e NIC and unplug the ethernet dongle?
You could perhaps  https://wiki.archlinux.org/title/Networ … plugged_in ?

This thing might have a NIC but, it doesn't have a port for it. It does have a weird port that I suspect is supposed to work for it but, everything I've found to plug into it. including from Lenovo (the manufacturer) hasn't worked.

It's about time for dinner here. I'll try to look at that dispatcher tomorrow. Thanks for your help!


Some cause happiness wherever they go; others whenever they go.
- Oscar Wilde

Offline

#11 2025-07-26 23:24:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,056

Re: [SOLVED] Wireless attempt to connect when wired connect is established

Seems it has a micropeni… micro ethernet port, do you something like https://www.amazon.de/Lenovo-ThinkPad-E … B00LPRQ5UG ?

Offline

#12 2025-07-27 17:05:03

MickeyRat
Member
Registered: 2011-11-15
Posts: 145

Re: [SOLVED] Wireless attempt to connect when wired connect is established

seth wrote:

What sticks out a bit is that there's two ethernet devices, one is a USB dongle and that seems the one you're using (…as, on a closer read, your OP states wink)
No idea whether and which part of that irritates NM. Can you try to use the e1000e NIC and unplug the ethernet dongle?
You could perhaps  https://wiki.archlinux.org/title/Networ … plugged_in ?

That worked! I'm a bit surprised. I thought it was just for the situation where you were already connected and unplugged the ethernet but, it seems to work on startup too.
Thanks! Now to look at that pulseaudio stuff. smile


seth wrote:

Seems it has a micropeni… micro ethernet port, do you something like https://www.amazon.de/Lenovo-ThinkPad-E … B00LPRQ5UG ?

Thanks for looking at it but, those don't work. I tried one. Last I looked, all Lenovo sold for these things was USB ethernet adapters. I suspect there's a design issue here.


Some cause happiness wherever they go; others whenever they go.
- Oscar Wilde

Offline

Board footer

Powered by FluxBB