alsa sound breaks with suspend

2004-08-21 Thread Dimitris Kogias
Hi,
I wonder if anyone has any ideas about this minor annoyance:
System:  Thinkpad X31 with Intel sound:
:00:1f.6 Modem: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) 
AC'97 Modem Controller (rev 01)

2.6.8.1 from kernel.org, alsa drivers built as modules:
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_INTEL8X0=m
Using APM, no ACPI:
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
CONFIG_APM_ALLOW_INTS=y
# CONFIG_APM_REAL_MODE_POWER_OFF is not set
Note:  The behavior described below is the same whether ALLOW_INTS is on 
or off.

With 2.6.7 I could suspend and resume and the alsa drivers would stay 
functional.  As of 2.6.8.1, on resume the Master and PCM controls resume 
at 0% volume and muted.  I can get around that for now with an apm script:
#!/bin/sh

AMIXER=/usr/bin/amixer
[ -x "${AMIXER}" ] || exit 0
case "${1},${2}" in
(resume,suspend)
${AMIXER} # kick the sound drivers
/bin/sleep 1
/usr/bin/logger before
${AMIXER} set Master,0 80%,80% unmute
${AMIXER} set PCM,0 80%,80% unmute
/usr/bin/logger after
;;
esac
exit 0
Note that without the first amixer call to "kick" the sound drivers, the 
"before" log would happen before the drivers seem to "wake up":
Aug 21 15:57:00 0x19 kernel: intel8x0_measure_ac97_clock: measured 49493 
usecs
Aug 21 15:57:00 0x19 kernel: intel8x0: clocking to 48000

With the extra kick everything works.  I was wondering if anyone has any 
idea on how this can be fixed more cleanly.  A quick look with modinfo 
didn't show any obvious parameters that may affect [A]PM behavior.

D.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: IBM 760XL

2003-12-18 Thread Dimitris Kogias
It sounds like you're still in the installer stage.  I had a similar 
problem installing woody on an older iSeries.  If I answered "yes" to 
the "is your ethernet controller a PCMCIA card?" then it would 
consistently fail to be recognized.  Probably something weird going on 
with the way card services are set up during the install.  However, once 
I answered no to that question the card was recognized and I was able to 
net-install without problems.  YMMV, of course.

D.

Brian Ronk wrote:
I just got a 760XL and would like to put Debian on it (mainly because I 
can install over a network)  I have a 3Com EtherLink III, 3C589D-TP, 
PCMCIA card for network.
I'm having a problem getting it to work though.  Do I need to add a 
module for this card to get it to work correctly?  I'm not finding it 
listed under the net module category.  If I can get this working, I 
should be able to install over the net without a problem then.
Thanks for any help.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: IBM 760XL

2003-12-18 Thread Dimitris Kogias
Forgot to clarify, that was also with a 3c589 card.

Dimitris Kogias wrote:
It sounds like you're still in the installer stage.  I had a similar 
problem installing woody on an older iSeries.  If I answered "yes" to 
the "is your ethernet controller a PCMCIA card?" then it would 
consistently fail to be recognized.  Probably something weird going on 
with the way card services are set up during the install.  However, once 
I answered no to that question the card was recognized and I was able to 
net-install without problems.  YMMV, of course.

D.

Brian Ronk wrote:

I just got a 760XL and would like to put Debian on it (mainly because 
I can install over a network)  I have a 3Com EtherLink III, 3C589D-TP, 
PCMCIA card for network.
I'm having a problem getting it to work though.  Do I need to add a 
module for this card to get it to work correctly?  I'm not finding it 
listed under the net module category.  If I can get this working, I 
should be able to install over the net without a problem then.
Thanks for any help.





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Laptop booting

2004-01-24 Thread Dimitris Kogias
My second problem: When I close the lid on my laptop, which is an IBM
Thinkpad iSeries 1400, it goes to sleep. I will still be able to open
it and continue my work, but several processes have been stopped or 
have freezed. 
Example: my eth0 disappears, which makes it necessary to login as 
root and restart my networking script, and aumix stops, indicated by 
the high noise caused by interferens. 
How can I configure my ACPI/APM module to go to sleep when I close my
lid and start up as it was before it went to sleep?
If you're using APM then you can create scripts for apmd in 
/etc/apm/scripts.d/, symlinked from /etc/apm/{suspend,resume}.d in the 
same style as /etc/rc?.d.  From there you control the sequence that the 
scripts are run and you can [un]load modules and stop/start programs in 
the right order during suspend and resume.

Dimitris.

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


ide-cs module "cannot be unloaded due to unsafe usage"

2004-03-07 Thread Dimitris Kogias
Hello everyone,

My environment:  Thinkpad X31 running a mix of testing/unstable with
kernel 2.6.3 from kernel.org.  I'm using the CF Card slot on the machine
to access pictures from a digital camera.  Everything (mount, unmount,
card insert/remove detection, file access, APM suspend/resume) works. 
The only annoyance is this message that comes up the first time I insert 
the card:

Mar  7 18:28:06 0x19 kernel: cs: memory probe 0xa000-0xa0ff: clean.
Mar  7 18:28:06 0x19 cardmgr[1013]: socket 1: ATA/IDE Fixed Disk
Mar  7 18:28:06 0x19 cardmgr[1013]: executing: 'modprobe ide-cs'
Mar  7 18:28:07 0x19 kernel: hde: SanDisk SDCFH-512, CFA DISK drive
Mar  7 18:28:07 0x19 kernel: ide2 at 0x100-0x107,0x10e on irq 3
Mar  7 18:28:07 0x19 kernel: hde: max request size: 128KiB
Mar  7 18:28:07 0x19 kernel: hde: 1000944 sectors (512 MB) w/1KiB Cache,
CHS=993/16/63
Mar  7 18:28:07 0x19 kernel:  hde: hde1
Mar  7 18:28:07 0x19 kernel: Module ide_cs cannot be unloaded due to
unsafe usage in include/linux/module.h:489
Mar  7 18:28:07 0x19 kernel: ide-cs: hde: Vcc = 3.3, Vpp = 0.0
Mar  7 18:28:07 0x19 cardmgr[1013]: executing: './ide start hde'
Mar  7 18:28:52 0x19 kernel:  hde: hde1
As far as I can tell from the relevant part of module.h, the ide-cs
module code is using a deprecated reference count macro when built as a
module.  Is that the cause of these messages or could there be something
I haven't configured correctly on my system?
The relevant entries from my kernel config:

CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y
Regards,

Dimitris.

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: woody-installation on Amilo-EL - Problem with Ethernet (sis900)

2004-03-09 Thread Dimitris Kogias
Hmm, the documentation for sis900 in 2.4.23 doesn't mention any 
parameters.  Have you tried modinfo, just in case, under 2.2 to see what 
comes up?

D.

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: On going problem.

2004-03-26 Thread Dimitris Kogias
Is your kernel configured for PNP?  From my 2.6.3 kernel .config:

CONFIG_PNP=y
# CONFIG_PNP_DEBUG is not set
CONFIG_ISAPNP=y
CONFIG_PNPBIOS=y
CONFIG_PNPBIOS_PROC_FS=y
# CONFIG_BLK_DEV_IDEPNP is not set
/proc/bus/pnp is available with that in .config.

D.

Kris wrote:
I have a ThinkPad 600E and am trying to setup pnp so I can turn off the IR
port and turn on com1 with out having to load into a dos/windows partition.
In the past I was given the following info and have done this but when I
type lspnp I get lspnp: /proc/bus/pnp not available
I am not sure what I have missed but it seems that PNP is still not
installed yet I have installed pcmcia-cs with pnp enabled so I am not sure
what I have missed.
Thanks Kris


I have the same problem on a 600E-2645-4AU.

The solution was to build pcmcia-cs with the -pnp option, so that
lspnp/setpnp worked. Then, I can use setpnp to change >these without having
to boot into Losedoze or DOS.
I've also just pulled out the pnp-related files from pcmcia-cs, and built a
pnpbios.o module that just does the pnp stuff only, >o setpnp can work.
Haven't made a Debian package ofthis thing but if you want it let me know
and I can post it >smewhere.
-ken





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Moving to 2.6 and wondering about wireless

2004-04-11 Thread Dimitris Kogias
I can't help with the specific driver, but as far as upgrading to 2.6, 
the one thing you'll definitely want to do is upgrade to a version of 
modutils that supports the 2.6 module API.  I believe the version in 
testing will do, and it's backwards compatible (or rather includes the 
binaries for) 2.4.

D.

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: get my alsa sound to work on my laptop

2004-04-20 Thread Dimitris Kogias
I remember seeing this some time ago when I was first setting up my 
system under 2.6.x.  I don't remember any more what it was that got it 
going, but in any case, here's the relevant part of my kernel config:

CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_INTEL8X0=m
My sound card from lspci:
:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) 
AC'97 Audio Controller (rev 01)

I also have alsa-base and alsa-utils installed.  Hope this helps.

D.

Miky J wrote:
Hi,

I can't get my sound work with my new kernel 2.6.4
I can boot on another 2.4.x kernel and X is not
configured there but at least i've got the BIP working
!
lspci output
:00:1f.5 Multimedia audio controller: Intel Corp.
82801DB (ICH4) AC'97 Audio Controller (rev 03)
When booting from 2.6.4

from dmesg
intel8x0_measure_ac97_clock: measured 49395 usecs
intel8x0: clocking to 48000
ALSA device list:
  #0: Intel 82801DB-ICH4 at 0xcc00, irq 4
When launching xmms in a console, i've got these
messages in the xterm
** WARNING **: alsa_get_mixer(): Attaching to mixer
hw:0 failed: No such file or directory
** WARNING **: alsa_setup(): Failed to open pcm device
(default): No such file or directory
I compiled  CONFIG_SND_INTEL8X0 into the kernel, and
i'm in the audio group
Does anyone have an idea ?

	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Inspiron: no more beep with alsa

2004-05-11 Thread Dimitris Kogias
With 2.6.x you need to enable the PC speaker as an "input device":

CONFIG_INPUT_PCSPKR=m

(or Y to link it statically into the kernel)

I built it as a module and also had to add pcspkr to /etc/modules.

Dimitris.

Jerome BENOIT wrote:
Hello,

I have just upgraded to Kernel 2.6[.5] my Inspiron 8200
running under testing/unstable:
now my sound card is properly recognized by ALSA,
nevertheless the beep is no more there:
I want it back, any idea ?
Thanks in advance,
Jerome



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: IBM 760XL

2003-12-18 Thread Dimitris Kogias
It sounds like you're still in the installer stage.  I had a similar 
problem installing woody on an older iSeries.  If I answered "yes" to 
the "is your ethernet controller a PCMCIA card?" then it would 
consistently fail to be recognized.  Probably something weird going on 
with the way card services are set up during the install.  However, once 
I answered no to that question the card was recognized and I was able to 
net-install without problems.  YMMV, of course.


D.

Brian Ronk wrote:
I just got a 760XL and would like to put Debian on it (mainly because I 
can install over a network)  I have a 3Com EtherLink III, 3C589D-TP, 
PCMCIA card for network.
I'm having a problem getting it to work though.  Do I need to add a 
module for this card to get it to work correctly?  I'm not finding it 
listed under the net module category.  If I can get this working, I 
should be able to install over the net without a problem then.

Thanks for any help.




Re: IBM 760XL

2003-12-18 Thread Dimitris Kogias

Forgot to clarify, that was also with a 3c589 card.

Dimitris Kogias wrote:
It sounds like you're still in the installer stage.  I had a similar 
problem installing woody on an older iSeries.  If I answered "yes" to 
the "is your ethernet controller a PCMCIA card?" then it would 
consistently fail to be recognized.  Probably something weird going on 
with the way card services are set up during the install.  However, once 
I answered no to that question the card was recognized and I was able to 
net-install without problems.  YMMV, of course.


D.

Brian Ronk wrote:

I just got a 760XL and would like to put Debian on it (mainly because 
I can install over a network)  I have a 3Com EtherLink III, 3C589D-TP, 
PCMCIA card for network.
I'm having a problem getting it to work though.  Do I need to add a 
module for this card to get it to work correctly?  I'm not finding it 
listed under the net module category.  If I can get this working, I 
should be able to install over the net without a problem then.

Thanks for any help.








Re: Laptop booting

2004-01-24 Thread Dimitris Kogias

My second problem: When I close the lid on my laptop, which is an IBM
Thinkpad iSeries 1400, it goes to sleep. I will still be able to open
it and continue my work, but several processes have been stopped or 
have freezed. 
Example: my eth0 disappears, which makes it necessary to login as 
root and restart my networking script, and aumix stops, indicated by 
the high noise caused by interferens. 
How can I configure my ACPI/APM module to go to sleep when I close my

lid and start up as it was before it went to sleep?


If you're using APM then you can create scripts for apmd in 
/etc/apm/scripts.d/, symlinked from /etc/apm/{suspend,resume}.d in the 
same style as /etc/rc?.d.  From there you control the sequence that the 
scripts are run and you can [un]load modules and stop/start programs in 
the right order during suspend and resume.


Dimitris.



ide-cs module "cannot be unloaded due to unsafe usage"

2004-03-07 Thread Dimitris Kogias

Hello everyone,

My environment:  Thinkpad X31 running a mix of testing/unstable with
kernel 2.6.3 from kernel.org.  I'm using the CF Card slot on the machine
to access pictures from a digital camera.  Everything (mount, unmount,
card insert/remove detection, file access, APM suspend/resume) works. 
The only annoyance is this message that comes up the first time I insert 
the card:


Mar  7 18:28:06 0x19 kernel: cs: memory probe 0xa000-0xa0ff: clean.
Mar  7 18:28:06 0x19 cardmgr[1013]: socket 1: ATA/IDE Fixed Disk
Mar  7 18:28:06 0x19 cardmgr[1013]: executing: 'modprobe ide-cs'
Mar  7 18:28:07 0x19 kernel: hde: SanDisk SDCFH-512, CFA DISK drive
Mar  7 18:28:07 0x19 kernel: ide2 at 0x100-0x107,0x10e on irq 3
Mar  7 18:28:07 0x19 kernel: hde: max request size: 128KiB
Mar  7 18:28:07 0x19 kernel: hde: 1000944 sectors (512 MB) w/1KiB Cache,
CHS=993/16/63
Mar  7 18:28:07 0x19 kernel:  hde: hde1
Mar  7 18:28:07 0x19 kernel: Module ide_cs cannot be unloaded due to
unsafe usage in include/linux/module.h:489
Mar  7 18:28:07 0x19 kernel: ide-cs: hde: Vcc = 3.3, Vpp = 0.0
Mar  7 18:28:07 0x19 cardmgr[1013]: executing: './ide start hde'
Mar  7 18:28:52 0x19 kernel:  hde: hde1

As far as I can tell from the relevant part of module.h, the ide-cs
module code is using a deprecated reference count macro when built as a
module.  Is that the cause of these messages or could there be something
I haven't configured correctly on my system?

The relevant entries from my kernel config:

CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

Regards,

Dimitris.



Re: woody-installation on Amilo-EL - Problem with Ethernet (sis900)

2004-03-09 Thread Dimitris Kogias
Hmm, the documentation for sis900 in 2.4.23 doesn't mention any 
parameters.  Have you tried modinfo, just in case, under 2.2 to see what 
comes up?


D.



Re: On going problem.

2004-03-26 Thread Dimitris Kogias

Is your kernel configured for PNP?  From my 2.6.3 kernel .config:

CONFIG_PNP=y
# CONFIG_PNP_DEBUG is not set
CONFIG_ISAPNP=y
CONFIG_PNPBIOS=y
CONFIG_PNPBIOS_PROC_FS=y
# CONFIG_BLK_DEV_IDEPNP is not set

/proc/bus/pnp is available with that in .config.

D.

Kris wrote:

I have a ThinkPad 600E and am trying to setup pnp so I can turn off the IR
port and turn on com1 with out having to load into a dos/windows partition.
In the past I was given the following info and have done this but when I
type lspnp I get lspnp: /proc/bus/pnp not available

I am not sure what I have missed but it seems that PNP is still not
installed yet I have installed pcmcia-cs with pnp enabled so I am not sure
what I have missed.

Thanks Kris



I have the same problem on a 600E-2645-4AU.

The solution was to build pcmcia-cs with the -pnp option, so that


lspnp/setpnp worked. Then, I can use setpnp to change >these without having
to boot into Losedoze or DOS.


I've also just pulled out the pnp-related files from pcmcia-cs, and built a


pnpbios.o module that just does the pnp stuff only, >o setpnp can work.
Haven't made a Debian package ofthis thing but if you want it let me know
and I can post it >smewhere.


-ken








Re: Moving to 2.6 and wondering about wireless

2004-04-11 Thread Dimitris Kogias
I can't help with the specific driver, but as far as upgrading to 2.6, 
the one thing you'll definitely want to do is upgrade to a version of 
modutils that supports the 2.6 module API.  I believe the version in 
testing will do, and it's backwards compatible (or rather includes the 
binaries for) 2.4.


D.



Re: get my alsa sound to work on my laptop

2004-04-20 Thread Dimitris Kogias
I remember seeing this some time ago when I was first setting up my 
system under 2.6.x.  I don't remember any more what it was that got it 
going, but in any case, here's the relevant part of my kernel config:


CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_INTEL8X0=m

My sound card from lspci:
:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) 
AC'97 Audio Controller (rev 01)


I also have alsa-base and alsa-utils installed.  Hope this helps.

D.

Miky J wrote:

Hi,

I can't get my sound work with my new kernel 2.6.4
I can boot on another 2.4.x kernel and X is not
configured there but at least i've got the BIP working
!

lspci output
:00:1f.5 Multimedia audio controller: Intel Corp.
82801DB (ICH4) AC'97 Audio Controller (rev 03)


When booting from 2.6.4

from dmesg
intel8x0_measure_ac97_clock: measured 49395 usecs
intel8x0: clocking to 48000
ALSA device list:
  #0: Intel 82801DB-ICH4 at 0xcc00, irq 4


When launching xmms in a console, i've got these
messages in the xterm

** WARNING **: alsa_get_mixer(): Attaching to mixer
hw:0 failed: No such file or directory
** WARNING **: alsa_setup(): Failed to open pcm device
(default): No such file or directory


I compiled  CONFIG_SND_INTEL8X0 into the kernel, and
i'm in the audio group

Does anyone have an idea ?






Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/


Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! 
Messenger sur http://fr.messenger.yahoo.com






Re: Inspiron: no more beep with alsa

2004-05-11 Thread Dimitris Kogias

With 2.6.x you need to enable the PC speaker as an "input device":

CONFIG_INPUT_PCSPKR=m

(or Y to link it statically into the kernel)

I built it as a module and also had to add pcspkr to /etc/modules.

Dimitris.

Jerome BENOIT wrote:

Hello,

I have just upgraded to Kernel 2.6[.5] my Inspiron 8200
running under testing/unstable:
now my sound card is properly recognized by ALSA,
nevertheless the beep is no more there:
I want it back, any idea ?

Thanks in advance,
Jerome






alsa sound breaks with suspend

2004-08-21 Thread Dimitris Kogias

Hi,

I wonder if anyone has any ideas about this minor annoyance:

System:  Thinkpad X31 with Intel sound:
:00:1f.6 Modem: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) 
AC'97 Modem Controller (rev 01)


2.6.8.1 from kernel.org, alsa drivers built as modules:
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_INTEL8X0=m

Using APM, no ACPI:
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
CONFIG_APM_ALLOW_INTS=y
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

Note:  The behavior described below is the same whether ALLOW_INTS is on 
or off.


With 2.6.7 I could suspend and resume and the alsa drivers would stay 
functional.  As of 2.6.8.1, on resume the Master and PCM controls resume 
at 0% volume and muted.  I can get around that for now with an apm script:

#!/bin/sh

AMIXER=/usr/bin/amixer
[ -x "${AMIXER}" ] || exit 0

case "${1},${2}" in
(resume,suspend)
${AMIXER} # kick the sound drivers
/bin/sleep 1
/usr/bin/logger before
${AMIXER} set Master,0 80%,80% unmute
${AMIXER} set PCM,0 80%,80% unmute
/usr/bin/logger after
;;
esac

exit 0

Note that without the first amixer call to "kick" the sound drivers, the 
"before" log would happen before the drivers seem to "wake up":
Aug 21 15:57:00 0x19 kernel: intel8x0_measure_ac97_clock: measured 49493 
usecs

Aug 21 15:57:00 0x19 kernel: intel8x0: clocking to 48000

With the extra kick everything works.  I was wondering if anyone has any 
idea on how this can be fixed more cleanly.  A quick look with modinfo 
didn't show any obvious parameters that may affect [A]PM behavior.


D.