Re: [gentoo-user] systemd and amixer

2014-05-29 Thread Michael Hampicke
Am 29.05.2014 04:27, schrieb Walter Dnes:
 On Wed, May 28, 2014 at 06:36:28PM -0400, cov...@ccs.covici.com wrote
 Walter Dnes waltd...@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




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] systemd and amixer

2014-05-29 Thread covici
Walter Dnes waltd...@waltdnes.org wrote:

 On Wed, May 28, 2014 at 06:36:28PM -0400, cov...@ccs.covici.com wrote
  Walter Dnes waltd...@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
 cov...@ccs.covici.com



[gentoo-user] systemd and amixer

2014-05-28 Thread covici
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
 cov...@ccs.covici.com



Re: [gentoo-user] systemd and amixer

2014-05-28 Thread Walter Dnes
On Wed, May 28, 2014 at 10:06:44AM -0400, cov...@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 waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: [gentoo-user] systemd and amixer

2014-05-28 Thread covici
Walter Dnes waltd...@waltdnes.org wrote:

 On Wed, May 28, 2014 at 10:06:44AM -0400, cov...@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
 cov...@ccs.covici.com



Re: [gentoo-user] systemd and amixer

2014-05-28 Thread Walter Dnes
On Wed, May 28, 2014 at 06:36:28PM -0400, cov...@ccs.covici.com wrote
 Walter Dnes waltd...@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 waltd...@waltdnes.org
I don't run desktop environments; I run useful applications