When using intel graphics:
Whenever I close the laptop lid or restart / shutdown using GUI or terminal commands, it goes into a black screen with a single "_" at the top left corner, and hangs. Only long-pressing the power button would shut down the computer.
However, when I use sudo prime-select nvidia
to switch over to nvidia, everything works fine.
Is there a way to fix this problem? On NVIDIA my battery only lasts like ~2hrs max, and it's really annoying to use the power button to shutdown the laptop.
Specs:
Intel 7700HQ, NVIDIA 1060GTX, kernel 4.8
Thank you!!
Edit:
When i choose sudo prime-select intel
on NVIDIA 375
i get :
Info: the current GL alternatives in use are: ['nvidia-375', 'nvidia-375']
Info: the current EGL alternatives in use are: ['nvidia-375', 'nvidia-375']
Info: selecting mesa for the intel profile
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode
/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in manual mode
update-alternatives: using /usr/lib/i386-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode
Current Driver: 381.22
On 381.22 I get:
➜ ~ sudo prime-select intel
[sudo] password for wboy:
Info: the current GL alternatives in use are: ['nvidia-381', 'nvidia-381']
Info: the current EGL alternatives in use are: ['nvidia-381', 'nvidia-381']
Info: selecting mesa for the intel profile
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in manual mode
update-alternatives: using /usr/lib/i386-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode
➜ ~ sudo prime-select nvidia
Info: the current GL alternatives in use are: ['mesa', 'mesa']
Info: the current EGL alternatives in use are: ['mesa-egl', 'nvidia-381']
Info: selecting nvidia-381 for the nvidia profile
update-alternatives: using /usr/lib/nvidia-381/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode
update-alternatives: using /usr/lib/nvidia-381/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in manual mode
update-alternatives: using /usr/lib/nvidia-381/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in manual mode
EDIT2: Attempts so far:
1)Tried installing new intel drivers from Updated kernel to 4.8 now missing firmware warnings --> Did not work. Issue persists
2) Tried upgrading kernel from 4.8 to 4.10.15 --> Did not work. Problem got worse. Instead of the normal login screen, it gives a terminal login screen and hangs.
3) Tried the fix to nvidia-prime https://askubuntu.com/a/884506/547039, but both the poweron.sh and poweroff.sh script hangs my laptop instead.
4) Tried sudo swapoff -a && systemctl poweroff as a workaround, no avail.
5) Tried changing
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
Does not work either.
EDIT3 Further information:
Typing sudo lshw -C display
:
When on intel driver: (sudo prime-select intel
)
--> outputs PCI (Sysfs)
then hangs
When on nvidia driver (sudo prime-select nvidia
):
*-display
description: VGA compatible controller
product: NVIDIA Corporation
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:131 memory:db000000-dbffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:e000(size=128) memory:dc000000-dc07ffff
*-display
description: VGA compatible controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: iomemory:2f0-2ef irq:127 memory:2ffe000000-2ffeffffff memory:80000000-8fffffff ioport:f000(size=64) memory:c0000-dffff
Typing modinfo i915 | grep filename:
➜ ~ modinfo i915 | grep filename
filename: /lib/modules/4.8.0-51-generic/kernel/drivers/gpu/drm/i915/i915.ko
The following shows the logs after shutdown, hard reset (due to hang) and subsequent booting up again
- /var/log/syslog
- /var/log/kern.log