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.
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.
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)
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:
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?
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.