You are not logged in.

#1 2010-03-07 18:37:14

francisc1701
Member
From: Romania
Registered: 2008-11-27
Posts: 14

gnome-screensaver seems to ruin suspend-to-disk

Hi!

Short version:
What exactly gets executed when I go to "System" -> "Shut down" -> "Hibernate" ? I'd like to modify that command.

Thanks.

Long version follows.

Here's the problem:
When resuming from suspend-to-disk I get a blank screen. Powered on, but blank (laptop LCD panel). Moving the mouse, touching the touchpad, hitting the keyboard -- no visible result.

All the processes / daemons seem to be running fine, because I can ping the laptop, access (from another computer) the website served by Apache, and I can switch to tty2, login, touch a file in my home, and hit ctrl alt del to reboot. But I still don't see anything on the screen.

I narrowed it down to gnome-screensaver, specifically the part that locks the screen.
Running

gnome-screensaver-command -l && sleep 3 && sudo pm-hibernate

reproduces the problem.

Running

sudo pm-hibernate

from a console (gnome-terminal or tty[1-6]) works -- the system resumes without a hitch, all the programs come back.

Running

gnome-screensaver-command -a && sleep 3 && sudo pm-hibernate

(which only blanks the screen, without locking it) also works.

Running

gnome-screensaver-command -l -p && sleep 3 && sudo pm-hibernate

(which locks the screen but immediately pokes it) also works. After resuming gnome-screensaver asks for my password, as expected.

I guess my question is,
What exactly gets executed when I go to "System" -> "Shut down" -> "Hibernate" ? I'd like to modify that command.


My specs:
HP Compaq 6720s
2 GB ram, 3 GB swap partition

uname -a
Linux myhost 2.6.32-ARCH #1 SMP PREEMPT Tue Feb 23 19:24:08 UTC 2010 i686 Intel(R) Core(TM)2 Duo CPU T5470 @ 1.60GHz GenuineIntel GNU/Linux
lspci -v
00:00.0 Host bridge: Intel Corporation Mobile GME965/GLE960 Memory Controller Hub (rev 0c)
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, fast devsel, latency 0
    Capabilities: <access denied>
    Kernel driver in use: agpgart-intel
    Kernel modules: intel-agp

00:02.0 VGA compatible controller: Intel Corporation Mobile GME965/GLE960 Integrated Graphics Controller (rev 0c) (prog-if 00 [VGA controller])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, fast devsel, latency 0, IRQ 27
    Memory at e4400000 (64-bit, non-prefetchable) [size=1M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 4000 [size=8]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915

00:02.1 Display controller: Intel Corporation Mobile GME965/GLE960 Integrated Graphics Controller (rev 0c)
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, fast devsel, latency 0
    Memory at e4500000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>

00:19.0 Ethernet controller: Intel Corporation 82562GT 10/100 Network Connection (rev 03)
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, fast devsel, latency 0, IRQ 29
    Memory at e4600000 (32-bit, non-prefetchable) [size=128K]
    Memory at e4620000 (32-bit, non-prefetchable) [size=4K]
    I/O ports at 4020 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: e1000e
    Kernel modules: e1000e

00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, medium devsel, latency 0, IRQ 16
    I/O ports at 4040 [size=32]
    Kernel driver in use: uhci_hcd
    Kernel modules: uhci-hcd

00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20 [EHCI])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, medium devsel, latency 0, IRQ 18
    Memory at e4621000 (32-bit, non-prefetchable) [size=1K]
    Capabilities: <access denied>
    Kernel driver in use: ehci_hcd
    Kernel modules: ehci-hcd

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at e4624000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: HDA Intel
    Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=08, subordinate=08, sec-latency=0
    Capabilities: <access denied>
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=10, subordinate=10, sec-latency=0
    I/O behind bridge: 00005000-00005fff
    Memory behind bridge: e4000000-e40fffff
    Prefetchable memory behind bridge: 0000000080000000-00000000801fffff
    Capabilities: <access denied>
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=28, subordinate=28, sec-latency=0
    I/O behind bridge: 00002000-00003fff
    Memory behind bridge: e0000000-e3ffffff
    Prefetchable memory behind bridge: 0000000080200000-00000000803fffff
    Capabilities: <access denied>
    Kernel driver in use: pcieport
    Kernel modules: shpchp

00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, medium devsel, latency 0, IRQ 20
    I/O ports at 4060 [size=32]
    Kernel driver in use: uhci_hcd
    Kernel modules: uhci-hcd

00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, medium devsel, latency 0, IRQ 21
    I/O ports at 4080 [size=32]
    Kernel driver in use: uhci_hcd
    Kernel modules: uhci-hcd

00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, medium devsel, latency 0, IRQ 18
    I/O ports at 40a0 [size=32]
    Kernel driver in use: uhci_hcd
    Kernel modules: uhci-hcd

00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, medium devsel, latency 0, IRQ 20
    Memory at e4628000 (32-bit, non-prefetchable) [size=1K]
    Capabilities: <access denied>
    Kernel driver in use: ehci_hcd
    Kernel modules: ehci-hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) (prog-if 01 [Subtractive decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
    Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, medium devsel, latency 0
    Capabilities: <access denied>
    Kernel modules: iTCO_wdt

00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, medium devsel, latency 0, IRQ 16
    I/O ports at 01f0 [size=8]
    I/O ports at 03f4 [size=1]
    I/O ports at 0170 [size=8]
    I/O ports at 0374 [size=1]
    I/O ports at 40c0 [size=16]
    Kernel driver in use: ata_piix
    Kernel modules: ata_piix, piix

00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03) (prog-if 01 [AHCI 1.0])
    Subsystem: Hewlett-Packard Company Device 30d8
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 28
    I/O ports at 13f0 [size=8]
    I/O ports at 15f4 [size=4]
    I/O ports at 1370 [size=8]
    I/O ports at 1574 [size=4]
    I/O ports at 4100 [size=32]
    Memory at e4629000 (32-bit, non-prefetchable) [size=2K]
    Capabilities: <access denied>
    Kernel driver in use: ahci
    Kernel modules: ahci

10:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
    Subsystem: Hewlett-Packard Company Compaq 6710b or nx9420 Notebook
    Flags: bus master, fast devsel, latency 0, IRQ 30
    Memory at e4000000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: iwl3945
    Kernel modules: iwl3945

I've had this problem since the beginning, when I installed Arch on this laptop (kernel version was 2.6.30 at the time), but until now I didn't feel like trying to solve it.

Related, but not necessarily relevant:
Using SLEEP_MODULE=tuxonice because with the default (kernel I think) this would happen.
Added resume to the HOOKS array -- can't resume at all without it.

Offline

Board footer

Powered by FluxBB