You are not logged in.

#1 2022-09-06 17:15:26

Kaydemir
Member
Registered: 2022-09-06
Posts: 5

[SOLVED] Can't get sound to work with pulseaudio and alsamixer

But playback on pavucontrol shows sound. I don't know anything else and don't know how to debug this. I'm clueless. So please tell me what might be wrong.
It is a fresh install, i have used archinstall command, i chose xorg installation so pretty minimal, then i installed i3-gaps and thats it.

Here is some more random info, commands i ran and outputs and some images

pavucontrol playback: https://imgur.com/XTxQWGh
pavucontrol output devices : https://imgur.com/PhpcoOt
alsamixer, asound.conf: https://imgur.com/M8AqtKA   (if i run $ alsamixer instead of $ sudo alsamixer, i don't get my device on the list, the screen shot is $ sudo alsamixer)

$ fuser -v /dev/snd/*
output: {no output, i type it and nothing happens}

$ sudo speaker-test
output: playback device is default
{...}
setting of hwparams failed: invalid argument

$ sudo alsactl init
output: found hardware: "hda-intel" "realtek alc892" "hda:10ec0892,14621296,00100302 hda:8086280b,80860101,00100000" "0x1462" "0x1296"
hardware is initialized using a generic method



$ aplay -l
output: aplay: device_list:275: no soundcards found...
**** list of playback hardware devices ****
card 0: pch [hda intel pch], device 0: alc892 analog [alc892 analog]
  subdevices: 1/1
  subdevice #0: subdevice #0
card 0: pch [hda intel pch], device 1: alc892 digital [alc892 digital]
  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
card 0: pch [hda intel pch], device 7: hdmi 1 [hdmi 1]
  subdevices: 1/1
  subdevice #0: subdevice #0
card 0: pch [hda intel pch], device 8: hdmi 2 [hdmi 2]
  subdevices: 1/1
  subdevice #0: subdevice #0
card 0: pch [hda intel pch], device 9: hdmi 3 [hdmi 3]
  subdevices: 1/1
  subdevice #0: subdevice #0
card 0: pch [hda intel pch], device 10: hdmi 4 [hdmi 4]
  subdevices: 1/1
  subdevice #0: subdevice #0

$ amixer
simple mixer control 'master',0
  capabilities: pvolume pvolume-joined pswitch pswitch-joined
  playback channels: mono
  limits: playback 0 - 64
  mono: playback 60 [94%] [-4.00db] [on]
simple mixer control 'headphone',0
  capabilities: pvolume pswitch
  playback channels: front left - front right
  limits: playback 0 - 64
  mono:
  front left: playback 64 [100%] [0.00db] [on]
  front right: playback 64 [100%] [0.00db] [on]
simple mixer control 'speaker',0
  capabilities: pvolume pswitch
  playback channels: front left - front right
  limits: playback 0 - 64
  mono:
  front left: playback 64 [100%] [0.00db] [off]
  front right: playback 64 [100%] [0.00db] [off]
simple mixer control 'bass speaker',0
  capabilities: pvolume pswitch
  playback channels: front left - front right
  limits: playback 0 - 64
  mono:
  front left: playback 50 [78%] [-14.00db] [off]
  front right: playback 50 [78%] [-14.00db] [off]
simple mixer control 'pcm',0
  capabilities: pvolume
  playback channels: front left - front right
  limits: playback 0 - 255
  mono:
  front left: playback 255 [100%] [0.00db]
  front right: playback 255 [100%] [0.00db]
simple mixer control 'mic',0
  capabilities: pvolume pswitch
  playback channels: front left - front right
  limits: playback 0 - 31
  mono:
  front left: playback 12 [39%] [-16.50db] [off]
  front right: playback 12 [39%] [-16.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 [off]
simple mixer control 'iec958 default pcm',0
  capabilities: pswitch pswitch-joined
  playback channels: mono
  mono: playback [on]
simple mixer control 'iec958',1
  capabilities: pswitch pswitch-joined
  playback channels: mono
  mono: playback [on]
simple mixer control 'iec958',2
  capabilities: pswitch pswitch-joined
  playback channels: mono
  mono: playback [on]
simple mixer control 'iec958',3
  capabilities: pswitch pswitch-joined
  playback channels: mono
  mono: playback [on]
simple mixer control 'iec958',4
  capabilities: pswitch pswitch-joined
  playback channels: mono
  mono: playback [on]
simple mixer control 'iec958',16
  capabilities: pswitch pswitch-joined
  playback channels: mono
  mono: playback [on]
simple mixer control 'capture',0
  capabilities: cvolume cswitch
  capture channels: front left - front right
  limits: capture 0 - 46
  front left: capture 28 [61%] [12.00db] [on]
  front right: capture 28 [61%] [12.00db] [on]
simple mixer control 'auto-mute mode',0
  capabilities: enum
  items: 'disabled' 'enabled'
  item0: 'enabled'
simple mixer control 'loopback mixing',0
  capabilities: enum
  items: 'disabled' 'enabled'
  item0: 'disabled'

Last edited by Kaydemir (2022-09-07 01:03:07)

Offline

#2 2022-09-06 20:07:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Can't get sound to work with pulseaudio and alsamixer

Please post outputs as text wrapped in code tags and in general pure text files as text instead of screenshots

If you don't get a listing without running the ALSA commands as root then you've broken your audio config with an invalid ~/.asoundrc and/or asound.conf remove it.

Last edited by V1del (2022-09-06 20:09:17)

Offline

#3 2022-09-06 21:11:47

Kaydemir
Member
Registered: 2022-09-06
Posts: 5

Re: [SOLVED] Can't get sound to work with pulseaudio and alsamixer

I know that was a terrible post by me im a noob at this, but i solved it by accident. I was trying to get the i3wm to start automatically.

I was starting the system and window manager by logging in, then typing xinit /bin/i3

I ran

$ cp /etc/X11/xinit/xinitrc ~/.xinitrc

To get a copy of .xinitrc in home directory. Then added

exec i3

line to it (it has to come before other exec commands in the file).

Now I'm typing startx after logging in to start the window manager. And that actually fixed the sound problem. I wouldn't know why. But, i rebooted many times before this change and it wasn't fixed. Before this reboot this file and starting with startx was the only thing i changed. Can someone explain this ?

Also like you said, I wasn't able to get results from most of those command without adding sudo. Now both sound is fixed and these commands give the proper listings without running with sudo. Again I don't know what this has to do with things i did above and I'd love to learn.

Last edited by Kaydemir (2022-09-06 21:46:52)

Offline

#4 2022-09-07 00:26:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: [SOLVED] Can't get sound to work with pulseaudio and alsamixer

The above has to do with this is that by using that copy you also copied the execution of the scripts under /etc/X11/xinit/xinitrc.d which ensure your session gets initialized properly. Which makes logind work as expected which makes it's device permission handoff logic work as expected. That would in general have been my next suggestion had you told me that deleting the config files didn't lead to a change. As such, please mark the topic as [SOLVED] by editing the title in your first post.

Offline

Board footer

Powered by FluxBB