使用英特尔图形卡时:
每当我关闭笔记本电脑机盖或使用GUI或终端命令重新启动/关机时,它就会进入黑屏,并在左上角带有一个“ _”,并挂起。只有长按电源按钮才能关闭计算机。
但是,当我使用sudo prime-select nvidia
Nvidia切换时,一切正常。
有办法解决这个问题吗?在NVIDIA上,我的电池最多只能使用2个小时左右,使用电源按钮关闭笔记本电脑真的很烦人。
眼镜:
英特尔7700HQ,NVIDIA 1060GTX,内核4.8
谢谢!!
编辑:
当我选择sudo prime-select intel
NVIDIA 375时
我得到:
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
当前驾驶员: 381.22
381.22,我得到:
➜ ~ 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:到目前为止的尝试:
1)尝试从更新的内核安装新的英特尔驱动程序到4.8现在缺少固件警告 ->无法正常工作。问题仍然存在
2)尝试将内核从4.8升级到4.10.15->无效。问题变得更糟。它提供了终端登录屏幕并挂起,而不是正常的登录屏幕。
3)尝试对nvidia-prime https://askubuntu.com/a/884506/547039进行修复,但是poweron.sh和poweroff.sh脚本都将笔记本电脑挂起。
4)尝试将sudo swapoff -a && systemctl poweroff作为一种解决方法,无济于事。
5)尝试改变
GRUB_CMDLINE_LINUX_DEFAULT =“安静的飞溅”到GRUB_CMDLINE_LINUX_DEFAULT =“安静的飞溅acpi = force”
也不起作用。
EDIT3更多信息:
打字sudo lshw -C display
:
在英特尔驱动程序上时:(sudo prime-select intel
)->输出PCI (Sysfs)
然后挂起
在nvidia驱动程序(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
输入modinfo i915 | grep文件名:
➜ ~ modinfo i915 | grep filename
filename: /lib/modules/4.8.0-51-generic/kernel/drivers/gpu/drm/i915/i915.ko
下面显示了关机,硬重置(由于挂起)以及随后再次启动后的日志
- / var / log / syslog
- /var/log/kern.log