diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2012-May/015326.html | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-master.tar archives-master.tar.gz archives-master.tar.bz2 archives-master.tar.xz archives-master.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/2012-May/015326.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-May/015326.html | 321 |
1 files changed, 321 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-May/015326.html b/zarb-ml/mageia-dev/2012-May/015326.html new file mode 100644 index 000000000..ee13424e0 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-May/015326.html @@ -0,0 +1,321 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] no sound + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20no%20sound&In-Reply-To=%3C4FA56DE0.6010603%40earthlink.net%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="015345.html"> + <LINK REL="Next" HREF="015327.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] no sound</H1> + <B>Felix Miata</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20no%20sound&In-Reply-To=%3C4FA56DE0.6010603%40earthlink.net%3E" + TITLE="[Mageia-dev] no sound">mrmazda at earthlink.net + </A><BR> + <I>Sat May 5 20:13:52 CEST 2012</I> + <P><UL> + <LI>Previous message: <A HREF="015345.html">[Mageia-dev] no sound +</A></li> + <LI>Next message: <A HREF="015327.html">[Mageia-dev] upstream KDE 283366 (was: no sound) +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#15326">[ date ]</a> + <a href="thread.html#15326">[ thread ]</a> + <a href="subject.html#15326">[ subject ]</a> + <a href="author.html#15326">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On 2012/05/05 13:37 (GMT+0100) Colin Guthrie composed: + +><i> 'Twas brillig, and Felix Miata did gyre and gimble: +</I> +>>><i> Can you clarify "sound does not work"? +</I> +>><i> Nothing but background hum coming from connected AV amp connected speakers. +</I> +>><i> 00:06.0 Multimedia audio controller: nVidia Corporation NForce2 AC97 +</I>>><i> Audio Controler (MCP) (rev a1) +</I> +>><i> If so please do attach the output from "pacmd ls" +</I> +>><i> No package named pacmd. +</I>>><i> # urpmi pulseaudio-utils +</I>>><i> ... +</I>>><i> # pacmd ls +</I>>><i> No PulseAudio daemon running, or not running as session daemon. +</I> +><i> Did you run it as root? If so, run it as a regular user instead. +</I> +Doesn't help as user. + +><i> You may +</I>><i> with to run "pactl stat" first +</I> +First before what? As root on tty2 before logging in as user in KDM? + +><i> if you are in a console as this will +</I>><i> trigger an autospawn of pulseaudio if it's not already running (pacmd +</I>><i> does not trigger autospawn as it's a debugging tool not a regular client). +</I> +>><i> # startx +</I> +><i> Is this how you start X always? +</I> +Not always, but as root often, and on fresh installs and testing +alpha/beta/RCs, more often than not at least initially following completing +of an install. I rarely boot a test system directly into runlevel 5, and +never on first boot, so as to fix kdmrc, Xresources, fstab, hosts, +bootsplash, smb.conf, resolv.conf, menu.lst and other things that are broken +for my environment as initialized. + +><i> If so you should know from previous +</I>><i> discussions that this behaviour isn't really officially recommended as +</I>><i> it does not allow for proper user session tracking and thus has various +</I>><i> permissions related issues. It *should* work most of the time, but it is +</I>><i> highly recommended that you use a proper DM to login. +</I> +<A HREF="https://bugs.mageia.org/show_bug.cgi?id=5760">https://bugs.mageia.org/show_bug.cgi?id=5760</A> and other reasons during release +next evaluation and troubleshooting make an xdm an annoying time waster that +I typically avoid except when testing the xdm itself. + +><i> If this is a simple permissions issue, then you can test by running +</I>><i> "loginctl" before startx and noting if your sessions is listed. If it +</I>><i> is, it should have a number next to it (e.g. 1) and if it is listed you +</I>><i> can do: "loginctl session-status 1" (or whatever the number). This +</I>><i> should confirm that the session is active. When the session is active +</I> +# loginctl + SESSION UID USER SEAT + 16 0 root seat0 + 17 2000 tst2000 seat0 + 18 0 root seat0 + +# loginctl session-status 17 +17 - tst2000 (2000) + Since: Sat, 05 May 2012 13:37:34 -0400; 9min ago + Leader: 4855 (login) + Seat: seat0; vc4 + TTY: tty4 + Service: login; type tty; class user + Active: no + CGroup: /user/tst2000/17 + Γö£ 4855 login -- tst2000 + Γöö 4859 -bash + +><i> your user should be listed in the ACL for the sound device nodes +</I>><i> (getfacl /dev/snd/pcm*). +</I> +# getfacl /dev/snd/pcm* +# file: dev/snd/pcmC0D0c +# owner: root +# group: audio +user::rw- +group::rw- +mask::rw- +other::--- + +# file: dev/snd/pcmC0D0p +# owner: root +# group: audio +user::rw- +group::rw- +mask::rw- +other::--- + +# file: dev/snd/pcmC0D1c +# owner: root +# group: audio +user::rw- +group::rw- +mask::rw- +other::--- + +# file: dev/snd/pcmC0D2p +# owner: root +# group: audio +user::rw- +group::rw- +mask::rw- +other::--- + +><i> After issuing startx, try the same commands and, in particular, make +</I>><i> sure your session is still active. I've tried to ensure that it is kept +</I>><i> active (i.e. there is no VT switch), but this isn't 100% reliable. +</I> +# loginctl + SESSION UID USER SEAT + 16 0 root seat0 + 17 2000 tst2000 seat0 + +# loginctl session-status 17 +17 - tst2000 (2000) + Since: Sat, 05 May 2012 13:37:34 -0400; 1min 21s ago + Leader: 4855 (login) + Seat: seat0; vc4 + TTY: tty4 + Service: login; type tty; class user + Active: no + CGroup: /user/tst2000/17 + Γö£ 4855 login -- tst2000 + Γö£ 4859 -bash + Γö£ 4907 /bin/sh /usr/bin/startx + Γö£ 4928 xinit /etc/X11/xinit/xinitrc -- vt4 -auth /home/ts... + Γö£ 4929 /etc/X11/X :0 vt4 -auth /home/tst2000/.serverauth.... + Γö£ 4932 /usr/bin/ck-xinit-session /bin/sh -c #!/bin/sh exe... + Γö£ 4960 /usr/bin/dbus-launch --exit-with-session --sh-synt... + Γö£ 4961 /usr/bin/dbus-daemon --fork --print-pid 5 --print-... + Γö£ 4995 /bin/sh /usr/bin/startkde + Γö£ 5064 /usr/lib/kde4/libexec/start_kdeinit +kcminit_start... + Γö£ 5065 kdeinit4: kdeinit4 Running... + Γö£ 5066 kdeinit4: klauncher [kdeinit] --fd=9 + Γö£ 5068 kdeinit4: kded4 [kdeinit] + Γö£ 5070 /usr/lib/gam_server + Γö£ 5075 kdeinit4: kglobalaccel [kdeinit] + Γö£ 5113 kwrapper4 ksmserver + Γö£ 5117 kdeinit4: ksmserver [kdeinit] + Γö£ 5138 kwin -session 10d1376e6300013362339230000002043000... + Γö£ 5173 /usr/bin/kactivitymanagerd + Γö£ 5177 /usr/bin/knotify4 + Γö£ 5179 kdeinit4: plasma-desktop [kdeinit] + Γö£ 5183 /usr/bin/kuiserver + Γö£ 5192 kdeinit4: kaccess [kdeinit] + Γö£ 5199 kdeinit4: krunner [kdeinit] + Γö£ 5206 kdeinit4: kmix [kdeinit] -session 10d1376e63000133... + Γö£ 5208 kdeinit4: konsole [kdeinit] -session 10d1376e63000... + Γö£ 5209 /usr/bin/pam-panel-icon + Γö£ 5215 /usr/lib/kde4/libexec/polkit-kde-authentication-ag... + Γö£ 5216 kdeinit4: klipper [kdeinit] + Γö£ 5218 /bin/bash + Γö£ 5220 /bin/bash + Γöö 5227 /sbin/pam_timestamp_check -d root + +><i> startx should print out warnings when things don't work however. +</I> +>><i> (KDE menu has no selection to configure computer. Without it there's no +</I>>><i> way I know how to manage systemd like I could with sysvinit.) +</I> +><i> I've no idea about this sorry. You should report it as a separate bug tho'. +</I> +This didn't happen on all three installs, so I don't think I can tell what it +takes to reproduce. All three use the same workspace exclusively, so +comparing them is awkward. + +>><i> # mcc +</I>>><i> bash: mcc: command not found +</I>>><i> # chkconfig --list +</I>>><i> ... +</I>>><i> alsa 0:off 1:off 2:off 3:off 4:off 5:off +</I>>><i> 6:off 7:off +</I>>><i> ... +</I>>><i> numlock 0:off 1:off 2:on 3:on 4:on 5:on +</I>>><i> 6:off 7:on +</I>>><i> partmon 0:off 1:off 2:off 3:off 4:off 5:off +</I>>><i> 6:off 7:off +</I>>><i> resolvconf 0:off 1:off 2:off 3:off 4:off 5:off +</I>>><i> 6:off 7:off +</I>>><i> ... +</I>>><i> sound 0:off 1:off 2:on 3:on 4:on 5:on +</I>>><i> 6:off 7:off +</I> +><i> In this case, the alsa+sound sysvinit scripts are fully overriden by +</I>><i> systemd so the chkconfig output is not actually relevant (see below for +</I>><i> my comments about the Troubleshooting section's outdated advice) +</I> +>><i> # systemctl list-unit-files +</I>>><i> alsa-restore.service static +</I>>><i> alsa-store.service static +</I>>><i> alsa.service masked +</I>>><i> ... +</I>>><i> sound.service masked +</I>>><i> ... +</I>>><i> sound.target static +</I>>><i> ... +</I>>><i> +</I>>><i> What to do? +</I> +><i> Yup that looks as expected. +</I> +><i> Try running the commands above to debug user permissions. I suspect this +</I>><i> is where the problem lies but I could be wrong. +</I> +><i> "pacmd ls" output from inside X should work fine as PA will have been +</I>><i> started by then and it won't need to be autospawned. +</I> +(Konsole) +$ pacmd ls +No PulseAudio daemon running, or not running as session daemon. + +(Konsole) +# pacmd ls +No PulseAudio daemon running, or not running as session daemon. +# systemctl list-unit-files | grep aud +# systemctl list-unit-files | grep pul +# systemctl list-unit-files | grep als +alsa-restore.service static +alsa-store.service static +alsa.service masked + +Was easier to figure out what is configured or misconfigured with sysvinit. +With systemd I have no idea how to figure out what's missing. + +I have to believe here there's a sound system dep not marked as such and so +not installed when no-suggests is set in urpmi.cfg before adding X and KDE to +a minimal install. :-( +-- +"The wise are known for their understanding, and pleasant +words are persuasive." Proverbs 16:21 (New Living Translation) + + Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! + +Felix Miata *** <A HREF="http://fm.no-ip.com/">http://fm.no-ip.com/</A> +</PRE> + + + + + + + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="015345.html">[Mageia-dev] no sound +</A></li> + <LI>Next message: <A HREF="015327.html">[Mageia-dev] upstream KDE 283366 (was: no sound) +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#15326">[ date ]</a> + <a href="thread.html#15326">[ thread ]</a> + <a href="subject.html#15326">[ subject ]</a> + <a href="author.html#15326">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |