You are not logged in.

#1 2009-06-03 06:32:30

mefiX
Member
From: Germany
Registered: 2009-03-09
Posts: 17
Website

Hibernate Problem (DELL Latitude D630)

Hi Arch-Folks smile

I have a problem with hibernating my DELL Lat. D630.
I would like to do suspend2ram.
From the console (kde's konsole) typing

# s2ram -f

without any further parameters works really well, after waking up, the machine brings up the complete previous kde session.

So i added /etc/acpi/events/lid with the following content

event=lid
action=/etc/acpi/actions/lid_handler.sh %e

And /etc/acpi/actions/lid_handler.sh with the following content

#!/bin/sh
# check if the lid is open or closed, using the /proc file
if grep closed /proc/acpi/button/lid/LID/state >/dev/null ; then
.   # if the lid is now closed, save the network state and suspend to ram
    netcfg all-suspend
    pm-suspend
else
    # if the lid is now open, restore the network state.
    # (if we are running, a wakeup has already occured!)
    netcfg all-resume
fi

I also checked, that pm-suspend works, the effect is the same as calling # s2ram -f or # hibernate directly.
So, closing the lid calls the new created script and seems to hibernate the machine ...
BUT, when waking up, the machine kills my kde-session and starts up KDM mad

Because i read smth. about "AccelMethod" "UXA" being responsible for that, i have to mention, that i am using UXA by now.
Furthermore, if this is the reason, then i also have to add my graphics-chip:

00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)

Xorg Version:

X.Org X Server 1.6.1.901 (1.6.2 RC 1)
Release Date: 2009-5-8
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.29-ARCH i686
Current Operating System: Linux meftop 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 07:06:02 UTC 2009 i686
Build Date: 28 May 2009  10:40:05PM

Intel Driver Version: 2.7.1
Kernel: 2.6.29

My hibernate config looks as follows (concatenated)

TryMethod ram.conf
TryMethod suspend2.conf
TryMethod disk.conf

TryMethod ususpend-ram.conf
TryMethod sysfs-ram.conf

USuspendMethod ram
USuspendRamForce yes

Can someone help me?

Offline

#2 2009-06-11 18:45:31

mefiX
Member
From: Germany
Registered: 2009-03-09
Posts: 17
Website

Re: Hibernate Problem (DELL Latitude D630)

Hey,

I kinda solved this problem by myself. It seems that it actually has to do smth. with the AccelMethod in /etc/X11/xorg.conf.
When I switch to EXA everything works just fine!

Offline

#3 2009-06-11 19:03:10

stabele
Member
Registered: 2008-12-22
Posts: 101

Re: Hibernate Problem (DELL Latitude D630)

If you don't mind, could you please post you xorg.conf?

Offline

#4 2009-06-11 19:11:43

mefiX
Member
From: Germany
Registered: 2009-03-09
Posts: 17
Website

Re: Hibernate Problem (DELL Latitude D630)

yeah:

Section "ServerFlags"
    #Option "AIGLX" "off" # on for composite
    #Option "AllowEmptyInput" "false"
    #Option "AllowMouseOpenFail"  "true"
    #Option "AutoAddDevices" "False"
EndSection

Section "Module"
    Load  "dbe"
    Load  "dri"
    Load  "glx"
    Load  "extmod"
    Load  "synaptics"
    Load  "vbe"
    Load  "evdev"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
    FontPath     "/usr/local/share/fonts"
EndSection

Section "Device"
    Identifier  "Card0"
    #Driver      "vesa"
    Driver      "intel"
    VendorName  "Intel Corporation"
    BoardName   "Mobile GM965/GL960 Integrated Graphics Controller"
    BusID         "PCI:0:2:0"
    #>Screen      0
    #VideoRam 262144

    Option "monitor-LVDS" "Monitor0"
    Option "monitor-TMDS-1" "Monitor1"
    #Option "monitor-VGA" "Monitor2"
    
    #Option "DRI"            "True"
    #Option "AccelMethod"    "UXA" # XAA=old, EXA=new, UXA=DRI2
    #>Option "MigrationHeuristic" "greedy"
    #>Option "ExaNoComposite" "true"
    #Option "XAANoOffscreenPixmaps" "True" # activate for composite
    #Option "DDC" "True"
    #Option "PageFlip" "True"
    #Option "RenderAccel" "True"
    #Option "DevicePresence" "True" 
    #Option "CacheLines"    "32768"
    #Option "TripleBuffer"  "True"
    #Option "NoAccel" "False"
EndSection

# LVDS - Notebook-LCD
Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "LPL"
    ModelName    "e5"
    Option "DPMS"
    Option "PreferredMode" "1440x900"
EndSection

# TMDS-1 - DVI - Samsung 2243BW
Section "Monitor"
    Identifier   "Monitor1"
    VendorName   "Samsung"
    ModelName    "2243BW"
    HorizSync    30.0 - 81.0
    VertRefresh  56.0 - 75.0
    Option         "DPMS"
    Option "RightOf" "Monitor0"
    Option "Position" "1440 0"
    Option "PreferredMode" "1680x1050"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "1440x900" "1024x768"
        #Virtual 3120 1050
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier     "dual"
    Screen  0 "Screen0" 0 0
#    Screen    1 "Screen2"
#    InputDevice    "Stick"
    InputDevice    "AnyMouse" "CorePointer"
    InputDevice    "Touchpad" "SendCoreEvents"
    InputDevice    "Keyboard0" "CoreKeyboard"
    #Option      "AIGLX" "true"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option "XkbRules"    "xorg"
    Option "XkbModel"    "evdev"
    Option "XkbLayout"    "de"
EndSection

Section "InputDevice"
    Identifier  "AnyMouse"
    Driver      "mouse"
    Option        "Protocol" "ImPS/2"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
    Identifier  "Touchpad"
    Driver "synaptics"
    Option "Device" "/dev/input/mouse2"
    Option "Protocol" "auto-dev"
    Option "LeftEdge" "130"
    Option "RightEdge" "840"
    Option "TopEdge" "130"
    Option "BottomEdge" "640"
    Option "FingerLow" "7"
    Option "FingerHigh" "8"
    Option "MaxTapTime" "180"
    Option "MaxTapMove" "110"
    Option "EmulateMidButtonTime" "75"
    Option "VertScrollDelta" "20"
    Option "HorizScrollDelta" "20"
    Option "MinSpeed" "0.60"
    Option "MaxSpeed" "1.10"
    Option "AccelFactor" "0.030"
    Option "EdgeMotionMinSpeed" "200"
    Option "EdgeMotionMaxSpeed" "200"
    Option "UpDownScrolling" "1"
    Option "CircularScrolling" "1"
    Option "CircScrollDelta" "0.1"
    Option "CircScrollTrigger" "2"
    Option "SHMConfig" "on"
    Option "Emulate3Buttons" "on"
EndSection

Section "DRI"
    #Group "video"
    Mode 0666
EndSection

Section "Extensions"
    #Option "Composite" "Enable" # Enable for composite
EndSection

As you can see, i tried a lot of parameters concerning my intel gfx-chip.
BTW: specifying no AccelMethod defaults to EXA atm!

Last edited by mefiX (2009-06-11 19:12:27)

Offline

#5 2009-06-16 11:47:20

mefiX
Member
From: Germany
Registered: 2009-03-09
Posts: 17
Website

Re: Hibernate Problem (DELL Latitude D630)

Hi,

with Kernel 2.6.30 and KMS enabled, hibernate now also works with UXA enabled (which is the default with KMS enabled).
Note: KMS also brings changes to Xorg/xorg.conf:
The Monitor's are renamed:

- before:
DVI N: TMDS-N
LVDS: LVDS
...

-now/current/KMS:
DVI N: DVIN
LVDS N: LVDSN
...

Offline

Board footer

Powered by FluxBB