Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] xrandr can't see HDMI output
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 15

PostPosted: Mon Dec 24, 2018 8:04 am    Post subject: [SOLVED] xrandr can't see HDMI output Reply with quote

I have a laptop with i915 + nvidia graphic cards configured using optimus.

I'm trying to connect TV with HDMI cable as an additional monitor, but TV show message "no signal" and xrandr show "HDMI1 disconnected".
(I've read a lot of forum topics about HDMI output with optimus, such as https://wiki.gentoo.org/wiki/NVIDIA_Optimus_and_HDMI_Output_Configuration)

I can assure that the cable is OK and TV configured correctly, because I'm able to connect another device using same cable and same TV settings, and it's working fine.

When I'm connecting HDMI cable there are no logs in Xorg.0.log file, the only message in logs is
Code:

ACPI event unhandled: video/switchmode VMOD 00000080 00000000

in /var/log/messages

here is xrandr output
Code:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     60.02*+  59.93    48.03 
   1680x1050     59.88 
   1400x1050     59.98 
   1600x900      60.00    59.95    59.82 
   1280x1024     60.02 
   1400x900      59.96    59.88 
   1280x960      60.00 
   1368x768      60.00    59.88    59.85 
   1280x800      59.81    59.91 
   1280x720      59.86    60.00    59.74 
   1024x768      60.00 
   1024x576      60.00    59.90    59.82 
   960x540       60.00    59.63    59.82 
   800x600       60.32    56.25 
   864x486       60.00    59.92    59.57 
   640x480       59.94 
   720x405       59.51    60.00    58.99 
   640x360       59.84    59.32    60.00 
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)


lspci output:
Code:

lspci -nnmvk | awk '/VGA/,/Driver/'
Class:   VGA compatible controller [0300]
Vendor:   Intel Corporation [8086]
Device:   Device [3e9b]
SVendor:   Dell [1028]
SDevice:   Device [0825]
Driver:   i915
Class:   VGA compatible controller [0300]
Vendor:   NVIDIA Corporation [10de]
Device:   GP106M [GeForce GTX 1060 Mobile 3GB] [1c20]
SVendor:   Dell [1028]
SDevice:   GP106M [GeForce GTX 1060 Mobile 3GB] [0825]
Rev:   a1
Driver:   nvidia


and lsmod output:
Code:

lsmod | grep -e 'nvidia\|i915\|bb'
bbswitch               16384  0
nvidia_drm             40960  0
nvidia_modeset        995328  1 nvidia_drm
nvidia              16715776  1 nvidia_modeset
i915                 1912832  2
ipmi_msghandler        49152  1 nvidia
i2c_algo_bit           16384  1 i915
drm_kms_helper        163840  2 nvidia_drm,i915
drm                   389120  5 drm_kms_helper,nvidia_drm,i915


I tried to edit xorg.conf file to detect HDMI output manually, but without success:
Code:

Section "ServerLayout"
    Identifier     "intel"
    Screen      0  "Screen0"     0 0
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "intel"
    Option         "Backingstore" "true"
    Option         "AccelMethod" "glamor"
    Option          "DRI" "3"
    Screen         0
EndSection

# tried to add these sections:
#Section "Screen"
#   Identifier "Screen1"
#   Device       "nvidia"
#EndSection
#
#Section "Device"
#    Identifier "nvidia"
#    Driver "nvidia"
#    BusID "PCI:0@1:0:0"
#    Option "ConstrainCursor" "off"
#    Option "NoLogo" "true"
#    Option "ConnectedMonitor" "DFP-0"
#    Option "RenderAccel" "true"
#    Option "AllowGLXWithComposite" "true"
#EndSection


Maybe I need to reconfigure kernel somehow or update xorg.conf?


Last edited by g4s8 on Thu Dec 27, 2018 8:47 am; edited 1 time in total
Back to top
View user's profile Send private message
hhfeuer
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 156

PostPosted: Mon Dec 24, 2018 1:04 pm    Post subject: Reply with quote

You're using an intel only config, so you don't see the hdmi that's connected to the nvidia gpu. PRIME config:
https://devtalk.nvidia.com/default/topic/1022670/linux/official-driver-384-59-with-geforce-1050m-doesn-t-work-on-opensuse-tumbleweed-kde/post/5203910/#5203910
You'll also have to switch opengl to nvidia
eselect opengl nvidia
Back to top
View user's profile Send private message
g4s8
n00b
n00b


Joined: 15 Dec 2017
Posts: 15

PostPosted: Thu Dec 27, 2018 8:46 am    Post subject: Reply with quote

hhfeuer wrote:
You're using an intel only config, so you don't see the hdmi that's connected to the nvidia gpu. PRIME config:
https://devtalk.nvidia.com/default/topic/1022670/linux/official-driver-384-59-with-geforce-1050m-doesn-t-work-on-opensuse-tumbleweed-kde/post/5203910/#5203910
You'll also have to switch opengl to nvidia
eselect opengl nvidia


I've uninstalled bumblbee and switched to pure optimus config as described in https://wiki.gentoo.org/wiki/NVIDIA/Optimus
Now it's working, thanks a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum