Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

ALSA Installation


  • Please log in to reply
52 replies to this topic

#16 Al1000

Al1000

  • Global Moderator
  • 8,054 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:03:39 PM

Posted 24 July 2016 - 03:39 PM

...

Edited by Al1000, 24 July 2016 - 03:39 PM.


BC AdBot (Login to Remove)

 


#17 Tamimwm

Tamimwm
  • Topic Starter

  • Members
  • 181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Cyprus
  • Local time:05:39 PM

Posted 24 July 2016 - 03:39 PM

The output exactly from the terminal :

 

 

 

 

emty@Toshi-C50-A073 ~ $ sudo apt-get install alsa-utils
[sudo] password for emty:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
alsa-utils is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 10 not to upgrade.
emty@Toshi-C50-A073 ~ $
emty@Toshi-C50-A073 ~ $ sudo apt-get install alsamixer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package alsamixer

 

 

Edit: Reply to AI1000

 

I thought so too, I would probably do that after backing up my data.  But I thought we could try to fix it first.


Edited by Tamimwm, 24 July 2016 - 03:42 PM.


#18 A Future Pilot

A Future Pilot

  • Members
  • 78 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:TN, USA
  • Local time:10:39 AM

Posted 24 July 2016 - 03:47 PM

Hmmm...are you sure you removed alsa, and not Pulseaudio?

 

Try running

alsamixer

in a terminal. You'll see something that looks like this:

 

alsamixer.png

 

You can move left and right with the arrow keys. Hitting the "M" key mutes or unmutes each line, and the up and down arrow keys adjust volume.

 

Try playing music while unmuting and adjusting volume, and see if you can get any sound. (Depending on your speaker setup, different lines may control it).



#19 Tamimwm

Tamimwm
  • Topic Starter

  • Members
  • 181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Cyprus
  • Local time:05:39 PM

Posted 24 July 2016 - 03:51 PM

I am not sure but I didn't see that in the terminal

 

emty@Toshi-C50-A073 ~ $ alsamixer
cannot open mixer: No such file or directory



#20 A Future Pilot

A Future Pilot

  • Members
  • 78 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:TN, USA
  • Local time:10:39 AM

Posted 24 July 2016 - 04:54 PM

That most likely means you're not in the audio group. Try running

sudo usermod -a -G audio username

Replacing "username" with your username.

Then try doing what I mentioned above again.

#21 Tamimwm

Tamimwm
  • Topic Starter

  • Members
  • 181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Cyprus
  • Local time:05:39 PM

Posted 24 July 2016 - 05:16 PM

Can you tell me  how to find out my user name ?

 

Is it the account I log into or the name of my pc as named by the terminal ?

 

I ran the code in terminal and got this

 

 

Usage: usermod [options] LOGIN

Options:
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
                                mentioned by the -G option without removing
                                him/her from other groups
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the
                                new location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -R, --root CHROOT_DIR         directory to chroot into
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account
  -v, --add-subuids FIRST-LAST  add range of subordinate uids
  -V, --del-subuids FIRST-LAST  remvoe range of subordinate uids
  -w, --add-subgids FIRST-LAST  add range of subordinate gids
  -W, --del-subgids FIRST-LAST  remvoe range of subordinate gids
  -Z, --selinux-user SEUSER     new SELinux user mapping for the user account
 



#22 A Future Pilot

A Future Pilot

  • Members
  • 78 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:TN, USA
  • Local time:10:39 AM

Posted 24 July 2016 - 05:31 PM

Your username is the account you log in to. :)

#23 Tamimwm

Tamimwm
  • Topic Starter

  • Members
  • 181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Cyprus
  • Local time:05:39 PM

Posted 25 July 2016 - 03:00 AM

I did that I enter my username my password  when the terminal asked for it and got the same list of options :

 

 

Usage: usermod [options] LOGIN

Options:
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
                                mentioned by the -G option without removing
                                him/her from other groups
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the
                                new location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -R, --root CHROOT_DIR         directory to chroot into
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account
  -v, --add-subuids FIRST-LAST  add range of subordinate uids
  -V, --del-subuids FIRST-LAST  remvoe range of subordinate uids
  -w, --add-subgids FIRST-LAST  add range of subordinate gids
  -W, --del-subgids FIRST-LAST  remvoe range of subordinate gids
  -Z, --selinux-user SEUSER     new SELinux user mapping for the user account
 



#24 Al1000

Al1000

  • Global Moderator
  • 8,054 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:03:39 PM

Posted 25 July 2016 - 03:10 AM

Your username is displayed when you open a terminal. It's the bit before @. (the bit between @ and ~ is the name of your system)

emty@Toshi-C50-A073 ~ $
So your username is emty

(the name of your system is Toshi-C50-A073)

So to run the command that A Future Pilot posted, type or copy and paste this into a terminal:
sudo usermod -a -G audio emty


#25 Tamimwm

Tamimwm
  • Topic Starter

  • Members
  • 181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Cyprus
  • Local time:05:39 PM

Posted 25 July 2016 - 03:20 AM

 I did I ran the code using that username and entered my password.

 

 

emty@Toshi-C50-A073 ~ $ sudo usermod -a -G audio emty
[sudo] password for emty:
emty@Toshi-C50-A073 ~ $
emty@Toshi-C50-A073 ~ $


:smash:



#26 Al1000

Al1000

  • Global Moderator
  • 8,054 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:03:39 PM

Posted 25 July 2016 - 03:27 AM

That's normal. No feedback from the terminal is expected.

What happens now when you try to run alsamixer?

#27 Tamimwm

Tamimwm
  • Topic Starter

  • Members
  • 181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Cyprus
  • Local time:05:39 PM

Posted 25 July 2016 - 03:37 AM

emty@Toshi-C50-A073 ~ $ alsamixer
cannot open mixer: No such file or directory

Maybe this  is the one I unistalled ?



#28 Tamimwm

Tamimwm
  • Topic Starter

  • Members
  • 181 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Cyprus
  • Local time:05:39 PM

Posted 25 July 2016 - 04:23 AM

Well this is going to be a hassle, So I am thinking can I do an  installation on top of my present installation to fix the issues ?

 

Something like the windows repair installation.



#29 Al1000

Al1000

  • Global Moderator
  • 8,054 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:03:39 PM

Posted 25 July 2016 - 05:03 AM

Maybe this is the one I unistalled ?


alsamixer is part of alsa-utils, which is installed on your system. I was just going with A Future Pilot's suggestion in case it worked.

So I am thinking can I do an installation on top of my present installation to fix the issues ?

Something like the windows repair installation.


I'm not familiar with the Windows repair installation, and have never heard of such a thing in Linux.

#30 A Future Pilot

A Future Pilot

  • Members
  • 78 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:TN, USA
  • Local time:10:39 AM

Posted 25 July 2016 - 09:15 AM

First, just to cover all our bases, try running

sudo apt-get install --reinstall alsa-base libasound2 alsa-utils alsa-tools

Then try running alsamixer like in post #18.

 

If that doesn't work, try running

sudo alsamixer

And see if it does the same thing.

 

 

Also, there is no repair install for Linux. You'd have to backup your data and do a clean install (we can help you with that if that's what you decide to do, but you should start a new thread if/when that happens).


Edited by A Future Pilot, 25 July 2016 - 11:20 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users