LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   No Sound Clear Linux (https://www.linuxquestions.org/questions/linux-software-2/no-sound-clear-linux-4175642104/)

doc1623 11-10-2018 09:00 AM

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


ferrari 11-10-2018 03:12 PM

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

doc1623 11-10-2018 04:05 PM

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

ferrari 11-11-2018 12:23 PM

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.

ferrari 11-11-2018 09:27 PM

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.

doc1623 11-12-2018 08:34 AM

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!

ferrari 11-12-2018 12:34 PM

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.


All times are GMT -5. The time now is 07:51 AM.