Suspend sleeps but does not wake up.

Fresh install of Leap 15.1 on HP Pavilion (HP15CS2073cl).

System has the intel i910 / nvidia geforce mx250 graphics card, I believe what everyone is calling the “optimus”

Laptop runs great etc, however if one suspends within a gui, such as KDE, xfce, gnome, the laptop will suspend, everything sleeps as indicated by power button led flash / blinks.

When one tries to wake up the laptop via power button or lid, power light turns on, however screen is black no mouse cursor, and the system is locked up, nothing responds, have to force a power off.

If one suspends laptop from kdm, suspend seems to work just fine.

Also hibernate works just fine.

In terms of install it’s whatever defaults 15.1 uses and whatever is used when Nvidia graphics repo is used.

Thanks in advance.

You can’t just use the NVIDA driver in an Optimus machine

ttps://en.opensuse.org/SDB:NVIDIA_Bumblebee

Note this page has not been updated for 15.X but the procedure should be the same

Hi and welcome to the openSUSE Forums!
Please uninstall everything with “nvidia” in the name and disable the Nvidia repo: an “Optimus” laptop should run Leap 15.1 with the default driver (nouveau) and the default install pretty well.
“Suspend to RAM” (or “Sleep”) should work fine, “Suspend to disk” (or “hibernate”) might have problems with some Nvidia chips. You can try to add “modprobe.blacklist=nouveau” to your boot command line if you need hibernate and meet with problems.
Ask here if you need help with that.
If you need the graphics performance of the proprietary driver, Bumblebee is the way to go. Sorry I didn’t test it so far, so I cannot tell for sure if the referenced page would still work with Leap.

Thanks for the tip

I uninstall all “nvidia” same thing laptop does not wake from sleep, and hibernate does not work now.

Installed bumblebee (I did not install Nvidia drivers), tested as per SDB glxgears works.

However laptop still does not wake from sleep, locks up and hibernate does not work as well.

Any help greatly appreciated.

The nouveau driver has problems restoring the correct configuration of some Nvidia GPUs, maybe yours is one of those affected.
You may try to install the proprietary driver and see what happens. That worked in the past with a laptop that currently does not resume properly from hibernate when nouveau is engaged.

You wrote that suspend and hibernate work fine when the display manager is KDM? If so there might be other problems in your install, for instance remnants of a previous install or tests or conflicting components of different desktop environments?
If that is the case and you are interested in debugging I suggest starting from scratch with a clean and default install of a single desktop environment and adding “modprobe.blacklist=nouveau” to the boot command line. If that still results in a “black screen”, you might have problems unrelated to the “Optimus” architecture or the Nvidia GPU.

If you have an MX250 GPU, chances are that you also have recent Intel integrated graphics as well. Just in case it is the intel that doesn’t wake up, you can try adding “i915.alpha_support=1” to the boot command line.
Please post the result of the following command to receive more detailed advice:

sudo hwinfo --gfxcard

(and use CODE tags, hit the # button above the editing area of the Forum)

Still suspend does not work, however hibernate is working again.

Here is what I did.

Went ahead and reloaded the system from scratch, after installation immediately tried suspend and hibernate both did not work.

Then I tried the i915.alpha_support=1, again same thing suspend and hibernate did not work.

Next installed bumblebee, suspend fails, hibernate works.

I’ve attached output of hwinfo --gfxcard

Help appreciated. Thanks in advance.

15: PCI 02.0: 0300 VGA compatible controller (VGA)               
  [Created at pci.386]
  Unique ID: _Znp.iLuUuLkp4ZE
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Device Name: "Intel Whiskeylake HD Graphics ULT"
  Model: "Intel UHD Graphics 620 (Whiskey Lake)"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x3ea0 "UHD Graphics 620 (Whiskey Lake)"
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x84c1  
  Driver: "i915"
  Driver Modules: "i915"
  Memory Range: 0xa2000000-0xa2ffffff (rw,non-prefetchable)
  Memory Range: 0xb0000000-0xbfffffff (ro,non-prefetchable)
  I/O Ports: 0x5000-0x503f (rw)
  Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
  IRQ: 128 (47482 events)
  Module Alias: "pci:v00008086d00003EA0sv0000103Csd000084C1bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

22: PCI 200.0: 0302 3D controller
  [Created at pci.386]
  Unique ID: B35A.+nWHxZ1T0yD
  Parent ID: QSNP.sl6lVwWopi5
  SysFS ID: /devices/pci0000:00/0000:00:1c.4/0000:02:00.0
  SysFS BusID: 0000:02:00.0
  Hardware Class: graphics card
  Device Name: "NVIDIA GeForce GTX MX250"
  Model: "nVidia GP108M [GeForce MX250]"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1d13 "GP108M [GeForce MX250]"
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x84c1  
  Revision: 0xff
  Memory Range: 0xa3000000-0xa3ffffff (rw,non-prefetchable)
  Memory Range: 0x90000000-0x9fffffff (ro,non-prefetchable)
  Memory Range: 0xa0000000-0xa1ffffff (ro,non-prefetchable)
  I/O Ports: 0x4000-0x4fff (rw)
  IRQ: 16 (no events)
  Module Alias: "pci:v000010DEd00001D13sv0000103Csd000084C1bc03sc02i00"
  Driver Info #0:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Driver Info #1:
    Driver Status: nvidia_drm is not active
    Driver Activation Cmd: "modprobe nvidia_drm"
  Driver Info #2:
    Driver Status: nvidia is not active
    Driver Activation Cmd: "modprobe nvidia"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #14 (PCI bridge)

Primary display adapter: #15


Just to avoid confusion, apparently you also installed the Nvidia driver?

A quick scan of the net reveals that suspend problems are not uncommon with WhiskeyLake processors, see for instance this power management - HP Spectre X360 13 (i7-8565U Whisky Lake) won't suspend properly - Ask Ubuntu
and this https://wiki.archlinux.org/index.php/HP_Spectre_x360_-_13-ap0xxxx
So maybe you have to configure for the so called “hybrid sleep”, in fact using sort of “hibernate” even if all you need is “suspend”?

I followed the bumblebee SDB, and did install the nvidia-bumblebee, prehaps I should try to uninstall?

Thanks

I cannot test at the moment, but to configure for “hybrid sleep” according to this ArchWiki page you have to create a /etc/systemd/sleep.conf file with the following content:

[Sleep]
# suspend=hybrid-sleep
SuspendMode=suspend
SuspendState=disk
# hibernate=hybrid-sleep
HibernateMode=suspend
HibernateState=disk

No, that was only to avoid misunderstandings.

Wanted to update on this issue, I did get Hybrid Suspend to work, and suspend sleeps half way I think based on fact the power button never starts blinking, hibernate works.

A tip provided by OrsoBruno (thank you), lead me to a ask Ubuntu link, in which the problem I’m having was solved by updating the kernel. So I switched to Kernel 5.1 in the Kernel standard, and I now have Hybrid suspend, for me that works fine.

I am going to try Bumblebee as well but so far can’t find glibc 2.28, which zypper / yast claims is needed for bumblebee.

There is an the updated Glibc in tumbleweed, but not sure if I can use them, and not screw something up.

Is there am updated Glibc 2.28 for 15.1 somewhere?

Thanks

Nice to read you are up and running. You don’t really need Bumblebee, with a default install you can use the Nvidia GPU when needed just opening a terminal and issuing:

DRI_PRIME=1 <name of program to be run>

I did not find advantages with Bumblebee, so when DRI_PRIME worked for me (in Leap 15.0) I stopped installing Bumblebee. Not sure if that works with the Nvidia driver though, so if you need better performance maybe Bumblebee is still the way to go.
I don’t think that installing an “alien” glibc is a good idea; maybe it works, but if it doesn’t it is not going to be easy to debug.
Using Kernel/stable you may try Bumblebee “The Old Way” following this: https://en.opensuse.org/index.php?title=SDB:NVIDIA_Bumblebee&oldid=118653
Where it calls for the “13.2” repository, you should instead use this: http://download.opensuse.org/repositories/X11:/Bumblebee/Kernel_stable_standard/x86_64/
I didn’t personally check that recently, so use it at your own risk. If you have room on your disk, it would be a good idea to setup a second “test” installation where you can experiment without touching your primary install for everyday work. A relatively small root partition with no separate /home is all you need, you can share the swap partition if you use one.