Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't handle WiFi #271

Closed
Thatoo opened this issue Aug 19, 2024 · 9 comments
Closed

Can't handle WiFi #271

Thatoo opened this issue Aug 19, 2024 · 9 comments

Comments

@Thatoo
Copy link

Thatoo commented Aug 19, 2024

Hello,

I face the same issue as #107

Wifi connects automatically but I can't handle WiFi from Cosmic. Bluetooth works out of the box.

The Wifi toggle is there, but it is grayed out, and I can't switch it and I can't find any wifi settings.

image

:~$ nmcli device
DEVICE          TYPE      STATE                  CONNECTION
wlp4s0          wifi      connecté               FREEWIFI
lo              loopback  connecté (en externe)  lo
p2p-dev-wlp4s0  wifi-p2p  déconnecté             --
enp0s31f6       ethernet  indisponible           --
vboxnet0        ethernet  non-géré               --
@Thatoo Thatoo changed the title Can't enable WiFi Can't handle WiFi Aug 19, 2024
@Thatoo
Copy link
Author

Thatoo commented Sep 20, 2024

Wifi settings ave arrived within Cosmic settings app but the wifi applet is still not working properly, same as previously described.

@drakon64
Copy link
Contributor

How is your networking configured?

@Thatoo
Copy link
Author

Thatoo commented Sep 20, 2024

in configuration.nix, I have simply :

  networking.hostName = "LaptopName"; # Define your hostname.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.

  # Configure network proxy if necessary
  # networking.proxy.default = "http://user:password@proxy:port/";
  # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";

  # Enable networking
  networking.networkmanager.enable = true;

and nothing about it in my specialisation.nix file

How should it be?

On a different but linked issue, upstream, I got this answer, pop-os/cosmic-epoch#976 (comment), can it be related?

@Thatoo
Copy link
Author

Thatoo commented Sep 20, 2024

I'll try adding something like this :

  specialisation = {
    cosmic.configuration = {
      environment.systemPackages = with pkgs; [
        networkmanagerapplet
        gnome.networkmanager-openvpn
      ];
      system.nixos.tags = [ "Cosmic" ];
    };
  };

@Thatoo
Copy link
Author

Thatoo commented Sep 20, 2024

It has indeed solved this issue pop-os/cosmic-epoch#976 (comment) and also it has added a wifi option among applets but it doesn't feel quiet right (not very integrated. I'd be interested to see how it should look like by the way).

image

is the new wifi option among applets
and

image

is the same as before : no icon and impossible to switch wifi toggles.

@Wasabi375
Copy link

I have a similar issue. The Wi-Fi toggle is working fine for me, but I can't connect to any network.

When I try it shows an error message:
image

Sometimes it also thinks that I entered the wrong password:
image

I checked multiple times and the password is correct.

I tried the workaround above and I am able to connect using the network manager applet.

@graysonhead
Copy link

graysonhead commented Oct 11, 2024

I have the same issue. I cannot toggle anything with the Cosmic network app, but I can change network seetings either via nmcli or via the network settings page in cosmic.

I found the following error, which I'm guessing is the cause:

Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork: thread 'tokio-runtime-worker' panicked at cosmic-applet-network/src/network_manager/mod.rs:365:44:
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork: called `Result::unwrap()` on an `Err` value: MethodError(OwnedErrorName("org.freedesktop.NetworkManager.Settings.PermissionDenied"), Some("uid 1000 has no permission to perform this operation"), Msg { type: Error, serial: 1033, sender: UniqueName(":1.11"), reply-serial: 192, body: Signature("s"), fds: [] })
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork: stack backtrace:
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    0: rust_begin_unwind
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    1: core::panicking::panic_fmt
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    2: core::result::unwrap_failed
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    3: cosmic_applet_network::network_manager::NetworkManagerState::new::{{closure}}
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    4: cosmic_applet_network::network_manager::start_listening::{{closure}}
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    5: <futures_util::stream::stream::map::Map<St,F> as futures_core::stream::Stream>::poll_next
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    6: <futures_util::stream::select::Select<St1,St2> as futures_core::stream::Stream>::poll_next
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    7: <futures_util::stream::stream::map::Map<St,F> as futures_core::stream::Stream>::poll_next
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    8: <futures_util::stream::stream::map::Map<St,F> as futures_core::stream::Stream>::poll_next
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:    9: <futures_util::stream::stream::map::Map<St,F> as futures_core::stream::Stream>::poll_next
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:   10: iced_futures::subscription::tracker::Tracker::update::{{closure}}
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:   11: tokio::runtime::task::raw::poll
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:   12: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork:   13: tokio::runtime::task::raw::poll
Oct 11 10:56:25 deckchair .cosmic-panel-wrapped[2694]: com.system76.CosmicAppletNetwork: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

uid 1000 is my user, and I am in both wheel and the networkmanager group, and I'm not sure why this permissions error is occurring.

$ nmcli general permissions
PERMISSION                                                        VALUE
org.freedesktop.NetworkManager.checkpoint-rollback                yes
org.freedesktop.NetworkManager.enable-disable-connectivity-check  yes
org.freedesktop.NetworkManager.enable-disable-network             yes
org.freedesktop.NetworkManager.enable-disable-statistics          yes
org.freedesktop.NetworkManager.enable-disable-wifi                yes
org.freedesktop.NetworkManager.enable-disable-wimax               yes
org.freedesktop.NetworkManager.enable-disable-wwan                yes
org.freedesktop.NetworkManager.network-control                    yes
org.freedesktop.NetworkManager.reload                             yes
org.freedesktop.NetworkManager.settings.modify.global-dns         yes
org.freedesktop.NetworkManager.settings.modify.hostname           yes
org.freedesktop.NetworkManager.settings.modify.own                yes
org.freedesktop.NetworkManager.settings.modify.system             yes
org.freedesktop.NetworkManager.sleep-wake                         yes
org.freedesktop.NetworkManager.wifi.scan                          yes
org.freedesktop.NetworkManager.wifi.share.open                    yes
org.freedesktop.NetworkManager.wifi.share.protected               yes

@Thatoo
Copy link
Author

Thatoo commented Nov 4, 2024

The issue is still here on alpha 3

@Thatoo
Copy link
Author

Thatoo commented Nov 14, 2024

I think I found out my issue. I deleted all past connection setting that were containing a WEP wifi password, reboot and now the network applet display and is working.

@Thatoo Thatoo closed this as completed Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants