Date: Sat, 22 Aug 2009 06:46:20 -0400 From: Joe Snikeris <joe@snikeris.com> To: Ian Smith <smithi@nimnet.asn.au> Cc: freebsd-questions@freebsd.org Subject: Re: Suspend/Resume on Thinkpad x40 Message-ID: <20b8a1c50908220346v648b3e19h6d8725ef3e7fadf9@mail.gmail.com> In-Reply-To: <20090822125403.Q90928@sola.nimnet.asn.au> References: <20090821000540.950AD10656E6@hub.freebsd.org> <20090821123138.M90928@sola.nimnet.asn.au> <20b8a1c50908211804o25d2c98di20b8e116e032b201@mail.gmail.com> <20090822125403.Q90928@sola.nimnet.asn.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 21, 2009 at 11:53 PM, Ian Smith<smithi@nimnet.asn.au> wrote: > On Fri, 21 Aug 2009, Joe Snikeris wrote: > =A0> On Thu, Aug 20, 2009 at 10:58 PM, Ian Smith<smithi@nimnet.asn.au> wr= ote: > =A0> > On Thu, 20 Aug 2009 14:03:29 -0500 Joe Snikeris <joe@snikeris.com>= wrote: > =A0> > > =A0> > =A0> First off, I apologize if this is not the right forum for thi= s > =A0> > =A0> question. =A0I was torn between posting this in mobile, ACPI,= X11 and > =A0> > =A0> here. =A0If I might get a better response in one of those for= ums, please > =A0> > =A0> let me know and I'll post there instead. > =A0> > > =A0> > I suspect -mobile might be the best list for this one, perhaps -ac= pi > =A0> > but that's usually more about development than usage. =A0You might= try > =A0> > searching the archives of either for mention of the X40. > =A0> > > =A0> > =A0> I'm having some trouble getting the kinks worked out of the > =A0> > =A0> suspend/resume functionality on my laptop, an IBM Thinkpad X4= 0. =A0It is > =A0> > =A0> mostly working now, but I am still experiencing some strange = behavior. > =A0> > =A0> =A0I can suspend and resume from a console just fine (except = for the > =A0> > =A0> fact that the console comes up blank and only displays new > =A0> > =A0> characters); however, suspending and resuming in X is problem= atic. > =A0> > =A0> > =A0> > =A0> The first suspend and resume in X works perfectly, but the ne= xt time I > =A0> > =A0> hit suspend, the machine locks up while still displaying what= ever I > =A0> > =A0> was doing in X. =A0Note that if I switch to a virtual termina= l before > =A0> > =A0> hitting suspend, this problem does not occur. =A0Does anyone = have any > =A0> > =A0> suggestions on what I might do to get this resolved? =A0The d= etails of > =A0> > =A0> my machine follows; please let me know if any additional info= rmation > =A0> > =A0> would be helpful. > =A0> > > =A0> > My T23 requires hw.syscons.sc_no_suspend_vtswitch=3D1 to suspend/r= esume > =A0> > cleanly (7.0), so does my old Compaq Armada (but that's APM, not A= CPI) > =A0> > =A0> Thanks Ian. =A0This fixed the problem where suspend would hang the > =A0> second time it was executed in X. > > Good to know another model that this works on, for the archives. > > =A0> At any rate, I gave up on ACPI. =A0I've got suspend-to-ram and > =A0> suspend-to-disk (hibernation) working perfectly using APM. > =A0> > =A0> Does anyone know if there are any disadvantages related to > =A0> power-saving features when using APM over ACPI? =A0Is powerd able to= do > =A0> its job just as well? > > The answer to that (at 5.5-STABLE) used to be 'no', but there is some > APM code in powerd.c, related to how it determines the AC line state, > though it's not clear to me if it would require compiling APM in kernel. > > Certainly /etc/rc.d/power_profile can't set CPU CX states without ACPI. Ok. Just did a search to find out what CPU CX states were. For a good explanation of the CX states: http://lists.freebsd.org/pipermail/freebsd-current/2009-May/006436.html > > Switching speeds relies on the dev.cpu.0.freq and dev.cpu.0.freq_levels > sysctls - are these available when you're running on APM? =A0If so, try > running powerd(8) in verbose foreground mode (-v) and see what happens. Yes they are. And powerd in verbose foreground mode shows that it is lowering the frequency all the way down to 75 MHz depending on the load. Cool. Thanks again, Ian. Take care, Joe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20b8a1c50908220346v648b3e19h6d8725ef3e7fadf9>