You are not logged in.

#1 2013-02-25 02:13:01

AlecB
Member
Registered: 2013-01-26
Posts: 114

No Sound with Alsa

The Problem:  I get no sound from arch.

What I tried:  Setting system volume to maximum
                    Unmuting and maxing alsamixer volumes
                    Googling and googling and googling
                    Reading the Wiki article about alas
                    Searching this forum

Information:  I'm using an Asrock integrated sound card. I'm also running the Enlightenment desktop environment / window manager, if it matters.

Please help; I need sound!

Thanks!

Last edited by AlecB (2013-04-09 20:00:31)


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#2 2013-02-25 02:31:30

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,975

Re: No Sound with Alsa

Are you using Pulseaudio?
Please post the output of loginctl session-status 1


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#3 2013-02-25 02:45:38

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: No Sound with Alsa

loginctl session-status 1

Gives me

Failed to issue method call: No such file or directory

I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#4 2013-02-25 02:48:51

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,834
Website

Re: No Sound with Alsa

Use tab complete after loginctl session-status for your session number...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#5 2013-02-25 02:50:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,975

Re: No Sound with Alsa

Okay.  You are not using session 1.  Use loginctl --no-pager to get a list of the active sessions and replace the '1' with an appropriate number.

Edit:  Or do what Jasonwran said.  I did not know about that trick.

Last edited by ewaller (2013-02-25 02:51:20)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#6 2013-02-25 03:00:22

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: No Sound with Alsa

Wouldn't loginctl list-sessions show what number his session is?


I laugh, yet the joke is on me

Offline

#7 2013-02-25 03:05:41

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,834
Website

Re: No Sound with Alsa

the sad clown wrote:

Wouldn't loginctl list-sessions show what number his session is?

Yes; but then you have to re-enter the session-status command with the correct session number... With completion, it is just the one command (assuming only one logged in user).


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#8 2013-02-25 03:11:42

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: No Sound with Alsa

I tried using tab complete and it didn't work for me (bash).  Are you using a different shell?  All it did for me was list the files and directories within the directory I was in.


I laugh, yet the joke is on me

Offline

#9 2013-02-25 03:21:28

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,834
Website

Re: No Sound with Alsa

pacman -S bash-completion

or just use zsh smile


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#10 2013-02-25 03:26:21

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: No Sound with Alsa

Yeah, that is a wee bit simpler, eh.


I laugh, yet the joke is on me

Offline

#11 2013-02-25 04:07:33

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: No Sound with Alsa

I downloaded

pacman -S bash-completion

I don't know what to do with it, though : )

loginctl session-status 2

Gives me alot of information which would take a long time to type out, so is there anything in particular I should give you, or should i type it all out?


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#12 2013-02-25 04:56:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,975

Re: No Sound with Alsa

AlecB wrote:

so is there anything in particular I should give you, or should i type it all out?

At a minimum, what does it report about 'Active'  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#13 2013-02-25 05:12:51

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: No Sound with Alsa

Don't mean to be butting in, but the command doesn't offer anything about active:

$ loginctl session-status 4
4 - isaac (1000)
           Since: Sun 2013-02-24 16:27:23 CST; 6h ago
          Leader: 5005 (login)
            Seat: seat0; vc1
             TTY: tty1
         Service: login; type tty; class user
           State: online
          CGroup: name=systemd:/user/isaac/4
                  ├─ 5005 login -- isaac
                  ├─ 5010 -bash
                  ├─19129 xinit
                  ├─19130 X :0
                  ├─19138 dwm
                  ├─19145 /usr/bin/dbus-launch --sh-syntax --exit-with-session
                  ├─19146 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --se...
                  ├─19151 aria2c -V --bt-tracker-timeout=120 -l/home/isaac/torrents/log --...
                  ├─19154 conky
                  ├─19155 sh /home/isaac/.xinitrc
                  ├─19157 urxvtd
                  ├─19162 xbindkeys
                  ├─19165 bash
                  ├─19635 bash
                  ├─21729 w3m -F -cookie -graph -title -B
                  ├─21750 /usr/lib/w3m/w3mimgdisplay
                  ├─22009 man loginctl
                  ├─22020 less -s
                  ├─22043 bash
                  ├─22228 loginctl session-status 4
                  └─22229 less

I laugh, yet the joke is on me

Offline

#14 2013-02-25 05:31:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,975

Re: No Sound with Alsa

Well...

[ewaller@odin ~]$ loginctl session-status 3 --no-pager 
3 - ewaller (1000)
	   Since: Sun 2013-02-24 21:02:35 PST; 26min ago
	  Leader: 20181 (login)
	    Seat: seat0; vc1
	     TTY: tty1
	 Service: login; type tty; class user
	   State: active
	  CGroup: name=systemd:/user/ewaller/3
		  |-20181 login -- ewaller
		  |-20186 -bash
		  |-20213 /bin/sh /usr/bin/startx
		  |-20230 xinit /home/ewaller/.xinitrc -- /etc/X11/xinit/xser...
		  |-20231 /usr/bin/X -nolisten tcp :0 -auth /tmp/serverauth.4...
		  |-20235 /usr/bin/openbox --startup /usr/lib/openbox/openbox...
		  |-20241 /usr/bin/dbus-daemon --fork --print-pid 5 --print-a...
		  |-20251 cairo-compmgr
		  |-20252 stalonetray --kludges force_icons_size
		  |-20256 conky -c /home/ewaller/.conkyob
		  |-20259 /usr/lib/gvfs/gvfsd
		  |-20273 /opt/dropbox/dropbox
		  |-20274 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client...
		  |-20283 /usr/bin/pulseaudio --start
		  |-20298 /usr/lib/xfce4/xfconf/xfconfd
		  |-20306 /usr/lib/pulse/gconf-helper
		  |-20308 /usr/lib/GConf/gconfd-2
		  |-20311 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
		  |-20379 xfce4-terminal
		  |-20382 gnome-pty-helper
		  |-20423 firefox
		  |-20438 /usr/lib/at-spi2-core/at-spi-bus-launcher
		  |-20785 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/acc...
		  |-20788 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome...
		  |-20843 bash
		  `-21212 loginctl session-status 3 --no-pager
[ewaller@odin ~]$ 

I guess I should have asked, "What does it say about state ?"  Ans: It should be Active.

I do not know the difference between on line and active; but I've a hunch it may be at the root of the problem you are chasing on the other thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#15 2013-02-25 05:35:26

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,834
Website

Re: No Sound with Alsa

The difference between "active" and "online" is explained in the documentation[0]:

The following states are currently known: offline (user not logged in at all), lingering (user not logged in, but some user services running), online (user logged in, but not active, i.e. has no session in the foreground), active (user logged in, and has at least one active session, i.e. one session in the foreground)...

0. http://www.freedesktop.org/software/sys … state.html


# edit: just read ewaller's comment about your other thread: you can activate your session, see man loginctl.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#16 2013-02-25 15:12:14

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: No Sound with Alsa

Yes, that does seem to be the answer, thanks, I'll post the solution there and mark it solved.


I laugh, yet the joke is on me

Offline

#17 2013-02-25 16:09:31

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: No Sound with Alsa

Given my problem (and solution) in my own thread, the op should probably look into how he is starting X, and perhaps post the config if he is using a display manager.

Edit: Also, AlecB, you don't need to type the output from the loginctl command.  You should be able to just copy and paste like I did.  Just highlight the output in your terminal then middle click to paste (make sure to backet the output you paste with [ code ] [ /code ] only remove the spaces).

Last edited by the sad clown (2013-02-25 16:17:09)


I laugh, yet the joke is on me

Offline

#18 2013-02-25 17:03:46

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: No Sound with Alsa

Here's the output:

2 - alec (1000)
           Since: Mon 2013-02-25 00:56:16 PST; 5min ago
          Leader: 412 (gdm-session-wor)
            Seat: seat0; vc1
         Display: :0
         Service: gdm-password; type x11; class user
           State: active
          CGroup: name=systemd:/user/alec/2
                  ├─ 412 gdm-session-worker [pam/gdm-password]
                  ├─ 415 /usr/bin/enlightenment_start
                  ├─ 432 /usr/bin/dbus-launch --sh-syntax --exit-with-session
                  ├─ 433 /usr/bin/dbus-daemon --fork --print-pid 4 --print-addre
                  ├─ 437 /usr/bin/enlightenment
                  ├─ 449 /usr/lib/enlightenment/utils/enlightenment_fm
                  ├─ 464 /usr/lib/enlightenment/modules/temperature/linux-gnu-x8
                  ├─ 643 dhcpcd
                  ├─ 748 xterm
                  ├─ 750 bash
                  ├─ 823 /usr/lib/chromium/chromium
                  ├─ 825 /usr/lib/chromium/chromium
                  ├─ 826 /usr/lib/chromium/chromium-sandbox /usr/lib/chromium/ch
                  ├─ 827 /usr/lib/chromium/chromium --type=zygote
                  ├─ 833 /usr/lib/chromium/nacl_helper_bootstrap /usr/lib/chromi
                  ├─ 834 /usr/lib/chromium/chromium --type=zygote
                  ├─ 868 /usr/lib/chromium/chromium --type=renderer --lang=en-US
                  ├─ 881 /usr/lib/chromium/chromium --type=renderer --lang=en-US
                  ├─ 996 /usr/lib/chromium/chromium --type=renderer --lang=en-US
                  ├─1004 su
                  ├─1006 bash
                  ├─1159 loginctl session-status 2
                  └─1160 less

I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#19 2013-02-26 02:02:06

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: No Sound with Alsa

AlecB wrote:

Here's the output:

2 - alec (1000)
           Since: Mon 2013-02-25 00:56:16 PST; 5min ago
          Leader: 412 (gdm-session-wor)
            Seat: seat0; vc1
         Display: :0
         Service: gdm-password; type x11; class user
           State: active

Not the same problem as me.  Might be the same problem as this thread:

https://bbs.archlinux.org/viewtopic.php … 4#p1236894


I laugh, yet the joke is on me

Offline

#20 2013-02-26 07:54:34

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: No Sound with Alsa

Yes, our problems our similar, except my sound has never worked. Any ideas on how to fix it?

Last edited by AlecB (2013-02-26 17:06:27)


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#21 2013-02-27 03:36:30

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 833

Re: No Sound with Alsa

I don't.  I usually run a pretty vanilla alsa (no pulseaudio or major config modifications).  My problem wasn't really with alsa, it was with logind, it only effected alsa because I wasn't root/audio.  I do wonder about the access control list shown in 'ls -l' for my /dev/snd devices (it's the trailing '+') and if this isn't something new in for the driver (it isn't present in the wiki example).


I laugh, yet the joke is on me

Offline

#22 2013-02-27 04:29:34

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,975

Re: No Sound with Alsa

Well, lets dig in....

Is this a laptop, or a desktop?  If it is a desktop, the speakers are connected, turned on, and have power (if required), right?

What are the outputs of
aplay -l
and
aplay -L
??

Edit:  And for an evil little test, what happens with:
aplay < /dev/urandom
.... You can kill that last one with ctrl-c   tongue

Last edited by ewaller (2013-02-27 04:31:58)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#23 2013-02-27 18:53:05

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: No Sound with Alsa

Here you go,


1. It's a desktop, and the speakers are plugged in and receiving power.

2. aplay -l gives

**** 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

3.  aplay -L gives

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, ALC892 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output

4. aplay < /dev/urandom gives

Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono

I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

#24 2013-02-27 21:53:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,975

Re: No Sound with Alsa

It looks like your Alsa output is going to the PulsaAudio driver.  This allows programs that only know Alsa to work with PA.

But, from post #18, PulseAudio is not running.  So....

Do you want to use PulseAudio?  If so, it needs to be started.

If not,  You need to configure Alsa to use an output driver that talks to your Analog Hardware (Card 0, Device 0)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#25 2013-02-27 22:02:35

AlecB
Member
Registered: 2013-01-26
Posts: 114

Re: No Sound with Alsa

When I try to start pulseaudio, I get

W: [pulseaudio] core-util.c: Failed to open configuration file '/home/alec/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied

My speakers still just give static. Loud static.

Last edited by AlecB (2013-02-27 22:08:23)


I believe in Christianity as I believe that the sun has risen: not only because I see it, but because by it I see everything else.
C. S. Lewis

Offline

Board footer

Powered by FluxBB