[11:42] <st-gourichon-fid> On Xubuntu 18.04 AMD64, fully up-to-date, a strange problem has appeared recently.
[11:43] <st-gourichon-fid> Special keys don't work: suspend, power, volume +/-/mute, probably others.
[11:44] <st-gourichon-fid> xfce4-notifyd-config says "the notification service is not running".
[11:45] <brainwash> can you start it manually? xfce4-notifyd
[11:45] <brainwash> also, a reboot did not fix your problem?
[11:45] <st-gourichon-fid> Reboot did not fix.
[11:45] <st-gourichon-fid> If I suspend the laptop, then resume and unlock session, then I see the "logout/supend/shutdown" dialog appear. I have to dismiss it several times, probably as many times as I pressed the suspend key.
[11:46] <st-gourichon-fid> Suspending the laptop works using the menu, only the key seems ignored but somehow remembered for a long time.
[11:46] <st-gourichon-fid> If I manually run /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd things work again.
[11:46] <brainwash> like it's stuck in a queue
[11:46] <st-gourichon-fid> Yes.
[11:46] <st-gourichon-fid> Let me check the logout/login again.
[11:46] <brainwash> best to check ~/.xsession-errors I'd think
[11:47] <st-gourichon-fid> ok
[11:48] <brainwash> this command will give you some debug output
[11:48] <brainwash> XFSETTINGSD_DEBUG=1 xfsettingsd --replace --no-daemon
[11:48] <st-gourichon-fid> lot of noise in ~/.xsession-errors . I'll flush it and login again.
[11:48] <st-gourichon-fid> Will also try your suggestion.
[11:49] <brainwash> and of course there is the system log also
[11:49] <brainwash> worth to check if there is something related to the problem
[11:53] <st-gourichon-fid> xfsettingsd logs, but nothing related.
[11:53] <st-gourichon-fid> Interestingly, currently suspend and power buttons work (they open the confirmation dialog, as expected). But volume keys don't work.
[11:53] <st-gourichon-fid> Neither do xf86play/pause/etc
[11:57] <brainwash> st-gourichon-fid: do you have the pulseaudio panel plugin added to your panel?
[11:58] <st-gourichon-fid> Yes, why?
[11:58] <brainwash> that one manages the media keys
[11:58] <st-gourichon-fid> As soon as I run  /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd manually, everything is fixed.
[11:59] <brainwash> that is the notification daemon though
[11:59] <brainwash> for those notification bubbles
[11:59] <brainwash> so, anything in ~/.xsession-errors ?
[12:00] <st-gourichon-fid> (wrapper-2.0:15193): pulseaudio-plugin-WARNING **: 13:56:23.260: Error while sending notification : Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached
[12:00] <st-gourichon-fid> gmusicbrowser got hung
[12:00] <st-gourichon-fid> *** unhandled exception in callback:
[12:00] <st-gourichon-fid> ***   Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached at /usr/bin/../share/gmusicbrowser/plugins/notify.pm line 85.
[12:00] <st-gourichon-fid> ***  ignoring at /usr/bin/gmusicbrowser line 1671.
[12:00] <st-gourichon-fid> gmusicbrowser worked again as soon as I ran manually  /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd
[12:00] <st-gourichon-fid> like the rest
[12:01] <brainwash> please use a pastebin service for that
[12:01] <brainwash> see /topic
[12:01] <st-gourichon-fid> Oh, sorry. I thougt 3 lines was under the annoyance threshold.
[12:02] <st-gourichon-fid> on #vlc the threshold is 2 lines...
[12:02] <brainwash> regarding the log.. uhm
[12:03] <st-gourichon-fid> I've been using Linux for 20 years, often had several desktops available on my machine.
[12:03] <st-gourichon-fid> several desktop environments
[12:03] <st-gourichon-fid> I installed a fresh Xubuntu 18.04 when it was release. What I did recently is install gnome then KDE packages.
[12:04] <brainwash> so, the keys work, but the assigned actions fail due to gmusicbrowser crashing
[12:04] <st-gourichon-fid> Usually there's no interference. I think this is the cause because it appeared at that time.
[12:04] <st-gourichon-fid> No, gmusicbrowser is victim like the others, not cuplrit.
[12:04] <st-gourichon-fid> All affected programs complain about notifications not going through.
[12:04] <brainwash> that should not have a severe effect though
[12:05] <st-gourichon-fid> gmusicbrowser is still alive like the others, and works well as soon as I run  /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd
[12:05] <brainwash> xfce4-notifyd should be activated via dbus on demand
[12:06] <brainwash> that seems to fail
[12:06] <st-gourichon-fid> Yes, I believe it's what happens.
[12:06] <st-gourichon-fid> I already debugged key issue in the past (xfce4-volumed at the time) so see a little how it works.
[12:07] <st-gourichon-fid> Is there a command-line client for paste.ubuntu.com ?
[12:07] <brainwash> pipe to pastebinit
[12:10] <st-gourichon-fid> Hmm, my apt-file is broken? It returns no results, that's why I did not see pastebinit.
[12:10] <st-gourichon-fid>   apt-file find bin.*paste
[12:11] <st-gourichon-fid> http://paste.ubuntu.com/p/kqbNf4hZF5/
[12:11] <st-gourichon-fid> xfsettingsd does not say much after initial blurb
[12:14] <brainwash> >GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited
[12:14] <brainwash> but you are able to manually start notifyd
[12:15] <brainwash> https://unix.stackexchange.com/questions/294510/xfce-notifications-not-working
[12:19]  * st-gourichon-fid reads 
[12:20] <brainwash> mmh
[12:20] <brainwash> maybe it is supposed to be started as system user service
[12:20] <st-gourichon-fid> No  /etc/X11/xinit/xinitrc.d/50-systemd-user.sh  on my system
[12:21] <brainwash> that's probably archlinux specific ^
[12:21] <brainwash> check this: systemctl --user status xfce4-notifyd
[12:21] <st-gourichon-fid> I had an "interesting" variant
[12:22] <brainwash> I only have 18.10 running here, and xfce4-notifyd is started on login via systemd
[12:22] <brainwash> probably the same in 18.04
[12:23] <brainwash> not on login, but on demand I meant
[12:24] <st-gourichon-fid> After logout/login I had to run notifyd manually again from tty2 because my whole desktop got stuck after I tried to run gmusicbrowser from the pulseaudio panel plugin.
[12:24] <st-gourichon-fid> I waited for more than a minute and since it stayed stuck I logged in on tty2 and typed this: export XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 ; export DISPLAY=:0 ; /usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd
[12:25] <brainwash> what does "systemctl --user status xfce4-notifyd" return after login and pressing media keys or running "notify-send test"?
[12:25] <st-gourichon-fid> Okay, I'll logout / login and try
[12:25] <st-gourichon-fid> now it says    Active: inactive (dead)
[12:25] <st-gourichon-fid>    Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service; static; vendor preset: enabled)
[12:25] <brainwash> right
[12:25] <st-gourichon-fid> I logout and come back.
[12:29] <st-gourichon-fid>  systemctl --user status xfce4-notifyd always says  http://paste.ubuntu.com/p/wjCRggshd8/
[12:29] <st-gourichon-fid> I notice that on login some panel items take time to load.
[12:29] <st-gourichon-fid> Also, Ctrl-Alt-T to open a terminal is not affected
[12:30] <st-gourichon-fid> so since the panel was unresponsive I opened hexchat via a terminal.
[12:30] <brainwash> mmh
[12:30] <st-gourichon-fid> Now I am back to the buggy state since I have not launched notifyd manually.
[12:31] <st-gourichon-fid> I grep'ed for notifyd in /etc
[12:31] <st-gourichon-fid> I guess this is unrelated: xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml
[12:32] <brainwash> probably
[12:32] <brainwash> now we are that point at which one should test with a second user account
[12:32] <brainwash> to verify the issue
[12:33] <st-gourichon-fid> Ah, good idea.
[12:33] <st-gourichon-fid> I just ran gmusicbrowser from command line, it does not appear (waiting for the panel to respond, I guess).
[12:33] <st-gourichon-fid> Ah, it finally appears after about 30 seconds.
[12:33] <st-gourichon-fid> I create an account and open a session.
[12:36] <st-gourichon-fid> The user I just created is affected by the problem.
[12:38] <st-gourichon-fid> cat /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service
[12:38] <st-gourichon-fid> http://paste.ubuntu.com/p/HHfb7C3KHy/
[12:41] <st-gourichon-fid> dpkg -L xfce4-notifyd | xargs grep -i notifyd 2>/dev/null | egrep -v '(LC_|icons|themes)'
[12:41] <st-gourichon-fid> https://paste.ubuntu.com/p/M2NwnbNBkH/
[12:45] <brainwash> st-gourichon-fid: I think something in session management is not working properly
[12:45] <st-gourichon-fid> I'm looking at how systemd runs services
[12:45] <brainwash> xfce4-session/logind/dbus
[12:48] <brainwash> did you check journalctl yet?
[12:48]  * st-gourichon-fid looks at journalctl output
[12:48] <brainwash> I suggested to check system logs
[12:49] <brainwash> other than that, you would have to check the apt logs, and see what has been updated/installed recently
[12:50] <st-gourichon-fid> Well, installing Gnome and KDE implies a zillion packaged... :-/
[12:50] <st-gourichon-fid> packages
[12:50] <brainwash> indeed
[12:51] <st-gourichon-fid> There's an expedient to just uninstall everything KDE related, but I have to try Wayland, and so far I can't use my beloved XFCE desktop, with wayland.
[12:51] <st-gourichon-fid> Even swaywm is not packaged in Xubuntu 18.04.
[12:51] <brainwash> obviously not
[12:51] <brainwash> it's still alpha/beta
[12:51] <st-gourichon-fid> (and apparently not just wget/compile/run)
[12:53] <st-gourichon-fid> So, I'd like to track this and publish a proper fix, so that KDE and XFCE can exist on the same X/Ubuntu 18.04 without interference.  (KDE being the cause is not formally proven, just a hunch.)
[12:53] <st-gourichon-fid> XFCE is so much more minimal and cosy but I digress.
[12:53] <brainwash> let's see if there is any hints in journalctl then
[12:54] <st-gourichon-fid> I'm too old and still more familiar with /var/log ... any hints at some journalctl command line options to focus quickly.
[12:54] <st-gourichon-fid> ?
[12:55] <st-gourichon-fid> I'm looking at journalctl at the time my brand new user logs in.
[12:55] <brainwash> page down key?
[12:55] <st-gourichon-fid> ;-)
[12:55] <st-gourichon-fid> août 26 14:35:31 n551jk dbus-daemon[1641]: [session uid=1005 pid=1641] Activating via systemd: service name='org.bluez.obex' unit='dbus-org.bluez.obex.service' requested by ':1.41' (uid=1005 pid=1835 comm="/usr/bin/python3 /usr/bin/blueman-applet " label="unconfined")
[12:55] <st-gourichon-fid> So, systems does activates other services.
[12:55] <st-gourichon-fid> s/systems/systemd/
[12:57] <st-gourichon-fid> systemd startd a number of services, the last one is août 26 14:35:33 n551jk dbus-daemon[1641]: [session uid=1005 pid=1641] Successfully activated service 'org.gtk.vfs.Metadata'
[12:58] <brainwash> no errors in the log?
[12:58] <brainwash> any errors which could be related to the problem
[13:03] <st-gourichon-fid> No sign of notifyd.
[13:04] <st-gourichon-fid> I can paste the part at user login time if you want.
[13:07] <brainwash> maybe
[13:07] <st-gourichon-fid> http://paste.ubuntu.com/p/jg5jfFNbrp/
[13:07] <st-gourichon-fid> The user is named "sg-nonotify"
[13:08] <brainwash> without any hint it's pretty hard to pinpoint the culprit :/
[13:08] <brainwash> further hint I mean
[13:09] <st-gourichon-fid> Hmhm.
[13:13] <brainwash> what is added to the log when you trigger a notification?
[14:19] <st-gourichon-fid> Have to be away for a moment.  Have not seen anything yet.
[15:24] <ChunkzZ> I have a few downloads stored on my HDD, I've created a folder to download to, I have created another fold for something on the HDD that's in the dir but it's asking to copy/paste into it. is this normal?
[15:25] <ChunkzZ> ahhh just cut and it's fine now.
[17:06] <st-gourichon-fid> Back