You are not logged in.
------------------------------------------------------------------------------------
*Solved* Turns out you just have to create a file in /etc/pm/config.d with the following text: SUSPEND_MODULES="xhci-hcd ehci-hcd". Voilá. Suspend to ram works by a) sudo pm-suspend b) Ordering KDE to suspend c) Fn+F1.
------------------------------------------------------------------------------------
I've been trying to figure this out for some time now.
I've managed to get suspending to disk working, using hibernate-script with USuspendMethod disk. I had to blacklist xhci_hcd (usb 3.0) in order for it to work.
I already tried pretty much every s2ram combination as described here, even though I haven't yet tried the booting with minimal environment part.
Every combination ends up complety locking the system, with no possibility of ctrl+alt+fx or even ctrl+alt+del. Just hangs 'forever'.
/etc/suspend.conf
snapshot device = /dev/snapshot
resume device = /dev/sda7
#image size = 350000000
suspend loglevel = 2
compute checksum = y
compress = y
#encrypt = y
#early writeout = y
#splash = y
shutdown method = shutdown
/etc/hibernate/common.conf
# Configuration options common for suspending to disk or RAM.
# Options are not case sensitive.
#
# See hibernate.conf(5) for help on the configuration items.
##############################################################################
### Some global settings
##############################################################################
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 3
#LogTimestamp yes
AlwaysForce yes
# AlwaysKill yes
# HibernateVT 15
Distribution arch
# XDisplay :0
##############################################################################
### Scriptlets
### Scriptlets provide support for doing all sorts of things before and after
### suspending. The defaults settings here should work for most people, but
### you may wish to edit these to taste. Consult "hibernate -h" for help on
### the configuration settings.
##############################################################################
### bootsplash
## If you use bootsplash, also enabling SwitchToTextMode is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
### clock
SaveClock restore-only
#DirectIsa
### devices
# IncompatibleDevices /dev/dsp /dev/video*
### diskcache
# DisableWriteCacheOn /dev/hda
### fbsplash (enable SwitchToTextMode if you use this)
# FBSplash on
# FBSplashTheme tuxonice
### filesystems
# Unmount /nfsshare /windows /mnt/sambaserver
# UnmountFSTypes smbfs nfs
# UnmountGraceTime 1
# Mount /windows
### grub
# ChangeGrubMenu yes
# GrubMenuFile /boot/grub/menu.lst
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst
# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
# see http://bugs.debian.org/317479
# RemountXFSBoot yes
### hardware_tweaks
# IbmAcpi yes
# RadeonTool yes
# Runi915resolution yes
FullSpeedCPU yes
### lilo
# EnsureLILOResumes yes
### lock (generally you only want one of the following options)
## For console you need vlock available.
## For x you need xscreensaver-command-command available.
## For gnome you need gnome-screensaver-command available.
## For kde you need dcop, kscreensaver available.
## For XAuto you need xautolock available.
## For Xtr you need xtrlock available.
## For Freedesktop (for example KDE4) you need dbus-send available
# LockConsoleAs root
# LockXScreenSaver yes
LockGnomeScreenSaver yes
# LockFreedesktop
# LockKDE yes
# LockXLock yes
# LockXAutoLock yes
# LockXtrLock yes
### misclaunch
# OnSuspend 20 echo "Good night!"
# OnResume 20 echo "Good morning!"
### modules
# UnloadModules snd_via82cxxx usb-ohci
# UnloadAllModules yes
UnloadBlacklistedModules yes
LoadModules auto
# LoadModulesFromFile /etc/modules
### modules-gentoo
# GentooModulesAutoload yes
### network
# DownInterfaces eth0
# UpInterfaces auto
### networkmanager
EnableNMReconnect yes
### pause_audio
# MuteAudio yes
# PauseAudio yes
### pcmcia
# EjectCards yes
### programs
# IncompatiblePrograms xmms
### services
# RestartServices laptop_mode anacron
# StopServices alsasound
# StartServices aumix
### vbetool
# EnableVbetool yes
# RestoreVbeStateFrom /var/lib/vbetool/vbestate
# VbetoolPost yes
# RestoreVCSAData yes
### xhacks
SwitchToTextMode yes
# UseDummyXServer yes
# DummyXServerConfig xorg-dummy.conf
### xstatus
## This can be set to gnome, kde or x:
## For gnome you need zenity available.
## For kde you need dcop, kstart, kdialog available.
## For x you need to have xosd OR xmessage available.
# XStatus gnome
# XmessageDisable yes
# XSuspendText Preparing to suspend...
# XResumeText Resuming from suspend...
## When using XStatus x, and you have xosd installed:
# XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50
### xbacklight
# BackLight yes
### gaim
## You need to have dbus, gaim_remote available.
# LogoutGaim yes
# GaimRestoreStatus yes
# GaimLogoutMessage Hibernating
# GaimLoginMessage Back from hibernation
### pidgin
# LogoutPidgin yes
# PidginRestoreStatus yes
# PidginLogoutMessage Hibernating - bye!
# PidginLoginMessage I'm back!
### SSH and PGP keys
# AgentsClearGPG yes
# AgentsClearSSH yes
### Virtualbox
# SuspendVirtualbox yes
### Dropping disk caches
# As a way to speed up suspending, you can free the memory used for disk caches so there will be less to write to the disk. The downside is the risk of crashing your system. but I have had no trouble with it so far, while reducing the size of the suspended image by half.
#OnSuspend 00 sync; echo 3 > /proc/sys/vm/drop_caches
/etc/hibernate/ususpend-ram.conf
# This file is used when suspending to RAM using the uswsusp functionality in
# the kernel. You will require the s2disk binary to be installed - this can be
# downloaded from http://suspend.sourceforge.net/ . On Debian systems, just
# install the uswsusp package.
# Add any configuration options specific to ususpend to this file. Ordering is
# not crucial, and options are not case-sensitive.
#
# See hibernate.conf(5) for help on the configuration items.
USuspendMethod ram
## if needed, pass the -f option to s2ram
USuspendRamForce yes
## if s2ram is unsure, let it use system-specific options instead of having to
## force it.
#USuspendRamUnsureOk yes
## if needed, pass the -m option to s2ram
## (-m should be used instead of -s, if possible; see
## https://bugzilla.novell.com/show_bug.cgi?id=229603)
USuspendRamVbeMode yes
## if needed, pass the -s option to s2ram
## (if possible, prefer -m to -s; see above)
# USuspendRamVbeSave yes
## if needed, pass the -p option to s2ram
# USuspendRamVbePost yes
## if needed, pass the -a option to s2ram
## (Intel users see: http://en.opensuse.org/S2ram#Intel_Graphics_Chipsets)
USuspendRamAcpiSleep 3
## if needed, pass the -v option to s2ram
USuspendRamPciSave yes
## if needed, pass the -r option to s2ram
# USuspendRamRadeontool yes
Include common.conf
Here's the output from /var/log/hibernate.conf, from when I try hibernate -F /etc/hibernate/ususpend-ram.conf
Starting suspend at Seg Ago 16 22:38:02 WEST 2010
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureUSuspendCapable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [61] Executing NMSuspend ...
Putting NetworkManager to sleep
hibernate: [89] Executing SaveKernelModprobe ...
Saved /proc/sys/kernel/modprobe is /sbin/modprobe
hibernate: [91] Executing LockGnomeScreensaver ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
Module version for ipw2100 is 66050
Module version for ipw2200 is 66050
Module version for snd_bt_sco is
Module version for ndiswrapper is
Unloading blacklisted module uvcvideo (and dependencies)
Unloading uvcvideo ...
Removing modules with rmmod.
Unloading blacklisted module xhci_hcd (and dependencies)
Unloading xhci_hcd ...
hibernate: [95] Executing XHacksSuspendHook2 ...
xhacks: changing console from 7 to 15
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing FullSpeedCPUSuspend ...
Switched to performance, with min freq at 2267000
Switched to performance, with min freq at 2267000
Switched to performance, with min freq at 2267000
Switched to performance, with min freq at 2267000
hibernate: [99] Executing DoUSuspend ...
hibernate: Running /usr/sbin/s2ram -f -m -a 3 -v...
lspci
spci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 12)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
01:00.0 VGA compatible controller: nVidia Corporation Device 0caf (rev ff)
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 USB Controller: NEC Corporation Device 0194 (rev 03)
05:00.0 Ethernet controller: Atheros Communications Device 1063 (rev c0)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
lsusb
Bus 002 Device 003: ID 0bda:0116 Realtek Semiconductor Corp. Mass Storage Device
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b1bb Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsmod
Module Size Used by
cryptd 6246 0
aes_x86_64 7396 1
aes_generic 26154 1 aes_x86_64
acpi_call 1712 0
ipv6 280376 32
usb_storage 42628 0
uvcvideo 59687 0
videodev 39355 1 uvcvideo
v4l1_compat 15554 2 uvcvideo,videodev
v4l2_compat_ioctl32 10681 1 videodev
snd_hda_codec_intelhdmi 10070 1
snd_hda_codec_realtek 267731 1
snd_seq_oss 29920 0
snd_seq_midi_event 5420 1 snd_seq_oss
snd_seq 51394 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 5469 2 snd_seq_oss,snd_seq
snd_hda_intel 21906 2
snd_hda_codec 76787 3 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 6286 1 snd_hda_codec
snd_pcm 71781 2 snd_hda_intel,snd_hda_codec
asus_laptop 14339 0
sparse_keymap 2547 1 asus_laptop
wmi 5925 0
nouveau 523432 0
snd_timer 19820 2 snd_seq,snd_pcm
ac 3089 0
battery 10055 0
thermal 12258 0
ttm 45713 1 nouveau
snd 58291 13 snd_hda_codec_realtek,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
snd_page_alloc 7233 2 snd_hda_intel,snd_pcm
arc4 1362 2
ecb 1993 2
joydev 9863 0
xhci_hcd 45124 0
ath9k 72182 0
ath9k_common 2529 1 ath9k
iTCO_wdt 10669 0
iTCO_vendor_support 1849 1 iTCO_wdt
mac80211 182919 2 ath9k,ath9k_common
ath9k_hw 216824 2 ath9k,ath9k_common
ath 8790 2 ath9k,ath9k_hw
cfg80211 141632 4 ath9k,ath9k_common,mac80211,ath
rfkill 15518 2 asus_laptop,cfg80211
led_class 2347 2 asus_laptop,ath9k
atl1c 31680 0
i2c_i801 8598 0
ehci_hcd 36042 0
usbcore 145453 5 usb_storage,uvcvideo,xhci_hcd,ehci_hcd
cpufreq_powersave 942 0
psmouse 53592 0
cpufreq_ondemand 7990 4
sg 25328 0
acpi_cpufreq 6491 1
freq_table 2339 2 cpufreq_ondemand,acpi_cpufreq
evdev 8775 16
serio_raw 4470 0
pcspkr 1803 0
processor 29040 5 acpi_cpufreq
fuse 59417 7
soundcore 6089 1 snd
rtc_cmos 8886 0
rtc_core 14439 1 rtc_cmos
rtc_lib 1882 1 rtc_core
ext4 330125 1
mbcache 5762 1 ext4
jbd2 75607 1 ext4
crc16 1281 1 ext4
sr_mod 14842 0
cdrom 35809 1 sr_mod
sd_mod 27923 5
ahci 36972 4
libata 155099 1 ahci
scsi_mod 94212 5 usb_storage,sg,sr_mod,sd_mod,libata
i915 296298 2
drm_kms_helper 23740 2 nouveau,i915
drm 162265 5 nouveau,ttm,i915,drm_kms_helper
i2c_algo_bit 5071 2 nouveau,i915
button 4818 2 nouveau,i915
i2c_core 18364 7 videodev,nouveau,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video 19077 1 i915
output 1956 1 video
intel_agp 29074 2 i915
Am I missing something? Is it another module? Some hardware that's causing this? The only other odd hardware configuration, other than USB 3.0 is the dual graphic cards (Nvidia Optimus). The Nvidia is powered down, though (tried both ways).
Note: The default suspend system doesn't work, it just locks the screen (if in gnome/kde/whatever)
Last edited by Xehoz (2010-11-25 23:37:14)
Offline