Ok, it works perfectly now! Thank you very much for your help.
/Christian Mark Haywood skrev: > Christian Asker wrote: >> OK thanks. For some reason I had some problems with the script. But I >> ran the iasl program as described in the script, and I've attached >> the resulting files. > > Thanks. It looks like your laptop changes the _PPC value when you > switch from AC to battery and I think we might have a bug in the CPU > driver when the system suspends with the _PPC set to anything other > than zero. > > I've attached a CPU driver with what I believe is a fix to this problem. > > The following steps should install the new driver (and save the old one): > > /usr/bin/gunzip cpudrv.gz > cp /platform/i86pc/kernel/drv/amd64/cpudrv \ > /platform/i86pc/kernel/drv/amd64/cpudrv.org > cp cpudrv /platform/i86pc/kernel/drv/amd64/cpudrv > rm cpudrv > > Then reboot your system. I would not expect you to see the > > " cpudrv_detach: instance 0: can't raise CPU power level" > > messages any longer. And I suspect that suspend will probably work > when you are on battery. > > Mark > >> >> /Christian >> >> On Mon, Dec 8, 2008 at 1:43 AM, Mark Haywood <Mark.Haywood at sun.com >> <mailto:Mark.Haywood at sun.com>> wrote: >> >> Hi Christian, >> >> I've attached a program, iasl, that will dump your ACPI tables. >> I've also attached a script that you should run to that will drive >> the iasl program and tar up the results. Try running this on your >> system and then send me the resulting tar file, /tmp/acpi.tar. >> >> Thanks, >> Mark >> >> >> Christian Asker wrote: >> >> Ok. >> >> I checked in the BIOS settings, and there are a bunch of stuff >> related to ACPI and CPU features, >> but the names of the options are rather cryptic, and the >> descriptions doesn't help at all. >> So in short; there may be some setting related to frequency >> control in the BIOS, but I'm not sure. >> >> I hope someone else may have some idea on this. >> >> Anyhow, great thanks for the help. >> >> /Christian >> >> Randy Fishel skrev: >> >> On Wed, 3 Dec 2008, Christian Asker wrote: >> >> >> Hello. Thanks for the quick reply. >> >> I checked the log and here are the parts from when I >> try (and not >> succeeding) to suspend while on battery power. >> >> **************************** >> Dec 3 20:33:46 opensolaris genunix: [ID 535284 >> kern.notice] System is >> being suspended >> >> <snip> >> >> >> Dec 3 20:33:49 opensolaris genunix: [ID 353554 >> kern.warning] WARNING: >> Device /cpus/cpu at 0 failed to power up. >> Dec 3 20:33:49 opensolaris cpudrv: [ID 720658 >> kern.warning] WARNING: >> cpudrv_detach: instance 0: can't raise CPU power level >> Dec 3 20:33:49 opensolaris genunix: [ID 122848 >> kern.warning] WARNING: >> Unable to suspend device cpu at 0. >> Dec 3 20:33:49 opensolaris genunix: [ID 537702 >> kern.warning] WARNING: >> Device is busy or does not support suspend/resume. >> >> There is your problem. Looks like there is some sort of >> an issue with the cpu driver when the machine is on >> battery. I am sure that list members more familiar with >> CPUPM might have some questions (or maybe answers, but are >> there any BIOS settings for CPU frequency control? >> >> <snip> >> Oh, and by the way, I have set suspend as action when >> closing the lid. >> >> Personally, I figured as much. I was less interested in >> this issue, as you had mentioned actually selecting >> 'Suspend' had no relief. >> >> >> /Christian >> >> >> >> I suspect that there will be a more useful answer coming >> soon on how to get the CPU driver to behave more acceptably. >> >> >> Cheers! >> >> ---- Randy >> >> _______________________________________________ >> >> pm-discuss mailing list >> pm-discuss at opensolaris.org <mailto:pm-discuss at opensolaris.org> >> http://mail.opensolaris.org/mailman/listinfo/pm-discuss >> >> >> >> #!/sbin/sh >> >> mkdir /tmp/acpi >> cp iasl.gz /tmp >> cd /tmp >> gunzip iasl.gz >> cd acpi >> ../iasl -g >> cd .. >> tar cvf acpi.tar acpi >> rm -rf acpi >> rm iasl >> >>