Xfce Forum

Sub domains
 

You are not logged in.

#26 2023-03-27 01:12:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

Does increasing the sleep value help?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#27 2023-03-27 01:24:31

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

No, it makes it worse. Not even a friction of sec of sound plays. Maybe play would work without any sleep value anyway for logout?


Linux Mint Xfce 21.1

Offline

#28 2023-03-27 02:32:50

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

Yes, I tried, play does work for logout only, without any sleep value.


Linux Mint Xfce 21.1

Offline

#29 2023-03-27 10:44:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

agashamu wrote:

No, it makes it worse. Not even a friction of sec of sound plays. Maybe play would work without any sleep value anyway for logout?

I see. With a longer shutdown sound, it cuts off for me as well.

Using nohup instead seems to work better for me:

nohup playsound /usr/share/sounds/Smooth/stereo/desktop-logout.oga

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#30 2023-03-27 18:12:17

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

Nohup doesnt do anything for me. Putting your command in terminal, I get 'no such file or directory'.


Linux Mint Xfce 21.1

Offline

#31 2023-03-27 21:27:07

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

agashamu wrote:

Nohup doesnt do anything for me. Putting your command in terminal, I get 'no such file or directory'.

Do you have a playsound executable? If not, you can use another play command. Note: on Arch, playsound is part of the sdl_sound package.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#32 2023-03-27 23:23:32

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

Would it be 'splay'?


Linux Mint Xfce 21.1

Offline

#33 2023-03-27 23:35:30

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

Possibly. If you run the command in a terminal window, does it play the sound? Or you could use the play command from the "sox" package.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#34 2023-03-27 23:58:26

PureBlood
Member
Registered: 2023-03-26
Posts: 2

Re: Login sound not working [SOLVED]

Thank you both, ToZ and agashamu.

With your inputs, I've been able to finally get some sound on all 4 events, through Session and Startup > Application Autostart:

Login:

    canberra-gtk-play -i desktop-login

Logout:

    sh -c "sleep 2 & play ~/.local/share/sounds/Smooth/stereo/desktop-logout.oga"
    (it also works with no sleep time, so I'm using this instead):
    sh -c "play ~/.local/share/sounds/Smooth/stereo/desktop-logout.oga"


Shutdown and Restart:

    nohup play ~/.local/share/sounds/Smooth/stereo/desktop-logout.oga

Last edited by PureBlood (2023-03-28 00:05:36)

Offline

#35 2023-03-28 01:30:58

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

nohup play /usr/share/sounds/desktop-logout.ogg

In terminal it gives me this:
nohup: ignoring input and appending output to 'nohup.out'


Linux Mint Xfce 21.1

Offline

#36 2023-03-28 01:42:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

agashamu wrote:

nohup play /usr/share/sounds/desktop-logout.ogg

In terminal it gives me this:
nohup: ignoring input and appending output to 'nohup.out'

But does the sound play?

That is just a processing message that can be suppressed via:

nohup play /usr/share/sounds/desktop-logout.ogg > /dev/null 2>&1

...or if you want want to put in an Xfce command entry field:

sh -c "nohup play /usr/share/sounds/desktop-logout.ogg > /dev/null 2>&1"

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#37 2023-03-28 02:01:21

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

My command did not play in terminal.
But yours do, both of them. But even those don't play any sound at shutdown.


Linux Mint Xfce 21.1

Offline

#38 2023-03-28 02:17:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

I think something is wrong with the path of the sound file:

/usr/share/sounds/desktop-logout.ogg

Does this file exist on your system (I got this path from your post #35 above). If the file doesn't exist, point it to a correct sound file.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#39 2023-03-28 02:27:38

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

Yes, the file is there. Even plays if I click on it.
And like I said, you used the same path in your command/path and it did play the sound.

That is just a processing message that can be suppressed via:

nohup play /usr/share/sounds/desktop-logout.ogg > /dev/null 2>&1

Last edited by agashamu (2023-03-28 03:33:37)


Linux Mint Xfce 21.1

Offline

#40 2023-03-28 03:53:24

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

Well, after some restart, it's getting better...
Now this:nohup play /usr/share/sounds/desktop-logout.ogg
plays at restart, but gets cut off. It's only a 2 sec or less long sound. Should I put in some time value somehow?


Linux Mint Xfce 21.1

Offline

#41 2023-03-28 10:25:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

Can you post back the contents of /etc/systemd/logind.conf? There is a "KillUserPorcesses" setting there. If set to no, it won't kill all your processes when you log out. Note: this assumes you are using systemd.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#42 2023-03-28 16:02:58

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the logind.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#HandleRebootKey=reboot
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

It looks like set to no...


Linux Mint Xfce 21.1

Offline

#43 2023-03-28 17:11:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

Does it help if you:

loginctl enable-linger

...before you restart?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#44 2023-03-28 17:23:46

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

ToZ wrote:

Does it help if you:

loginctl enable-linger

...before you restart?

Did you mean, run it in the terminal before restart? I did, no difference. It plays maybe 3/4 of the short sound, just like before.


Linux Mint Xfce 21.1

Offline

#45 2023-03-28 17:51:45

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Login sound not working [SOLVED]

I fired up Mint Xfce 21.1 in a VM and I'm hearing the same as you. Let me dig around a bit to see if I can figure out why this doesn't work for Mint.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#46 2023-03-28 18:03:55

agashamu
Member
From: California
Registered: 2021-03-01
Posts: 136

Re: Login sound not working [SOLVED]

As always, thank you Toz for your patient and incredible support! What would we do here without you???


Linux Mint Xfce 21.1

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.028 seconds, 7 queries executed - Memory usage: 635.59 KiB (Peak: 668.44 KiB) ]