I am using Ubuntu 16.04 with xfce4. When I increase or decrease volume using keyboard shortcuts I am seeing two notifications for the same. How do I fix it?

enter image description here

You can see the two notification in the right top corner. One has volume icon and other has not.

share|improve this question
    
sudo apt remove xfce4-notifyd – nazar2sfive Aug 24 '16 at 14:00
    
I don't want to remove xfce4-notifyd. It will disable other notifications too. – Rishab Mishra Aug 24 '16 at 14:24
    
then unity notify-usd must be running – nazar2sfive Aug 24 '16 at 14:33
up vote 3 down vote accepted

I solved this by disabling xfce-volumed, Pulseaudio plugin was running along with it.

Open a Terminal window and type killall xfce4-volumed and try to change volume now. Only one notification will be shown.

To disable xfce4-volumed permanently open Session and Startup from settings manager. Go to Application Autostart tab. Look for XFCE Volume Daemon (pulseaudio) and untick it to disable.

Edit:

A more simple approach I found is to right-click on the volume icon in the panel and open properties. Uncheck the 'show notification when volume changes' box and log out/in.

share|improve this answer

This is happening because of inclusion of Unity related indicator in Xfce. Which is Indicator-Plugin. But if you remove it, you'll lose other indicators with it like messaging etc.

The Solution

  1. Right click on an empty space of the Panel -> Panel -> Panel Properties
  2. Go to Items Tab
  3. Select Indicator Plugin
  4. Click on the right side small wrench icon. Tooltip will say Edit the currently selected Item
  5. On the new Indicators window, There is a list of indicators which are provided by this Indicator Plugin.
  6. Place a tick mark for the Sound Menu entry. This will be hidden on next panel restart.
  7. Close this Indicators window.
  8. Press Alt-F2 to bring Run command dialog box.
  9. Type xfce4-panel -r and Hit Enter.

    Alternatively you can Logout/Login without performing step 8 and 9

    The panel will be restarted and you'll see the volume icon is gone. Now, we need a volume icon for it.

  10. Install xfce4-pulseaudio-plugin

    sudo apt install xfce4-pulseaudio-plugin
    
  11. Now again right click on the panel -> Panel -> Add New Items and Add PulseAudio Plugin

  12. Move it to a suitable location in the panel.

  13. Change volume and see only one notification (to rule them all!)

share|improve this answer
    
This didn't solve the problem. I tried killall xfce4-volumed and now only one notification is being shown. – Rishab Mishra Aug 24 '16 at 15:05
    
you logged out and login again? This will fully works when you do so – Anwar Aug 24 '16 at 15:07
    
Yes. After logging in no notification was shown when I changed volume. I added pulseaudio plugin to the panel and then again I saw two notifications. – Rishab Mishra Aug 24 '16 at 15:16
    
when I kill xfce4-volumed I only see one notification. I removed pulseaudio plugin and and I see only one notification. I think volumed and pulseaudio-plugin are showing two seprate notifications. – Rishab Mishra Aug 24 '16 at 15:18
    
i removed volumed from startup and restarted. Now the problem is fixed. – Rishab Mishra Aug 24 '16 at 15:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.