If like me, you like to have the Ubuntu login sound activated, here are a few simple steps to achieve just that.
This is for Ubuntu 20.04 (Mate). Should also work with 18.04!.
Open Control Center > Personal > Startup Applications and then click on "Add" and add the following 3 items in order:
Name: Gnome Login Sound
Command: /usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
Comment: Play a sound at login
Once you have done that, simply click on "Save" and restart your PC with your speakers and sound level switched to "On" and see if it works.
I have done the above on Ubuntu Mate 20.04 and it works no problem!.
Restart after adding the command!.
MAKE SURE THAT YOU DON'T HAVE ANY EXTRA SPACES BEFORE OR AFTER THE COMMAND WHEN YOU PASTE IT OTHERWISE IT WON'T WORK!.
Check the beginning and the end of the command:
Wrong!.
Right!!.
If you are still having problems with your sound, try installing the following packages if not already installed (Open a terminal with: Ctrl + Alt + t):
sudo apt-get install libsox-fmt-all sox paman
Paman is the Pulse Audio manager and Sox is the "Swiss Army Knife" of sound settings apparently!.