Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X doesn't detect monitors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
quykfox
n00b
n00b


Joined: 25 Jul 2016
Posts: 19
Location: USA

PostPosted: Mon Dec 17, 2018 12:44 pm    Post subject: X doesn't detect monitors Reply with quote

I recently replaced Arch Linux with Gentoo on a Lenovo Thinkpad laptop. I largely duplicated the configuration of the old system, but I haven't been able to successfully connect a second display, as none of the available outputs seem to be detected under X or Wayland. When I connect a monitor to any port (details below), nothing happens. Everything works out-of-box in Arch (same kernel), so I know it's possible - I just can't seem to find the missing piece. I'm hoping somone with a better understanding of this area can offer some suggestions or insight :)

The laptop has both an integrated Intel graphics card and a discrete nVidia card, with one MiniDP/Thunderbolt port, one HDMI port, and two USB-C ports available:
Code:

$ lspci -k
0:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
   Subsystem: Lenovo Device 224c
   Kernel driver in use: i915
   Kernel modules: i915
01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M620 Mobile] (rev a2)
   Subsystem: Lenovo GM107GLM [Quadro M620 Mobile]
   Kernel driver in use: nouveau
   Kernel modules: nouveau
...

$ sudo hwinfo --gfxcard -v
Password:
14: PCI 100.0: 0302 3D controller                               
  [Created at pci.366]
  Unique ID: VCu0.FZVvVqloKqB
  Parent ID: vSkL.IsBEoJq0vY0
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia 3D controller"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x13b4
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x224c
  Revision: 0xa2
  Driver: "nouveau"
  Driver Modules: "nouveau"
  Memory Range: 0xdf000000-0xdfffffff (rw,non-prefetchable)
  Memory Range: 0x80000000-0x8fffffff (ro,non-prefetchable)
  Memory Range: 0x90000000-0x91ffffff (ro,non-prefetchable)
  I/O Ports: 0xd000-0xdfff (rw)
  Memory Range: 0xe0000000-0xe007ffff (ro,non-prefetchable,disabled)
  IRQ: 134 (39 events)
  Module Alias: "pci:v000010DEd000013B4sv000017AAsd0000224Cbc03sc02i00"
  Driver Info #0:
    Driver Status: nouveau is active
    Driver Activation Cmd: "modprobe nouveau"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #11 (PCI bridge)

26: PCI 02.0: 0300 VGA compatible controller (VGA)
  [Created at pci.366]
  Unique ID: _Znp.49KaPUHMoeB
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Model: "Intel VGA compatible controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x591b
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x224c
  Revision: 0x04
  Driver: "i915"
  Driver Modules: "i915"
  Memory Range: 0x2ffa000000-0x2ffaffffff (rw,non-prefetchable)
  Memory Range: 0xa0000000-0xafffffff (ro,non-prefetchable)
  I/O Ports: 0xe000-0xe03f (rw)
  Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
  IRQ: 136 (58049 events)
  Module Alias: "pci:v00008086d0000591Bsv000017AAsd0000224Cbc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

Primary display adapter: #26

$ for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
eDP-1: connected
DP-1: disconnected
DP-2: disconnected
eDP-2: connected
HDMI-A-1: connected
LVDS-1: disconnected
VGA-1: disconnected


However, the display system isn't aware of these outputs:
Code:

$ xrandr --listmonitors
Monitors: 1
 0: +*eDP1 1920/380x1080/210+0+0  eDP1


Given that the kernel sees the outputs, I'm not sure where the disconnect could be. Admittedly, Xorg configuration always feels a bit like black magic to me though...

System Information
I selected the amd64 "gnome/systemd (stable)" profile and emerged gnome-base/gnome with the "wayland" USE flag enabled. Here's some relevant config information from emerge:
Code:

$ emerge --info | grep ^USE
CFLAGS="-march=skylake -O2 -pipe"
...
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding btrfs bzip2 cairo cdda cdr cli colord crypt cups cxx dbus dri drm dts dvd dvdr eds emboss encode evo exif fam flac fortran gdbm gif glamor gles gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg kms lcms ldap libnotify libsecret libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xa xattr xcb xml xv xvid zlib"
...
INPUT_DEVICES="libinput synaptics"... VIDEO_CARDS="intel i965 nouveau"


I have have two kernels installed: sys-kernel/gentoo-sources-4.14.83 and sys-kernel/vanilla-sources-4.19.9. I think I included the relevant drivers for both of them:
Code:

# v4.19.9.config
CONFIG_DRM_NOUVEAU=m
CONFIG_DRM_NOUVEAU_BACKLIGHT=y
CONFIG_DRM_I915=m
CONFIG_THUNDERBOLT=m
CONFIG_INTEL_WMI_THUNDERBOLT=m
CONFIG_VGA_SWITCHEROO=y
CONFIG_TYPEC=y
CONFIG_TYPEC_DP_ALTMODE=m


You can find the contents of my Xorg.0.log here: https://pastebin.com/pWkyNakS. I didn't notice anything strange in dmesg, even when I enabled debug output for the nouveau and i915 drivers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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