My HP laptop doesn't power off with opensuse leap 15

Hi, I have serious problem with oepnsuse leap 15. My laptop doesn’t power off when shutdown or restart or closing the lid of it. The screen turns off and goes dark but the fan continues to work and no key works.
I have to press down the power key for some seconds to power off the laptop.
This is my second time that I post this problem and nobody has an answer. Please help me…

Some more information might be helpful to start with…

echo $XDG_SESSION_TYPE
echo $DESKTOP_SESSION
ps -A|grep dm

Graphics details as well please…

/usr/sbin/hwinfo --gfxcard

Post your laptop model details as well please.

Thank you for your answer.These are:

dmidecode | grep -A3 '^System Information'
System Information
        Manufacturer: Hewlett-Packard
        Product Name: HP Pavilion 15 Notebook PC
echo $XDG_SESSION_TYPE
x11
echo $DESKTOP_SESSION
/usr/share/xsessions/plasma5
ps -A|grep dm
1649 ?        00:00:00 sddm

2055 ? 00:00:00 sddm-helper

/usr/sbin/hwinfo --gfxcard
12: PCI a00.0: 0302 3D controller                               
  [Created at pci.378]
  Unique ID: cuhJ.dlcNYAxQIm4
  Parent ID: QSNP.7IPJ22fQhyC
  SysFS ID: /devices/pci0000:00/0000:00:1c.4/0000:0a:00.0
  SysFS BusID: 0000:0a:00.0
  Hardware Class: graphics card
  Model: "nVidia GK208M [GeForce GT 740M]"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1292 "GK208M [GeForce GT 740M]"
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x2166 
  Revision: 0xa1
  Driver: "nouveau"
  Driver Modules: "nouveau"
  Memory Range: 0xb3000000-0xb3ffffff (rw,non-prefetchable)
  Memory Range: 0xa0000000-0xafffffff (ro,non-prefetchable)
  Memory Range: 0xb0000000-0xb1ffffff (ro,non-prefetchable)
  I/O Ports: 0x3000-0x3fff (rw)
  IRQ: 43 (87 events)
  Module Alias: "pci:v000010DEd00001292sv0000103Csd00002166bc03sc02i00"
  Driver Info #0:
    Driver Status: nouveau is active
    Driver Activation Cmd: "modprobe nouveau"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #15 (PCI bridge)

16: PCI 02.0: 0300 VGA compatible controller (VGA)
  [Created at pci.378]
  Unique ID: _Znp.XF876aNZXz1
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Model: "Intel Haswell-ULT Integrated Graphics Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x0a16 "Haswell-ULT Integrated Graphics Controller"
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x2166 
  Revision: 0x09
  Driver: "i915"
  Driver Modules: "i915"
  Memory Range: 0xb5000000-0xb53fffff (rw,non-prefetchable)
  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
  I/O Ports: 0x6000-0x603f (rw)
  Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
  IRQ: 42 (730971 events)
  Module Alias: "pci:v00008086d00000A16sv0000103Csd00002166bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

Primary display adapter: #16

Your graphics hardware details show that you have an Intel/NVIDIA hybrid graphics. The openSUSE Leap 15 release notes mentions…

4.1 Hang on Machines with Nvidia GPUs and Hybrid Graphics

 With the kernel shipped in openSUSE Leap 15.0 GM, the Nouveau driver for     Nvidia graphics card may hang at reboot, shutdown, or during runtime power     management actions. This bug occurs primarily on system with hybrid     graphics, such as laptops that include integrated Intel graphics and a     discrete Nvidia graphics card.    
 The bug will be fixed in a maintenance update for the kernel. However, as     the installation image does not receive updates, this issue may occur     during installation or first boot even after that update has shipped.     In that case, as a temporary workaround, boot with the option     nouveau.modeset=0. After the updated kernel     including the fix is installed, you can remove this option again.    

In case you wish to investigate using the proprietary nvidia driver and bumblebee to support your hybrid graphics architecture
https://en.opensuse.org/SDB:NVIDIA_Bumblebee

This might be worth watching as well
https://www.youtube.com/watch?v=LmIHjE1BfVI

Thank you very much deano_ferrari](https://forums.opensuse.org/member.php/122-deano_ferrari). So the problem is nouveau driver. I’ve installed latest updates for leap 15 but the problem still exists!
should I install nvidia driver instead of nouveau? or just disable my graphic card??