Bug 284304 - Audio system notifications not playing when set for network manager
Summary: Audio system notifications not playing when set for network manager
Status: RESOLVED FIXED
Alias: None
Product: Network Management
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Will Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-17 20:16 UTC by Thorsteinn A. Malmjursson
Modified: 2011-10-29 19:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Copy of networkmanagementrc (440 bytes, text/plain)
2011-10-18 19:56 UTC, Thorsteinn A. Malmjursson
Details
notifyrc from networkmanagement (579 bytes, text/plain)
2011-10-18 20:59 UTC, Thorsteinn A. Malmjursson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsteinn A. Malmjursson 2011-10-17 20:16:33 UTC
Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

I have 5 audio files set as system notifications when using network manager - the 5 notifications inform me of Wireless conditions - Found New Network, Low signal strength, Establishing Network Connection, Network Connection Succeeded and Network Connection Failed.  The 5 audio files work, and play out if tested from the Application and System Notifications KCM, but do not work if the specified events happen in network manager.

The 5 files I use are:
Found New Network: /usr/share/sounds/pop.wav
Low Signal Strength: /usr/share/sounds/KDE-K3B-Finish-Error.ogg
Network Connection Attempt Started: /usr/share/sounds/KDE-Im-Sms.ogg
Connection Successful: /usr/share/sounds/KDE-Sys-App-Positive.ogg
Connection Failed: /usr/share/sounds/KDE-Sys-App-Negative.ogg

This setup was previously successful on KDE 4.7.1, and all sounds played out from the network manager as needed.  

Reproducible: Always

Steps to Reproduce:
Run network manager
Setup notifications using the Application and System Notifications KCM
Use the network manager to simulate the listed actions (start a new connection, etc)


Actual Results:  
No audio is played out by any of the listed situations, yet all function correctly on testing within the KCM

Expected Results:  
Sound should play out when each one of the 5 situations occurs

KDE is installed from Ubuntu Packages, running on Kubuntu 11.10 (Oneiric Ocelot)
Comment 1 Lamarque V. Souza 2011-10-18 16:33:34 UTC
I cannot reproduce this problem with latest Plasma NM and 4.7.2. Anyway, it is not Plasma NM that plays the sound, knotify does. You should also check if phone is properly configured: go to systemsettings -> Multimedia -> Phonon -> Audio Playback -> Notifications, click on the first audio device and then on button "Test". If it emmits no sound than there is something wrong in your audio configuration.
Comment 2 Thorsteinn A. Malmjursson 2011-10-18 18:33:55 UTC
(In reply to comment #1)
> I cannot reproduce this problem with latest Plasma NM and 4.7.2. Anyway, it is
> not Plasma NM that plays the sound, knotify does. You should also check if
> phone is properly configured: go to systemsettings -> Multimedia -> Phonon ->
> Audio Playback -> Notifications, click on the first audio device and then on
> button "Test". If it emmits no sound than there is something wrong in your
> audio configuration.

My audio configuration is fine, Lamarque.  Everything else on the system plays out normally, sound from web pages, my startup and shutdown sounds, audio from amaroK or VLC, and the configuration test you give me above works fine.  I get notifications from all other applications that they're set up for, just not anything from NM.

By the way, just to clarify, I didn't say it was the network manager that made the sounds, just that sounds should play when the events occur in NM :)
Comment 3 Lamarque V. Souza 2011-10-18 19:20:10 UTC
You filled the bug against Plasma NM and not knotify, that is why I wrote it is knotify that plays the sound.

Can you send me your ~/.kde/share/config/networkmanagementrc?
Comment 4 Thorsteinn A. Malmjursson 2011-10-18 19:56:23 UTC
Created attachment 64682 [details]
Copy of networkmanagementrc
Comment 5 Thorsteinn A. Malmjursson 2011-10-18 19:57:21 UTC
(In reply to comment #3)
> You filled the bug against Plasma NM and not knotify, that is why I wrote it is
> knotify that plays the sound.
> 
> Can you send me your ~/.kde/share/config/networkmanagementrc?

Oh crud! Sorry about that Lamarque, I didn't realize I'd filed it wrongly. See Comment 4 for a copy of the file you requested.
Comment 6 Lamarque V. Souza 2011-10-18 20:00:22 UTC
Sorry, I asked the wrong file. The one I need is ~/.kde/share/config/networkmanagement.notifyrc
Comment 7 Thorsteinn A. Malmjursson 2011-10-18 20:58:50 UTC
(In reply to comment #6)
> Sorry, I asked the wrong file. The one I need is
> ~/.kde/share/config/networkmanagement.notifyrc

As requested, please see comment 8
Comment 8 Thorsteinn A. Malmjursson 2011-10-18 20:59:44 UTC
Created attachment 64683 [details]
notifyrc from networkmanagement
Comment 9 Lamarque V. Souza 2011-10-18 21:13:02 UTC
Everything normal in networkmanagement.notifyrc. Is the problem only the sound or the popups also do not appear?
Comment 10 Thorsteinn A. Malmjursson 2011-10-18 21:39:09 UTC
I actually get neither, no popup or sound.  It's the sounds that are the biggest issue for me, Lamarque - My eyesight isn't brilliant, and whenever I'm not at the keyboard, the notifications make it easier for me to work out what is going on.  I cannot figure out why it's only network manager they don't function for, everything else works...
Comment 11 Lamarque V. Souza 2011-10-18 21:50:57 UTC
I can: the notifications are emited by the Plasma NM's kded module, which starts early during opening a Plasma Desktop session. Several months ago someone complaint about notifications appearing before the plasmoid, so I changed Plasma NM to only create the notification manager after the plasmoid is running. Maybe there is a problem in this part. I just do not understand why it only happens to you.

For me the notification works without problems. I am using Plasma NM for NM-0.9, which Plasma NM version do you use? You can check the version in Manage Connections -> Other, there should be a string like nm09-20111001 there.

If there is no version there then you are using NM-0.8 and should upgrade to NM-0.9.
Comment 12 Lamarque V. Souza 2011-10-28 23:44:53 UTC
(K)Ubuntu 11.10 ships with network-manager-kde_0.9~svngit.nm09.20110610.0c83d8-0ubuntu5, right? In June 12, two days after (K)Ubuntu created that package, I fixed this bug:

https://projects.kde.org/projects/extragear/base/networkmanagement/repository/revisions/d26d6f69a6677b6c968a7dab0fa453f41d6c5ba7

that is problaby the cause of your problem. You should upgrade Plasma NM.