Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ThinkPad X31 Hibernation

5 views
Skip to first unread message

llw...@infor.org

unread,
Apr 10, 2004, 5:50:44 AM4/10/04
to

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I recently got my new ThinkPad X31, which is the first laptop of my own.
Having
hw.pci.allow_unsupported_io_range=3D"1"
being set and ACPI loaded, FreeBSD 5.2-CURRENT runs mostly happily.

However, I am having problems about suspension (S3) and hibernation (S4).
After setting
hw.acpi.sleep_button_state=3DS3
hw.acpi.lid_switch_state=3DS3
hw.acpi.standby_state=3DS3
hw.acpi.suspend_state=3DS4
Fn-F4 seems to be working, but the LCD backlight does not turn off (it just
blanks out). After resuming from S3, USB and firewire do not work. I tried
to kill usbd and unload usb.ko before going to S3, but kldunload keeps
telling me
kldunload: can't unload file: Device not configured
and refuses to unload it. If I have X running when entering S3, X hangs
even I switched to console before sleeping. I tried
options SC_NO_SUSPEND_VTYSWITCH
but in vain.

What is of more concern is that I can't have my hibernation work. I have
created a hibernation partition using phdisk, but nothing happens when I
press Fn-F12 under FreeBSD. If I use=20
acpiconf -s 4
to force it hibernate, it does look as if it is entering hibernation.
The Moon LED flashes and then the power turns off in a few seconds.
But when I press the power button and choose to boot FreeBSD in
BootEasy (Is it normal that the boot manager still runs when waking
up from hibernation? Windows seems to work this way...), it looks perfectly
as if it is a normal boot-up, which means that it complains about not-
properly-unmounted / and begins to do background fsck, and not like a
wake-up at all. Am I missing some important points to do?

Sincerely,
Leland Wang

--=20
/-------\ /-\ /--------\
\--\ /--/ | | \--\ /---/
| | /----/ \----\/--/ \---\
/-/ \-\ \----/ /----/\--\ /---/
\-\ /-/ / \ /--/ \---\
| | / /\ \ \--\ /---/ /\
/---/ \---\/-/ / \ \---\ | \----/ |
\---------/\--/ \----/ \--------/
e-mail address: llw...@infor.org

--8t9RHnE3ZwKMSgU+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFAd8MQCQM7t5B2mhARAkNmAJ9oHimnlF4RoEjm0q5946n0ciyPcgCcCpyS
I0uT3RWdIBlgvw4j8sAZ138=
=pYyL
-----END PGP SIGNATURE-----

--8t9RHnE3ZwKMSgU+--

nik...@cytexbg.com

unread,
Apr 10, 2004, 7:40:11 AM4/10/04
to
Li-Lun Wang (Leland Wang) writes:

> Hi,
>
> I recently got my new ThinkPad X31, which is the first laptop of my own.
> Having

> hw.pci.allow_unsupported_io_range="1"


> being set and ACPI loaded, FreeBSD 5.2-CURRENT runs mostly happily.
>
> However, I am having problems about suspension (S3) and hibernation (S4).
> After setting

> hw.acpi.sleep_button_state=S3
> hw.acpi.lid_switch_state=S3
> hw.acpi.standby_state=S3
> hw.acpi.suspend_state=S4


> Fn-F4 seems to be working, but the LCD backlight does not turn off (it just
> blanks out). After resuming from S3, USB and firewire do not work. I tried
> to kill usbd and unload usb.ko before going to S3, but kldunload keeps
> telling me
> kldunload: can't unload file: Device not configured
> and refuses to unload it. If I have X running when entering S3, X hangs
> even I switched to console before sleeping. I tried
> options SC_NO_SUSPEND_VTYSWITCH
> but in vain.
>
> What is of more concern is that I can't have my hibernation work. I have
> created a hibernation partition using phdisk, but nothing happens when I
> press Fn-F12 under FreeBSD. If I use

> acpiconf -s 4
> to force it hibernate, it does look as if it is entering hibernation.
> The Moon LED flashes and then the power turns off in a few seconds.
> But when I press the power button and choose to boot FreeBSD in
> BootEasy (Is it normal that the boot manager still runs when waking
> up from hibernation? Windows seems to work this way...), it looks perfectly
> as if it is a normal boot-up, which means that it complains about not-
> properly-unmounted / and begins to do background fsck, and not like a
> wake-up at all. Am I missing some important points to do?
>
> Sincerely,
> Leland Wang
>
> --

> /-------\ /-\ /--------\
> \--\ /--/ | | \--\ /---/
> | | /----/ \----\/--/ \---\
> /-/ \-\ \----/ /----/\--\ /---/
> \-\ /-/ / \ /--/ \---\
> | | / /\ \ \--\ /---/ /\
> /---/ \---\/-/ / \ \---\ | \----/ |
> \---------/\--/ \----/ \--------/
> e-mail address: llw...@infor.org

I'm experiencing the same problems with my X31,
after suspend the screen blanks, and actually turns off the backlight but
only for a few seconds, then the backlight turns on again... even when the
lid is closed....

And for the hibernation thing, i don't believe that you can make it work,
it seems that the newer thinkpads, don't have bios assisted S4 state,
(hw.acpi.s4bios). That in my understanding means that the machine relies on
the host operating system to do the hibernation. And as far as i know, this
works only under Windows XP.

--niki

_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "freebsd-mobil...@freebsd.org"

llw...@infor.org

unread,
Apr 12, 2004, 12:23:31 AM4/12/04
to
On Sat, Apr 10, 2004 at 02:38:07PM +0300, Niki Denev wrote:
> And for the hibernation thing, i don't believe that you can make it work,
> it seems that the newer thinkpads, don't have bios assisted S4 state,
> (hw.acpi.s4bios). That in my understanding means that the machine relies on
> the host operating system to do the hibernation. And as far as i know, this
> works only under Windows XP.

I find that when using apm instead of acpi, hibernation does work with
Fn-F12 :) So I suppose it is the problem of FreeBSD's acpi...
I do not even need apm_enable="YES" or apmd_enable="YES" in rc.conf
for hibernation to work (actually I can't have them turned on as they
complain about the nonexistence of /dev/apm).
However, I suppose that apm does not support speed-step, so I must decide
whether hibernation or speed-step is more important for me...

-- Leland Wang

--
/-------\ /-\ /--------\
\--\ /--/ | | \--\ /---/
| | /----/ \----\/--/ \---\
/-/ \-\ \----/ /----/\--\ /---/
\-\ /-/ / \ /--/ \---\
| | / /\ \ \--\ /---/ /\
/---/ \---\/-/ / \ \---\ | \----/ |
\---------/\--/ \----/ \--------/
e-mail address: llw...@infor.org

llw...@infor.org

unread,
Apr 13, 2004, 6:07:57 AM4/13/04
to
It looks like my apm never really work. If I load neither acpi nor apm on
my X31, the backlight turns off when pressing Fn-F3 and Fn-F4, the USB
does not die when resuming, and can even enter hibernation when pressing
Fn-F12. There is definitely bios assisted hibernation in X31.

-- Leland Wang

0 new messages