Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Hibernate not powering down...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1248
Location: Adelaide/Australia

PostPosted: Sun Jan 02, 2011 8:57 am    Post subject: [Solved] Hibernate not powering down... Reply with quote

For some reason, my hibernate is not powering down, but returning to powerup mode immiately.

The s2disk program (in the text screen) does not show any progress and only shows the text for a brief time before returning to the GUI and returning me to my original state.

I have plenty of swap space, it used to work.

EDIT: I just found this message in my /var/log/messages - it appears that usb3 does not freeze, that is a fairly recent change to my kernel settings,which may explain my hibernation failure. I will try modularising it and disabling it explicitly.

Code:

Jan  2 19:27:34 pearcely2 kernel: [ 1071.508278] PM: Marking nosave pages: 000000000009f000 - 0000000000100000
Jan  2 19:27:34 pearcely2 kernel: [ 1071.508286] PM: Marking nosave pages: 00000000befc2000 - 00000000bf7ff000
Jan  2 19:27:34 pearcely2 kernel: [ 1071.508351] PM: Marking nosave pages: 00000000bf800000 - 0000000100000000
Jan  2 19:27:34 pearcely2 kernel: [ 1071.510932] PM: Basic memory bitmaps created
Jan  2 19:27:37 pearcely2 kernel: [ 1073.707915] snapshot_ioctl: ioctl '80083307' is deprecated and will be removed soon, update your suspend-to-disk utilities
Jan  2 19:27:39 pearcely2 kernel: [ 1073.707921] Syncing filesystems ... done.
Jan  2 19:27:39 pearcely2 kernel: [ 1074.017152] Freezing user space processes ... (elapsed 0.01 seconds) done.
Jan  2 19:27:39 pearcely2 kernel: [ 1074.027790] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Jan  2 19:27:39 pearcely2 kernel: [ 1074.038768] snapshot_ioctl: ioctl '4004330c' is deprecated and will be removed soon, update your suspend-to-disk utilities
Jan  2 19:27:39 pearcely2 kernel: [ 1074.039002] snapshot_ioctl: ioctl '40083306' is deprecated and will be removed soon, update your suspend-to-disk utilities
Jan  2 19:27:39 pearcely2 kernel: [ 1074.039007] snapshot_ioctl: ioctl '40083303' is deprecated and will be removed soon, update your suspend-to-disk utilities
Jan  2 19:27:39 pearcely2 kernel: [ 1074.039115] PM: Preallocating image memory... done (allocated 875722 pages)
Jan  2 19:27:39 pearcely2 kernel: [ 1075.078845] PM: Allocated 3502888 kbytes in 1.04 seconds (3368.16 MB/s)
Jan  2 19:27:39 pearcely2 kernel: [ 1075.078849] Suspending console(s) (use no_console_suspend to debug)
Jan  2 19:27:39 pearcely2 kernel: [ 1075.091565] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jan  2 19:27:40 pearcely2 kernel: [ 1075.091647] pm_op(): usb_dev_freeze+0x0/0x10 returns -2
Jan  2 19:27:40 pearcely2 kernel: [ 1075.091652] PM: Device usb3 failed to freeze async: error -2
Jan  2 19:27:40 pearcely2 kernel: [ 1075.154641] sd 0:0:0:0: [sda] Starting disk
Jan  2 19:27:40 pearcely2 kernel: [ 1075.196563] PM: restore of devices complete after 42.303 msecs
Jan  2 19:27:40 pearcely2 kernel: [ 1075.196770] snapshot_ioctl: ioctl '4004330c' is deprecated and will be removed soon, update your suspend-to-disk utilities
Jan  2 19:27:40 pearcely2 kernel: [ 1075.196776] Restarting tasks ... done.
Jan  2 19:27:40 pearcely2 kernel: [ 1075.238735] PM: Basic memory bitmaps freed
Jan  2 19:27:40 pearcely2 kernel: [ 1075.238751] video LNXVIDEO:00: Restoring backlight state
Jan  2 19:27:41 pearcely2 kernel: [ 1077.587684] ADDRCONF(NETDEV_UP): wlan0: link is not ready


Suggestions would be welcomed.
Additional info below...
Installed packages
Code:

# eix --installed sys-power/
[I] sys-power/acpid
     Available versions:  2.0.4-r2 2.0.6
     Installed versions:  2.0.6(19:05:02 25/12/10)
     Homepage:            http://tedfelix.com/linux/acpid-netlink.html
     Description:         Daemon for Advanced Configuration and Power Interface

[I] sys-power/cpufreqd
     Available versions:  2.4.2 {acpi apm lm_sensors nforce2 nvidia pmu}
     Installed versions:  2.4.2(09:49:45 28/12/10)(acpi lm_sensors nvidia pmu -apm -nforce2)
     Homepage:            http://www.linux.it/~malattia/wiki/index.php/Cpufreqd
     Description:         CPU Frequency Daemon

[I] sys-power/cpufrequtils
     Available versions:  005-r1 007 ~008 {debug nls}
     Installed versions:  007(16:47:35 26/12/10)(nls -debug)
     Homepage:            http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
     Description:         Userspace utilities for the Linux kernel cpufreq subsystem

[I] sys-power/hibernate-script
     Available versions:  1.97-r4 2.0-r1 ~2.0-r2 {vim-syntax}
     Installed versions:  2.0-r1(22:32:24 26/12/10)(-vim-syntax)
     Homepage:            http://www.tuxonice.net/
     Description:         Hibernate script supporting multiple suspend methods

[I] sys-power/pm-quirks
     Available versions:  20100619
     Installed versions:  20100619(21:32:25 25/12/10)
     Homepage:            http://pm-utils.freedesktop.org/
     Description:         Video Quirks database for pm-utils

[I] sys-power/pm-utils
     Available versions:  1.4.1 ~1.4.1-r1 {alsa debug networkmanager ntp video_cards_intel video_cards_radeon}
     Installed versions:  1.4.1(21:33:08 25/12/10)(alsa -debug -networkmanager -ntp -video_cards_intel -video_cards_radeon)
     Homepage:            http://pm-utils.freedesktop.org/
     Description:         Suspend and hibernation utilities

[I] sys-power/powermgmt-base
     Available versions:  1.22 1.31 {+pm-utils}
     Installed versions:  1.31(17:23:21 26/12/10)(pm-utils)
     Homepage:            http://packages.debian.org/testing/utils/powermgmt-base
     Description:         Script to test whether computer is running on AC power

[I] sys-power/suspend
     Available versions:  ~0.8 0.8-r1 ~0.9_pre0 {crypt fbsplash}
     Installed versions:  0.8-r1(22:31:41 26/12/10)(crypt -fbsplash)
     Homepage:            http://suspend.sourceforge.net/
     Description:         Userspace Software Suspend and S2Ram


/var/log/hibernate.log
Code:

Starting suspend at Sun Jan 2 11:50:12 CST 2011
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureUSuspendCapable ...
hibernate: [15] Executing MuteAudio ...
hibernate: [20] Executing VirtualboxSavestate ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [60] Executing NetworkStop ...
Bringing down interface eth0
 * Stopping eth0
 *   Bringing down eth0
 *     Stopping ifplugd on eth0 ...                                       [ ok ]
 *     Shutting down eth0 ...                                             [ ok ]
Bringing down interface wlan0
 * Stopping wlan0
 *   Bringing down wlan0
 *     Stopping dhcpcd on wlan0 ...                                       [ ok ]
 *     Shutting down wlan0 ...                                            [ ok ]
 *     Stopping wpa_cli on wlan0 ...                                      [ ok ]
 *     Stopping wpa_supplicant on wlan0 ...                               [ ok ]
hibernate: [89] Executing SaveKernelModprobe ...
Saved /proc/sys/kernel/modprobe is /sbin/modprobe
hibernate: [98] Executing CheckRunlevel ...
hibernate: [99] Executing DoUSuspend ...
hibernate: Running /usr/sbin/s2both ...
hibernate: [89] Executing RestoreKernelModprobe ...
hibernate: [70] Executing ClockRestore ...
hibernate: [60] Executing NetworkStart ...
Bringing up interface wlan0 (from auto)
 * Starting wlan0
 *   Starting wpa_supplicant on wlan0 ...                                 [ ok ]
 *   Starting wpa_cli on wlan0 ...                                        [ ok ]
 *     Backgrounding ...
Bringing up interface eth0 (from auto)
 * Starting eth0
 *   Starting ifplugd on eth0 ...                                         [ ok ]
 *     Backgrounding ...
hibernate: [59] Executing RemountXFSBootRW ...
hibernate: [20] Executing VirtualboxRestorestate ...
hibernate: [01] Executing NoteLastResume ...
hibernate: [01] Executing LockFilePut ...
Resumed at Sun Jan 2 11:50:20 CST 2011

Code:

Linux pearcely2 2.6.35-gentoo-r15 #26 SMP Thu Dec 30 20:30:05 CST 2010 x86_64 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux

/etc/suspend.conf
Code:

snapshot device = /dev/snapshot
resume device = /dev/vg/swap
#image size = 350000000
suspend loglevel = 2
compute checksum = y
compress = y
#encrypt = y
#early writeout = y
#splash = y

/etc/hibernate/hibernate.conf
Code:

TryMethod ususpend-both.conf

/etc/hibernate/common.conf
Code:

Verbosity 3
LogFile /var/log/hibernate.log
LogVerbosity 3
Distribution gentoo
SaveClock restore-only
DownInterfaces eth0 wlan0
UpInterfaces auto
SuspendVirtualbox yes

/usr/src/linux/.config
Code:

CONFIG_ARCH_SUSPEND_POSSIBLE=y
#
# Power management and ACPI options
#
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_PM=y
CONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
# CONFIG_PM_VERBOSE is not set
CONFIG_CAN_PM_TRACE=y
CONFIG_PM_TRACE=y
CONFIG_PM_TRACE_RTC=y
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
CONFIG_SUSPEND_NVS=y
CONFIG_SUSPEND=y
# CONFIG_PM_TEST_SUSPEND is not set
CONFIG_SUSPEND_FREEZER=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_RUNTIME=y
CONFIG_PM_OPS=y
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_PROCFS_POWER is not set
CONFIG_ACPI_POWER_METER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=y
CONFIG_ACPI_HED=y
CONFIG_ACPI_APEI=y
CONFIG_ACPI_APEI_GHES=y
# CONFIG_SFI is not set

Code:

# swapon -s
Filename            Type      Size   Used   Priority
/dev/mapper/vg-swap                     partition   20971516   0   -1

Code:

root@pearcely2 linux
# lsmod
Module                  Size  Used by
vboxnetflt             12063  0
vboxnetadp              4339  0
vboxdrv              1747676  2 vboxnetflt,vboxnetadp
nvidia              10260494  24
hp_accel               13896  0
iwlagn                106026  0
lis3lv02d               8326  1 hp_accel
iwlcore                84746  1 iwlagn
video                  20365  0
output                  1989  1 video

Code:

# lspci -k
00:00.0 Host bridge: Intel Corporation Arrandale DRAM Controller (rev 02)
   Subsystem: Hewlett-Packard Company Device 1521
00:01.0 PCI bridge: Intel Corporation Arrandale PCI Express x16 Root Port (rev 02)
   Kernel driver in use: pcieport
00:16.0 Communication controller: Intel Corporation Ibex Peak HECI Controller (rev 06)
   Subsystem: Hewlett-Packard Company Device 1521
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 05)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: e1000e
00:1a.0 USB Controller: Intel Corporation Ibex Peak USB2 Enhanced Host Controller (rev 05)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation Ibex Peak High Definition Audio (rev 05)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: HDA Intel
00:1c.0 PCI bridge: Intel Corporation Ibex Peak PCI Express Root Port 1 (rev 05)
   Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation Ibex Peak PCI Express Root Port 2 (rev 05)
   Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation Ibex Peak PCI Express Root Port 4 (rev 05)
   Kernel driver in use: pcieport
00:1c.7 PCI bridge: Intel Corporation Ibex Peak PCI Express Root Port 8 (rev 05)
   Kernel driver in use: pcieport
00:1d.0 USB Controller: Intel Corporation Ibex Peak USB2 Enhanced Host Controller (rev 05)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Ibex Peak LPC Interface Controller (rev 05)
   Subsystem: Hewlett-Packard Company Device 1521
00:1f.2 SATA controller: Intel Corporation Ibex Peak 6 port SATA AHCI Controller (rev 05)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: ahci
00:1f.6 Signal processing controller: Intel Corporation Ibex Peak Thermal Subsystem (rev 05)
   Subsystem: Hewlett-Packard Company Device 1521
01:00.0 VGA compatible controller: nVidia Corporation Device 0a3c (rev a2)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: nvidia
   Kernel modules: nvidia
01:00.1 Audio device: nVidia Corporation Device 0be2 (rev a1)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: HDA Intel
44:00.0 Network controller: Intel Corporation WiFi Link 6000 Series (rev 35)
   Subsystem: Intel Corporation Device 1111
   Kernel driver in use: iwlagn
   Kernel modules: iwlagn
45:00.0 USB Controller: NEC Corporation Device 0194 (rev 03)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: xhci_hcd
46:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 06)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: firewire_ohci
46:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 25)
   Subsystem: Hewlett-Packard Company Device 1521
   Kernel driver in use: sdhci-pci
46:06.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 14)
   Subsystem: Hewlett-Packard Company Device 1521
46:06.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 14)
   Subsystem: Hewlett-Packard Company Device 1521
46:06.4 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev bb)
   Subsystem: Hewlett-Packard Company Device 1521
ff:00.0 Host bridge: Intel Corporation QuickPath Architecture Generic Non-core Registers (rev 02)
   Subsystem: Intel Corporation Device 8086
ff:00.1 Host bridge: Intel Corporation QuickPath Architecture System Address Decoder (rev 02)
   Subsystem: Intel Corporation Device 8086
ff:02.0 Host bridge: Intel Corporation QPI Link 0 (rev 02)
   Subsystem: Intel Corporation Device 8086
ff:02.1 Host bridge: Intel Corporation QPI Physical 0 (rev 02)
   Subsystem: Intel Corporation Device 8086
ff:02.2 Host bridge: Intel Corporation Device 2d12 (rev 02)
   Subsystem: Intel Corporation Device 8086
ff:02.3 Host bridge: Intel Corporation Device 2d13 (rev 02)
   Subsystem: Intel Corporation Device 8086

_________________
...Lyall


Last edited by lyallp on Sun Jan 02, 2011 9:16 am; edited 3 times in total
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1248
Location: Adelaide/Australia

PostPosted: Sun Jan 02, 2011 9:14 am    Post subject: Reply with quote

Solved.

I needed to have USB 3 (xhci) compiled as a module. xhci was a recent change to my kernel config.

Once I configured it as a module, made it autoload and updated my /etc/hibernate/common.conf
Code:

UnloadModules xhci_hcd
LoadModules auto

It worked.

Sigh. Goes to show that posting a request for help forces you to think about the problem. (not that I had not spent hours already on it).
_________________
...Lyall
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum