pop-os / cosmic-applets

WIP applets for cosmic-panel
GNU General Public License v3.0
201 stars 73 forks source link

Network applet doesn't work #576

Open fulalas opened 1 month ago

fulalas commented 1 month ago

What are the requirements for the network applet to work?

Currently I can see the icon in the panel and click on it, but the wifi toggle doesn't do anything, I can't see any network available, etc. Nothing shows in the terminal. Using NetworkManager terminal applications work though.

Built from epoch on PorteuX (Slackware based) which has no systemd.

iamkartiknayak commented 1 month ago

Some hardware need bcmwl-kernel-source drivers to be installed to discover Wi-Fi.

mmstick commented 1 month ago

May be helpful to share the network card and any kernel logs relevant to it.

fulalas commented 1 month ago

I don't think this is kernel related. If I boot into any other DE it works, including DEs using the original nm-applet.

Is it possible this is issue is happening because cosmic-settings-daemon is not running?

mmstick commented 1 month ago

It should be running for applications to get configuration notifications, and for certain settings to be applied from configurations.

fulalas commented 1 month ago

So how can we find out what's happening? I'm suspecting this is due to some missing dependency, but I see no error, no warning, nothing.

grissu commented 2 weeks ago

I basically have the same problem: While I'm already connected to a network when logging in via gdm, the network connection stays, but cosmic-applet-network won't show an icon but a blank space and when selected just shows "Airplane mode" (slider), "Wi-Fi" (slider) and "Visible Wireless Networks". However neither can I move the sliders nor do any networks show up.

The weird thing is I have 3 users on my machine, the user created during install runs the applet fine. The other two users experience the problem, thought one of the users is member of the very same groups as the first user (sys, network, power, sudo, lp, wheel). Every NetworkManager applet under gnome and KDE works fine on all users.

In journald I get

Aug 25 12:53:34 framework systemd[3784]: Started Application launched by COSMIC.
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletStatusArea: Acquired bus name: org.kde.StatusNotifierWatcher
Aug 25 12:53:42 framework dbus-broker[979]: A security policy denied :1.322 to send method call /org/freedesktop/NetworkManager/Settings:org.freedesktop.NetworkManager.Settings.LoadConnections to org.freedesktop.NetworkManager.
Aug 25 12:53:42 framework dbus-broker[979]: A security policy denied :1.326 to send method call /org/freedesktop/NetworkManager/Settings:org.freedesktop.NetworkManager.Settings.LoadConnections to org.freedesktop.NetworkManager.
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletNetwork: thread 'tokio-runtime-worker' panicked at cosmic-applet-network/src/network_manager/mod.rs:365:44:
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletNetwork: called `Result::unwrap()` on an `Err` value: MethodError(OwnedErrorName("org.freedesktop.NetworkManager.Settings.PermissionDenied"), Some("uid 3134 has no permission to perform this operation"), Msg { type: Error, serial: 1674, sender: UniqueName(":1.4"), reply-serial: 91, body: Signature("s"), fds: [] })
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletNetwork: stack backtrace:
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletBluetooth: bluetooth request error: Bluetooth operation in progress: br-connection-busy
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletNetwork: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletNetwork: thread 'tokio-runtime-worker' panicked at cosmic-applet-network/src/network_manager/mod.rs:365:44:
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletNetwork: called `Result::unwrap()` on an `Err` value: MethodError(OwnedErrorName("org.freedesktop.NetworkManager.Settings.PermissionDenied"), Some("uid 3134 has no permission to perform this operation"), Msg { type: Error, serial: 1687, sender: UniqueName(":1.4"), reply-serial: 91, body: Signature("s"), fds: [] })
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletNetwork: stack backtrace:
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletNetwork: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletStatusArea: Bus name 'org.kde.StatusNotifierWatcher' already owned
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletBluetooth: bluetooth request error: Bluetooth operation in progress: br-connection-busy
Aug 25 12:53:42 framework cosmic-panel[8129]: com.system76.CosmicAppletBluetooth: bluetooth request error: Bluetooth operation in progress: br-connection-busy
Aug 25 12:53:47 framework bluetoothd[982]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 64:72:D8:D7:33:29: Host is down (112)
Aug 25 12:53:47 framework cosmic-panel[8129]: com.system76.CosmicAppletBluetooth: bluetooth request error: Bluetooth operation failed: br-connection-page-timeout

I run Manjaro with kernel version 6.10.5-1-MANJARO #1 SMP PREEMPT_DYNAMIC, same issue regardless of building from sources through AUR or installing via binary packages.

0xDEAD-C0DE commented 2 weeks ago

@fulalas To answer your question. You need Network Manager installed. Have you verified that the NetworkManager.service is running? systemctl status NetworkManager.service I am on Arch Linux and I was having the same issue. I installed Network Manager, enabled the systemctl enable NetworkManager, and systemctl start NetworkManager After doing that the wifi applet worked and the visible networks were available to establish a connection.