[SOLVED] S/PDIF mute on boot by default

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] S/PDIF mute on boot by default

Postby turgon » May 24th, '13, 12:37

I have HDMI from computer to TV.
I have two channels in alsamixer: "S/PDIF" and "S/PDIF D"
When i boot computer, "S/PDIF" always on mute ("MM") and "S/PDIF" always on.

How can i get both channels on by default??

I am on Mageia 3, KDE, x32. Using PulseAudio.
Last edited by turgon on May 26th, '13, 21:29, edited 1 time in total.
All the time he's boxing, he's thinking. All the time he was thinking, I was hitting him.
Jack Dempsey
turgon
 
Posts: 9
Joined: May 24th, '13, 07:58

Re: S/PDIF mute on boot by default

Postby wintpe » May 24th, '13, 13:27

this also used to be the case with the soundblaster cards in mga1

you can use alsactl with a save option to save the settings.

then in /etc/rc.local on boot you run alsactl to apply those saved settings.

use alsamixer to set the settings initialy.

im just skimming this from memory, so you will have to learn about alsamixer and alsactl to find the method im talking about.

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: S/PDIF mute on boot by default

Postby turgon » May 24th, '13, 20:45

I getting lost :(
I saved wanted alsa settings with "alsactl store".
Then i created file "spdif" in created folder "/etc/rc.d/rc.local":
Code: Select all
#!/bin/bash
alsactl restore


chmod +x path_to_file
reboot

NOTHING.. :(
Last edited by doktor5000 on May 27th, '13, 23:22, edited 1 time in total.
Reason: removed fullquote, added code tags
All the time he's boxing, he's thinking. All the time he was thinking, I was hitting him.
Jack Dempsey
turgon
 
Posts: 9
Joined: May 24th, '13, 07:58

Re: S/PDIF mute on boot by default

Postby turgon » May 25th, '13, 11:06

Someone?
All the time he's boxing, he's thinking. All the time he was thinking, I was hitting him.
Jack Dempsey
turgon
 
Posts: 9
Joined: May 24th, '13, 07:58

Re: S/PDIF mute on boot by default

Postby turgon » May 26th, '13, 21:28

So that's how i did it:
1. Configure alsa settings and then:
Code: Select all
alsactl store

2. Create file: /etc/systemd/system/rc-local.service:
Code: Select all
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.

[Unit]
Description=/etc/rc.d/rc.local Compatibility
ConditionPathExists=/etc/rc.d/rc.local

[Service]
Type=forking
ExecStart=/etc/rc.d/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target


3.
Code: Select all
chmod +x /etc/systemd/system/rc-local.service

4. Create file: nano /etc/rc.d/rc.local:
Code: Select all
#!/bin/bash
sleep 60
alsactl restore


5.
Code: Select all
chmod +x nano /etc/rc.d/rc.local

6.
Code: Select all
systemctl enable rc-local.service

7.
Code: Select all
systemctl start rc-local.service


Thank you!
Last edited by doktor5000 on May 27th, '13, 23:23, edited 1 time in total.
Reason: added code tags, to improve on clarity
All the time he's boxing, he's thinking. All the time he was thinking, I was hitting him.
Jack Dempsey
turgon
 
Posts: 9
Joined: May 24th, '13, 07:58


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest