Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 2009 21:04:22 -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:  <20b8a1c50908211804o25d2c98di20b8e116e032b201@mail.gmail.com>
In-Reply-To: <20090821123138.M90928@sola.nimnet.asn.au>
References:  <20090821000540.950AD10656E6@hub.freebsd.org> <20090821123138.M90928@sola.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 20, 2009 at 10:58 PM, Ian Smith<smithi@nimnet.asn.au> wrote:
> On Thu, 20 Aug 2009 14:03:29 -0500 Joe Snikeris <joe@snikeris.com> wrote:
>
> =A0> First off, I apologize if this is not the right forum for this
> =A0> question. =A0I was torn between posting this in mobile, ACPI, X11 an=
d
> =A0> here. =A0If I might get a better response in one of those forums, pl=
ease
> =A0> let me know and I'll post there instead.
>
> I suspect -mobile might be the best list for this one, perhaps -acpi
> but that's usually more about development than usage. =A0You might try
> searching the archives of either for mention of the X40.
>
> =A0> I'm having some trouble getting the kinks worked out of the
> =A0> suspend/resume functionality on my laptop, an IBM Thinkpad X40. =A0I=
t is
> =A0> mostly working now, but I am still experiencing some strange behavio=
r.
> =A0> =A0I can suspend and resume from a console just fine (except for the
> =A0> fact that the console comes up blank and only displays new
> =A0> characters); however, suspending and resuming in X is problematic.
> =A0>
> =A0> The first suspend and resume in X works perfectly, but the next time=
 I
> =A0> hit suspend, the machine locks up while still displaying whatever I
> =A0> was doing in X. =A0Note that if I switch to a virtual terminal befor=
e
> =A0> hitting suspend, this problem does not occur. =A0Does anyone have an=
y
> =A0> suggestions on what I might do to get this resolved? =A0The details =
of
> =A0> my machine follows; please let me know if any additional information
> =A0> would be helpful.
>
> My T23 requires hw.syscons.sc_no_suspend_vtswitch=3D1 to suspend/resume
> cleanly (7.0), so does my old Compaq Armada (but that's APM, not ACPI)

Thanks Ian.  This fixed the problem where suspend would hang the
second time it was executed in X.

At any rate, I gave up on ACPI.  I've got suspend-to-ram and
suspend-to-disk (hibernation) working perfectly using APM.

Does anyone know if there are any disadvantages related to
power-saving features when using APM over ACPI?  Is powerd able to do
its job just as well?

>
> =A0> > uname -a
> =A0> FreeBSD sussman.snikeris.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #=
0:
> =A0> Wed Jun 24 00:57:44 UTC 2009
> =A0> root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC =A0i3=
86
> =A0>
> =A0> > cat /boot/loader.conf
> =A0> # Disable boot menu
> =A0> beastie_disable=3D"YES"
> =A0> autoboot_delay=3D-1
> =A0>
> =A0> # Needed for firefox to display certain HTML5 elements
> =A0> sem_load=3D"YES"
> =A0>
> =A0> # Needed so we can resume from suspend w/ a working display.
> =A0> hw.acpi.reset_video=3D1
> =A0> # Needed so mouse will work on resume
> =A0> hint.psm.0.flags=3D"0x3000"
> =A0>
> =A0> # Possibly needed for successful resume
> =A0> hint.apic.0.disabled=3D1
>
> That might be one to try either way, with other combinations.
>
> =A0> # Needed for sound
> =A0> snd_ich_load=3D"YES"
> =A0>
> =A0> # Needed for wireless (iwi)
> =A0> if_iwi_load=3D"YES"
> =A0> wlan_load=3D"YES"
> =A0> firmware_load=3D"YES"
> =A0> iwi_bss_load=3D"YES"
> =A0> iwi_ibss_load=3D"YES"
> =A0> iwi_monitor_load=3D"YES"
> =A0> legal.intel_iwi.license_ack=3D1
> =A0>
> =A0> # Needed for 3d graphics acceleration
> =A0> agp_load=3D"YES"
> =A0>
> =A0> # Needed for cdrecord to work
> =A0> atapicam_load=3D"YES"
> =A0>
> =A0> # See 'man acpi_ibm'
> =A0> acpi_ibm_load=3D"YES"
>
> I've found that vesa_load=3D"YES" helps on my T23 especially if suspendin=
g
> from a VT rather than in X, referring to your 'console comes up blank.'
> Something to try anyway, and I don't think it ever hurts.
>
> =A0> > cat /etc/rc.conf
> =A0> # -- sysinstall generated deltas -- # Sat Jul =A04 11:10:49 2009
> =A0> # Created: Sat Jul =A04 11:10:49 2009
> =A0> # Enable network daemons for user convenience.
> =A0> # Please make all changes to this file, not to /etc/defaults/rc.conf=
.
> =A0> # This file now contains just the overrides from /etc/defaults/rc.co=
nf.
> =A0>
> =A0> # Set by sysinstall
> =A0> hostname=3D"sussman.snikeris.com"
> =A0> #ifconfig_em0=3D"DHCP"
> =A0> linux_enable=3D"YES"
> =A0> moused_enable=3D"YES"
> =A0>
> =A0> # Allow X to locate mouse and keyboard automatically using HAL
> =A0> hald_enable=3D"YES"
> =A0> dbus_enable=3D"YES"
> =A0>
> =A0> keyrate=3D"fast"
> =A0> keybell=3D"off"
> =A0>
> =A0> > cat /etc/sysctl.conf
> =A0> # $FreeBSD: src/etc/sysctl.conf,v 1.8.32.1 2009/04/15 03:14:26 kensm=
ith Exp $
> =A0> #
> =A0> # =A0This file is read when going to multi-user and its contents pip=
ed thru
> =A0> # =A0``sysctl'' to adjust kernel values. =A0``man 5 sysctl.conf'' fo=
r details.
> =A0> #
> =A0>
> =A0> # Uncomment this to prevent users from seeing information about proc=
esses that
> =A0> # are being run under another UID.
> =A0> #security.bsd.see_other_uids=3D0
> =A0>
> =A0> hw.acpi.standby_state=3DS0
> =A0> hw.acpi.suspend_state=3DS3
> =A0> hw.acpi.sleep_button_state=3DS3
> =A0> vfs.usermount=3D1
> =A0> hw.acpi.sleep_delay=3D3
>
> If hw.syscons.sc_no_suspend_vtswitch=3D1 is no help, I'd try -mobile ..
>
> cheers, Ian
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20b8a1c50908211804o25d2c98di20b8e116e032b201>