Suspend on Asus UL30VT

Hello,

I just installed openSUSE 12.1 on my Asus UL30VT with integrated intel graphics (nvidia with optimus). Everything is working just fine besides the suspend functionality. When it is suspending the screens just turns black, but the laptop is still running without reacting anymore.
At the moment I am blacklisting nvidia and nouveau and thus just using the intel graphics.

grep -e intel /var/log/Xorg.0.log

    25.674] (II) LoadModule: "intel"
    25.675] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
    25.675] (II) Module intel: vendor="X.Org Foundation"
    25.675] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
    25.724] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so

hwinfo --gfxcard

10: PCI 02.0: 0300 VGA compatible controller (VGA)              
  [Created at pci.319]
  Unique ID: _Znp.VGg1kf4in3D
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Model: "Intel Mobile 4 Series Chipset Integrated Graphics Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x2a42 "Mobile 4 Series Chipset Integrated Graphics Controller"
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x1af2 
  Revision: 0x07
  Driver: "i915"
  Driver Modules: "drm"
  Memory Range: 0xfcc00000-0xfcffffff (rw,non-prefetchable)
  Memory Range: 0xd0000000-0xdfffffff (ro,non-prefetchable)
  I/O Ports: 0xcc00-0xcc07 (rw)
  IRQ: 45 (39559 events)
  Module Alias: "pci:v00008086d00002A42sv00001043sd00001AF2bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Config Status: cfg=no, avail=yes, need=no, active=unknown


26: PCI 100.0: 0300 VGA compatible controller (VGA)
  [Created at pci.319]
  Unique ID: VCu0.H3f9Zg+or39
  Parent ID: vSkL.lmT_1_N8gPE
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia VGA compatible controller"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x0a74 
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x1af2 
  Revision: 0xff
  Driver: "nouveau"
  Driver Modules: "drm"
  Memory Range: 0xfd000000-0xfdffffff (rw,non-prefetchable)
  Memory Range: 0xe0000000-0xefffffff (ro,non-prefetchable)
  Memory Range: 0xfa000000-0xfbffffff (ro,non-prefetchable)
  I/O Ports: 0xdc00-0xdc7f (rw)
  Memory Range: 0xfe980000-0xfe9fffff (ro,non-prefetchable)
  IRQ: 16 (178 events)
  Module Alias: "pci:v000010DEd00000A74sv00001043sd00001AF2bc03sc00i00"
  Driver Info #0:
    Driver Status: nvidiafb is not active
    Driver Activation Cmd: "modprobe nvidiafb"
  Driver Info #1:
    Driver Status: nouveau is active
    Driver Activation Cmd: "modprobe nouveau"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #9 (PCI bridge)


Primary display adapter: #10

cat /var/log/pm-suspend.log


Initial commandline parameters: 
Tue Jun 19 10:50:37 CEST 2012: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
suspend initiated: Tue Jun 19 10:50:37 CEST 2012


Linux linux-uj6z.site 3.1.10-1.9-desktop #1 SMP PREEMPT Thu Apr 5 18:48:38 UTC 2012 (4a97ec8) x86_64 x86_64 x86_64 GNU/Linux
kernel command line: 'root=/dev/disk/by-id/ata-ST9500325AS_5VE95ZHK-part6 resume=/dev/disk/by-id/ata-ST9500325AS_5VE95ZHK-part7 acpi_backlight=vendor splash=silent quiet showopts vga=0x317'
Module                  Size  Used by
fuse                   87910  3 
acpi_call              12825  0 
ip6t_LOG               17095  5 
xt_tcpudp              12924  2 
xt_pkttype             12504  3 
ipt_LOG                13040  5 
xt_limit               12711  10 
af_packet              35338  0 
vmsync                 13068  0 
vmblock                22807  1 
ip6t_REJECT            12974  3 
nf_conntrack_ipv6      14349  3 
nf_defrag_ipv6         18438  1 nf_conntrack_ipv6
ip6table_raw           12683  1 
xt_NOTRACK             12504  4 
ipt_REJECT             12576  3 
iptable_raw            12678  1 
iptable_filter         12810  1 
ip6table_mangle        12740  0 
nf_conntrack_netbios_ns    12665  0 
nf_conntrack_broadcast    12589  1 nf_conntrack_netbios_ns
nf_conntrack_ipv4      14783  3 
nf_defrag_ipv4         12729  1 nf_conntrack_ipv4
ip_tables              27717  2 iptable_raw,iptable_filter
xt_conntrack           12760  6 
nf_conntrack           96202  6 nf_conntrack_ipv6,xt_NOTRACK,nf_conntrack_netbios_ns,nf_conntrack_broadcast,nf_conntrack_ipv4,xt_conntrack
ip6table_filter        12815  1 
ip6_tables             27864  4 ip6t_LOG,ip6table_raw,ip6table_mangle,ip6table_filter
x_tables               34102  16 ip6t_LOG,xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,ip6table_raw,xt_NOTRACK,ipt_REJECT,iptable_raw,iptable_filter,ip6table_mangle,ip_tables,xt_conntrack,ip6table_filter,ip6_tables
microcode              35758  0 
cpufreq_conservative    13821  0 
cpufreq_userspace      13162  0 
cpufreq_powersave      12618  0 
acpi_cpufreq           18766  1 
mperf                  12667  1 acpi_cpufreq
sg                     36561  0 
snd_hda_codec_hdmi     36348  4 
mxl5005s               46356  1 
af9013                 27791  1 
arc4                   12529  2 
snd_hda_codec_realtek   338195  1 
ath9k                 104916  0 
mac80211              332552  1 ath9k
snd_hda_intel          33441  2 
snd_hda_codec         119003  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13613  1 snd_hda_codec
snd_pcm               109553  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
ath9k_common           13839  1 ath9k
ath9k_hw              355324  2 ath9k,ath9k_common
snd_timer              34086  1 snd_pcm
ath                    24067  2 ath9k,ath9k_hw
snd                    86602  11 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
cfg80211              210368  3 ath9k,mac80211,ath
soundcore              15091  1 snd
snd_page_alloc         18572  2 snd_hda_intel,snd_pcm
asus_laptop            23818  0 
sparse_keymap          13890  1 asus_laptop
rfkill                 25967  2 cfg80211,asus_laptop
ir_lirc_codec          12898  0 
lirc_dev               20018  1 ir_lirc_codec
ir_mce_kbd_decoder     12990  0 
ir_sony_decoder        12549  0 
ir_jvc_decoder         12546  0 
ir_rc6_decoder         12546  0 
ir_rc5_decoder         12546  0 
ir_nec_decoder         12546  0 
dvb_usb_af9015         31021  0 
dvb_usb                28540  1 dvb_usb_af9015
dvb_core              114712  1 dvb_usb
rc_core                31058  9 ir_lirc_codec,ir_mce_kbd_decoder,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder,dvb_usb_af9015,dvb_usb
uvcvideo               76804  0 
videodev              102250  1 uvcvideo
v4l2_compat_ioctl32    17083  1 videodev
joydev                 17606  0 
iTCO_wdt               17863  0 
pcspkr                 12702  0 
iTCO_vendor_support    13718  1 iTCO_wdt
atl1c                  46458  0 
serio_raw              13166  0 
ac                     13055  0 
battery                18608  0 
edd                    14560  0 
autofs4                43290  2 
i915                  638449  2 
nouveau               778193  0 
ttm                    80953  1 nouveau
thermal                22961  0 
drm_kms_helper         42489  2 nouveau,i915
drm                   252927  5 nouveau,ttm,i915,drm_kms_helper
mxm_wmi                12979  1 nouveau
wmi                    19256  1 mxm_wmi
processor              45192  3 acpi_cpufreq
i2c_algo_bit           13423  2 nouveau,i915
button                 13949  2 nouveau,i915
video                  19653  2 nouveau,i915
thermal_sys            25017  3 thermal,processor,video


             total       used       free     shared    buffers     cached
Mem:       4021624    1317668    2703956          0      33524     704896
-/+ buffers/cache:     579248    3442376
Swap:      1023996          0    1023996




/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:


/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/02rtcwake suspend suspend:
rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...


/usr/lib/pm-utils/sleep.d/02rtcwake suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/06autofs suspend suspend:


/usr/lib/pm-utils/sleep.d/06autofs suspend suspend: success.
Running hook /etc/pm/sleep.d/10_costum_asus_ul30vt suspend suspend:


/etc/pm/sleep.d/10_costum_asus_ul30vt suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/30s2disk-check suspend suspend:


/usr/lib/pm-utils/sleep.d/30s2disk-check suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/45pcmcia suspend suspend:
ejecting PCMCIA cards...


/usr/lib/pm-utils/sleep.d/45pcmcia suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:


/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/50rcnetwork suspend suspend:


/usr/lib/pm-utils/sleep.d/50rcnetwork suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.


/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:


/usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75ndiswrapper suspend suspend:


/usr/lib/pm-utils/sleep.d/75ndiswrapper suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/80acpi-fan suspend suspend:


/usr/lib/pm-utils/sleep.d/80acpi-fan suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/80videobios suspend suspend:


/usr/lib/pm-utils/sleep.d/80videobios suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:


/usr/lib/pm-utils/sleep.d/90clock suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:


/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:


/usr/lib/pm-utils/sleep.d/95led suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95packagekit suspend suspend:


/usr/lib/pm-utils/sleep.d/95packagekit suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
Kernel modesetting video driver detected, not using quirks.


/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99Zgrub suspend suspend:


/usr/lib/pm-utils/sleep.d/99Zgrub suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99info suspend suspend:


/usr/lib/pm-utils/sleep.d/99info suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:


/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Tue Jun 19 10:50:38 CEST 2012: performing suspend
INFO: using built-in quirks database from HAL.
INFO: S2RAM_OPTS from HAL quirks: ' '.

Thank you for any help!
Regards

OK, problem detected.
Apparently I need to use nomodeset to disable KMS and thus preventing to launch the nouveau driver.

Now, I need to select the graphics driver manually. When choosing “intel” in /etc/X11/xorg.conf.d/50-device.conf, no devices are detected/no screens found. Thus, I can only use the intellegacy driver! Why is that?
Using intellegacy leads to bad performance and X crashes when starting Firefox/Chromium etc. as described in various bug reports and in the forums.

So, does anyone know how I can use “intel” again?
Thx!

I would have a look here for some help with Optimus: Bumblebee - NVIDIA Optimus support for Linux!

Thank You,

Thx, I thought I could avoid that. Anyway, I got suspend working smoothly after following this guide: http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/unreviewed-how-faq/469419-opensuse-12-1-optimus-laptop.html