Добрый день!
Есть ноутбук с такими процессором и видеокартами:
**# lscpu | grep 'Model name'**
Model name: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz
**# lspci | grep 'VGA'**
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1c8d (rev a1)
**# hwinfo --gfxcard | grep 'Model'**
Model: "Intel VGA compatible controller"
Model: "nVidia GP107M [GeForce GTX 1050 Mobile]"
Установила openSUSE 42.3.
Мне нужен драйвер nvidia, который я и устанавливаю.
После перезагрузки X и KDE загружаются, но разрешение экрана становится 800x600 и не работают некоторые эффекты (напр., кубическая анимация при переключении между рабочими столами).
В Configure Desktop → Display and Monitor нет других вариантов разрешения,
**> xrandr **
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 800 x 600, current 800 x 600, maximum 800 x 600
default connected primary 800x600+0+0 0mm x 0mm
800x600 75.00*
Драйвер я ставила через YaST, выбрав там nvidia-computeG04 (поскольку видеокарта нужна главным образом для этого). Пользовалась этими инструкциями, SDB:NVIDIA_drivers.
Вот log установки:
*Downloading nvidia-gfxG04-kmp-default (download size 8.17 MiB)
Downloading nvidia-glG04 (download size 27.64 MiB)
Downloading nvidia-computeG04 (download size 14.62 MiB)
Downloading x11-video-nvidiaG04 (download size 27.55 MiB)
Deleting libOpenCL1
Installing nvidia-gfxG04-kmp-default-390.42_k4.4.76_1-8.1.x86_64.rpm (installed size 45.52 MiB)
Installing nvidia-glG04-390.42-8.1.x86_64.rpm (installed size 137.24 MiB)
Installing nvidia-computeG04-390.42-8.1.x86_64.rpm (installed size 70.74 MiB)
Installing x11-video-nvidiaG04-390.42-8.1.x86_64.rpm (installed size 111.38 MiB)
*Некоторая информация о графике после установки драйвера (CUDA доставлена отдельно):
**# lspci -nnk -s 01:00.0**
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1c8d] (rev a1)
Subsystem: Hewlett-Packard Company Device [103c:838f]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
**
> glxinfo -B**
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 3.8, 256 bits) (0xffffffff)
Version: 17.0.5
Accelerated: no
Video memory: 7867MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.0.5
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 3.0 Mesa 17.0.5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
**
> glxgears**
8688 frames in 5.0 seconds = 1737.497 FPS
9590 frames in 5.0 seconds = 1917.839 FPS
8543 frames in 5.0 seconds = 1708.546 FPS
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 96790 requests (96790 known processed) with 0 events remaining.
**> clinfo | grep 'Name\|Version'**
Platform Name NVIDIA CUDA
Platform Version OpenCL 1.2 CUDA 9.1.84
Platform Name NVIDIA CUDA
Device Name GeForce GTX 1050
Device Version OpenCL 1.2 CUDA
Driver Version 390.42
Device OpenCL C Version OpenCL C 1.2
Вызов nvidia-settings приводит к окошку с сообщением “You do not appear to be using NVIDIA X driver. Please edit your X configuration file (just run nvidia-xconfig
as root), and restart the X server.” и к сообщениям об ошибках в командной строке:
**# nvidia-settings**
ERROR: Error querying enabled displays on GPU 0 (Missing Extension).
ERROR: Error querying connected displays on GPU 0 (Missing Extension).
ERROR: nvidia-settings could not find the registry key file. This file should have been
installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application
profiles will continue to work, but values cannot be prepopulated or validated,
and will not be listed in the help text. Please see the README for possible
values and descriptions.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Запускаю nvidia-xconfig:
**# nvidia-xconfig**
WARNING: Unable to locate/open X configuration file.
Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
New X configuration file written to '/etc/X11/xorg.conf'
Файла xorg-server.pc у меня на машине нет, переменной PKG_CONFIG_PATH тоже.
После этого перезапускаю графику, но X не грузятся, я попадаю в командную строку, которая при этом ещё и мерцает. Из-под рута делаю init 3, мерцания прекращаются. Переименовываю xorg.conf файл и опять гружу графику (init 5). При этом всё запускается с низким разрешением, как и было до выполнения nvidia-xconfig. Файл xorg.conf, сгенерированный этой командой, лежит здесь](https://pastebin.com/GgCKp1dk).
Помогите, пожалуйста, настроить нормально вывод графики с драйвером nvidia.
Заранее спасибо,
Наталья
Ещё, вдруг будет полезным. Этот ноутбук шёл с предустановленным 32-разрядным Linux Mint, на который драйвер стал без особых проблем (ставила через GUI настроек в Cinnamon), разрешение было нормальным, а в строке “client glx vendor string” вывода glxinfo стояло что-то типа “NVIDIA”, а не “Mesa Project and SGI”, как сейчас.