Re: [RDD] ALSA Mixer Settings

2019-08-27 Thread David Henderson
Thanks to everyone for their help.

I decided, after spending hours and hours trying to get things to work on 
CentOS6, that I would 'bite the bullet' and just re-install everything from 
scratch, but on CentOS7 following the instructions. I'm glad I did! From the 
moment I rebooted the server and did all the post install instructions to 
"secure the system" everything worked, including the audio settings being 
remembered in ALSA. Similarly with the first client PC I upgraded - it just 
worked! I wish I'd taken the step a while ago, but my lack of knowledge around 
using and configuring Linux just put me off :)

Anyway, thanks again! No doubt I'll have a few more questions as we go, but 
it's all looking good so far !
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Klann

On Mon, 2019-08-26 at 22:20 +0200, David Henderson wrote:
> Thanks for the help David and Robert,
> 
> I'm still having no joy - I've tried the sudo chattr + command which does
> indeed "lock" the file (it shows a little padlock on the top right of the
> file icon), however it seems to be ignored and the default settings are
> applied.
> 
> The sudo command doesn't work for me when logged in as RD - I get an error
> message about RD is not in the sudoer's file - this incident will be
> reported, so I have to switch user and login as root - whether this is to do
> with the issue, I don't know...
> 

Hm... I may be recalling incorrectly, but I thought user 'rd' was already
a member of the appropriate group to enable use of sudo. Here's how to do
that:

su - root -c "usermod -a -G wheel rd"

(copy/paste for best results) You'll need to enter the "root" password for
this to work. If you get an error, simply log out of your "rd" session and log
in as "root", and execute just the part of the above command that's inside the
double quotes.

This adds the user "rd" to the sudo-able group "wheel" on CentOS. You'll need
to log out of your current "rd" session (if applicable) and log back in.

I can't really explain the mysterious ALSA settings situation without more
information. Feel free to email me directly and I'll summarize to the list as
appropriate.

Hope this helps!

  ~David
   Broadcast Tool & Die



signature.asc
Description: This is a digitally signed message part
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings (Gary Horn)

2019-08-26 Thread gary.horn
The change in ALSA behavior came with an interim CentOS 6 upgrade.  To
restore automatic save and restoration of the ALSA parameters, perform the
following tasks:

$ su root
# mkdir -p /var/lib/alsa
# cp /etc/asound.state /var/lib/alsa/
# alsactl -L --file /etc/asound.state restore
# vi /etc/rc.local
// add:
# Restore ALSA settings
# /sbin/alsactl -L --file /var/lib/alsa/asound.state restore 2>/dev/null

I have applied this fix to dozens of systems and have found this to be an
effective solution to restoring the original functionality.


-Original Message-
From: rivendell-dev-boun...@lists.rivendellaudio.org
 On Behalf Of
rivendell-dev-requ...@lists.rivendellaudio.org
Sent: Monday, August 26, 2019 10:26 AM
To: rivendell-dev@lists.rivendellaudio.org
Subject: Rivendell-dev Digest, Vol 76, Issue 46

Send Rivendell-dev mailing list submissions to
rivendell-dev@lists.rivendellaudio.org

To subscribe or unsubscribe via the World Wide Web, visit
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
or, via email, send a message with subject or body 'help' to
rivendell-dev-requ...@lists.rivendellaudio.org

You can reach the person managing the list at
rivendell-dev-ow...@lists.rivendellaudio.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Rivendell-dev digest..."


Today's Topics:

   1. Re: ALSA Mixer Settings (David Henderson)
   2. Re: ALSA Mixer Settings (Robert Jeffares)
   3. Re: ALSA Mixer Settings (David Henderson)
   4. Re: ALSA Mixer Settings (David Henderson)
   5. Re: ALSA Mixer Settings (David Klann)
   6. Rdcatch and record starting via a macro (Tim Camp)


--

Message: 1
Date: Mon, 26 Aug 2019 12:41:51 +0200
From: "David Henderson" 
To: rivendell-dev@lists.rivendellaudio.org
Subject: Re: [RDD] ALSA Mixer Settings
Message-ID:



Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL:
<http://caspian.paravelsystems.com/pipermail/rivendell-dev/attachments/20190
826/6dd08d95/attachment-0001.html>

--

Message: 2
Date: Mon, 26 Aug 2019 22:55:00 +1200
From: Robert Jeffares 
To: rivendell-dev@lists.rivendellaudio.org
Subject: Re: [RDD] ALSA Mixer Settings
Message-ID: <86a166e8-2cf1-fa54-8751-b3fe6a33a...@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed

David,

after you esc out of alsamixer you run # alsactl store [x]

where x is the number of your sound card like 0,1

There are some combinations of CentOS 6 where you have to run alsactl
restore on boot using cron.

using yum to update or reinstall alsa and alsa-utils may solve it

regards

Robert

On 25/08/19 10:30 PM, David Henderson wrote:
> I know I have asked this question before, but for some reason I've never
managed to find a solution that works.
>
> Each time I start up I have to go into ALSA Mixer and change the output
level of the sound card - no matter what I do, the settings aren't saved.
I've tried logging in as a root user and using the command in terminal, but
to no avail. Does anyone have a solution to this?
>
> Still currently running CentOS6, but all the latest updates have been 
> applied to the OS and Rivendell. I seem to recall that when I first 
> installed everything, the settings were saved, but after checking for 
> and installing new updates, the settings were lost and never seem to 
> be saved ever again :(
>
> Thanks
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


--

Message: 3
Date: Mon, 26 Aug 2019 13:12:53 +0200
From: "David Henderson" 
To: rivendell-dev@lists.rivendellaudio.org
Subject: Re: [RDD] ALSA Mixer Settings
Message-ID:



Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL:
<http://caspian.paravelsystems.com/pipermail/rivendell-dev/attachments/20190
826/34569bd8/attachment-0001.html>

--

Message: 4
Date: Mon, 26 Aug 2019 13:27:10 +0200
From: "David Henderson" 
To: rivendell-dev@lists.rivendellaudio.org
Subject: Re: [RDD] ALSA Mixer Settings
Message-ID:



Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL:
<http://caspian.paravelsystems.com/pipermail/rivendell-dev/attachments/20190
826/62abdf59/attachment-0001.html>

--

Message: 5
Date: Mon, 26 Aug 2019 08:52:17 -0500
From: David Klann 
To: Robert Jeffares , DavidHenderson
, rivendell-dev@lists.rivendellaudio.org
Subject: Re: [RDD] ALSA Mixer Settings
Message-ID: <6bd06a1ebde9829cec09c908fd95206bb3968a50.ca...@linux.com>
Co

Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Henderson
Thanks for the help David and Robert,

I'm still having no joy - I've tried the sudo chattr + command which does 
indeed "lock" the file (it shows a little padlock on the top right of the file 
icon), however it seems to be ignored and the default settings are applied.

The sudo command doesn't work for me when logged in as RD - I get an error 
message about RD is not in the sudoer's file - this incident will be reported, 
so I have to switch user and login as root - whether this is to do with the 
issue, I don't know...




> Sent: Monday, August 26, 2019 at 2:52 PM
> From: "David Klann" 
> To: "Robert Jeffares" , DavidHenderson 
> , rivendell-dev@lists.rivendellaudio.org
> Subject: Re: [RDD] ALSA Mixer Settings
>
> On Mon, 2019-08-26 at 22:55 +1200, Robert Jeffares wrote:
> > David,
> >
> > after you esc out of alsamixer you run # alsactl store [x]
> >
> > where x is the number of your sound card like 0,1
> >
> > There are some combinations of CentOS 6 where you have to run alsactl
> > restore on boot using cron.
> >
> > using yum to update or reinstall alsa and alsa-utils may solve it
> >
> > regards
> >
> > Robert
> >
>
> Good suggestions Robert.
>
> David, you can use the sudo(1) command to run the alsactl(1) command as the
> "super-user" (aka "root"). Use the man(1) command (e.g.: man sudo) to learn
> more about temporarily escalating your privileges. Basically, it allows you to
> run individual commands with "root" privileges.
>
> I have also found it helpful on some systems to use extended file attributes
> to make the ALSA settings file "immutable". After making sure you have the
> settings the way you want them run
>
> sudo chattr +i /var/lib/alsa/asound.state
>
> Then use
>
> sudo chattr -i /var/lib/alsa/asound.state
>
> to make the file "mutable" again (if your audio environment changes (external
> to the computer), or if you replace the audio card in the computer).
>
> But ... Maybe this unnecessarily complicates things...
>
>   ~David Klann
>
>
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Klann
On Mon, 2019-08-26 at 22:55 +1200, Robert Jeffares wrote:
> David,
> 
> after you esc out of alsamixer you run # alsactl store [x]
> 
> where x is the number of your sound card like 0,1
> 
> There are some combinations of CentOS 6 where you have to run alsactl 
> restore on boot using cron.
> 
> using yum to update or reinstall alsa and alsa-utils may solve it
> 
> regards
> 
> Robert
> 

Good suggestions Robert.

David, you can use the sudo(1) command to run the alsactl(1) command as the
"super-user" (aka "root"). Use the man(1) command (e.g.: man sudo) to learn
more about temporarily escalating your privileges. Basically, it allows you to
run individual commands with "root" privileges.

I have also found it helpful on some systems to use extended file attributes
to make the ALSA settings file "immutable". After making sure you have the
settings the way you want them run

sudo chattr +i /var/lib/alsa/asound.state

Then use

sudo chattr -i /var/lib/alsa/asound.state

to make the file "mutable" again (if your audio environment changes (external
to the computer), or if you replace the audio card in the computer).

But ... Maybe this unnecessarily complicates things...

  ~David Klann



signature.asc
Description: This is a digitally signed message part
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Henderson
Seems like it must be to do with permissions of the RD or default Rivendell User that's logged in.

 

If I try and run the alsactl restore 0 command I get the error:

 


[rd@rdsrv ~]$ alsactl restore 0
alsactl: state_lock:125: file /etc/asound.state lock error: File exists
alsactl: load_state:1683: Cannot open /etc/asound.state for reading: File exists
Found hardware: "HDA-Intel" "Realtek ALC662 rev1" "HDA:10ec0662,18493662,00100101" "0x1849" "0x3662"
Hardware is initialized using a generic method
[rd@rdsrv ~]$

 

 

If I switch users and login as root then the soundcard settings are restored, but it's obviusly a lot of faffing around to switch users, run the restore command then log back in as RD - is there any other way round this?


 
 

Sent: Monday, August 26, 2019 at 12:12 PM
From: "David Henderson" 
To: rivendell-dev@lists.rivendellaudio.org
Subject: Re: [RDD] ALSA Mixer Settings


Thanks Robert, I'll try using the souncard number to the end of the command to see if that works.

I've no idea how to set a cron job if I'm being honest. I'm running CentOS 6.10 final
--
Sent from my Android phone with GMX Mail. Please excuse my brevity.

On 26/08/2019, 11:55 Robert Jeffares  wrote:
David,

after you esc out of alsamixer you run # alsactl store [x]

where x is the number of your sound card like 0,1

There are some combinations of CentOS 6 where you have to run alsactl
restore on boot using cron.

using yum to update or reinstall alsa and alsa-utils may solve it

regards

Robert

On 25/08/19 10:30 PM, David Henderson wrote:
> I know I have asked this question before, but for some reason I've never managed to find a solution that works.
>
> Each time I start up I have to go into ALSA Mixer and change the output level of the sound card - no matter what I do, the settings aren't saved. I've tried logging in as a root user and using the command in terminal, but to no avail. Does anyone have a solution to this?
>
> Still currently running CentOS6, but all the latest updates have been applied to the OS and Rivendell. I seem to recall that when I first installed everything, the settings were saved, but after checking for and installing new updates, the settings were lost and never seem to be saved ever again :(
>
> Thanks
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

___ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev



___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Henderson
Thanks Robert, I'll try using the souncard number to the end of the command to see if that works.

I've no idea how to set a cron job if I'm being honest. I'm running CentOS 6.10 final 
-- 
Sent from my Android phone with GMX Mail. Please excuse my brevity.On 26/08/2019, 11:55 Robert Jeffares  wrote:
David,

after you esc out of alsamixer you run # alsactl store [x]

where x is the number of your sound card like 0,1

There are some combinations of CentOS 6 where you have to run alsactl 
restore on boot using cron.

using yum to update or reinstall alsa and alsa-utils may solve it

regards

Robert

On 25/08/19 10:30 PM, David Henderson wrote:
> I know I have asked this question before, but for some reason I've never managed to find a solution that works.
>
> Each time I start up I have to go into ALSA Mixer and change the output level of the sound card - no matter what I do, the settings aren't saved. I've tried logging in as a root user and using the command in terminal, but to no avail. Does anyone have a solution to this?
>
> Still currently running CentOS6, but all the latest updates have been applied to the OS and Rivendell. I seem to recall that when I first installed everything, the settings were saved, but after checking for and installing new updates, the settings were lost and never seem to be saved ever again :(
>
> Thanks
>
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread Robert Jeffares

David,

after you esc out of alsamixer you run # alsactl store [x]

where x is the number of your sound card like 0,1

There are some combinations of CentOS 6 where you have to run alsactl 
restore on boot using cron.


using yum to update or reinstall alsa and alsa-utils may solve it

regards

Robert

On 25/08/19 10:30 PM, David Henderson wrote:

I know I have asked this question before, but for some reason I've never 
managed to find a solution that works.

Each time I start up I have to go into ALSA Mixer and change the output level 
of the sound card - no matter what I do, the settings aren't saved. I've tried 
logging in as a root user and using the command in terminal, but to no avail. 
Does anyone have a solution to this?

Still currently running CentOS6, but all the latest updates have been applied 
to the OS and Rivendell. I seem to recall that when I first installed 
everything, the settings were saved, but after checking for and installing new 
updates, the settings were lost and never seem to be saved ever again :(

Thanks

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Henderson
Although having said that, in launching ALSA mixer this morning, I see it's gone back to the default settings, so they weren't saved for some reason.
-- 
Sent from my Android phone with GMX Mail. Please excuse my brevity.On 26/08/2019, 11:38 David Henderson  wrote:
Thanks Gabriele, 

That appears to have worked. Not sure why it never did before...
-- 
Sent from my Android phone with GMX Mail. Please excuse my brevity.On 25/08/2019, 13:00 Workino  wrote:
Try to execute sudo alsactl store in another terminal meanwhile the alsa mixer is open 

Regards 
Gabriele 

Sent from my iPhone

> On 25 Aug 2019, at 12:30, David Henderson  wrote:
> 
> I know I have asked this question before, but for some reason I've never managed to find a solution that works.
> 
> Each time I start up I have to go into ALSA Mixer and change the output level of the sound card - no matter what I do, the settings aren't saved. I've tried logging in as a root user and using the command in terminal, but to no avail. Does anyone have a solution to this?
> 
> Still currently running CentOS6, but all the latest updates have been applied to the OS and Rivendell. I seem to recall that when I first installed everything, the settings were saved, but after checking for and installing new updates, the settings were lost and never seem to be saved ever again :(
> 
> Thanks
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-26 Thread David Henderson
Thanks Gabriele, 

That appears to have worked. Not sure why it never did before...
-- 
Sent from my Android phone with GMX Mail. Please excuse my brevity.On 25/08/2019, 13:00 Workino  wrote:
Try to execute sudo alsactl store in another terminal meanwhile the alsa mixer is open 

Regards 
Gabriele 

Sent from my iPhone

> On 25 Aug 2019, at 12:30, David Henderson  wrote:
> 
> I know I have asked this question before, but for some reason I've never managed to find a solution that works.
> 
> Each time I start up I have to go into ALSA Mixer and change the output level of the sound card - no matter what I do, the settings aren't saved. I've tried logging in as a root user and using the command in terminal, but to no avail. Does anyone have a solution to this?
> 
> Still currently running CentOS6, but all the latest updates have been applied to the OS and Rivendell. I seem to recall that when I first installed everything, the settings were saved, but after checking for and installing new updates, the settings were lost and never seem to be saved ever again :(
> 
> Thanks
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] ALSA Mixer Settings

2019-08-25 Thread Workino
Try to execute sudo alsactl store in another terminal meanwhile the alsa mixer 
is open 

Regards 
Gabriele 

Sent from my iPhone

> On 25 Aug 2019, at 12:30, David Henderson  wrote:
> 
> I know I have asked this question before, but for some reason I've never 
> managed to find a solution that works.
> 
> Each time I start up I have to go into ALSA Mixer and change the output level 
> of the sound card - no matter what I do, the settings aren't saved. I've 
> tried logging in as a root user and using the command in terminal, but to no 
> avail. Does anyone have a solution to this?
> 
> Still currently running CentOS6, but all the latest updates have been applied 
> to the OS and Rivendell. I seem to recall that when I first installed 
> everything, the settings were saved, but after checking for and installing 
> new updates, the settings were lost and never seem to be saved ever again :(
> 
> Thanks
> 
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev