Skip to content

[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.

1 points14 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
1 · 100% up
Kind
Text
ID
68svrf

Author

34
posts
143
comments
8
media
View profile

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?

1 points

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

1 points

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..

1 points

there is a checkbox in the settings to enable this

1 points

I have notifications enabled. My volume shortcut is: amixer -D pulse set Master 10%+ and with - for lower volume.

1 points

You are not using pulseaudio to set volume, so you don't get notifications from pulseaudio.

3 points

Bind the keycommand to also send a notification.

1 points

Hello sir. How can I do that?

1 points

I have absolutely no idea on how to do that on xfce. I could give you instructions on openbox or i3 though.

1 points

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

xdotool keyup Prior key --clearmodifiers XF86AudioRaiseVolume

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.