[RESOLVED] Script to load sound drivers and play welcome at login
- swarfendor437
- Posts: 30
- Joined: Fri Sep 16, 2022 5:23 pm
[RESOLVED] Script to load sound drivers and play welcome at login
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!
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.
Re: Script to load sound drivers and play welcome at login
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.
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!
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!
- swarfendor437
- Posts: 30
- Joined: Fri Sep 16, 2022 5:23 pm
Re: Script to load sound drivers and play welcome at login
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!
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!
Re: Script to load sound drivers and play welcome at login
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!
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!
- swarfendor437
- Posts: 30
- Joined: Fri Sep 16, 2022 5:23 pm
Re: Script to load sound drivers and play welcome at login
Yes I am. It is a brilliant implementation of Plasma, much better than KDE Neon which I have on another drive.
Re: Script to load sound drivers and play welcome at login
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.
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!
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!
- swarfendor437
- Posts: 30
- Joined: Fri Sep 16, 2022 5:23 pm
Re: Script to load sound drivers and play welcome at login
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?
Re: Script to load sound drivers and play welcome at login
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!
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!
- swarfendor437
- Posts: 30
- Joined: Fri Sep 16, 2022 5:23 pm
Re: Script to load sound drivers and play welcome at login
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!
https://www.maketecheasier.com/run-star ... de-starts/
Will see how far I get!
- swarfendor437
- Posts: 30
- Joined: Fri Sep 16, 2022 5:23 pm
Re: Script to load sound drivers and play welcome at login
Well should have remembered that SDDM replaced KDM. Found Xsetup and tried to add
but no joy.
Code: Select all
a play /usr/share/sounds/system-ready.ogg