You are not logged in.

#1 2018-04-05 12:54:57

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 359

Pulseaudio doesn't start

I am struggleing with a similar problem for quite some time - the outputs of pavucontrol (or pactl/pacmd), dmesg and so on all fine to me (and I have posted that at length at bbs.archlinux.de, where everyone assure me that they are fine), but I still get no sound - no speakers, headphones, or system sound. The problem occured suddenly (probably after a reboot), despite the fact that I didn't touch the configuration files. It used to work on the same system for years.

I am posting here because I have recongized that I cannot use the commands

systemctl --user stop pulseaudio.socket
systemctl --user start pulseaudio.

(as suggested above) at all. Both break off with a bus error "file not found". The file /etc/systemd/user/socket.target.wants/pulseaudio.socket does exist, however.

This may border on thread-hijacking, but still - any thoughts on that?

Offline

#2 2018-04-05 13:01:54

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

Re: Pulseaudio doesn't start

Yeah I'd argue that goes as a thread hijack, sound related issues can have a wide variety of causes, where correlation between different setups is often only tangential. So I'm splitting this off.

Please provide the output I've asked for in the other thread, as well as those other outputs you speak of, I'm not going to search through the bbs.archlinux.de thread for these.

Split off of:  https://bbs.archlinux.org/viewtopic.php?id=235966

Offline

#3 2018-04-05 15:02:18

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 359

Re: Pulseaudio doesn't start

Dammit - I shouldn't have mentioned thread-highjacking, in the vain hope that noone will notice ...

So here we go:

[tlaloc@pandora ~]$ lspci|grep Audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

I have also tried a second, USB-sound card - didn't change the problem at all.

[root@pandora ~]# dmesg|grep snd
[   21.554115] usbcore: registered new interface driver snd-usb-audio
[   22.284116] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC269: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[   22.284120] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   22.284122] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[   22.284124] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[   22.284126] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[   22.284128] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x18
[   22.284130] snd_hda_codec_realtek hdaudioC1D0:      Internal Mic=0x12
[tlaloc@pandora ~]$ 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"
		alsa.long_card_name = "HDA Intel at 0xf2a00000 irq 26"
		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 = "293e"
		device.product.name = "82801I (ICH9 Family) HD Audio Controller"
[tlaloc@pandora ~]$ pacmd list-sink-inputs
1 sink input(s) available.
    index: 0
	driver: <protocol-native.c>
	flags: START_CORKED 
	state: RUNNING
	sink: 0 <alsa_output.pci-0000_00_1b.0.analog-stereo>
	volume: front-left: 63970 /  98% / -0,63 dB,   front-right: 63970 /  98% / -0,63 dB
	        balance 0,00
	muted: no
	current latency: 45,17 ms
	requested latency: 25,00 ms
	sample spec: float32le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	resample method: copy
	module: 8
	client: 9 <Firefox>
[tlaloc@pandora ~]$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	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: 9039
	volume: front-left: 63069 /  96% / -1,00 dB,   front-right: 63069 /  96% / -1,00 dB
	        balance 0,00
	base volume: 63069 /  96% / -1,00 dB
	volume steps: 65537
	muted: no
	current latency: 31,40 ms
	max request: 4 KiB
	max rewind: 344 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 3
	configured latency: 25,01 ms; range is 0,50 .. 1837,50 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 = "ALC269 Analog"
		alsa.id = "ALC269 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel"
		alsa.long_card_name = "HDA Intel at 0xf2a00000 irq 26"
		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 = "293e"
		device.product.name = "82801I (ICH9 Family) HD 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 = "Internes Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC269"
		alsa.components = "HDA:10ec0269,17aa212c,00100004 HDA:80862802,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Lautsprecher (priority 10000, latency offset 10000 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Kopfhörer (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
[tlaloc@pandora ~]$ amixer -D pulse sset Master toggle
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 63069 [96%] [on]
  Front Right: Playback 63069 [96%] [on]
[tlaloc@pandora ~]$ speaker-test -c 0

speaker-test 1.1.5

Wiedergabe-Gerät ist default
Stream-Parameter sind 48000 Hz, S16_LE, 1 Kanäle
Verwende 16 Oktaven rosa Rauschen
Rate ist 48000 Hz (angefordert: 48000 Hz)
Puffergröße von 192 bis 2097152
Periodengröße von 64 bis 699051
Verwende maximale Puffergröße 2097152
Perioden = 4
gesetzt: period_size = 524288
gesetzt: buffer_size = 2097152
 0 - Vorne links
Zeit pro Periode = 10,941523
 0 - Vorne links
Zeit pro Periode = 10,941522
 0 - Vorne links
Zeit pro Periode = 10,943738
 0 - Vorne links
Zeit pro Periode = 10,941197
 0 - Vorne links

Alsamixer is unmuted, of course, headphone doesn't work either. What I have not tried so far (but will asap): Booting a live system on the same machine. But I think it is a configuration, not a hardware issue. I have tried adding a new user, but got the same results.

Offline

#4 2018-04-05 15:08:38

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Pulseaudio doesn't start

How do you start X?

Do you use a DM or startx? Please provide details.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2018-04-05 15:11:16

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

Re: Pulseaudio doesn't start

V1del wrote:

Please provide the output I've asked for in the other thread...

sudo fuser -v /dev/snd/*
amixer -c0

ALSA pulse mixer amixer output/setup is virtually useless, go with the actual card identifier.

that pacmd list-cards is truncated, however I doubt that it has much more usable info.

Oh and don't worry I'd have noticed and split it off anyway tongue

Edit: Ah yeah, your session might be borked as well, please provide the details slithery asks for in addition, as well as

loginctl show-session $XDG_SESSION_ID
printenv

Last edited by V1del (2018-04-05 16:02:53)

Offline

#6 2018-04-05 16:19:15

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 359

Re: Pulseaudio doesn't start

I use LXDE via and the user's .xinitrc. The only line there is

exec ck-launch-session startlxde
[root@pandora ~]# fuser -v /dev/snd/*
                     BEN.        PID ZUGR.  BEFEHL
/dev/snd/controlC0:  tlaloc      485 F.... pulseaudio
/dev/snd/controlC1:  tlaloc      485 F.... pulseaudio

Sorry, I don't know how to expand that. "Zugr." is German for "Access", hope that "F..." is not the abbreviation for "Forbidden" (or "Fuck you!").

[root@pandora ~]# amixer -c0
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 37
  Mono:
  Front Left: Playback 37 [100%] [0.00dB] [off]
  Front Right: Playback 37 [100%] [0.00dB] [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: Playback 0 - 31 Capture 0 - 35
  Mono: Playback 16 [52%] [-7.00dB] [on] Capture 20 [57%] [8.00dB] [on]
Simple mixer control 'Auto Gain Control',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Offline

#7 2018-04-05 16:29:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: Pulseaudio doesn't start

ck-launch-session? WTF? Is this Arch? That's been dead and gone for MANY years.

Edit: https://www.archlinux.org/news/consolek … by-logind/

Edit2: you're also missing most of what should be in .xinitrc. See the stock file at /etc/X11/xinit/xinitrc.

Last edited by Scimmia (2018-04-05 16:42:48)

Offline

#8 2018-04-05 17:19:55

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Pulseaudio doesn't start

Just what I was going to say, but I'll add...
https://wiki.archlinux.org/index.php/Xinit

Pay particular attention to the second note.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2018-04-05 18:01:20

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 359

Re: Pulseaudio doesn't start

Okay, okay - I didn't had a look on .xinitrc for years. I have changed that (stock file plus "exec startlxde") and rebooted. Didn't change the sound problem, though.

And it is pure Arch, no external repos or derivative stuff. Some configs may be old, but otherwise it is pretty much up-to-date.

[tlaloc@pandora ~]$ uname -a
Linux pandora 4.15.14-1-ARCH #1 SMP PREEMPT Wed Mar 28 17:34:29 UTC 2018 x86_64 GNU/Linux

The most annoying points I see right now are:
1) Why I cannot start/stop pulseaudio.socket (see #1)
2) Why does amixer mark speakers as [off] (see #6), when alsamixer tells me otherwise?

Offline

#10 2018-04-05 18:18:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: Pulseaudio doesn't start

1. Post actual errors.

Offline

#11 2018-04-05 18:38:36

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 359

Re: Pulseaudio doesn't start

[root@pandora ~]# systemctl --user start pulseaudio.socket
Failed to connect to bus: Datei oder Verzeichnis nicht gefunden

Offline

#12 2018-04-05 19:02:10

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

Re: Pulseaudio doesn't start

Don't run that in a root shell, it's your user's session and pulseaudio we are interested in.  How are you invoking alsamixer? It will default to the 'default ' device, which will be the virtual pulse-alsa bridge, which as said, is virtually useless for debugging. use

alsamixer -Dhw:0

to directly access the hardware and unmute the speaker channels.  However it is strange that this doesn't happen automatically, pulse should be handling that, F for the user owned pulseaudio is alright.

Offline

#13 2018-04-05 19:22:42

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 359

Re: Pulseaudio doesn't start

I see ...

[tlaloc@pandora ~]$ systemctl --user start pulseaudio.socket
[tlaloc@pandora ~]$ 

is what we would expect, isn't it?

alsamixer -Dwh:0

shows everything unmuted, master and PCM at 100, speaker at 96, beep at 86.

Offline

#14 2018-04-05 19:48:32

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

Re: Pulseaudio doesn't start

Yeah, that looks as expected. However the amixer output doesn't say anything about beeps, are you sure you are controlling the correct card? hopefully just a typo but wh:0 would be wrong in any case. F6 in alsamixer in doubt.

Or FWIW given the indices are still correct

amixer -c0 set 'Speaker' unmute

Also potentially relevant did you reboot from Windows recently? Try a 

alsactl init

Edit: And for good measure, do you get any info from

systemctl --user status pulseaudio

, a potential pointer to an error or similar?

Last edited by V1del (2018-04-05 19:54:49)

Offline

#15 2018-04-05 19:59:54

tlaloc
Member
From: Lower Saxony
Registered: 2006-05-12
Posts: 359

Re: Pulseaudio doesn't start

I will try tomorrow. Many thanks for your patience, but it is almost bedtime in my timezone.

And BTW - the system is Arch only, no Windows for me ...

Offline

Board footer

Powered by FluxBB