LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-06-2016, 04:38 PM   #1
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
/etc/asound.conf NEED CHANGES


Ok , i try explain with not too large explains.


Anyone test liveslack ? (erick works) ?

If test , see how in the first run never have sound ..
If you are running in to a USB KEY , then no problem , in the second run , you have sound ..this is because after first run of pulseaudio , files go stored in persistency.


but ...

If i use cd/dvd ?

easy , no sound NEVER, because in cd/dvd no persistency and ever is the first run.


to solve this need change configuration in

Code:
/etc/asound.conf

original config is

Code:
# ALSA system-wide config file
# By default, redirect to PulseAudio:
pcm.!default {
    type pulse
    # If defaults.namehint.showall is set to off in alsa.conf, then this is
    # necessary to make this pcm show up in the list returned by
    # snd_device_name_hint or aplay -L
    hint.description "Default Audio Device"
}
ctl.!default {
    type pulse
}


proposed config are "ARCHLINUX CONFIG"

Code:
# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}


With that change ,pulse works ever at first run ,and no need reboot.

That is not important in slack , but think around other distros based on slackware making livecd , in this escenario , audio need works at first run ever.

That little change , is good for liveslack ,and other lives based on slackware.

Remember , if test liveslack in to usb key , see how first run no have sound , in the second have, but because persistent store the files to the first run.

If go with cd/dvd , then cant write persistent ,and no sound never.



Im not sure , but probably , slackware do the same at first boot , and need one reboot to get sound working.
 
Old 02-06-2016, 05:13 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Please post this in Alien Bob's blog.
 
Old 02-06-2016, 05:36 PM   #3
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Quote:
Originally Posted by Didier Spaier View Post
Please post this in Alien Bob's blog.
I post , but is slackware problem... or asound.conf is making for alien bob ?

Slackware first run ,do the same , and need one reboot to get sound.


This is not important , when see no sound , normally think to reboot , to see is solved .. and after a reboot is done, but think is better working in first run time system.

or not ?

Last edited by USUARIONUEVO; 02-06-2016 at 05:38 PM.
 
Old 02-07-2016, 12:18 AM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,212

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
opensuse have two files

/etc/alsa-pulse.conf

with:

@hooks [
{
func load
files [
"/etc/asound.conf"
"/etc/asound-pulse.conf"
"~/.asoundrc"
]
errors false
}
]

<confdir:alsa.conf>

and /etc/asound-pulse.conf

with:

# PulseAudio plugin configuration

pcm.!default {
type pulse
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
fallback "sysdefault"
}

ctl.!default {
type pulse
fallback "sysdefault"
}
 
Old 02-09-2016, 05:22 PM   #5
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Actually, I propose we not overwrite the system ALSA config ('/usr/share/alsa/alsa.conf') and avoid using '!' entirely. A better '/etc/asound.conf' would be:

Code:
pcm.default pulse
ctl.default pulse
This also makes the microphone work again on two of my laptops.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Purpose of asound.conf? ananth86coolguy Linux - Newbie 1 11-30-2009 03:11 AM
/etc/bluetooth/asound.conf in 12.2 Woodsman Slackware 2 08-23-2009 02:59 PM
[SOLVED] asound.conf adrsound advanced config phanohanover Linux - Hardware 0 02-06-2009 10:46 AM
Making progs use definitions in asound.conf? tuxedo-notebook Linux - Hardware 4 03-20-2006 02:16 PM
Need help for ALSA Sound /etc/asound.conf or .asoundrc tho_x_tran Linux - Hardware 0 08-09-2004 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration