Garrett wrote: > > With these changes the P2B-LS might be able to switch to suspended state > > now; it writes "Saving system state. Please wait..." and spins down the hdd. > > I can't break into kmdb any more, though. The PS/2 keyboard seems to be > > powered off, too. But the box is still powered on. Question is: how > > do we wake up the box from suspended state? > > > > Hmm... the uadmin 3 20 test point probably was intended to have a timer > set somewhere... Randy is the expert on that code, and he's not online > today. > > I wonder if a uadmin 3 8 would actually go all the way to S3. I confess > while I was the one to setup the project, I have not actually tested it > myself on x86 (SPARC of course I have). I'll be working on this a bit > more later this week. (I wanted to hit a milestone on my SDcard drivers > first.)
Somehow I don't understand the uadmin 3 XX numbers you're refering to... uadmin 3 is the A_FREEZE command, and A_FREEZE seems to support these subcommands (see /usr/include/sys/uadmin.h): /* * Functions reserved for A_FREEZE (may not be available on all platforms) * Note: AD_COMPRESS, AD_CHECK and AD_FORCE are now obsolete * The first two are succeeded by AD_SUSPEND_TO_DISK and * AD_CHECK_SUSPEND_TO_DISK respectively. * AD_FORCE should not be used by any new application * * We maintain compatibility with the earlier interfaces: * AD_COMPRESS and AD_CHECK, by preserving those values * in the corresponding new interfaces */ #define AD_COMPRESS 0 /* store state file compressed during CPR */ #define AD_FORCE 1 /* force to do AD_COMPRESS */ #define AD_CHECK 2 /* test if CPR module is available */ #define AD_SUSPEND_TO_DISK AD_COMPRESS /* A_FREEZE, CPR or ACPI S4 */ #define AD_CHECK_SUSPEND_TO_DISK AD_CHECK /* A_FREEZE, CPR/S4 capable? */ #define AD_SUSPEND_TO_RAM 20 /* A_FREEZE, S3 */ #define AD_CHECK_SUSPEND_TO_RAM 21 /* A_FREEZE, S3 capable? */ So we have "uadmin 3 21" to check if suspend to ram might work, and "uadmin 3 20" to actually suspend the system to ram. uadmin 3 20 doesn't seem to be a test point but the real function. And uadmin 3 8 doesn't exist. _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
