Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Could someone please sort out the sound on my laptop. I have just finished messing around with blfs.
When I boot the machine, the sound is off. After each boot, I have to go into alsamixer as root and turn the sound on.
Also, when I boot the machine, the files in /dev/snd are created from scratch and they have permissions 660. So as a user I cannot read these files so the sound won't work until I give users read access.
I really would like the sound to work without all this messing about. Can someone tell me how I can boot the machine, put on the phones and sit back and enjoy?
What i did was: booting as root changing setting using alsamixer after you boot with your user and never more you'll have to change your settings at boot.
after setting up alsamixer but on the next boot everything is muted again.
What does alsactl do exactly? I would like to check that it is working correctly and things are being set as they should.
This sounds like a perfect candidate for rc.local. Depending on your distro, check out /etc/rc.d/rc.local. This file is run right before your login terminal is displayed. You could raise the alsa volume, store it, then copy that configuration file to a new location. Then in your rc.local script have it move the max volume configuration file over the current (muted) alsa file.
You could also change the permissions of your /dev/snd device in the rc.local script.
Basically, you just use rc.local to cleanup and mess or misconfiguration a reboot did.
Hope that helps
Okay, when you raise the volume with alsamixer, then do "alsactl store", it will create a configuration file (one that has the volume turned up). You would copy this file somewhere else, let's say "alsaconf.on". Then in rc.local you would do something like "cp alsaconf.on alsaconf.default", ie: overwrite the muted alsa configuration file with the one that has volume. The alsactl restore option might work as well, I hadn't looked too heavily into what is available for alsactl.
So basically:
Code:
1. Turn up volume with alsamixer
2. Store with alsactl store
3. Copy loud file to an alternate filename
4a. In rc.local, add a line to copy the loud alsa configuration over the default
4b. Run alsactl restore using the loud configuration file
Basically you want to restore your "loud" settings on reboot.
Hope that clarifies a bit more. I would offer to give you the exact code, but I only ran into this problem a few distros ago, and the rc.local file from there is long gone.
You can run alsamixer as a normal user, but you should run "alsactl store" as root, so that the volume levels are restored to whatever you set when the sysem boots up. I don't think there is any need to put alsa stuff in rc.local.
as root, the sound works fine.
alsamix.conf is the alsa configuration file that I created from alsactl store with the sound turned on. chmod gives the user access to the sound files.
now the next problem. I am running lfs and lfs doesn't use rc.local so this file is not read at boot time. Where should I put these coomands to ensure they are executed after /dev/snd has been set up? Remember I want this to work when logging in as a user.
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.