Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Very Strange sound problem G3 iBook [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
hugerobot
n00b
n00b


Joined: 31 Dec 2004
Posts: 6

PostPosted: Fri Dec 31, 2004 6:31 am    Post subject: Very Strange sound problem G3 iBook [SOLVED] Reply with quote

I just installed Gentoo 2004.3, kernel 2.6.9r9 on my 900mhz G3 iBook

I am in the process of installing and configuring things. Xorg was the first challenge. It is now working great.

Sound has been causing me all kinds of trouble, and I have scoured these forums, and google, for answers, but not having any luck.

Here's the problem:

1. lspci | grep -i audio returns nothing.
2. The alsasound service does not start because of driver/mixer issues.
3. XMMS returns errors that ALSA isnt configured correctly.

So, I installed Gaim to IM a linux buddy for help, and I couldnt believe it, but the sounds for events in Gaim work!!!!

I am dumbfounded. How can this be?

Can someone explain to me what is going on?

I realize that I am not putting config files, log output, etc in this message, but anyone who has wrestled with sound will have seen the same things I'd post in one form or another. I'm really hoping that what I explained above will be familiar to someone, and I can get XMMS and other applications to work the same way Gaim is working!

Thanks
Rob


Last edited by hugerobot on Tue Jan 04, 2005 12:38 am; edited 1 time in total
Back to top
View user's profile Send private message
tbfr
n00b
n00b


Joined: 03 Jan 2004
Posts: 26

PostPosted: Fri Dec 31, 2004 5:10 pm    Post subject: Reply with quote

just to make sure:
Sound card support -> PowerMac DMA sound support is disabled?
ALSA PowerMac devices --> PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest) is enabled?
Open Sound System --> Open Sound System (DEPRECATED) is disabled?

i have a 600mhz g3 ibook and sound works fine but i had had this problem with xmms too (this was with 2.5.x, can't remember what i did any more). btw, the sound card isn't listed in the lspci output.
Back to top
View user's profile Send private message
hugerobot
n00b
n00b


Joined: 31 Dec 2004
Posts: 6

PostPosted: Fri Dec 31, 2004 6:38 pm    Post subject: Reply with quote

tbfr wrote:
just to make sure:
Sound card support -> PowerMac DMA sound support is disabled?
ALSA PowerMac devices --> PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest) is enabled?
Open Sound System --> Open Sound System (DEPRECATED) is disabled?

i have a 600mhz g3 ibook and sound works fine but i had had this problem with xmms too (this was with 2.5.x, can't remember what i did any more). btw, the sound card isn't listed in the lspci output.


Thanks tbfr,

However, when I enabled ALSA PowerMac devices --> PowerMac blah blah and rebuilt the kernel , it caused a kernel panic. The only way I could fix the problem was to boot from the LiveCD, and rebuild the kernel without it.

Still in the same boat. Hope someone out there knows what to do to fix this.
Back to top
View user's profile Send private message
hugerobot
n00b
n00b


Joined: 31 Dec 2004
Posts: 6

PostPosted: Sat Jan 01, 2005 1:45 am    Post subject: Reply with quote

Ok... I am even more confused!

Xine works beautifully... Video and sound are as good as they can be.

The sound in Gaim continues to work flawlessly.

But I still get errors when I start the sound service, and Xmms still gives me errors when I attempt to play an mp3.

I'm gonna post some relevant configuration stuff this time.

First, the XMMS error:
Code:
Couldn't open audio
Please check that:
Your soundcard is configured properly
You have the correct output plugin selected
No other program is blocking the soundcard


The XMMS config:
Code:
Output Plugin:
ALSA 1.2.10 output plugin [libALSA.so]
Configure:
Device Settings->Audio Device:
Default
'Use software volume control' is unchecked
Mixer device: PCM

Advanced Settings
Buffer time (ms) 500
Period time (ms) 50
Mmap mode is checked


/etc/modules.d/alsa
Code:
alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 dmasound_pmac
alias sound-slot-0 snd-card-0

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm
alias /dev/midi snd-seq-oss

options snd cards_limit=1


/etc/modules.autoload.d/kernel-2.6:
Code:
airport
hermes
orinoco
vfat
usbserial
visor
i2c-keywest
soundcore
dmasound_core
dmasound_pmac


Output of /etc/init.d/alsasound restart:
Code:
* Loading ALSA modules...
* Loading: snd-card-0...
* ERROR: Failed to load necessary drivers
* Restoring Mixer Levels...
* No mixer config in /etc/asound.state, you have to unmute your card!


Lastly, relevant kernel config:
Code:
#
# Sound
#
CONFIG_SOUND=m
CONFIG_DMASOUND_PMAC=m
CONFIG_DMASOUND=m

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
# CONFIG_SND_SEQUENCER_OSS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set



Hope I've covered it all... Let me know if there's anything else you'd like me to post and I will.

I just want to play a MP3!!! :D
Back to top
View user's profile Send private message
doctor_god
n00b
n00b


Joined: 01 Jan 2005
Posts: 6

PostPosted: Sat Jan 01, 2005 8:33 am    Post subject: Reply with quote

hugerobot wrote:


...snip...

/etc/modules.autoload.d/kernel-2.6:
Code:
airport
hermes
orinoco
vfat
usbserial
visor
i2c-keywest
soundcore
dmasound_core
dmasound_pmac




Try taking out the last two lines, dmasound_core and dmasound_pmac. Those are the OSS drivers for your soundcard. If they're loaded, the ALSA drivers won't be able to load. If GAIM and Xine are working, they're most likely using the OSS driver. XMMS has an output plugin for OSS as well, if you wanted to try it, but I'd recommend just removing those lines and letting ALSA take over.
Back to top
View user's profile Send private message
hugerobot
n00b
n00b


Joined: 31 Dec 2004
Posts: 6

PostPosted: Sat Jan 01, 2005 2:46 pm    Post subject: Reply with quote

if I take them out, I am still going to have the dmasound_pmac referenced in /etc/modules.d/alsa as shown below:

/etc/modules.d/alsa
Code:
alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 dmasound_pmac
alias sound-slot-0 snd-card-0


What module should I use in this file?
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Sat Jan 01, 2005 6:01 pm    Post subject: Reply with quote

hugerobot wrote:
Code:
alias snd-card-0 dmasound_pmac

This loads the OSS sound drivers. You should replace dmasound_pmac with snd-powermac in order to use ALSA.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
hugerobot
n00b
n00b


Joined: 31 Dec 2004
Posts: 6

PostPosted: Tue Jan 04, 2005 12:38 am    Post subject: Reply with quote

Ok... I got it.

For those of you who go on this journey in the future, all of the answers exist in forum posts and howto's that have already been written... however there are a few things that I discovered the hard way that I would like to document here:

1. Build and install the sound kernel stuff as modules. Building the various pieces into the kernel caused problems that ranged from no sound to kernel panics. It also makes testing easier.

2. If you are using an ibook that that uses the powermac snapper drivers (snd-powermac) do not autoload any of the other modules, except for soundcore!!! This was the hardest part for me to understand.

Here is my /etc/modules.autolad.d/kernel-2.6:

Code:
#Sound
i2c-keywest
soundcore
snd-powermac


Anyway, maybe this was described clearly in other forum discussions, but they were definitely the roots of the problems I was having.

Thanks to everyone
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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