Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iBook G4/2.6.1: Sound modules hang if thermal mgt on [FIXED]
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
linuxspice
n00b
n00b


Joined: 29 Jan 2004
Posts: 9
Location: Rochester, NY, USA

PostPosted: Thu Jan 29, 2004 5:19 am    Post subject: iBook G4/2.6.1: Sound modules hang if thermal mgt on [FIXED] Reply with quote

Hi,

I'm running kernel 2.6.1-benh1 (built from ppc-development-sources) on a 12" iBook G4. My kernel configuration has the iBook G4 thermal management option (CONFIG_THERM_IBOOKG4, therm_adt7467) and all the sound options, both OSS and ALSA, enabled as modules to the extent possible.

With this configuration, I've run into an interesting problem: none of the Mac-related sound modules, whether OSS or ALSA, can be loaded if the thermal management module therm_adt7467 was loaded first. Instead, the computer hangs. If therm_adt7467 is configured to be autoloaded (by listing it in /etc/modules.autoload.d/kernel-2.6), and the alsasound script was added to the boot script system (via 'rc-update add alsasound default'), the computer will hang during boot. Ditto if dmasound_pmac is listed after therm_adt7467 in /etc/modules.autoload.d/kernel-2.6.

Some observations that may or may not help:

* Both the therm_adt7467 and dmasound_pmac modules depend on the i2c_core module and will load it if necessary.

* dmasound_pmac also tries to load the i2c_keywest module, but oddly, this isn't listed as a dependency in the 'lsmod' list (i2c_keywest is not listed as being used by dmasound_pmac, even though it actually is).

* It is not actually the sound modules themselves which are hanging, but rather i2c_keywest. I confirmed this by attempting to load i2c_keywest by itself after loading therm_adt7467.

* Even if therm_adt7467 is loaded after the sound modules are, thereby avoiding the hang, ALSA sound still doesn't work; everything appears to work but the computer is silent, even after unmuting everything and turning up the mixer settings. (This part may be an issue with my ALSA configuration; I'm still looking into it.)

I don't know what would happen if any of these items were compiled into the kernel rather than as modules. I suspect the same thing would happen (only without the benefit of being able to change everything to load in the proper order).

Possible workarounds:

* For OSS, dmasound_pmac must be listed before therm_adt7467 in /etc/modules.autoload.d/kernel-2.6.

* For ALSA, therm_adt7467 must be removed from /etc/modules.autoload.d/kernel-2.6 entirely, since otherwise it will be loaded before the alsasound boot script is executed, which will cause the hang to occur. Instead, therm_adt7467 must be loaded at the very end of the boot process by putting a 'modprobe therm_adt7467' line in /etc/conf.d/local.start (which will cause it to be loaded by the 'local' boot script).

Does anyone, particularly any kernel gurus, have any insight into this problem? Is this a known issue? (I would have checked the gentoo-ppc-user and gentoo-ppc-dev list archives, but I can't seem to find them anywhere.) Should I submit a bug somewhere?

Thanks,
linuxspice


Last edited by linuxspice on Thu Feb 05, 2004 5:23 am; edited 1 time in total
Back to top
View user's profile Send private message
rhale314159
n00b
n00b


Joined: 14 Dec 2003
Posts: 41
Location: East US

PostPosted: Fri Jan 30, 2004 11:35 pm    Post subject: 2.6.1 hangs Reply with quote

Hi!
I had some problems getting the 2.6.1-benh going on an ibook G4 also. Initially the computer would hang during boot.
Playing around I found that building the adt7467 code as a
module and the alsa sound with oss emu built into the kernel then it would boot. I also had to make /dev/rtc emulation a module otherwise the kernel hanged at boot.

Have you been able to use the internal mic to record sound?
Back to top
View user's profile Send private message
linuxspice
n00b
n00b


Joined: 29 Jan 2004
Posts: 9
Location: Rochester, NY, USA

PostPosted: Tue Feb 03, 2004 12:58 am    Post subject: Re: iBook G4/2.6.1: Sound modules hang if thermal management Reply with quote

Not yet, I'm still trying to get ALSA working for sound output first... I'm hoping to get to the internal microphone soon, though... :D
Back to top
View user's profile Send private message
linuxspice
n00b
n00b


Joined: 29 Jan 2004
Posts: 9
Location: Rochester, NY, USA

PostPosted: Thu Feb 05, 2004 5:20 am    Post subject: Problem resolved... Reply with quote

Problem resolved...

The new 2.6.2 kernel (ppc-development-sources 2.6.2-r1) appears to fix the module hanging problem, and also fixes some other module-related problems. As an additional bonus, I can actually get sound out of ALSA now. Yay! :D

I should also point out that I made a mistake in the above post: alsasound is supposed to be added to the boot runlevel, not the default one ("rc-update add alsasound boot"). My mistake. :oops: Thanks to Bartosch Pixa ("darkspecter") of the PPC porting team for pointing this out.
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