[RESOLVED] Script to load sound drivers and play welcome at login

For interesting topics. But remember this is a Linux Forum. Do not post offensive topics that are meant to cause trouble with other members or are derogatory towards people of different genders, race, color, minors (this includes nudity and sex), politics or religion. Let's try to keep peace among the community and for visitors.

No spam on this or any other forums please! If you post advertisements on these forums, your account may be deleted.

Do not copy and paste entire or even up to half of someone else's words or articles into posts. Post only a few sentences or a paragraph and make sure to include a link back to original words or article. Otherwise it's copyright infringement.

You can talk about other distros here, but no MX bashing. You can email the developers of MX if you just want to say you dislike or hate MX.
Message
Author
User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

[RESOLVED] Script to load sound drivers and play welcome at login

#1 Post by swarfendor437 »

I've tried to run an old copy of UltimateEditionOz Diamond B-II in live mode but it won't run on my 'modern' desktop. For someone with a severe vision impairment, a human voice is much nicer than robotic one from Orca, and yes I am aware it has moved on, with my favourite voice being Hugo. However, I am not in need of Orca, but might be whenever cateracts might occur as a temporary measure. What I would like to hear was the greeting at the logon of said distro from quite a few years back to play this:

https://murena.io/apps/files/?dir=/Musi ... =153366389

Just to add I am running MX-Linux KDE 23.1 KDE and have the desktop-login.ogg and desktop-logout.ogg working. I was hoping I could get the system-ready.ogg working at logon with the Authentication option in notifications option. I did experiment with an old theme, called 'lain' (https://gitlab.com/mixedCase/sddm-lain-wired-theme) and deleted it in error as it had an rc script to play a login sound. Wondered if I could tweak the script to play the system-ready.ogg by naming it the same name as the link to lain and replace but would prefer an rc script to run at boot to achieve this, so you can tell already I am no coder!
Last edited by swarfendor437 on Mon Nov 27, 2023 4:54 am, edited 2 times in total.

User avatar
CharlesV
Global Moderator
Posts: 7274
Joined: Sun Jul 07, 2019 5:11 pm

Re: Script to load sound drivers and play welcome at login

#2 Post by CharlesV »

I believe there are a could of methods to do this:

first - the theme you choose can have sounds, so you can usually change your sound in the theme you have selected.

second - you can setup a script to play anything you want at login. Using the play command and your sound file.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: Script to load sound drivers and play welcome at login

#3 Post by swarfendor437 »

Hi CharlesV,
Thanks for the reply.
Yes I am aware of the play command, it is just compiling the script that is the issue for me. Where to start? Do I use Kate/Nano? And also how to load the drivers for the SoundBlaster Audigy RX before system startup?
I have looked at other themes, and not many with sound - having looked at other forums, there is antagonism toward having any sound at login as it would appear to be mimicking that other OS!

User avatar
CharlesV
Global Moderator
Posts: 7274
Joined: Sun Jul 07, 2019 5:11 pm

Re: Script to load sound drivers and play welcome at login

#4 Post by CharlesV »

I take it your using KDE?
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: Script to load sound drivers and play welcome at login

#5 Post by swarfendor437 »

Yes I am. It is a brilliant implementation of Plasma, much better than KDE Neon which I have on another drive.

User avatar
CharlesV
Global Moderator
Posts: 7274
Joined: Sun Jul 07, 2019 5:11 pm

Re: Script to load sound drivers and play welcome at login

#6 Post by CharlesV »

Then the simplest method.. is to :
System Settings > Notifications > Applications > Plasma Workspace > Configure Events > Login

Then choose the sound / file you want to play. The selection dialog will start in /usr/share/sounds and you can choose anything, from any location, or copy your file out to there. ( The are some cool sounds already in the Borealis area too. )

Only caveat, your sound file needs to be an OGG or WAV format.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: Script to load sound drivers and play welcome at login

#7 Post by swarfendor437 »

Hi, That setting is for playing sound after you have logged in, not the login screen. Remember when Ubuntu used to have an African drum sound at login?

User avatar
CharlesV
Global Moderator
Posts: 7274
Joined: Sun Jul 07, 2019 5:11 pm

Re: Script to load sound drivers and play welcome at login

#8 Post by CharlesV »

Ah I see... Well... I remember seeing some code in the plymouth setup about playing sound, but as you pointed out it is going to depend upon when your sound drivers start kicking in. If I have a chance this week I will see if I can get some sound happening at that level.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: Script to load sound drivers and play welcome at login

#9 Post by swarfendor437 »

I've done some more browsing and found this but don't know if this is old i.e., whether KDM is still there:

https://www.maketecheasier.com/run-star ... de-starts/

Will see how far I get!

User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

Re: Script to load sound drivers and play welcome at login

#10 Post by swarfendor437 »

Well should have remembered that SDDM replaced KDM. Found Xsetup and tried to add

Code: Select all

a play /usr/share/sounds/system-ready.ogg
but no joy.

Post Reply

Return to “General”