* [gentoo-user] systemd and amixer
@ 2014-05-28 14:06 covici
2014-05-28 21:35 ` Walter Dnes
0 siblings, 1 reply; 6+ messages in thread
From: covici @ 2014-05-28 14:06 UTC (permalink / raw
To: gentoo-user
Hi. Since I booted into systemd, if I try to run amixer from a normal
user I get very different results than if I run amixer as root. The
directory /dev/snd is world rw and I would like to know what is
happening. The numbers are very different for instance the Master
volume as a regular user is 100%, but as root its 40% where it should
be.
Thanks in advance for any suggestions.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] systemd and amixer
2014-05-28 14:06 [gentoo-user] systemd and amixer covici
@ 2014-05-28 21:35 ` Walter Dnes
2014-05-28 22:36 ` covici
0 siblings, 1 reply; 6+ messages in thread
From: Walter Dnes @ 2014-05-28 21:35 UTC (permalink / raw
To: gentoo-user
On Wed, May 28, 2014 at 10:06:44AM -0400, covici@ccs.covici.com wrote
> Hi. Since I booted into systemd, if I try to run amixer from a normal
> user I get very different results than if I run amixer as root. The
> directory /dev/snd is world rw and I would like to know what is
> happening. The numbers are very different for instance the Master
> volume as a regular user is 100%, but as root its 40% where it should
> be.
>
> Thanks in advance for any suggestions.
Is /var/lib/alsa/asound.state world readable? If not, regular users
may get some default value. On my system...
[d531][waltdnes][~] ll /var/lib/alsa/asound.state
-rw-r--r-- 1 root root 7749 May 28 17:32 /var/lib/alsa/asound.state
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] systemd and amixer
2014-05-28 21:35 ` Walter Dnes
@ 2014-05-28 22:36 ` covici
2014-05-29 2:27 ` Walter Dnes
0 siblings, 1 reply; 6+ messages in thread
From: covici @ 2014-05-28 22:36 UTC (permalink / raw
To: gentoo-user
Walter Dnes <waltdnes@waltdnes.org> wrote:
> On Wed, May 28, 2014 at 10:06:44AM -0400, covici@ccs.covici.com wrote
> > Hi. Since I booted into systemd, if I try to run amixer from a normal
> > user I get very different results than if I run amixer as root. The
> > directory /dev/snd is world rw and I would like to know what is
> > happening. The numbers are very different for instance the Master
> > volume as a regular user is 100%, but as root its 40% where it should
> > be.
> >
> > Thanks in advance for any suggestions.
>
> Is /var/lib/alsa/asound.state world readable? If not, regular users
> may get some default value. On my system...
>
> [d531][waltdnes][~] ll /var/lib/alsa/asound.state
> -rw-r--r-- 1 root root 7749 May 28 17:32 /var/lib/alsa/asound.state
Yep, its the same, but when I tried to restore as a regular user (which
I normally don't do) it complained about the .lock file and restored to
some strange values which involved so much feedback that I had to go to
a root window and restore again. The strange thing is that I had no
problems like this under openrc, so I wonder what systemd is doing and
how I can get around it.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] systemd and amixer
2014-05-28 22:36 ` covici
@ 2014-05-29 2:27 ` Walter Dnes
2014-05-29 7:38 ` Michael Hampicke
2014-05-29 10:33 ` covici
0 siblings, 2 replies; 6+ messages in thread
From: Walter Dnes @ 2014-05-29 2:27 UTC (permalink / raw
To: gentoo-user
On Wed, May 28, 2014 at 06:36:28PM -0400, covici@ccs.covici.com wrote
> Walter Dnes <waltdnes@waltdnes.org> wrote:
>
> Yep, its the same, but when I tried to restore as a regular user (which
> I normally don't do) it complained about the .lock file and restored to
> some strange values which involved so much feedback that I had to go to
> a root window and restore again. The strange thing is that I had no
> problems like this under openrc, so I wonder what systemd is doing and
> how I can get around it.
The settings are supposed to be automatically restored as part of the
bootup process. If you run openrc, did you execute...
rc-update add alsasound boot
...at alsa installation as per http://wiki.gentoo.org/wiki/ALSA ? If
you run systemd, I assume there's an equivalant service file. And,
grasping at straws, is your regular user a member of the "audio" group?
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] systemd and amixer
2014-05-29 2:27 ` Walter Dnes
@ 2014-05-29 7:38 ` Michael Hampicke
2014-05-29 10:33 ` covici
1 sibling, 0 replies; 6+ messages in thread
From: Michael Hampicke @ 2014-05-29 7:38 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]
Am 29.05.2014 04:27, schrieb Walter Dnes:
> On Wed, May 28, 2014 at 06:36:28PM -0400, covici@ccs.covici.com wrote
>> Walter Dnes <waltdnes@waltdnes.org> wrote:
>>
>> Yep, its the same, but when I tried to restore as a regular user (which
>> I normally don't do) it complained about the .lock file and restored to
>> some strange values which involved so much feedback that I had to go to
>> a root window and restore again. The strange thing is that I had no
>> problems like this under openrc, so I wonder what systemd is doing and
>> how I can get around it.
>
> The settings are supposed to be automatically restored as part of the
> bootup process. If you run openrc, did you execute...
>
> rc-update add alsasound boot
>
> ...at alsa installation as per http://wiki.gentoo.org/wiki/ALSA ? If
> you run systemd, I assume there's an equivalant service file. And,
> grasping at straws, is your regular user a member of the "audio" group?
>
alsa-utils brings alsa-store.service and alsa-restore.service, but these
should be enabled by default
$ find /usr/lib/systemd/ -name *alsa*
/usr/lib/systemd/system/basic.target.wants/alsa-restore.service
/usr/lib/systemd/system/basic.target.wants/alsa-state.service
/usr/lib/systemd/system/shutdown.target.wants/alsa-store.service
/usr/lib/systemd/system/alsa-restore.service
/usr/lib/systemd/system/alsa-state.service
/usr/lib/systemd/system/alsa-store.service
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] systemd and amixer
2014-05-29 2:27 ` Walter Dnes
2014-05-29 7:38 ` Michael Hampicke
@ 2014-05-29 10:33 ` covici
1 sibling, 0 replies; 6+ messages in thread
From: covici @ 2014-05-29 10:33 UTC (permalink / raw
To: gentoo-user
Walter Dnes <waltdnes@waltdnes.org> wrote:
> On Wed, May 28, 2014 at 06:36:28PM -0400, covici@ccs.covici.com wrote
> > Walter Dnes <waltdnes@waltdnes.org> wrote:
> >
> > Yep, its the same, but when I tried to restore as a regular user (which
> > I normally don't do) it complained about the .lock file and restored to
> > some strange values which involved so much feedback that I had to go to
> > a root window and restore again. The strange thing is that I had no
> > problems like this under openrc, so I wonder what systemd is doing and
> > how I can get around it.
>
> The settings are supposed to be automatically restored as part of the
> bootup process. If you run openrc, did you execute...
>
> rc-update add alsasound boot
>
> ...at alsa installation as per http://wiki.gentoo.org/wiki/ALSA ? If
> you run systemd, I assume there's an equivalant service file. And,
> grasping at straws, is your regular user a member of the "audio" group?
The restore does work under systemd, but its done as root. Also its
done under openrc as well. Under openrc, the regular user will get the
same contents using amixer get Master as root, whereas under systemd he
will not. I was told to take the user out of the audio group some time
ago and so I did, with no result I know of, maybe I will put it back and
see if it makes any changes.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-05-29 10:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28 14:06 [gentoo-user] systemd and amixer covici
2014-05-28 21:35 ` Walter Dnes
2014-05-28 22:36 ` covici
2014-05-29 2:27 ` Walter Dnes
2014-05-29 7:38 ` Michael Hampicke
2014-05-29 10:33 ` covici
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox