Внешний монитор к ноутбуку (intel+nvidia)

Автор Joni, 20 января 2017, 10:24:05

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Joni

Здравствуйте, пытюсь подключить к ноутбуку внешний монитор по VGA, но что то не выходит(
Установлен debian 8.6 64-bit + KDE
Процессор Intel core i7-3740QM
Видеокарты: Intel HD Graphics 4000 + NVIDIA Quadro K2000M
вывод команды xrandr(при подключеном мониторе):
Открыть содержимое (спойлер)

$ xrandr
Screen 0: minimum 320 x 200, current 1360 x 768, maximum 8192 x 8192
LVDS1 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.02 +  50.03    59.93 
   1680x1050     59.95    59.88 
   1600x1024     60.17 
   1400x1050     59.98 
   1280x1024     60.02 
   1440x900      59.89 
   1280x960      60.00 
   1360x768      59.80*   59.96 
   1152x864      60.00 
   1024x768      60.00 
   800x600       60.32    56.25 
   640x480       59.94 
VGA1 disconnected (normal left inverted right x axis y axis)
[свернуть]

статус Bumblebee:
Открыть содержимое (спойлер)

# service bumblebeed status
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/lib/systemd/system/bumblebeed.service; enabled)
   Active: active (running) since Fri 2017-01-20 09:17:36 GMT; 35min ago
Main PID: 589 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           └─589 /usr/sbin/bumblebeed

Jan 20 09:17:36 debian systemd[1]: Starting Bumblebee C Daemon...
Jan 20 09:17:36 debian systemd[1]: Started Bumblebee C Daemon.
Jan 20 09:17:40 debian bumblebeed[589]: [   18.663211] [INFO]/usr/sbin/bumblebeed 3.2.1 started
[свернуть]

статус Bumblebee после ввода команды "primusrun glxinfo":
Открыть содержимое (спойлер)

# service bumblebeed status
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/lib/systemd/system/bumblebeed.service; enabled)
   Active: active (running) since Fri 2017-01-20 09:17:36 GMT; 39min ago
Main PID: 589 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           ├─ 589 /usr/sbin/bumblebeed
           └─2731 Xorg :8 -config /etc/bumblebee/xorg.conf.nvidia -configdir /etc/bumblebee/xorg.conf.d -sharevts -nol...

Jan 20 09:17:36 debian systemd[1]: Starting Bumblebee C Daemon...
Jan 20 09:17:36 debian systemd[1]: Started Bumblebee C Daemon.
Jan 20 09:17:40 debian bumblebeed[589]: [   18.663211] [INFO]/usr/sbin/bumblebeed 3.2.1 started
Jan 20 09:55:17 debian bumblebeed[589]: [ 2275.760193] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM inte...denied
Jan 20 09:55:17 debian bumblebeed[589]: [ 2275.760220] [WARN][XORG] (WW) Unresolved symbol: fbGetGCPrivateKey
Jan 20 09:55:17 debian bumblebeed[589]: [ 2275.760232] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device...ation.
Jan 20 09:55:17 debian bumblebeed[589]: [ 2275.760253] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM inte...denied
Jan 20 09:55:17 debian bumblebeed[589]: [ 2275.760272] [WARN][XORG] (WW) evdev: Chicony HP Elite USB Keyboard: i... axes.
Hint: Some lines were ellipsized, use -l to show in full.
[свернуть]

/etc/bumblebee/bumblebee.conf:
Открыть содержимое (спойлер)

# cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=true
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-current
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
[свернуть]

/etc/bumblebee/xorg.conf.nvidia:
Открыть содержимое (спойлер)

# cat /etc/bumblebee/xorg.conf.nvidia
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
#   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseDisplayDevice" "none"
    BusID "PCI:01:00:0"
EndSection
Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection
[свернуть]

/etc/X11/xorg.conf - отсутсвует

На этом же ноутбуке установлена Windows 7 и внешний монитор работает

qupl

Joni, первым делом firmware установите. VGA-выход от дискретной карты или встроенной?

Joni

Цитата: qupl от 20 января 2017, 11:24:02первым делом firmware установите
Вы имеете ввиду драйверы на видеокарту Nvidia (nouveau) ?
Цитата: qupl от 20 января 2017, 11:24:02VGA-выход от дискретной карты или встроенной?
Думаю, что от дискретной, но как в этом убедиться не знаю

qupl

Цитата: Joni от 20 января 2017, 12:43:31Вы имеете ввиду драйверы на видеокарту Nvidia (nouveau) ?
Нет.
aptitude install firmware-linux-free firmware-linux-nonfree

Joni

Установил, ничего не изменилось(

qupl

lspci | grep -ie vga
VGA-выход один? Монитор к нему подключен?

Joni

VGA один, монитор к нему подключен, еще есть Display Port, но переходников у меня нет, я к нем не подключаюсь
# lspci | grep -ie vga
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K2000M] (rev ff)

qupl

Joni, для начала предположим, что VGA от интегрированной карты, тогда сделайте себе xorg.conf для intel-карты как в этой теме. После любых изменений смотрите Xorg.0.log на предмет ошибок.
Для чистоты эксперимента дискретную лучше отключить и конфиги bumblebee временно перенести.

ksander

VGA как правило от интегрированной карты - тут вы правы  у меня тоже NVS 4200M и VGA на интегрированной , а вот HDMI на дискретной.
ARandR - попробуйте этой утилитой графической настраивать после подключения монитора.
Debian Jessie amd64
XFCE 4.12+Docky

Joni

Цитата: qupl от 20 января 2017, 19:03:55
сделайте себе xorg.conf для intel-карты как в этой теме. После любых изменений смотрите Xorg.0.log на предмет ошибок.
сделал xorg.conf по последнему сообщению темы, в Xorg.0.log ошибок нет

$ cat /var/log/Xorg.0.log | grep EE
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.


Цитата: ksander от 22 января 2017, 15:54:45
ARandR - попробуйте этой утилитой графической настраивать после подключения монитора.
ARandR видит только экран ноута(

Запустился под Win7, утилита от nvidia показывает, что VGA работает через дискретную карту(во вложении скриншот)

qupl

Joni, если взяли конфиг из той темы без правки, то не факт, что  работать будет. Весь Xorg.0.log смотрите, иногда некоторые строки конфига игнорируются и об этом в логе написано.
А у Вас по Fn+F7 не выключается/включается монитор?

Joni

#11
Цитата: qupl от 23 января 2017, 11:58:43
А у Вас по Fn+F7 не выключается/включается монитор?
Нет, но сбросилось разрешение на стандартное (ноут 15.6" для комфортной работы выставляю 1366х768, а по умолчанию 1920х1080)
Модель ноутбука: Lenovo ThinkPad W530

Цитата: qupl от 23 января 2017, 11:58:43
Весь Xorg.0.log смотрите, иногда некоторые строки конфига игнорируются
В логе вроде про игнор ничего не нашел, но про VGA1:

[    16.940] (II) intel(0): EDID for output VGA1
[    16.940] (II) intel(0): Output LVDS1 connected
[    16.940] (II) intel(0): Output VGA1 disconnected
[    16.940] (II) intel(0): Using exact sizes for initial modes
[    16.940] (II) intel(0): Output LVDS1 using initial mode 1920x1080


Загрузил с флешки kubuntu 16.10, монитор включился, глянул что и как в конфигах:
/etc/X11/xorg.conf - отсутсвует
/etc/bumblebee - отсутсвует
xrandr монитор видит
на nvidia, как я понял, драйвера nouveau

qupl

Joni, сравните набор пакетов содержащих "intel" в обеих системах. Ядро в бубне старее и в логе вообще нет ничего про определение intel-карты. Там VGA через NVIDIA работает, а основной экран вроде как через intel.
В kubuntu выполните xrandr --listproviders

Joni

#13
Цитата: qupl от 23 января 2017, 22:36:00
В kubuntu выполните xrandr --listproviders
root@kubuntu:/home/kubuntu# xrandr --listproviders
Providers: number : 3
Provider 0: id: 0x83 cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 2 associated providers: 2 name:modesetting
Provider 1: id: 0x48 cap: 0x6, Sink Output, Source Offload crtcs: 4 outputs: 5 associated providers: 2 name:nouveau
Provider 2: id: 0x48 cap: 0x6, Sink Output, Source Offload crtcs: 4 outputs: 5 associated providers: 2 name:nouveau

Цитата: qupl от 23 января 2017, 22:36:00
сравните набор пакетов содержащих "intel" в обеих системах.

@kubuntu:/home/kubuntu# dpkg -l | grep -i intel
ii  i965-va-driver:amd64                            1.7.1-1                                     amd64        VAAPI driver for Intel G45 & HD Graphics family
ii  libcilkrts5:amd64                               6.2.0-5ubuntu12                             amd64        Intel Cilk Plus language extensions (runtime)
ii  libdrm-intel1:amd64                             2.4.70-1                                    amd64        Userspace interface to intel-specific kernel DRM services -- runtime
ii  libmpx2:amd64                                   6.2.0-5ubuntu12                             amd64        Intel memory protection extensions (runtime)
ii  xserver-xorg-video-intel                        2:2.99.917+git20160706-1ubuntu1             amd64        X.Org X server -- Intel i8xx, i9xx display driver


@debian:~$ dpkg -l | grep -i intel
ii  i965-va-driver:amd64                  1.4.1-2                              amd64        VAAPI driver for Intel G45 & HD Graphics family
ii  libcilkrts5:amd64                     4.9.2-10                             amd64        Intel Cilk Plus language extensions (runtime)
ii  libdrm-intel1:amd64                   2.4.58-2                             amd64        Userspace interface to intel-specific kernel DRM services -- runtime
ii  xserver-xorg-video-intel              2:2.21.15-2+b2                       amd64        X.Org X server -- Intel i8xx, i9xx display driver


на дебиане версии более старые, а так набор одинаковый

qupl

Как бы я поступил. 1) заблэклистил на время noveau  2) в xorg.conf описал ваши два выхода встроенной карты 3) на всякий случай установил пакет  intel-microcode

посмотрите что выдаст xrandr --output VGA1 --auto