You are not logged in.

#1 2018-07-06 13:39:52

Walton
Member
Registered: 2014-01-09
Posts: 23

Xrandr doesn't show HDMI-1

I have a Dell Inspiron with a GTX 1060 mobile in it. I have my laptop screen working perfectly fine but would like to enable the HDMI output and use two monitors while working.

When I execute xrandr I get the relevant output

[ steven ] [~] > xrandr                                                                                                                                                                   []
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.02*+  60.01    59.97    59.96    59.93    48.03  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)

This shows exactly the same if I have an HDMI cable connected or not.

I can get the HDMI to work if I enable to following file (SE solution)

[ steven ] [~] > cat /etc/X11/xorg.conf.d/20-nvidia.conf.bk                                                                                                                               []
Section "Device"
    Identifier  "Nvidia Graphics"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
    BusID       "PCI:01:00:0"
    BoardName   "GeForce GTX 1060"
EndSection

The problem here is that ONLY the HDMI works. My screen will stay on the terminal after I execute `startx` (and I can't access it). Xrandr also does not show other devices that I could potentially access either.

I have no xorg.conf, as the intel driver instructions state that I don't need it. If I try to write one, along the lines of:

Section "Device"
   Identifier    "Intel Graphics"
   Driver        "intel"
EndSection

Then startx crashes.

I also have microcode (intel-ucode) (as suggested here) and cuda installed. It appears that both work fine independently, but not together. I would just like to be able to use multiple monitors, it does not matter to me if intel is driving both, nvidia is driving both, or I have a mix.

Additionally:

[ steven ] [~] > lspci | grep VGA                                                                                                                                                         []
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev a1)

When I run the nvidia xconfig I get this xorg, that also prevents startx

[ steven ] [~] > sudo nvidia-xconfig 
[ steven ] [~] > cat /etc/X11/xorg.conf.backup                                                                                                                                            []
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 340.104  (buildmeister@swio-display-x64-rhel04-19)  Thu Sep 14 17:28:00 PDT 2017

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
[ steven ] [~] > dmesg | grep microcode                                                                                                                                                   []
[    0.000000] microcode: microcode updated early to revision 0x84, date = 2018-01-21
[    0.532522] microcode: sig=0x906e9, pf=0x20, revision=0x84
[    0.532765] microcode: Microcode Update Driver: v2.2.

Offline

#2 2018-07-06 13:51:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,754

Re: Xrandr doesn't show HDMI-1

If anything and in the chance that you require to use the nvidia card in any way, install nvidia-390xx instead of nvidia-340xx (technically your card would be supported by the latest nvidia driver as well, but that has currently a bug with GTX 1060 specifically)

After doing that look at the output of

xrandr --listproviders

depending on how that pans out and how you intend to use your system, you will want to look at https://wiki.archlinux.org/index.php/NVIDIA_Optimus and maybe more specifically at https://wiki.archlinux.org/index.php/Bu … e_monitors if you intend to use bumblebee

Offline

Board footer

Powered by FluxBB