LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2018, 10:00 AM   #1
doc1623
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Rep: Reputation: 0
No Sound Clear Linux


I installed clear linux but I have no sound. I've never been an expert on sound, so I could really use some help.

Pulse Audio is installed.


I was using clear linux irc and tried a couple of suggestions, but now, it seems worse off.


There is a couple of points, that I think will point the more knowledgeable directly to the problem.

First, when I open alsamixer I pulse audio is selected as the default but the on board sound was listed under F6 but it never seemed to save after I changed it. Now after some fiddling it doesn't even show the onboard.

secondly, aplay -l and aplay -L show nothing unless run as root.

I ran alsa-info.sh which seems to give a ton of information which is here

Code:
larry@clear ~ $ sudo lsmod |grep snd
Password: 
snd_hda_codec_hdmi     49152  1
snd_hda_codec_realtek   114688  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_intel          36864  0
snd_hda_codec         114688  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_hda_core           77824  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd                    73728  7 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd


larry@clear ~ $ aplay -l                                
aplay: device_list:272: no soundcards found...
larry@clear ~ $ aplay -L    
null                                                    
    Discard all samples (playback) or generate zero samples (capture)
larry@clear ~ $ sudo aplay -l
Password:                                               
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1                                                             
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1            
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]             
  Subdevices: 1/1   
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1   
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog]
  Subdevices: 1/1   
  Subdevice #0: subdevice #0

larry@clear ~ $ sudo aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
    HDA Intel HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA Intel HDMI, HDMI 1
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
    HDA Intel HDMI, HDMI 2
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=3
    HDA Intel HDMI, HDMI 3
    HDMI Audio Output
sysdefault:CARD=PCH
    HDA Intel PCH, ALC662 rev3 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC662 rev3 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC662 rev3 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC662 rev3 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC662 rev3 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC662 rev3 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC662 rev3 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC662 rev3 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
 
Old 11-10-2018, 04:12 PM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,132

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
When you say that you have no sound - what device are you trying to listen via. I note that the HDMI audio device is the first audio device listed. An easy way to configure the audio subsystem is to use the 'pavucontrol' (PulseAudio Volume Control) GUI utility. There you can configure the desired profile.

The following command will also show the profiles available, and current active profile
Code:
pacmd list sinks
 
Old 11-10-2018, 05:05 PM   #3
doc1623
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 0
I'm trying to get any sound. I don't currently have an HDMI output (physical). I'm just trying to use the onboard sound via the 3.5mm female output.

I've tried a wav file via aplay. I've tried speaker-test. I've tried playing video's on YouTube. I've tried vlc/cvlc.
I believe gnome plays something when starting. Nothing

from pacmd list sinks

0 card(s) available.
0 sink input(s) available.
0 source output(s) available.
0 cache entrie(s) available.

The rest is here
https://pastebin.com/AhBSqKe2
 
Old 11-11-2018, 01:23 PM   #4
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,132

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
Quote:
'm trying to get any sound. I don't currently have an HDMI output (physical). I'm just trying to use the onboard sound via the 3.5mm female output.
Ok, that’s a little more specific. Details are important.

Quote:
I was using clear linux irc and tried a couple of suggestions, but now, it seems worse off.
Can you elaborate on this? Otherwise this will just be a guessing game.
 
Old 11-11-2018, 10:27 PM   #5
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,132

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
You appear to have a permission-related issue going on here. With some distros ACLs are used, but others may still require the user to be a member of the 'audio' group

This might tell us more...
Code:
ls -l /dev/snd/*
Code:
getfacl /dev/snd/*
For example, openSUSE uses ACLs, so I get
Code:
ls -l /dev/snd/*
crw-rw----+ 1 root audio 116,  2 Nov 11 08:00 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  4 Nov 11 08:00 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116,  3 Nov 12 10:22 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116,  5 Nov 11 08:00 /dev/snd/pcmC0D1c
crw-rw----+ 1 root audio 116,  1 Nov 11 08:00 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Nov 11 08:00 /dev/snd/timer
The + sign indicates that the files have ACLs attached to them. If yours don't then the user will need to be a member of the appropriate group (usually the 'audio' group for sound).

Fore reference, my getfacl output (with openSUSE Leap) for /dev/snd/<files> looks like this
Code:
# file: dev/snd/controlC0
# owner: root
# group: audio
user::rw-
user:dean:rw-
group::rw-
mask::rw-
other::---
The manpage for getfacl explains....
Quote:
For each file, getfacl displays the file name, owner, the group, and the Access Control List (ACL). If a directory has
a default ACL, getfacl also displays the default ACL. Non-directories cannot have default ACLs.
 
1 members found this post helpful.
Old 11-12-2018, 09:34 AM   #6
doc1623
LQ Newbie
 
Registered: Jan 2009
Posts: 23

Original Poster
Rep: Reputation: 0
ferrari,

Thank YOU! Thank YOU! Thank YOU!

I've never dealt with ACL before. It was completely new to me.


I'm not sure what's going on with groups. I first tried to add myself to the audio group but that didn't fix the issue and ... I don't understand why id didn't pick it up.

Code:
larry@clear ~ $ id
uid=1000(larry) gid=1000 groups=1000,10(wheel),307(pulse)

larry@clear ~ $ cat /etc/group
wheel:x:10:larry
pulse:x:307:larry
audio:x:63:larry

But.... this rocked it!

Code:
sudo setfacl -m "u:larry:rw-" /dev/snd/*
now SOUND!

Thank YOU!

I don't know if I did things properly or not...(probably not) but least I have sound!
 
Old 11-12-2018, 01:34 PM   #7
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,132

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
Quote:
I'm not sure what's going on with groups. I first tried to add myself to the audio group but that didn't fix the issue and ... I don't understand why id didn't pick it up.
It is necessary to logout and back in before such a change is effective.

Usually, I would expect a udev rule to take care of setting access (depending on whether consolekit or udev is managing such things). I don't know anything about Clear Linux, so can't advise specifically here. Anyway, hopefully your manual ACL configuration won't be changed via another subsystem or updates.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
internal mic sound isn't clear angle2009 Ubuntu 0 12-03-2012 11:44 PM
clear is hashed (/user/bin/clear) What does it mean? mohammed.hossain Linux - Newbie 1 10-24-2010 08:53 PM
How to clear a std::string buff.clear()? lucky6969b Programming 3 03-17-2006 08:50 AM
how do i replace the clear "clear screen" with the cls command thefedexguy SUSE / openSUSE 2 12-02-2005 06:02 PM
i810_audio sound only clear during mouse movement in xfree86 DrGnome Linux - Software 0 04-15-2004 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration