You are not logged in.

#1 2017-02-13 19:20:12

jphall
Member
Registered: 2017-02-12
Posts: 12

No sound after installing/uninstalling gnome/xfce4

Not sure if this belongs here or in the Newbie Corner, so feel free to remove.

I use i3 but I installed xfce4 and gnome to try them out, along with lightdm and the lightdm gtk greeter.
I uninstalled all 3 with

sudo pacman -Rns

and now no sound works. All the channels still show up in alsamixer, but I'm not sure where to start troubleshooting.

speaker-test -c 2 

gives no sound.
output of

aplay -l

is

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: 92HD91BXX Analog [92HD91BXX Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I reinstalled xfce, gnome, and lightdm with gtk greeter. gnome does not recognize any sound devices, and the volume slider has no icon next to it to indicate volume. Couldn't find any sound settings in xfce but I do get a system beep when logging out or backspacing in an empty system search bar.

Any help is appreciated!


also: output of

pactl list
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

Last edited by jphall (2017-02-13 21:04:04)

Offline

#2 2017-02-13 19:24:10

digitalone
Member
Registered: 2011-08-19
Posts: 328

Re: No sound after installing/uninstalling gnome/xfce4

You use pulsaudio and/or alsa?
Paste ~/.asoundrc and /etc/asound.conf content.

Offline

#3 2017-02-13 19:49:36

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

digitalone wrote:

You use pulsaudio and/or alsa?
Paste ~/.asoundrc and /etc/asound.conf content.


.asoundrc and asound.conf do not exist, but I had been using alsa.
My media buttons were bound to the commands

 amixer set Master 5%-
 amixer set Master 5%+
 amixer set Master toggle

and changing the levels in alsamixer had worked without issue, but with gnome installed,

pacman -Q | grep pulse 

yields these packages and their "required by" values from pacman -Qi:

libcanberra-pulse: gnome-settings-daemon gnome-shell

libpulse: chromium empathy ffmpeg gst-plugins-good i3status libcanberra-pulse pulseaudio

pulseaudio: gnome-settings-daemon pulseaudio-alsa

pulseaudio-alsa: gnome-settings-daemon

Last edited by jphall (2017-02-13 19:50:05)

Offline

#4 2017-02-13 20:12:05

digitalone
Member
Registered: 2011-08-19
Posts: 328

Re: No sound after installing/uninstalling gnome/xfce4

Sorry, I can't help you. It could be a pulseaudio issue, but I use ALSA only, not pulseaudio.

Last edited by digitalone (2017-02-13 20:13:23)

Offline

#5 2017-02-13 20:41:10

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

Thanks for trying

Offline

#6 2017-02-14 01:28:06

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

Installed pavucontrol and my media keys change the volume in the gui, but i3blocks shows no change and still no sound.

Offline

#7 2017-02-14 02:19:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: No sound after installing/uninstalling gnome/xfce4

Under pavucontrol, play with the drop down controls under the configuration and output devices tab.
Are you audio level meters in pavucontrol bouncing when you play a sound source even though you have no sound?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2017-02-14 02:40:03

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

Yes, the meter is showing output.

Offline

#9 2017-02-14 08:08:16

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: No sound after installing/uninstalling gnome/xfce4

sudo pacman -Rns

Look at the pacman log, which packages got removed? Anything that looks alsa or pulseaudio related (latter is a dep of gnome but not of i3)

Online

#10 2017-02-14 14:48:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: No sound after installing/uninstalling gnome/xfce4

jphall wrote:

Yes, the meter is showing output.

Okay, so we know that the audio is reaching pulse audio and that you are using pulseaudio.  [Edit: this is a backend problem] 

Have you tried changing the items on the configuration tab?  How many items have you?  On my system I have one drop down for Analog audio and one for HDMI.
Have you tried changing the items on the output configuration tab?  My system, for analog. lets me direct output to speakers or to headphones.

Fire up alsamixer.  Change sound cards to (IIRC) pulse.  Is it muted? Is the volume run down?

Last edited by ewaller (2017-02-14 14:49:19)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2017-02-14 16:54:34

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

Look at the pacman log, which packages got removed? Anything that looks alsa or pulseaudio related (latter is a dep of gnome but not of i3)

pulseaudio-alsa was removed, just reinstalled.

In the configuration tab I have 2 profiles for analog stereo input/output, and 6 for various HDMI inputs/outputs. I've switched between headphones and speakers with no luck.

Entered pulse as a device name in alsamixer and the volume is unmuted and up.

Offline

#12 2017-02-14 21:17:22

jesc516
Member
From: LI,NY
Registered: 2015-01-26
Posts: 72

Re: No sound after installing/uninstalling gnome/xfce4

i would check pulseaudio settings. i switched to gnome from xfce4 a few weeks ago and i did not run into any audio issues. i used alsa on xfce4 without any custom configuration. i removed xfce4 and xfce4-goodies, then installed gnome and audio worked out of the box.

Offline

#13 2017-02-14 23:07:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: No sound after installing/uninstalling gnome/xfce4

post while attempting to play something:

aplay -L
sudo fuser -v /dev/snd/*
pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs

Online

#14 2017-02-14 23:36:47

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

While playing youtube:

aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
    HDA Intel PCH, 92HD91BXX Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, 92HD91BXX Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
 sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  james       963 F.... pulseaudio
/dev/snd/pcmC0D0p:   james       963 F...m pulseaudio
pacmd list-cards
1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1b.0>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xc0710000 irq 28"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5460, available: unknown)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
		output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 360, available: unknown)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)
		output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 360, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1b.0.analog-stereo/#39: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#49: Monitor of Built-in Audio Analog Stereo
		alsa_input.pci-0000_00_1b.0.analog-stereo/#50: Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
pacmd list-sinks
1 sink(s) available.
  * index: 39
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: 
	priority: 9959
	volume: front-left: 62912 /  96% / -1.06 dB,   front-right: 62912 /  96% / -1.06 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 21.64 ms
	max request: 4 KiB
	max rewind: 344 KiB
	monitor source: 49
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 23.22 ms; range is 0.50 .. 2000.00 ms
	card: 0 <alsa_card.pci-0000_00_1b.0>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "92HD91BXX Analog"
		alsa.id = "92HD91BXX Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xc0710000 irq 28"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "IDT 92HD91BXX"
		alsa.components = "HDA:111d76e0,103c1894,00100102 HDA:80862806,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
pacmd list-sink-inputs
1 sink input(s) available.
    index: 43
	driver: <protocol-native.c>
	flags: START_CORKED 
	state: RUNNING
	sink: 39 <alsa_output.pci-0000_00_1b.0.analog-stereo>
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	muted: no
	current latency: 47.16 ms
	requested latency: 23.22 ms
	sample spec: float32le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	resample method: copy
	module: 8
	client: 66 <Chromium>
	properties:
		application.icon_name = "chromium-browser"
		media.name = "Playback"
		application.name = "Chromium"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "32"
		application.process.id = "3374"
		application.process.user = "james"
		application.process.host = "archbox"
		application.process.binary = "chromium"
		window.x11.display = ":0"
		application.language = "en_US.utf8"
		application.process.machine_id = "03c79c97be104e56bd573b84bf36a18c"
		application.process.session_id = "c10"
		module-stream-restore.id = "sink-input-by-application-name:Chromium"

Offline

#15 2017-02-16 01:45:18

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

quick update: headphones work, and media volume control works for headphones. I guess I only tested with speakers. Still no speaker output though, and volume indicator in i3blocks does not change.

Under output devices in pavucontrol, headphones are recognized when plugged in and speakers show up as unavailable.
Under the Playback tab, changing the systems sound slider has no effect, but moving the slider for individual audio streams does.

When I run pianobar I get the error:

ao_alsa ERROR: Unable to open ALSA device 'default' for playback => Invalid argument
/!\ Cannot open audio device.

with and without headphones.

Last edited by jphall (2017-02-16 03:59:34)

Offline

#16 2017-02-16 08:39:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: No sound after installing/uninstalling gnome/xfce4

Can you repost

sudo fuser -v /dev/snd/*

when that error occurs? There's some cases where it seems that something is blocking your audio device. It wasn't the case in your previous output, but seems to be the case in the first and now the last post. You sink index is at 39 which is indicative of a constant report of jack change events. Can you try and comment/remove

load-module module-switch-on-port-available

at the beginning of your /etc/pulse/default.pa and then restart pulse

systemctl --user restart pulseaudio

, another thing that might help, could you post

amixer -c0

There might be some switch you have to change to enable speaker output.

Online

#17 2017-02-16 14:20:06

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

sudo fuser -v /dev/snd/*
 USER        PID ACCESS COMMAND
/dev/snd/controlC0:  james      7483 F.... pulseaudio
/dev/snd/pcmC0D3p:   james      7483 F...m pulseaudio
amixer -c0
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 80 [63%] [-35.25dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [0.00dB] [on]
  Front Right: Playback 126 [99%] [-0.75dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 0 [0%] [-99999.99dB] [off]
  Front Right: Playback 0 [0%] [-99999.99dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 254 [100%] [-0.20dB]
  Front Right: Playback 254 [100%] [-0.20dB]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 0 [0%] [-18.00dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 46 [100%] [30.00dB] [on]
  Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 1 [33%] [10.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'

Last edited by jphall (2017-02-16 14:53:31)

Offline

#18 2017-02-16 14:39:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: No sound after installing/uninstalling gnome/xfce4

You accidentally removed the -v in that fuser output. And your speaker is set to off in amixer for some reason. What happens if you use

amixer -c0 set Speaker,0 100% unmute

?

Online

#19 2017-02-16 15:03:45

jphall
Member
Registered: 2017-02-12
Posts: 12

Re: No sound after installing/uninstalling gnome/xfce4

edited.

$amixer -c0 set Speaker,0 100% unmute
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [0.00dB] [on]
  Front Right: Playback 127 [100%] [0.00dB] [on]

volume in i3blocks is now shown as muted, and commenting

load-module module-switch-on-port-available

disabled headphone output

Offline

Board footer

Powered by FluxBB