No Sound - Possible Solution.

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Aduka

No Sound - Possible Solution.

Post by Aduka »

I ran into a problem with my sound not wanting to release to everything. Basically, I had sound on boot up, but nothing else would play sound. Below is a quick little way of possibly fixing it.

First Open a text editor and enter the following:

Code: Select all

#! /bin/sh
#
# Author: Aduka
# Date: 9/28/09
#
# Contact: bhemerley@hotmail.com
#
# Created to apply a fix for audio errors on bootup.
#

gksu 'killall pulseaudio'
gksu 'alsa force-reload'

#END
What this is going is basically entering sudo killall pulseaudio and sudo alsa force-reload for you. You should have something like this:
Screenshot.png
Once you have that, save it as anything you want. For Example: SoundFIX.sh. I keep mine on my desktop, but you can save it anywhere you like. Just remember where you put it.

Once you have that done, right click it and select Properties -> Permissions -> tick allow executing file as program -> close.

Should look something like this:
Screenshot-1.png
Once you have that done, simply click on the file and select run. When prompted enter your password and you're done.

Example:
Screenshot-2.png
Please Note:

This is not a permanent fix for this sound error. It is only a quick fix for the time being until something better can be found.
You have to do this at each boot up. It isn't automatic from this point on. Example: You reboot, you log in to no sound. Click on the script and run it.

Couple of pointers:

I've noticed at times my sound will be muted after doing this. Make sure you un-mute your sound as you normally would and turn up your volume. I'm looking to see what I can find to remedy this, but for the time being that will have to be manual. Also, you could more than likely put this file in another directory and run it from a launcher on your bar for ease of access and removing clutter from your desktop. I'll post that information shortly.

Regards,

Aduka
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
igorzwx

Re: No Sound - Possible Solution.

Post by igorzwx »

Aduka!

Thank you very much!
This should fix 90% of problems.

I remember a case on Ubuntu forum when a re-load of ALSA fixed video playback in MPlayer.
Aduka

Re: No Sound - Possible Solution.

Post by Aduka »

Some Shortcuts:

Now, say you want to put this file somewhere else so it's not on your desktop. Simply move the file to where you would like it. In this case I moved it to my home folder.

Example:
Screenshot.png
Now, if you want a quick launch shortcut do this:

From there, right click on your panel(taskbar) somewhere - I use an upper panel so I put mine there.

Now do this: Add To Panel

You should see a menu that looks like this:
Screenshot-1.png
From there, click on: Custom Application Launcher.

You should be at this screen:
Screenshot-2.png
Name it whatever you wish, comment it however you wish. The next part is important however.

In the field that says "Command" should be a browse option. Navigate to where you put your file and select it.

<<Look Below for the rest>>
Aduka

Re: No Sound - Possible Solution.

Post by Aduka »

Example:
Screenshot-3.png
Click on open.

Once you're done with all that it should look something like this:
Screenshot-4.png
click on Okay. And you're now ready to use it.

You could also make all this file from the Terminal, but I think that would be a little over the top.

Enjoy,

Aduka
igorzwx

Re: No Sound - Possible Solution.

Post by igorzwx »

Another successful story:
*SOLVED* I have no sound
Re: I have no sound + Amarok says it cant initalize audio driver
http://forums.linuxmint.com/viewtopic.php?f=49&t=33576

The method works!!!
Aduka

Re: No Sound - Possible Solution.

Post by Aduka »

Glad to know it's helping. Been on mint 2 days, hoping by a month I can offer up something else helpful :D

Credit:

Igor - Original Idea of using killall and force-reload
ikey - Tip on switching over sudo to gksu

~Aduka
igorzwx

Re: No Sound - Possible Solution.

Post by igorzwx »

Hi Auduka!

I usually run such sudo scripts in this way:

1. create launcher on the panel (with sudo command)
2. in the Properties of this launcher select in drop-down menu
Type: Application in Terminal
(Right Click on the icon on the panel -> Properties)

When you run such a launcher, it opens a Terminal,
and you will be asked for password
EDIT: in this case, you do not need "gksu" inside the script.
andyz
Level 1
Level 1
Posts: 26
Joined: Sun Jun 28, 2009 12:45 pm

Re: No Sound - Possible Solution.

Post by andyz »

thanks a lot! solved a couple of my problems too. regards - andyz
Locked

Return to “Sound”