Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Sound on Gnome [solved]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
20 posts • Page 1 of 1
Author
Message
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

Sound on Gnome [solved]

  • Quote

Post by Reiver Fluffi » Wed Nov 16, 2005 10:40 pm

Hey there guys, wonder if any of you can help!

I have problems getting sound to work in gnome.

I have configured alsa, everything is apparently ok (cat /dev/urandom > /dev/dsp gives the static as mentioned in the ALSA guide), however I am getting nothing from sound in gnome. I have tried to test sounds from the gnome sound preferences, but get nothing. Any suggestions?

Cheers
Last edited by Reiver Fluffi on Thu Nov 17, 2005 8:46 pm, edited 1 time in total.
Top
MannyCalavera
n00b
n00b
Posts: 39
Joined: Sun Nov 13, 2005 12:12 am
Location: New Zealand
Contact:
Contact MannyCalavera
Website

  • Quote

Post by MannyCalavera » Wed Nov 16, 2005 11:08 pm

Im having the same sort of problem (see my last post "Choppy sound in Gnome")

What sound card are you using?

Let me know if you find out anything useful!
Top
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

  • Quote

Post by Reiver Fluffi » Wed Nov 16, 2005 11:25 pm

MannyCalavera wrote:Im having the same sort of problem (see my last post "Choppy sound in Gnome")

What sound card are you using?

Let me know if you find out anything useful!
It's an onboard nVidia nForce3 250Gb AC'97 audio controller
Top
MannyCalavera
n00b
n00b
Posts: 39
Joined: Sun Nov 13, 2005 12:12 am
Location: New Zealand
Contact:
Contact MannyCalavera
Website

  • Quote

Post by MannyCalavera » Wed Nov 16, 2005 11:30 pm

Thats exactly the same as mine.

OOS works, but the sound makes a loud click when I start/resume playing a file.

I think there maybe some settings in ~/.asound that need changing.
Top
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

  • Quote

Post by Reiver Fluffi » Wed Nov 16, 2005 11:37 pm

MannyCalavera wrote:Thats exactly the same as mine.

OOS works, but the sound makes a loud click when I start/resume playing a file.

I think there maybe some settings in ~/.asound that need changing.
May I ask how you set OSS?
Top
MannyCalavera
n00b
n00b
Posts: 39
Joined: Sun Nov 13, 2005 12:12 am
Location: New Zealand
Contact:
Contact MannyCalavera
Website

  • Quote

Post by MannyCalavera » Wed Nov 16, 2005 11:45 pm

Just using "multimedia systems selector" in gnome.
Top
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

  • Quote

Post by Reiver Fluffi » Thu Nov 17, 2005 12:17 am

Hmmmm, testing ALSA gives me an output, still no sounds in gnome though!
Top
jeb0921
n00b
n00b
Posts: 2
Joined: Sat Jan 08, 2005 3:23 pm

  • Quote

Post by jeb0921 » Thu Nov 17, 2005 12:55 am

Same problem here with the exact same chipset.

:cry:
Top
juniper
l33t
l33t
User avatar
Posts: 986
Joined: Fri Oct 22, 2004 12:03 am
Location: we the north

  • Quote

Post by juniper » Thu Nov 17, 2005 3:16 am

i think you might have to set something in gconf -> system -> gstreamer -> 0.8

?

j
Top
MannyCalavera
n00b
n00b
Posts: 39
Joined: Sun Nov 13, 2005 12:12 am
Location: New Zealand
Contact:
Contact MannyCalavera
Website

  • Quote

Post by MannyCalavera » Thu Nov 17, 2005 7:20 am

If your having the same problem as I was having all the information you need is here:

http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix

In short though, you need to create this file "~/.asoundrc"

and put this in it:

pcm.nforce-hw {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "nforce"
}
pcm.nforce {
type dmix
ipc_key 1234
ipc_perm 0660
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 4096
#rate 44100
rate 48000
}
}
ctl.nforce-hw {
type hw
card 0
}

Now, Emerge gnome-media (if its not already), go into configuration editor (gstreamer-properties) and set Audio-Sink's in System/GStreamer/8.0/Default
value to alsasink device=dmix

Hope this helps somebody.....
Top
Mo6eB
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Mon Oct 25, 2004 5:51 pm
Location: Bulgaria

  • Quote

Post by Mo6eB » Thu Nov 17, 2005 8:00 am

MannyCalavera: NO! Alsa has dmix enabled and functioning by default with no .asoundrc since 1.0.9. This is not the problem.
Also, in the config you posted, you have made the default pcm be dmixed and didn't specify a pcm named "dmix", if you set the device in gstreamer to "dmix", it will just use the dmix plug-in with default options, not the dmixed device you created. To use that you have to set the device to "default".

Reiver Fluffi: To enable OSS emulation in ALSA, you have to emerge alsa-driver with the OSS use-flag set. Since you have a /dev/dsp, which is the OSS device, you also have OSS emulation. Btw, if you want to test ALSA playback, use

Code: Select all

cat /dev/urandom | aplay
Using

Code: Select all

cat /dev/urandom > /dev/dsp
tests OSS playback. If, however, you have ALSA, this will go through the OSS emulation layer and then be output normally by ALSA. One more thing - even though dmix is enabled by default, it does not work for apps using OSS. To use those, you have to stop all sound-producing programs and then start the app, or buy a SoundCard, that can do hardware mixing. Alternatively, you can use aoss, which works with almost all apps (mmaping support is a bit buggy). To start an OSS app through aoss, use

Code: Select all

aoss <app> <app arguments, if any>
Do not type the less-than and greater-than brackets.

Oh, and what do you mean by "Sounds don't work in GNOME"? Do you mean that you cannot listen to music, etc or do you mean that you cannot hear sounds from GNOME when you log-in, etc?
W:P
Top
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

  • Quote

Post by Reiver Fluffi » Thu Nov 17, 2005 11:12 am

Mo6eB wrote: etc or do you mean that you cannot hear sounds from GNOME when you log-in, etc?
Yeah that's what I am meaning. Even when I try to test the sound.

From terminal I use cat /dev/urandom > /dev/dsp, this gives me an output.

From gnome:
  • Desktop Menu>Multimedia Systems Systems: I get output when testing ALSA, but I get a "no pipeline" error when testing playback on OSS!
  • Desktop Menu>Sound: When I try to play any of the event sounds (wav) in the list, I get nothing.
RF

Please excuse my naivity, i've been using Mandriva for far too long :)
Top
c0bblers
Guru
Guru
User avatar
Posts: 403
Joined: Fri Mar 28, 2003 11:27 pm

  • Quote

Post by c0bblers » Thu Nov 17, 2005 2:05 pm

Do you have "esd" in your USE flags? Gnome system sounds wont work without it.
Top
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

  • Quote

Post by Reiver Fluffi » Thu Nov 17, 2005 3:28 pm

c0bblers wrote:Do you have "esd" in your USE flags? Gnome system sounds wont work without it.
I haven't added any flags as such. All I can tell you is that I used a stage3 install for i686 and genkernel, not sure what the default flags are in make.default (didn't know much about the flags and make.defaults file until today (after some reading). If the gnome and GTK flags are present in make.defaults, would it be right to assume that esd would be there as well? Not at home at the moment, so I can't get access at the moment.

Cheers
RF

Please excuse my naivity, i've been using Mandriva for far too long :)
Top
olger901
l33t
l33t
Posts: 625
Joined: Thu Mar 17, 2005 7:15 pm

  • Quote

Post by olger901 » Thu Nov 17, 2005 3:47 pm

Solution to this is quite easy.

1 edit /etc/make.conf and add esd to the USE flags.
2 re-emerge gnome-session and libgnome
3 Go to Desktop -> Preferences -> Sound and thick "Enable soundserver at startup" and "Sound for events"
4 Restart gnome and you should hear sound
Top
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

  • Quote

Post by Reiver Fluffi » Thu Nov 17, 2005 3:51 pm

olger901 wrote:Solution to this is quite easy.

1 edit /etc/make.conf and add esd to the USE flags.
2 re-emerge gnome-session and libgnome
3 Go to Desktop -> Preferences -> Sound and thick "Enable soundserver at startup" and "Sound for events"
4 Restart gnome and you should hear sound
Will give it a go tonight!

Cheers
RF

Please excuse my naivity, i've been using Mandriva for far too long :)
Top
fredor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Mon Oct 13, 2003 6:05 pm
Location: UK

  • Quote

Post by fredor » Thu Nov 17, 2005 7:49 pm

Had the same problem of no system sounds in Gnome.
Re-emergeing 'gnome-session libgnome' with the 'esd' USE flag corrected the problem.
Many thanks.
Top
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

  • Quote

Post by Reiver Fluffi » Thu Nov 17, 2005 7:49 pm

esd is already in use.defaults and has been used for compiling already, here is output from emerge --info:

Code: Select all

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups eds emboss encode esd exif expat fam foomaticdb fortran gdbm gif glut gnome gnutls gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Where do we go from here?
RF

Please excuse my naivity, i've been using Mandriva for far too long :)
Top
fredor
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 84
Joined: Mon Oct 13, 2003 6:05 pm
Location: UK

  • Quote

Post by fredor » Thu Nov 17, 2005 7:56 pm

I had the 'esd' USE flag but somehow it hadn't been used in the compiling of 'gnome-session' and 'gnomelib'.
I suggest you re-emerge them.
After doing that I had to run 'ldconfig' to correct a library problem.
Top
Reiver Fluffi
n00b
n00b
User avatar
Posts: 13
Joined: Wed Nov 16, 2005 1:56 pm
Location: Bo'ness, Scotland

  • Quote

Post by Reiver Fluffi » Thu Nov 17, 2005 8:45 pm

Tried this and it worked:

Code: Select all

USE="esp" emerge gnome-session libgnome
However I emerged it again without declaring the use flag, still get sound! (although I had to emerge gnome-audio to get some of the sounds).

Cheers
RF

Please excuse my naivity, i've been using Mandriva for far too long :)
Top
Post Reply

20 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy