Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
suspend2: hibenate & hibernate-ram problems [solved]
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
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Mon Jan 29, 2007 2:42 pm    Post subject: suspend2: hibenate & hibernate-ram problems [solved] Reply with quote

Hi,

I am trying to make suspend2 working on amd64. I am using vanilla-kernel-2.6.9.2 with suspend2. I have a SATA drive.
Quote:

# uname -rm
2.6.19-suspend2-r1 x86_64

# eix -s suspend2
[I] sys-apps/suspend2-userui
Available versions: (~)0.6.4-r1 (~)0.6.4-r2
Installed: 0.6.4-r2(09:39:01 01/23/07)(-fbsplash -static)
Homepage: http://www.suspend2.net
Description: User Interface for Software Suspend 2

[I] sys-kernel/suspend2-sources
Available versions:
(2.6.18-r1) (~)2.6.18-r1
(2.6.18-r3) (~)2.6.18-r3
(2.6.19) (~)2.6.19
(2.6.19-r1) (~)2.6.19-r1
Installed: 2.6.19-r1(2.6.19-r1)(01:27:45 01/28/07)(-build symlink -ultra1)
Homepage: http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net
Description: Software Suspend 2 + Gentoo patchset sources


My problem is that hibernate-ram is supending well but does not resume; hibernate hangs while suspending.

I configured it in the kernel this way:
Quote:
# grep SUSPEND .config
# CONFIG_SOFTWARE_SUSPEND is not set
CONFIG_SUSPEND_SMP=y
CONFIG_SUSPEND2_CRYPTO=y
CONFIG_SUSPEND2=y
# CONFIG_SUSPEND2_FILE is not set
CONFIG_SUSPEND2_SWAP=y
CONFIG_SUSPEND2_DEFAULT_RESUME2="/dev/sda2"
# CONFIG_SUSPEND2_KEEP_IMAGE is not set
CONFIG_SUSPEND2_REPLACE_SWSUSP=y
CONFIG_SUSPEND_SHARED=y
# CONFIG_USB_SUSPEND is not set


A hibernate-ram -n shows no errors, just the wlan stays down, but this is not a problem, I can restart it manually. When I try to resume from suspend-to-ram the disk and fan are restarting, but the screen stays black. So I think it is not a SATA problem.I expected my graphics card (intel 945 gma with i810 driver) to work, I read that it should be supported.
I tried using vbetool version 0.7 to get the graphics card work, but a hibernate-ram -n shows then:
Quote:
Save video state failed
Calling INT 0x15 (F000:F859)
EAX is 10005F00
Leaving interrupt call.
Calling INT 0x10 (C000:0014)
EAX is 3
Leaving interrupt call.
Function not supported
Restore video state failed
So I think vbetool is not working for me.

Here is my hardware list.
Quote:
# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
04:04.0 CardBus bridge: O2 Micro, Inc. OZ711MP1/MS1 MemoryCardBus Controller (rev 21)
04:04.2 Class 0805: O2 Micro, Inc. Integrated MMC/SD Controller (rev 01)
04:04.3 Bridge: O2 Micro, Inc. Integrated MS/xD Controller (rev 01)
04:04.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)


Suspend-to-disk hangs while suspending. But make suspend-to-ram work has higher priority for me right now.
So I am quite frustrated after shutting down the system the very hard way and rebooting. Does anyone has an idea what I should do?

Edit: I tried both from S run-level (single user mode) - no success.

menschmeier
_________________
Please notice the back of this message.


Last edited by menschmeier on Wed Mar 28, 2007 2:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Wed Mar 28, 2007 2:50 pm    Post subject: Reply with quote

Hi,

see here https://forums.gentoo.org/viewtopic-p-3886451.html#3886451

menschmeier
_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Wed Apr 04, 2007 7:13 pm    Post subject: Reply with quote

Hi, menschmeier...

I'm currently struggling with hibernate on my Thinkpad X60s, operating with sudpend2-sources-2.6.18.r1. My hibernate repeatedly hangs upon resume.

You stated:
Quote:
Edit: I tried both from S run-level (single user mode) - no success.


I want to try from S run-level, and I have tried the method described at www.suspend2.net.

I'm unable , however, to get completely through the described protocol to get to the S run-level, failing just after # swapon -a:
Quote:
# You may need to start devfsd or udev too:

* # /etc/init.d/devfsd start

And now try running the hibernate script to see if it succeeds. If so, you can blame a module and now the process begins to load modules one by one until hibernation breaks.
# To cleanly reboot from this point, you will want to do the following:

* # mount -o remount,ro /
* # sync
* # reboot


I have no defvsd or udev in my /etc/init.d, to start, and I know not what to do next to get into S run-level. :(

Any tips?

Thanks!
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Thu Apr 05, 2007 7:50 am    Post subject: Reply with quote

Hi,

without udev - how do you handle your device files? Manually?
Because a kernel >2.6.13 does not support devfs, you must have udev. Check if you have sys-fs/udev installed?
In my case the bad configured SATA controller caused the trouble?
Do you have a SATA controller?

menschmeier
_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Thu Apr 05, 2007 11:45 am    Post subject: Reply with quote

menshmeier...

I didn't mean to imply that I have no udev. Only that there is no listing for it in /etc/init.d. I know it starts early in the boot process by loading udevd, but I don't know how I would manually start udevd (for the intent of running from S run level, as I wish to do).

I do, indeed, have a sata controller, :
Code:

*-ide
             description: IDE interface
             product: 82801G (ICH7 Family) IDE Controller
             vendor: Intel Corporation
             physical id: 1f.1
             bus info: pci@0000:00:1f.1
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: ide bus_master
             configuration: driver=PIIX_IDE latency=0
        *-storage
             description: SATA controller
             product: 82801GBM/GHM (ICH7 Family) SATA AHCI Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             logical name: scsi0
             version: 02
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi pm ahci_1.0 bus_master cap_list emulated
             configuration: driver=ahci latency=0
           *-disk
                description: SCSI Disk
                product: ST910021AS
                vendor: ATA
                physical id: 0.0.0
                bus info: scsi@0:0.0.0
                logical name: /dev/sda
                version: 4.06
                serial: 3MH1089Z
                size: 93GB
                capabilities: partitioned partitioned:dos
                configuration: ansiversion=5


Unfortunately, I know nothing about configuring that controller. :(

Any thoughts, regarding either starting udevd or dealing with the sata controller?

Thanks!
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Thu Apr 05, 2007 12:46 pm    Post subject: Reply with quote

Hi,

udevd is not started by an explicit /etc/init.d script ...
But it is there, see:
ps -aef | grep udev
root 1089 1 0 11:08 ? 00:00:00 /sbin/udevd --daemon

The problem you have might be cause by the SATA controller config. I have the same controller. So you have to rebuild a kernel with a proper SATA config, do not include any old IDE controller config stuff in. So do not set anything on ATA/ATAPI/MFM/RLL support!

Here is a part of my config:
Quote:
#
# ATA/ATAPI/MFM/RLL support
#
# CONFIG_IDE is not set

#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
# CONFIG_SCSI_TGT is not set
CONFIG_SCSI_NETLINK=y
# CONFIG_SCSI_PROC_FS is not set

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
# CONFIG_SCSI_ISCSI_ATTRS is not set
CONFIG_SCSI_SAS_ATTRS=y
# CONFIG_SCSI_SAS_LIBSAS is not set

#
# SCSI low-level drivers
#
# CONFIG_ISCSI_TCP is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_SRP is not set

#
# PCMCIA SCSI adapter support
#
# CONFIG_PCMCIA_FDOMAIN is not set
# CONFIG_PCMCIA_QLOGIC is not set
# CONFIG_PCMCIA_SYM53C500 is not set

#
# Serial ATA (prod) and Parallel ATA (experimental) drivers
#
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_SATA_AHCI=y
# CONFIG_SATA_SVW is not set
CONFIG_ATA_PIIX=y
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SX4 is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CS5520 is not set
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
CONFIG_ATA_GENERIC=y
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PCMCIA is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RZ1000 is not set
# CONFIG_PATA_SC1200 is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set



Try this, after I changed the config to this hibernate worked.

menschmeier
_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Fri Apr 06, 2007 1:11 pm    Post subject: Reply with quote

menschmeier...

Thank you for sharing the above information. I can confirm that un-setting ATA/ATAPI/MFM/RLL does allow suspend-resume to work properly. On the other hand, it knocks out the cdrom/dvd. At a minimum, for the cdrom/dvd to work, my config must contain:
Code:

# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_IDEDISK is not set
# CONFIG_IDEDISK_MULTI_MODE is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_IDE_TASK_IOCTL is not set

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
CONFIG_BLK_DEV_IDEPCI=y
# CONFIG_IDEPCI_SHARE_IRQ is not set
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_GENERIC is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
# CONFIG_IDEDMA_PCI_AUTO is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_CS5535 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_IT821X is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_IDEDMA_AUTO is not set
# CONFIG_BLK_DEV_HD is not set

#
# SCSI device support
#


That, in turn knocks out suspend-resume. :(

The only alternative with which I can manage seems to be 2 differently configured kernels from which to choose in the bootloader menu.

Might there be other choices, as well?

Thanks!
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Sat Apr 07, 2007 10:13 am    Post subject: Reply with quote

Hi,

I don't know if it is posssible, but can you compile the driver for your dvd a a module, unload it before hibernating and reload it after resume ... ?

menschmeier
_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Sat Apr 07, 2007 10:16 am    Post subject: Reply with quote

BTW, check out the mailing list of kernel.org for that stuff, maybe they can help you. Alan Cox is always around there. :-)

menschmeier
_________________
Please notice the back of this message.
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