Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dhcpcd and wpa-supplicant icons and notifications
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
miket
Guru
Guru


Joined: 28 Apr 2007
Posts: 427
Location: Gainesville, FL, USA

PostPosted: Sat Aug 01, 2020 4:24 am    Post subject: Dhcpcd and wpa-supplicant icons and notifications Reply with quote

I've got three questions about dhcpcd and wpa-supplicant. One was very definitely a networking question; I asked it in the proper forum.

Before my last world update, I saw icons for both wpa-gui and dhcpcd-qt in the KDE system tray. Now all I get are blank spots where the icons used to be. The programs themselves are definitely running and respond to mouse clicks in the places where the icons ought to be. The icons themselves have gone missing.

Of note: I have a very poor opinion of flat design. As such, I appreciate that KDE allows me to choose the Oxygen icon set. Unfortunately, this does not carry over into the notification icons of the system tray, so I take advantage of the fact that KDE lets me override those by use of desktop-theme tweaks under ~/.local/share/plasma/desktoptheme/. It could be that this is what's behind my problems, but it is also the way to a solution: I could supply an icon for the two programs. I don't know if I need to go this far, though.


The other question: why has dhcpcd-qt gotten to be so noisy? Before the world update, I'd get a notification popup when dhcpcd associated with an access point and life was good. Now it has a popup for every new SSID that comes in range. I live in an apartment complex. There are *lots* of those popups--especially since many of those AP's keep fading in and out. All of this is while I'm plugged into an wired network. It makes it hard to do work. Does anyone know how to make it go back to a sane setting? I don't find this documented anywhere.
Back to top
View user's profile Send private message
miket
Guru
Guru


Joined: 28 Apr 2007
Posts: 427
Location: Gainesville, FL, USA

PostPosted: Sun Aug 02, 2020 5:01 pm    Post subject: Reply with quote

Ah well, after not hearing an answer on these two UI questions (and hearing an unsatisfactory answer to the networking question in the other forum), I went on a dive through a lot of code and documentation. That's one reason open-source is good :)

The problems with the tray icon and the torrent of access-point popups have to do with dhcpcd-ui's emphasis on wireless interfaces. Yes there is support for configuring a wired interface, but nothing is in the code that will make the network-wired icon show up in the tray (either qt or gtk). Notifications of newly discovered access points are suppressed if there is an active connection--but this test is applied only to the wireless interface. When I use the wired interface instead, the popups keep coming.

The fact that the access-point notifications did not plague me before my world update is a mystery. None of wpa_supplicant, dhcpcd, or dhcpcd-ui had updates, but I did get new versions of the kernel and KDE and was forced to switch from consolekit to elogind. The old version of one of those may have been responsible for suppressing those access-point popups yet not the ones for newly associated SSID's.

So now I'm considering two actions. One is to stop using dhcpcd-ui even though the mouseover popup is really useful and they tray icons are useful when I'm on wireless. The other is to patch the code, try it out, and submit it to Roy if it works out.

Sigh. I already had planned to do many other things this weekend.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6795
Location: Blighty

PostPosted: Sun Aug 02, 2020 8:47 pm    Post subject: Re: Dhcpcd and wpa-supplicant icons and notifications Reply with quote

miket wrote:
The other question: why has dhcpcd-qt gotten to be so noisy? Before the world update, I'd get a notification popup when dhcpcd associated with an access point and life was good. Now it has a popup for every new SSID that comes in range. I live in an apartment complex. There are *lots* of those popups--especially since many of those AP's keep fading in and out. All of this is while I'm plugged into an wired network. It makes it hard to do work. Does anyone know how to make it go back to a sane setting? I don't find this documented anywhere.


It should only popup new AP's if you're not connected.
I'll look into it.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
miket
Guru
Guru


Joined: 28 Apr 2007
Posts: 427
Location: Gainesville, FL, USA

PostPosted: Sun Aug 02, 2020 9:00 pm    Post subject: Reply with quote

Wow--thank you for noticing so quickly!

In my followup message I mentioned I found the reason. At line 373 of dhcpcd-qt.cpp you have the comment "Don't spam the user if we're already connected." I appreciate that thought but noticed that the test two lines later applies only to the wireless interface.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6795
Location: Blighty

PostPosted: Tue Aug 04, 2020 2:55 am    Post subject: Reply with quote

Fixed here:
https://roy.marples.name/cgit/dhcpcd-ui.git/commit/?id=9851e0a9a411afa60fd14c14dca6db4f150669de

Can you verify it's now fixed for you please?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
miket
Guru
Guru


Joined: 28 Apr 2007
Posts: 427
Location: Gainesville, FL, USA

PostPosted: Tue Aug 04, 2020 7:09 am    Post subject: Reply with quote

So yes that worked. At startup, with the cable plugged in, dhcpcd-qt did not show the access-point popups. They started when I unplugged the cable and stopped again when I plugged it back in. That fixes the notification-spam problem!

By the way, I cheated a bit in building the new version. I had cloned the git repo to my laptop and after a pull saw the two commits you made just in the last few hours. Beyond that were several commits since the tag for the last release. I built with the normal emerge process. This was the setup:

On the build host:
Code:
mkdir -p /etc/portage/patches/net-misc/dhcpcd-ui
nc6 -l -p 4200 >/etc/portage/patches/net-misc/dhcpcd-ui/nospam.patch


On the laptop:
Code:
git diff dhcpcd-ui-0.7.7 | nc6 -q0 ago 4200


I didn't bother making the patch directory have a version number since I'll have to remove the patch anyway when your next version hits Portage.

Thank you for getting on this so quickly and for all your great work!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum