Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound on a powerbook
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
kmarple1@hotmail.com
n00b
n00b


Joined: 04 Jun 2004
Posts: 50

PostPosted: Mon Jun 07, 2004 7:30 pm    Post subject: Sound on a powerbook Reply with quote

OK. I tried the how-to, and still no sound. Alsamixer gives an error, and grep returns nothing for audio devices. Please help me!
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Mon Jun 07, 2004 9:53 pm    Post subject: ALSA or OSS? Reply with quote

1) Are you running ALSA or OSS?
2) Does /dev/mixer or /dev/sound/mixer exist?

-Michael
Back to top
View user's profile Send private message
kmarple1@hotmail.com
n00b
n00b


Joined: 04 Jun 2004
Posts: 50

PostPosted: Tue Jun 08, 2004 5:24 am    Post subject: Reply with quote

Alsa--I think, and yes, both files are there.
Back to top
View user's profile Send private message
jsegel
n00b
n00b


Joined: 22 May 2004
Posts: 27
Location: Oakland, CA

PostPosted: Tue Jun 08, 2004 6:10 am    Post subject: Reply with quote

it could possibly be that alsamixer is still muted. run alsamixer, arrow keys adjust the levels and the "m" key willl mute or unute the various possible outputs.
however, it may or may not work still - i'm running a new alu-powerbook 1.5ghz and can only get sound out of the headphone jack, despite alsamixer saying it's coming out of the speakers!

still haven't managed to make any sound come out anywhere using jack-audio-connection-kit.
Back to top
View user's profile Send private message
kmarple1@hotmail.com
n00b
n00b


Joined: 04 Jun 2004
Posts: 50

PostPosted: Tue Jun 08, 2004 6:54 am    Post subject: Reply with quote

the error I mentioned: alsamixer: function snd_ctl_open for default: No suck device
Back to top
View user's profile Send private message
jsegel
n00b
n00b


Joined: 22 May 2004
Posts: 27
Location: Oakland, CA

PostPosted: Tue Jun 08, 2004 7:29 am    Post subject: Reply with quote

oops sorry, (sure would be helpful to have the initial posts readable while typing a response...)
here might be a couple things, i'm not sure which how-to you already read. i am pretty familiar with the alsa and jack world in x86 but having troubles with it in ppc myself.
first, i assume that you have snd-powermac module loaded and installed. second things are the i2c-core ones, like i2c-keywest. in my searches for answers to the jack problems, i read somewhere that setting the order of these loading is better wth snd-powermac first then the i2c ones.
next thing is: do you have an .asoundrc file in your user directory (or /etc if root)? it's a really simple file that shows alsa where to go basically.
basic one would be:
Code:

pcm.snd-powermac {
   type hw
   card 0
}
ctl.snd-powermac {
   type hw
   card 0
}
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Tue Jun 08, 2004 12:22 pm    Post subject: Reply with quote

my guess is that the module snd-powermac has not loaded OK.

Try
Code:
modprobe snd-powermac


and check /var/log/messages

Another thing to post is
Code:
strace -eopen alsamixer

Note you may have to emerge strace first!

I have problems on my powermac G5 and alsa. For me
Code:

strace -eopen alsamixer
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libncurses.so.5", O_RDONLY)  = 3
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/dev/urandom", O_RDONLY)          = 3
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3
open("/home/jas/.asoundrc", O_RDONLY)   = 3
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY)          = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDWR)      = -1 ENODEV (No such device)
open("/dev/snd/controlC0", O_RDONLY)    = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY)          = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDWR)      = -1 ENODEV (No such device)

alsamixer: function snd_ctl_open failed for default: No such device

Back to top
View user's profile Send private message
kmarple1@hotmail.com
n00b
n00b


Joined: 04 Jun 2004
Posts: 50

PostPosted: Tue Jun 08, 2004 11:36 pm    Post subject: Reply with quote

I do indeed get an error on modprobe snd-powermac saying no such device, but the /var/log/messages is HUGE, far too big to search through for it. It goes by the second from day 1.
Back to top
View user's profile Send private message
kmarple1@hotmail.com
n00b
n00b


Joined: 04 Jun 2004
Posts: 50

PostPosted: Tue Jun 08, 2004 11:58 pm    Post subject: Reply with quote

and the howto's were the gentoo alsa one and the powerbook linux one on this board.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Wed Jun 09, 2004 2:38 pm    Post subject: Reply with quote

Quote:
I do indeed get an error on modprobe snd-powermac saying no such device, but the /var/log/messages is HUGE, far too big to search through for it. It goes by the second from day 1.



I think you have some kind of debuging in your kernel config therefore you are getting many loggings in /var/log/messages. You need to to re-complile your kernel and take away the option (there may be more than one) that causes this excessive logging. So do
Code:
tail /var/log/messages

then search here on the forums for the relevant "debug" option to turn off.

In the mean time I think if you do
Code:

grep -i "PMAC"  /var/log/messages"


and look for a line like :
Code:
no PMac soundchip found
.

Then you have a similar problem to me, which I don't know how to solve (yet).
Back to top
View user's profile Send private message
kmarple1@hotmail.com
n00b
n00b


Joined: 04 Jun 2004
Posts: 50

PostPosted: Thu Jun 10, 2004 9:52 pm    Post subject: Reply with quote

yup. No PMac soundchip found :(
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Thu Jun 10, 2004 10:25 pm    Post subject: Reply with quote

What Apple machine (i.e ibook or powermac) do you have btw?
Back to top
View user's profile Send private message
kmarple1@hotmail.com
n00b
n00b


Joined: 04 Jun 2004
Posts: 50

PostPosted: Fri Jun 11, 2004 5:09 am    Post subject: Reply with quote

Powerbook G4 1.5 Ghz Aluminum 8)
Back to top
View user's profile Send private message
jsegel
n00b
n00b


Joined: 22 May 2004
Posts: 27
Location: Oakland, CA

PostPosted: Fri Jun 11, 2004 7:08 am    Post subject: Reply with quote

that's what i'm using.
do you have the i2c-keywest and i2c-dev modules loaded as well?
i can get sound out of the headphone jack, but no speakers. (plus can't get jack to work properly, but that's another thread.)
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Jun 11, 2004 11:27 am    Post subject: Reply with quote

Quote:
i2c-keywest and i2c-dev modules


I would presume that he has them built into the kernel like me. Does this have a bearing on things? I thought for instance one has to have
Code:
i2c-keywest

built into the kernel but perhaps this only applies to non laptop envirnoment, perhaps due to keyboard/mouse etc ...

I was wondring if you lot (with the powerbook 1.5 Mhz) could post some /proc related info

I'm looking for something similar to
Code:
cat /proc/device-tree/ht@0\,f2000000/pci@3/mac-io@7/i2s@10000/i2s-a@0/sound/compatible
'
which gives for me
Code:
AOAK2


See http://groups.google.fr/groups?hl=fr&lr=&ie=UTF-8&threadm=3A2BCCAA.8F3A5D5F%40wtal.de&rnum=1&prev=/groups%3Fhl%3Dfr%26lr%3D%26ie%3DUTF-8%26q%3D%252Fsound%252Fcompatible%26btnG%3DRechercher%26meta%3Dgroup%253Dlinux.debian.ports.powerpc

I don't know if this if of relevance yet.
Perhaps we need someone who has working sound on an ibook/powermac g4 to post this /proc infomation.

Also what kernel are you using, 2.4 or 2.6 since alsa is already in the 2.6 kernel. I use 2.6 kernel btw. One for thing have you tried the module
Code:
dmasound_pmac

instead (noting to remove all other sound related modules first) ?
Back to top
View user's profile Send private message
jsegel
n00b
n00b


Joined: 22 May 2004
Posts: 27
Location: Oakland, CA

PostPosted: Fri Jun 11, 2004 5:24 pm    Post subject: Reply with quote

using kernel 2.6.4-pegaso
i think the i2c-core must be compiled as modules on laptops due to many possible input choices? i may be wrong. but there is sound-forum talk of making sure that the snd-powermac module loads before these.

anyway
Code:
 cat @f2000000/mac-io@17/i2s@10000/i2s-a@10000/sound/compatible

returns
Code:
AOAKeyLargo

and device_type is soundbus
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Jun 11, 2004 7:22 pm    Post subject: Reply with quote

jsegel: I don't have a laptap but a powermac. Anyway let us know how you get on and in particular what modules (i.e i2c-core, i2c-keywest, snd-powermac) you built and in which order you loaded them (assuming sound works).

Quote:
i think the i2c-core must be compiled as modules


I couldn't see of hand which kernel config I had to change to M instead of * to get i2c-core built as a module. Any pointers?
Back to top
View user's profile Send private message
jsegel
n00b
n00b


Joined: 22 May 2004
Posts: 27
Location: Oakland, CA

PostPosted: Sat Jun 12, 2004 12:26 am    Post subject: Reply with quote

Quote:
I couldn't see of hand which kernel config I had to change to M instead of * to get i2c-core built as a module. Any pointers?


Device Drivers --->
I2C support --->
<M> I2C device interface

is where i found it.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Jun 12, 2004 9:28 am    Post subject: Reply with quote

Code:
Device Drivers --->
I2C support --->
<M> I2C device interface

is where i found it.



Thanks, I did actually find it in the end but the description says

Code:
This support is also available as a module.  If so, the module  will be called i2c-dev.   


I know a minor thing but I kept looking for i2c-core and could only find i2c-dev. So I'm wondering if you see i2c-core in lsmod ? BTW I use kernel 2.6.6.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Wed Jun 23, 2004 4:08 pm    Post subject: Reply with quote

Take a look at this (for newer powerbooks). There is some patch available for sound which seems to work

http://kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.7-bk6.log
Back to top
View user's profile Send private message
jsegel
n00b
n00b


Joined: 22 May 2004
Posts: 27
Location: Oakland, CA

PostPosted: Wed Jun 23, 2004 8:50 pm    Post subject: Reply with quote

ok, where do we get this patch? i just finally downloaded the 2.6.7 kernel.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Wed Jun 23, 2004 9:53 pm    Post subject: Reply with quote

Patch is found at http://kernel.org/pub/linux/kernel/v2.6/

and look for patch named
Code:
patch-2.6.7-bk6


I believe you see the relevant patch details for the newer powerbooks right at the end of this file.
Back to top
View user's profile Send private message
jsegel
n00b
n00b


Joined: 22 May 2004
Posts: 27
Location: Oakland, CA

PostPosted: Wed Jun 23, 2004 9:59 pm    Post subject: Reply with quote

heh. like i said, just downloaded 2.6.7 ... and baselayout....
suddenly /dev/hda is no longer there! anyway, once i fix this little problem...


thanks jaspal!
Back to top
View user's profile Send private message
kmarple1@hotmail.com
n00b
n00b


Joined: 04 Jun 2004
Posts: 50

PostPosted: Fri Jun 25, 2004 2:46 am    Post subject: Reply with quote

Upgrading to the 2.6.7 kernel fixes the sound! :P
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Jun 25, 2004 6:31 pm    Post subject: Reply with quote

kmarple1@hotmail.com : Good to read sound now works. I wander if you can post your

(1) /etc/modules.d/alsa
(2) the output of lsmod?
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
Goto page 1, 2  Next
Page 1 of 2

 
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