[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-user
Subject:    Re: [gentoo-user] Re: alsamixer - no sound
From:       Hoël_Bézier <hoelbezier () riseup ! net>
Date:       2023-12-17 10:39:27
Message-ID: ZX7P4ODJvEPPHzCC () sparta
[Download RAW message or body]


> If I remember correctly, running
> alsamixer - allows you select certain cards, ESC exits
> 
> alsactl store  - would write the setting to a file, under user it would be \
> ~/.asoundrc   (I could be wrong).  But in my case "alsactl store" doesn't do \
> anything, It opens "master" setting single bar setting.

 From `man 1 alsactl`:

```
	store <card>
		This command saves the current driver state for the selected soundcard 
		to the configuration file.
[…]
FILES
	/var/lib/alsa/asound.state (or whatever file you specify with the -f flag) 
	is used to store current settings for your soundcards. The settings include 
	all the usual soundcard mixer settings.
```

~/.asoundrc is your hand-edited card configuration (including which one is your 
primary soundcard, and /var/lib/alsa/asound.state contains the mixer settings 
for your cards, i.e. the volume levels. The latter is written by `alsactl 
store` and is owned by root, so your user has nothing to do with it. It's 
usually read once at startup and written at shutdown to preserve sound volume 
between reboots.

This is most likely not the file you want to edit, and `alsactl store` is not 
the command you want to run, unless I misunderstood your issue.

Hoël


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic