Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I did it again - I broke sound on my system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
LucaSpiller
Apprentice
Apprentice


Joined: 10 Sep 2004
Posts: 188
Location: Censorship Land (aka England)

PostPosted: Sun Feb 20, 2005 2:49 pm    Post subject: I did it again - I broke sound on my system Reply with quote

When I first started using Gentoo about 3 months ago I got everything working nicely, sound worked fine - until I ran KDE for the first time it is. After that it just gave up, no matter what I did no matter what I tried it just would not work.

Over half-term I decided to start a new Gentoo installation, something more optimised and hopefully to get sound working. I tried the Stage 1 over Stage 3 method and it all worked fine (except udev, but devfs will do). I decided to give a nitro kernel a shot to hopefully get that little bit more out of my system. I then followed the ALSA guide on the wiki and it worked.

I couldn't really live with just a terminal so I emerged kde. I was a bit nervous at first because this is what broke it before, but this time all seemed fine. I managed to get everything working nicely and had no problems at all. I didn't really like the basic KDE theme and options so I copied all of my old config files over for KDE (just ~/ stuff) and then it happened again. Sound just gave up. I have tried everything, it won't even work as root without KDE (or even X) running so it must have caused some sort of system wide change, but how? Doesn't KDE just run with the users privelidges?

Any ideas because I don't really want to reinstall the whole system again. :x

If this is of any use, whenever I change the sound options in KDE I get a message saying that knotify has crashed, and running cat /dev/dsp or /dev/sound/dsp outputs a load of '~'.
_________________
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::
Back to top
View user's profile Send private message
theDreamer
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2003
Posts: 118

PostPosted: Sun Feb 20, 2005 5:10 pm    Post subject: information Reply with quote

supply information about your machine hardware and linux information (versions).
_________________
Cheers,
Nir Dremer
www.dremer.org
Back to top
View user's profile Send private message
LucaSpiller
Apprentice
Apprentice


Joined: 10 Sep 2004
Posts: 188
Location: Censorship Land (aka England)

PostPosted: Fri Feb 25, 2005 5:39 pm    Post subject: Reply with quote

Well I don't really know how that will help because it is definately a configuration problem, but here you are anyway:

Athlon XP 2600+
512mb DDR memory
PC Chips M848A Rev. 2.1 - Onboard Sis 7012 chipset (intel8x0 kernel module)

Install from Gentoo 2003.3 Stage 1 over 3 - used a stage 3 tarball over existing installation
Linux 2.6.11-rc4-nitro1 "Do Androids Dream of Electric Sheep?"
KDE and Alsa stuff installed wrote:

kdebase-3.3.2-r1
kdegames-3.3.2
kdemultimedia-3.3.2
kdeartwork-3.3.2
arts-1.3.2
kdegraphics-3.3.2-r2
kdelibs-3.3.2-r2
kde-i18n-3.3.2
kde-env-3-r3
media-libs/alsa-lib-1.0.7
media-libs/alsa-oss-1.0.7
media-sound/alsa-utils-1.0.6
media-sound/alsa-headers-1.0.8_rc1
media-sound/alsaplayer-0.99.76

emerge info wrote:
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.11-rc4-nitro1-Do_Androids_Dream_of_Electric_Sheep? i686)
=================================================================
System uname: 2.6.11-rc4-nitro1-Do_Androids_Dream_of_Electric_Sheep? i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 16 2005, 13:01:06)]
dev-lang/python: 2.3.4-r1
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr ftp://ftp.rhnet.is/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://gentoo.tiscali.nl/gentoo/ ftp://ftp.tiscali.nl/pub/mirror/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://mirror.nutsmaas.nl/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow X acpi alsa apm arts avi berkdb bitmap-fonts crypt cups curl directfb emboss encode f77 fam font-server foomaticdb fortran gdbm gif gpm gtk gtk2 guile imagemagick imlib ipv6 ithreads jpeg kde ldap libg++ libwww mad mikmod mmx motif mpeg ncurses nls nptl nvidia oggvorbis opengl oss pam pdflib perl png pthreads python qt quicktime readline samba sdl spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib linguas_en_GB"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS


Is there anything else required?
_________________
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Fri Feb 25, 2005 6:57 pm    Post subject: Reply with quote

I'm gonna say this. your problem was in one of those configuration files you copied over. You might be able to post them and someone can tell you where the problem is. Its also possible deleting them then emerging kde again will work (it may not). I don't know what the problem is or how to fix it but PC troubleshooting process tells me look at the last thing changed before problem occur, and that's what you said you did so it's in one of those files somewhere.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
aethyr
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1085
Location: NYC

PostPosted: Fri Feb 25, 2005 7:59 pm    Post subject: Reply with quote

Try this:

Reboot your machine directly to the console (do not allow it to go into kdm/gdm/xdm or whatever).

Check your sound levels with alsamixer (make sure no channels are muted).

Try doing something like "cat /dev/ramdom > /dev/dsp" (make sure you turn down the volume on your speakers, it's pretty harsh). Instead, you could try using a command-line player like mpg123 to play an mp3.

If that works, then your sound is OK and it's just KDE futzing with it.

[edit] Check out these potentially helpful posts!
https://forums.gentoo.org/viewtopic-p-2127098.html#2127098
https://forums.gentoo.org/viewtopic-p-2129256.html#2129256 <-- especially this one by jago25_98

Ideas for fixing it if that is the case: KDE could be changing volume levels, muting channels, switching your sound server (i.e. arts problems), etc... I don't use KDE, so I'm not sure what the problem could be, but that would be how I'd go about troubleshooting it.

However, for an easy fix, if the sound works before you start KDE, and worked before you copied your configuration files over, I'd try removing all the KDE config files (~/.kde*, I don't know if there are others), and logging into KDE again.

If that doesn't work, then it's possible permissions on your sound devices got changed. For comparison, here's what mine look like:
Code:
lrwxrwxrwx  1 root   root        11 Feb 20 12:18 audio -> sound/audio
lrwxrwxrwx  1 root   root        11 Feb 20 12:18 mixer -> sound/mixer
lrwxrwxrwx  1 root   root        10 Feb 20 12:18 adsp -> sound/adsp
lrwxrwxrwx  1 root   root         9 Feb 20 12:18 dsp -> sound/dsp
lrwxrwxrwx  1 root   root        15 Feb 20 12:18 sequencer -> sound/sequencer
lrwxrwxrwx  1 root   root        16 Feb 20 12:18 sequencer2 -> sound/sequencer2

$ ll /dev/sound/
total 0
crw-------  1 aethyr root 14, 12 Feb 20 12:18 adsp
crw-------  1 aethyr root 14,  4 Feb 20 12:18 audio
crw-------  1 aethyr root 14,  3 Feb 20 12:18 dsp
crw-------  1 aethyr root 14,  0 Feb 20 12:18 mixer
crw-------  1 aethyr root 14,  1 Feb 20 12:18 sequencer
crw-------  1 aethyr root 14,  8 Feb 20 12:18 sequencer2

$ ll /dev/snd/
total 0
crw-------  1 aethyr root 116,  0 Feb 20 12:18 controlC0
crw-------  1 aethyr root 116,  8 Feb 20 12:18 midiC0D0
crw-------  1 aethyr root 116, 24 Feb 20 12:18 pcmC0D0c
crw-------  1 aethyr root 116, 16 Feb 20 12:18 pcmC0D0p
crw-------  1 aethyr root 116, 17 Feb 20 12:18 pcmC0D1p
crw-------  1 aethyr root 116, 18 Feb 20 12:18 pcmC0D2p
crw-------  1 aethyr root 116, 19 Feb 20 12:18 pcmC0D3p
crw-------  1 aethyr root 116,  1 Feb 20 12:18 seq
crw-------  1 aethyr root 116, 33 Feb 20 12:18 timer
Back to top
View user's profile Send private message
LucaSpiller
Apprentice
Apprentice


Joined: 10 Sep 2004
Posts: 188
Location: Censorship Land (aka England)

PostPosted: Wed Mar 02, 2005 10:40 pm    Post subject: Reply with quote

I have been busy with coursework, and XP removing Grub didn't help so I haven't been able to try any of the suggestions until now. Thanks, but unfortunately they didn't help me.

When I ran "cat /dev/ramdom > /dev/dsp" I got nothing from my speakers. I even ran "cat /dev/dsp" at the same time, but just got ~'s again. "cat /dev/random" on its own doesn't really produce much so I tried catting a load of other things to "/dev/dsp" and "/dev/sound/dsp", but got the same results.

The permissions seemed slightly screwed up, so I tried changing them but it wouldn't change. :x
Quote:
fe04 ~ # ls -l /dev/dsp
lr-xr-xr-x 1 root root 9 Mar 2 21:43 /dev/dsp -> sound/dsp
fe04 ~ # chmod 777 /dev/dsp
fe04 ~ # ls -l /dev/dsp
lr-xr-xr-x 1 root root 9 Mar 2 21:43 /dev/dsp -> sound/dsp


The permissions on the "/dev/sound/" stuff seemed ok though:
Quote:
fe04 ~ # ls -l /dev/sound
total 0
crwxrwxrwx 1 root audio 14, 12 Jan 1 1970 adsp
crwxrwxrwx 1 root audio 14, 4 Jan 1 1970 audio
crwxrwxrwx 1 root audio 14, 3 Jan 1 1970 dsp
crwxrwxrwx 1 root audio 14, 0 Jan 1 1970 mixer


------------------------

A while later...

Ok I have done some more experimenting and when I try to run alsaplyer I get a load of error messages:
Quote:
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave
snd_pcm_open: Permission denied (plug:dmix)
Failed to initialize plugin!
Failed to register plugin: /usr/lib/alsaplayer/output/libalsa_out.so
Failed to load output plugin "alsa". Trying defaults.
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave
snd_pcm_open: Permission denied (plug:dmix)
Failed to initialize plugin!
/usr/lib/alsaplayer/output/libalsa_out.so failed to load
error opening /dev/dsp
Failed to initialize plugin!
/usr/lib/alsaplayer/output/liboss_out.so failed to load
NOTE: THIS IS THE NULL PLUGIN. YOU WILL NOT HEAR SOUND!!
alsaplayer interrupted by signal 2


Being unable to open /dev/dsp is probably because of permission problems, the permissions on /usr/lib/alsaplayer/ stuff were also screwed so I changed them. I then tried it again, and got no error messages - but also didn't get any sound.
_________________
:: Luca :: Mac Fag :: Original Macbook, 2g RAM :: Closet Linux user (seasoned with salt and pepper) :: C2D E4400 @ 2ghz, 4g RAM (only 3.2g detected under 64bit...), Nvidia 9600GSO ::
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum