Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-05-14 18:58:29

kujaw
Member
Registered: 2017-05-14
Posts: 8

[SOLVED] No volume change notification, "show preview" notification

Volume change notification doesn't show.
When I go to Settings Manager -> Notifications, and click on Show Preview, no notification is shown.

Xfce 4.12
pavucontrol, xfce4-pulseaudio-plugin, xfce4-notifyd, libnotify - all installed.

xfce4-pulseaudio-plugin -> properties -> Show notifications when volume changes - it's switched on.

When i do

notify-send asdf

I see the notification.

Last edited by kujaw (2017-05-17 02:20:00)

Offline

#2 2017-05-14 21:59:30

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,789

Re: [SOLVED] No volume change notification, "show preview" notification

kujaw wrote:

When I go to Settings Manager -> Notifications, and click on Show Preview, no notification is shown.

Is xfce4-notifyd running?

ps -ef | grep notif

How do you startxfce?
Do you use a display manager (which one) or do you use startx (what is the content of your .xinitrc file).

Also, what does your session dbus look like:

env | grep -i dbus

And log entries:

journalctl | grep notifyd

How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2017-05-15 09:54:36

kujaw
Member
Registered: 2017-05-14
Posts: 8

Re: [SOLVED] No volume change notification, "show preview" notification

Yes, xfce4-notifyd is running.

$ ps -ef | grep notify
kujaw     1869   649  0 11:44 ?        00:00:00 /usr/lib/xfce4/notifyd/xfce4-notifyd
kujaw     2245  1899  0 11:45 pts/0    00:00:00 grep notify

I use lightdm and lightdm-gtk-greeter.

$ env | grep -i dbus
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus

Log entries look suspicious to me:

$ journalctl | grep notifyd
May 13 10:38:01 kujawLap dbus-daemon[686]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 10:38:01 kujawLap xfce4-notifyd[1754]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-KgeOOVN9pO: Connection refused
May 13 10:53:53 kujawLap dbus-daemon[686]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 10:53:53 kujawLap xfce4-notifyd[2423]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-KgeOOVN9pO: Connection refused
May 13 10:56:44 kujawLap xfce4-notifyd[2423]: Theme parsing error: gtk.css:10:17: Not using units is deprecated. Assuming 'px'.
May 13 11:49:52 kujawLap dbus-daemon[686]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 11:49:52 kujawLap xfce4-notifyd[3458]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-KgeOOVN9pO: Connection refused
May 13 11:50:39 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 11:50:39 kujawLap xfce4-notifyd[777]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 13 12:29:36 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 12:29:36 kujawLap xfce4-notifyd[1769]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 13 15:07:46 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 15:07:46 kujawLap xfce4-notifyd[2573]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 13 16:21:34 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 16:21:34 kujawLap xfce4-notifyd[5743]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 13 16:58:19 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 16:58:19 kujawLap xfce4-notifyd[6877]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 13 17:58:50 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 13 17:58:50 kujawLap xfce4-notifyd[7779]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 14 15:23:44 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 14 15:23:44 kujawLap xfce4-notifyd[13696]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 14 17:43:53 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 14 18:54:58 kujawLap xfce4-notifyd[14405]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 14 19:14:09 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 14 19:14:09 kujawLap xfce4-notifyd[15043]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 14 19:59:02 kujawLap dbus-daemon[676]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 14 19:59:02 kujawLap xfce4-notifyd[16378]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-mEBJpjSzZJ: Connection refused
May 14 20:00:41 kujawLap sudo[16476]:    kujaw : TTY=pts/2 ; PWD=/home/kujaw ; USER=root ; COMMAND=/usr/bin/pacman -R -s xfce4-notifyd
May 15 11:39:02 kujawLap sudo[1410]:    kujaw : TTY=pts/2 ; PWD=/home/kujaw ; USER=root ; COMMAND=/usr/bin/pacman -S -y xfce4-notifyd libnotify xfce4-pulseaudio-plugin
May 15 11:39:51 kujawLap dbus-daemon[677]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 15 11:39:51 kujawLap xfce4-notifyd[757]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Ag46XBI72Q: Connection refused
May 15 11:44:08 kujawLap xfce4-notifyd[757]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
May 15 11:44:08 kujawLap systemd[649]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
May 15 11:44:08 kujawLap systemd[649]: xfce4-notifyd.service: Unit entered failed state.
May 15 11:44:08 kujawLap systemd[649]: xfce4-notifyd.service: Failed with result 'exit-code'.
May 15 11:44:29 kujawLap dbus-daemon[677]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 15 11:44:29 kujawLap xfce4-notifyd[1869]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-q5fKv9NpZL: Connection refused

Offline

#4 2017-05-15 13:05:58

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,789

Re: [SOLVED] No volume change notification, "show preview" notification

I get those same error messages when I install and enable lightdm. However, the notifications (and notification preview) still work for me.

Can you post back the results of:

xfconf-query -c xfce4-notifyd -lv

...and:

fgrep -ri startxfce4 ~/.*

And can you try the following:

1. Log out and  log in to a virtual console and  clear your sessions cache by deleting the contents of the ~/.cache/sessions folder. Log back in via lightdm and test.

2. Disable lightdm, log in via console and "startxfce4". See if it works without lightdm.

Edit: And can you also post back the results of :

systemctl --user status xfce4-notifyd.service

Last edited by ToZ (2017-05-15 14:41:38)


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#5 2017-05-15 18:20:25

kujaw
Member
Registered: 2017-05-14
Posts: 8

Re: [SOLVED] No volume change notification, "show preview" notification

Ok, I think I have an answer to volume notifications.

Some time ago I mapped those commands to my volume keys:
sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 -5%"
sh -c "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 +5%"

I remember that I had problems with turning sound up and down before and made workaround by mapping above commands. I removed them now and sound notifications work perfectly.

But still, notifications preview doesn't work & there are still some errors showing in journalctl:

$ journalctl | grep notifyd
May 15 16:49:38 kujawLap xfce4-notifyd[4099]: xfce4-notifyd: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
May 15 16:49:38 kujawLap systemd[649]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
May 15 16:49:38 kujawLap systemd[649]: xfce4-notifyd.service: Unit entered failed state.
May 15 16:49:38 kujawLap systemd[649]: xfce4-notifyd.service: Failed with result 'exit-code'.
May 15 16:50:19 kujawLap dbus-daemon[649]: Activating via systemd: service name='org.freedesktop.Notifications' unit='xfce4-notifyd.service'
May 15 16:50:19 kujawLap xfce4-notifyd[741]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-LGwWNh8QwJ: Connection refused

I will check in a minute those further terminal commands.

Offline

#6 2017-05-15 18:46:44

kujaw
Member
Registered: 2017-05-14
Posts: 8

Re: [SOLVED] No volume change notification, "show preview" notification

$ xfconf-query -c xfce4-notifyd -lv
/applications/known_applications  <<UNSUPPORTED>>
/applications/muted_applications  <<UNSUPPORTED>>
/do-fadeout                       true
/log-level                        0
/log-level-apps                   0
/notify-location                  2
/primary-monitor                  0
/theme                            Default
$ fgrep -ri startxfce4 ~/.*
/home/kujaw/./.bash_history:fgrep -ri startxfce4 ~/.*
/home/kujaw/./.bash_history:fgrep -ri startxfce4 ~/.*
/home/kujaw/./.bash_history:startxfce4 
/home/kujaw/./.bash_history:startxfce4 
/home/kujaw/./.bash_history:startxfce4 
/home/kujaw/./.cache/xfce4/clipman/textsrc:texts=fconf-query -c xfce4-notifyd -lv;xfconf-query -c xfce4-notifyd -lv;$ xfconf-query -c xfce4-notifyd -lv\n/applications/known_applications  <<UNSUPPORTED>>\n/applications/muted_applications  <<UNSUPPORTED>>\n/do-fadeout                       true\n/log-level                        0\n/log-level-apps                   0\n/notify-location                  2\n/primary-monitor                  0\n/theme                            Default\n;fgrep -ri startxfce4 ~/.*;
/home/kujaw/../kujaw/.bash_history:fgrep -ri startxfce4 ~/.*
/home/kujaw/../kujaw/.bash_history:fgrep -ri startxfce4 ~/.*
/home/kujaw/../kujaw/.bash_history:startxfce4 
/home/kujaw/../kujaw/.bash_history:startxfce4 
/home/kujaw/../kujaw/.bash_history:startxfce4 
/home/kujaw/../kujaw/.cache/xfce4/clipman/textsrc:texts=fconf-query -c xfce4-notifyd -lv;xfconf-query -c xfce4-notifyd -lv;$ xfconf-query -c xfce4-notifyd -lv\n/applications/known_applications  <<UNSUPPORTED>>\n/applications/muted_applications  <<UNSUPPORTED>>\n/do-fadeout                       true\n/log-level                        0\n/log-level-apps                   0\n/notify-location                  2\n/primary-monitor                  0\n/theme                            Default\n;fgrep -ri startxfce4 ~/.*;systemctl --user status xfce4-notifyd.service;$ systemctl --user status xfce4-notifyd.service\n● xfce4-notifyd.service - XFCE notifications service\n   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service\;\sstatic\;\svendor p\n   Active: active (running) since Mon 2017-05-15 20:31:02 CEST\;\s5min ago\n Main PID: 750 (xfce4-notifyd)\n   CGroup: /user.slice/user-1000.slice/user@1000.service/xfce4-notifyd.service\n           └─750 /usr/lib/xfce4/notifyd/xfce4-notifyd\n\nMay 15 20:31:02 kujawLap systemd[644]: Starting XFCE notifications service...\nMay 15 20:31:02 kujawLap xfce4-notifyd[750]: Couldn't connect to accessibility b\nMay 15 20:31:02 kujawLap systemd[644]: Started XFCE notifications service.\nlines 1-10/10 (END)...skipping...\n● xfce4-notifyd.service - XFCE notifications service\n   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service\;\sstatic\;\svendor preset: enabled)\n   Active: active (running) since Mon 2017-05-15 20:31:02 CEST\;\s5min ago\n Main PID: 750 (xfce4-notifyd)\n   CGroup: /user.slice/user-1000.slice/user@1000.service/xfce4-notifyd.service\n           └─750 /usr/lib/xfce4/notifyd/xfce4-notifyd\n\nMay 15 20:31:02 kujawLap systemd[644]: Starting XFCE notifications service...\nMay 15 20:31:02 kujawLap xfce4-notifyd[750]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-3dMgmxrU2M: Connection refused\nMay 15 20:31:02 kujawLap systemd[644]: Started XFCE notifications service.\n;systemctl --user status xfce4-notifyd.service\n● xfce4-notifyd.service - XFCE notifications service\n   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service\;\sstatic\;\svendor preset: enabled)\n   Active: active (running) since Mon 2017-05-15 20:31:02 CEST\;\s5min ago\n Main PID: 750 (xfce4-notifyd)\n   CGroup: /user.slice/user-1000.slice/user@1000.service/xfce4-notifyd.service\n           └─750 /usr/lib/xfce4/notifyd/xfce4-notifyd\n\nMay 15 20:31:02 kujawLap systemd[644]: Starting XFCE notifications service...\nMay 15 20:31:02 kujawLap xfce4-notifyd[750]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-3dMgmxrU2M: Connection refused\nMay 15 20:31:02 kujawLap systemd[644]: Started XFCE notifications service.\n;
grep: /home/kujaw/../lost+found: Permission denied
/home/kujaw/.bash_history:fgrep -ri startxfce4 ~/.*
/home/kujaw/.bash_history:fgrep -ri startxfce4 ~/.*
/home/kujaw/.bash_history:startxfce4 
/home/kujaw/.bash_history:startxfce4 
/home/kujaw/.bash_history:startxfce4 
/home/kujaw/.cache/xfce4/clipman/textsrc:texts=fconf-query -c xfce4-notifyd -lv;xfconf-query -c xfce4-notifyd -lv;$ xfconf-query -c xfce4-notifyd -lv\n/applications/known_applications  <<UNSUPPORTED>>\n/applications/muted_applications  <<UNSUPPORTED>>\n/do-fadeout                       true\n/log-level                        0\n/log-level-apps                   0\n/notify-location                  2\n/primary-monitor                  0\n/theme                            Default\n;fgrep -ri startxfce4 ~/.*;systemctl --user status xfce4-notifyd.service;$ systemctl --user status xfce4-notifyd.service\n● xfce4-notifyd.service - XFCE notifications service\n   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service\;\sstatic\;\svendor p\n   Active: active (running) since Mon 2017-05-15 20:31:02 CEST\;\s5min ago\n Main PID: 750 (xfce4-notifyd)\n   CGroup: /user.slice/user-1000.slice/user@1000.service/xfce4-notifyd.service\n           └─750 /usr/lib/xfce4/notifyd/xfce4-notifyd\n\nMay 15 20:31:02 kujawLap systemd[644]: Starting XFCE notifications service...\nMay 15 20:31:02 kujawLap xfce4-notifyd[750]: Couldn't connect to accessibility b\nMay 15 20:31:02 kujawLap systemd[644]: Started XFCE notifications service.\nlines 1-10/10 (END)...skipping...\n● xfce4-notifyd.service - XFCE notifications service\n   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service\;\sstatic\;\svendor preset: enabled)\n   Active: active (running) since Mon 2017-05-15 20:31:02 CEST\;\s5min ago\n Main PID: 750 (xfce4-notifyd)\n   CGroup: /user.slice/user-1000.slice/user@1000.service/xfce4-notifyd.service\n           └─750 /usr/lib/xfce4/notifyd/xfce4-notifyd\n\nMay 15 20:31:02 kujawLap systemd[644]: Starting XFCE notifications service...\nMay 15 20:31:02 kujawLap xfce4-notifyd[750]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-3dMgmxrU2M: Connection refused\nMay 15 20:31:02 kujawLap systemd[644]: Started XFCE notifications service.\n;systemctl --user status xfce4-notifyd.service\n● xfce4-notifyd.service - XFCE notifications service\n   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service\;\sstatic\;\svendor preset: enabled)\n   Active: active (running) since Mon 2017-05-15 20:31:02 CEST\;\s5min ago\n Main PID: 750 (xfce4-notifyd)\n   CGroup: /user.slice/user-1000.slice/user@1000.service/xfce4-notifyd.service\n           └─750 /usr/lib/xfce4/notifyd/xfce4-notifyd\n\nMay 15 20:31:02 kujawLap systemd[644]: Starting XFCE notifications service...\nMay 15 20:31:02 kujawLap xfce4-notifyd[750]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-3dMgmxrU2M: Connection refused\nMay 15 20:31:02 kujawLap systemd[644]: Started XFCE notifications service.\n;
$ systemctl --user status xfce4-notifyd.service
● xfce4-notifyd.service - XFCE notifications service
   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service; static; vendor preset: enabled)
   Active: active (running) since Mon 2017-05-15 20:31:02 CEST; 5min ago
 Main PID: 750 (xfce4-notifyd)
   CGroup: /user.slice/user-1000.slice/user@1000.service/xfce4-notifyd.service
           └─750 /usr/lib/xfce4/notifyd/xfce4-notifyd

May 15 20:31:02 kujawLap systemd[644]: Starting XFCE notifications service...
May 15 20:31:02 kujawLap xfce4-notifyd[750]: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-3dMgmxrU2M: Connection refused
May 15 20:31:02 kujawLap systemd[644]: Started XFCE notifications service.

I did those two points that you advised, the notifications preview doesn't work in any of them.
However, as my main issue was volume notification, which currently works, I think this topic can be marked as solved. If you would like to troubleshoot it more, to find what's happening, why the notifications preview doesn't work I'm happy to cooperate.

Offline

#7 2017-05-15 19:44:24

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,789

Re: [SOLVED] No volume change notification, "show preview" notification

Ok.
I'm still interested in why the preview doesn't work. The accessibility bus message seems to be related to lightdm and shouldn't  have an effect. Everything else looks okay.

Can you post back a list of your allowed and blocked apps?

xfconf-query -c xfce4-notifyd -p /applications/known_applications
xfconf-query -c xfce4-notifyd -p /applications/muted_applications

Lets make sure that xfce4-notifyd-settings isn't being muted.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#8 2017-05-15 21:28:32

kujaw
Member
Registered: 2017-05-14
Posts: 8

Re: [SOLVED] No volume change notification, "show preview" notification

$ xfconf-query -c xfce4-notifyd -p /applications/known_applications
Value is an array with 13 items:

Electron
MEGAsync
nm-applet
notify-send
Pale Moon
pnmixer
qBittorrent
Thunar
thunar-volman
Xfce volume control
Xfce4-notifyd settings
xfce4-power-manager
xfce4-settings-helper

$ xfconf-query -c xfce4-notifyd -p /applications/muted_applications
Value is an array with 2 items:

xfce4-power-manager
Xfce4-notifyd settings

It is being muted. I've just unmuted both xfce4-notifyd settings & xfce4-power-manager and I can see preview notification.

[edit]
I forgot about the most imporant thing... Thank you a lot! smile

Last edited by kujaw (2017-05-17 02:20:34)

Offline

Board footer

Powered by FluxBB