No Sound - Possible Solution.

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read this

No Sound - Possible Solution.

Postby Aduka on Mon Sep 28, 2009 10:31 am

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
Screenshot.png (16.48 KiB) Viewed 1873 times


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
Screenshot-1.png (41.56 KiB) Viewed 1873 times


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
Screenshot-2.png (25.63 KiB) Viewed 1873 times


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
User avatar
Aduka
Level 1
Level 1
 
Posts: 23
Joined: Sun Sep 27, 2009 10:26 am
Location: Illinois, Usa

Linux Mint is funded by ads and donations.
 

Re: No Sound - Possible Solution.

Postby igorzwx on Mon Sep 28, 2009 10:38 am

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.
igorzwx
Level 5
Level 5
 
Posts: 599
Joined: Sat Sep 05, 2009 3:13 pm

Re: No Sound - Possible Solution.

Postby Aduka on Mon Sep 28, 2009 11:00 am

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
Screenshot.png (26.14 KiB) Viewed 1867 times


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
Screenshot-1.png (64.33 KiB) Viewed 1867 times


From there, click on: Custom Application Launcher.

You should be at this screen:

Screenshot-2.png
Screenshot-2.png (59.6 KiB) Viewed 1867 times


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>>
User avatar
Aduka
Level 1
Level 1
 
Posts: 23
Joined: Sun Sep 27, 2009 10:26 am
Location: Illinois, Usa

Re: No Sound - Possible Solution.

Postby Aduka on Mon Sep 28, 2009 11:03 am

Example:

Screenshot-3.png
Screenshot-3.png (54.99 KiB) Viewed 1865 times


Click on open.

Once you're done with all that it should look something like this:

Screenshot-4.png
Screenshot-4.png (67.36 KiB) Viewed 1865 times


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
User avatar
Aduka
Level 1
Level 1
 
Posts: 23
Joined: Sun Sep 27, 2009 10:26 am
Location: Illinois, Usa

Re: No Sound - Possible Solution.

Postby igorzwx on Mon Sep 28, 2009 11:20 am

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

The method works!!!
igorzwx
Level 5
Level 5
 
Posts: 599
Joined: Sat Sep 05, 2009 3:13 pm

Re: No Sound - Possible Solution.

Postby Aduka on Mon Sep 28, 2009 11:45 am

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
User avatar
Aduka
Level 1
Level 1
 
Posts: 23
Joined: Sun Sep 27, 2009 10:26 am
Location: Illinois, Usa

Re: No Sound - Possible Solution.

Postby igorzwx on Mon Sep 28, 2009 12:03 pm

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.
igorzwx
Level 5
Level 5
 
Posts: 599
Joined: Sat Sep 05, 2009 3:13 pm

Re: No Sound - Possible Solution.

Postby andyz on Mon Sep 28, 2009 3:08 pm

thanks a lot! solved a couple of my problems too. regards - andyz
andyz
Level 1
Level 1
 
Posts: 22
Joined: Sun Jun 28, 2009 12:45 pm

Linux Mint is funded by ads and donations.
 

Return to Sound, Multimedia, & Codecs

Who is online

Users browsing this forum: No registered users and 4 guests