[XFCE] Pulseaudio / sound notification when changing volume
Hello.
I'm using XFCE with xfce4-pulseaudio-plugin. Also i have set up some keyboard shorcuts for Volume Up and Volume Down.
The issue is that there is no notification displayed when changing the volume using the keys.
Note that a notification is displayed in case the volume is changed by using the xfce pulseaudio icon.
What can I do in order for the sound volume pop-up notification to be displayed?
Thanks guys
EDIT:
Tried with alsa shortcut - amixer -D pulse set Master 10% +
Tried with pulseaudio shortcut - pactl set-sink-volume 0 -10%
Edited 3 May 2017. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 1 · 100% up
- Kind
- Text
- ID
- 68svrf
16 comments
Hey, you made me realize I don't get notifications which I did 100 things to get it working then realized I didn't have xfce4-notifyd
Then all a sudden I had DOUBLE notifications!
So I undid everything I tried and then I had no pulseaudio plugin and no notifications, reinstalled pulseaudio plugin and xfce4-notifyd and voila it works.
Have you ran xfce4-notifyd-config and seen how it looks in there?
I have xfce4-notifyd and xfce4-pulseaudio-plugin installed. Also, notifications are enabled in xfce4-notifyd-config.
Also, pulseaudio plugin is visible on the panel. Note that if i use the mouse wheel over the icon, the notification is displayed.
EDIT: Notifications also enabled in Pulseaudio plugin: http://i.imgur.com/Rs7fPOL.png
Ok I will tell you the steps I took, it essentially goes through installing Pulseaudio all over again, however like I said, once I did this I ended up getting double notifications.
I installed many packages that could be related to this
pulseaudio pulseaudio-alsa pavucontrol libcanberra-pulse lib32-pulse lib32-libcanberra-pulse lib32-alsa-plugins
enabled pulseadio (believe pulse audio does this by default anyway)
systemctl --user enable pulseaudio.socket
then I installed xfce4-volumed-pulse from the AUR
then I ran alsamixer to find the model of my soundcard and did
sudo nano /etc/modprobe.d/modprobe.conf
it was blank as I didn't have the file so I put in
options snd-hda-intel model=ALC892 position_fix=3 (my model was ALC892)
then i opened
sudo nano/etc/pulse/default.pa
searced for "load-module module-udev-detect" and added tsched=0 to it.
so it will look like
load-module module-udev-detect tsched=0
rebooted and like I said I had double notifications.. super strange..
there is a checkbox in the settings to enable this
I have notifications enabled. My volume shortcut is: amixer -D pulse set Master 10%+ and with - for lower volume.
You are not using pulseaudio to set volume, so you don't get notifications from pulseaudio.
Bind the keycommand to also send a notification.
Hello sir. How can I do that?
I have absolutely no idea on how to do that on xfce. I could give you instructions on openbox or i3 though.
Do you have installed xfce4-notifyd? Cf https://wiki.archlinux.org/index.php/Desktop_notifications
Yes, it is installed. Notifications are enabled. I receive notification from Transmission for example.
I have the exact same problem. Not sure if it's intentional or not, but this happens with the latest version 0.2.5. To work around it, downgrade to 0.2.4, or map the shortcut keys to multimedia keys using xdotool. For example, if I want "Super+Page Up" to raise volume, in XFCE Keyboard -> Application Shortcuts I map it to the command
The command is complicated because the Super+Page Up is still pressed while xdotool is executed, so Xorg thinks you have three keys pressed at the same time. "keyup Prior" releases the Page Up key, and the --clearmodifiers argument temporarily releases the Super key before simulating a press of the XF86AudioRaiseVolume key. You can check the [http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap] for the names of other keys.
Downgrading to version 0.2.4.5 (https://archive.archlinux.org/packages/x/xfce4-pulseaudio-plugin/) fixes the issue.