Bug 498923 - Incorrect network connection is used to detect network connectivity when multiple connections are present
Summary: Incorrect network connection is used to detect network connectivity when mult...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networking in general (other bugs)
Version First Reported In: 6.2.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-20 11:59 UTC by kde.rrhii
Modified: 2025-05-09 17:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Network configuration and "no internet" tray icon (372.27 KB, image/png)
2025-01-20 11:59 UTC, kde.rrhii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde.rrhii 2025-01-20 11:59:45 UTC
Created attachment 177550 [details]
Network configuration and "no internet" tray icon

SUMMARY
Network widget is using wrong connection to detect connectivity.

I have multiple connections, and one is configured to always block all connections (VPN kill switch).
Unfortunately plasma is using this connection to check for internet status and there is always "no connection" icon (because this connection is in "Connected" state)

I noticed this bug after switching distro, on previous distro with the same Plasma version and the same network configuration, the correct VPN network connection was used for connectivity checks.

I don't know if the "main" connection is configurable somewhere or if it depends on the phase of the moon :D
So the fix for this is to check if any connection has internet access or add option to select network connection as default/primary etc.

STEPS TO REPRODUCE
1. Create additional network connection which blocks all traffic
2. Make it the default for connectivity checks (I don't know how to do this, it's probably random per os install?)

OBSERVED RESULT
Wrong network connection is used for connectivity checks and there is always "no internet" icon in tray.

EXPECTED RESULT
Check if any connection has internet access or make the "main" connection configurable in settings.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.10-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT
Comment 1 Harald Sitter 2025-01-21 11:50:09 UTC
Online detection happens inside NetworkManager itself, not the UI. Probably best to fire a support request their way as I feel like I've seen configuration options for this in the past.
Comment 2 kde.rrhii 2025-01-21 12:10:16 UTC
(In reply to Harald Sitter from comment #1)
> Online detection happens inside NetworkManager itself, not the UI. Probably
> best to fire a support request their way as I feel like I've seen
> configuration options for this in the past.

Not sure if this is NetworkManager issue, nm tools detect internet connection without problems.

> nm-online
Connecting...............   30s [online]

> nmcli networking connectivity
full
Comment 3 Harald Sitter 2025-01-21 12:24:01 UTC
Oh! Interesting. Needs some investigation of the code then.
Comment 4 Harald Sitter 2025-01-21 12:34:34 UTC
What does the following command have to say?

nmcli --fields all general status
Comment 5 kde.rrhii 2025-01-21 13:57:41 UTC
(In reply to Harald Sitter from comment #4)
> What does the following command have to say?
> 
> nmcli --fields all general status

> RUNNING  VERSION  STATE      STARTUP  CONNECTIVITY  NETWORKING  WIFI-HW  WIFI     WWAN-HW  WWAN     METERED      
> running  1.50.1   connected  started  full          enabled     enabled  enabled  missing  enabled  no (guessed)
Comment 6 Harald Sitter 2025-01-21 14:37:38 UTC
Thanks