You are not logged in.
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
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
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
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
Use tab complete after loginctl session-status for your session number...
Offline
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
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
Wouldn't loginctl list-sessions show what number his session is?
I laugh, yet the joke is on me
Offline
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).
Offline
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
pacman -S bash-completion
or just use zsh
Offline
Yeah, that is a wee bit simpler, eh.
I laugh, yet the joke is on me
Offline
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
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
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
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
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
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
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.
Offline
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
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
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
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:
I laugh, yet the joke is on me
Offline
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
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
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
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
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
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
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
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
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