Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

dual monitor with imac + apple thunderbolt display?


biocyberman

Question

I have following modules compiled and loaded

cat /etc/conf.d/modules
modules="thunderbolt appledisplay facetimehd binfmt_misc"

The thunderbolt display would turns on during boot before lightdm greeter (login screen) and sometimes keep working after I log on, but most of the times it turns off right before the greeter appears and becomes black. Sometimes log out and login repeatedly helps to activate the thunderbolt display.  I can, however, always select and use the speakers on the thunderbolt display.

 

xrandr output:

Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 16384 x 16384
DP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1280x720      59.86  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)

The thunderbolt display is actually connected physically to DP-2.

 

Xorg log about display handling:

[  3991.897]
X.Org X Server 1.19.1
Release Date: 2017-01-11
[  3991.897] X Protocol Version 11, Revision 0
[  3991.897] Build Operating System: Linux 4.8.15-1 x86_64 Gentoo
[  3991.897] Current Operating System: Linux im 4.8.15-1 #1 SMP Sun Dec 25 08:13:42 -00 2016 x86_64
[  3991.897] Kernel command line: \boot\kernel-debian-sources-x86_64-4.8.15-1 ro root=/dev/sda5 initrd=boot\initramfs-debian-sources-x86_64-4.8.15-1
[  3991.897] Build Date: 20 June 2017  12:09:23AM
[  3991.897]  
[  3991.897] Current version of pixman: 0.34.0
[  3991.897]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  3991.897] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  3991.897] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun 28 09:23:47 2017
[  3991.897] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  3991.897] (==) No Layout section.  Using the first Screen section.
[  3991.897] (==) No screen section available. Using defaults.
[  3991.897] (**) |-->Screen "Default Screen Section" (0)
[  3991.897] (**) |   |-->Monitor "<default monitor>"
[  3991.897] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[  3991.897] (==) Automatically adding devices
[  3991.897] (==) Automatically enabling devices
[  3991.897] (==) Automatically adding GPU devices
[  3991.897] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  3991.897] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/OTF/,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi/,
    /usr/share/fonts/75dpi/
[  3991.897] (==) ModulePath set to "/usr/lib64/xorg/modules"
[  3991.897] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[  3991.897] (II) Loader magic: 0x55b7b9badcc0
[  3991.897] (II) Module ABI versions:
[  3991.897]     X.Org ANSI C Emulation: 0.4
[  3991.897]     X.Org Video Driver: 23.0
[  3991.897]     X.Org XInput driver : 24.1
[  3991.897]     X.Org Server Extension : 10.0
[  3991.897] (II) xfree86: Adding drm device (/dev/dri/card0)
[  3991.900] (--) PCI:*(0:1:0:0) 10de:119d:106b:0120 rev 161, Mem @ 0xb0000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00001000/128, BIOS @ 0x????????/524288
[  3991.900] (II) LoadModule: "glx"
[  3991.900] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[  3991.902] (II) Module glx: vendor="X.Org Foundation"
[  3991.902]     compiled for 1.19.1, module version = 1.0.0
[  3991.902]     ABI class: X.Org Server Extension, version 10.0
[  3991.902] (==) Matched nouveau as autoconfigured driver 0
[  3991.902] (==) Matched nv as autoconfigured driver 1
[  3991.902] (==) Matched nouveau as autoconfigured driver 2
[  3991.902] (==) Matched nv as autoconfigured driver 3
[  3991.902] (==) Matched modesetting as autoconfigured driver 4
[  3991.902] (==) Matched fbdev as autoconfigured driver 5
[  3991.902] (==) Matched vesa as autoconfigured driver 6
[  3991.902] (==) Assigned the driver to the xf86ConfigLayout
[  3991.902] (II) LoadModule: "nouveau"
[  3991.902] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[  3991.903] (II) Module nouveau: vendor="X.Org Foundation"
[  3991.903]     compiled for 1.19.1, module version = 1.0.13
[  3991.903]     Module class: X.Org Video Driver
[  3991.903]     ABI class: X.Org Video Driver, version 23.0
[  3991.903] (II) LoadModule: "nv"
[  3991.903] (WW) Warning, couldn't open module nv
[  3991.903] (II) UnloadModule: "nv"
[  3991.903] (II) Unloading nv
[  3991.903] (EE) Failed to load module "nv" (module does not exist, 0)
[  3991.903] (II) LoadModule: "modesetting"
[  3991.903] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[  3991.903] (II) Module modesetting: vendor="X.Org Foundation"
[  3991.903]     compiled for 1.19.1, module version = 1.19.1
[  3991.903]     Module class: X.Org Video Driver
[  3991.903]     ABI class: X.Org Video Driver, version 23.0
[  3991.903] (II) LoadModule: "fbdev"
[  3991.903] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[  3991.903] (II) Module fbdev: vendor="X.Org Foundation"
[  3991.903]     compiled for 1.19.1, module version = 0.4.4
[  3991.903]     Module class: X.Org Video Driver
[  3991.903]     ABI class: X.Org Video Driver, version 23.0
[  3991.903] (II) LoadModule: "vesa"
[  3991.903] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[  3991.903] (II) Module vesa: vendor="X.Org Foundation"
[  3991.903]     compiled for 1.19.1, module version = 2.3.4
[  3991.903]     Module class: X.Org Video Driver
[  3991.903]     ABI class: X.Org Video Driver, version 23.0
[  3991.903] (II) NOUVEAU driver
[  3991.903] (II) NOUVEAU driver for NVIDIA chipset families :
[  3991.903]     RIVA TNT        (NV04)
[  3991.903]     RIVA TNT2       (NV05)
[  3991.903]     GeForce 256     (NV10)
[  3991.903]     GeForce 2       (NV11, NV15)
[  3991.903]     GeForce 4MX     (NV17, NV18)
[  3991.903]     GeForce 3       (NV20)
[  3991.903]     GeForce 4Ti     (NV25, NV28)
[  3991.903]     GeForce FX      (NV3x)
[  3991.903]     GeForce 6       (NV4x)
[  3991.903]     GeForce 7       (G7x)
[  3991.903]     GeForce 8       (G8x)
[  3991.903]     GeForce GTX 200 (NVA0)
[  3991.903]     GeForce GTX 400 (NVC0)
[  3991.903] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  3991.903] (II) FBDEV: driver for framebuffer: fbdev
[  3991.903] (II) VESA: driver for VESA chipsets: vesa
[  3991.903] (++) using VT number 7

[  3991.903] (II) [drm] nouveau interface version: 1.3.1
[  3991.903] (WW) Falling back to old probe method for modesetting
[  3991.903] (WW) Falling back to old probe method for fbdev
[  3991.903] (II) Loading sub module "fbdevhw"
[  3991.903] (II) LoadModule: "fbdevhw"
[  3991.903] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[  3991.903] (II) Module fbdevhw: vendor="X.Org Foundation"
[  3991.903]     compiled for 1.19.1, module version = 0.0.2
[  3991.903]     ABI class: X.Org Video Driver, version 23.0
[  3991.903] (WW) Falling back to old probe method for vesa
[  3991.903] (II) Loading sub module "dri2"
[  3991.903] (II) LoadModule: "dri2"
[  3991.903] (II) Module "dri2" already built-in
[  3991.903] (--) NOUVEAU(0): Chipset: "NVIDIA NVE4"
[  3991.903] (II) NOUVEAU(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[  3991.903] (==) NOUVEAU(0): Depth 24, (--) framebuffer bpp 32
[  3991.903] (==) NOUVEAU(0): RGB weight 888
[  3991.903] (==) NOUVEAU(0): Default visual is TrueColor
[  3991.903] (==) NOUVEAU(0): Using HW cursor
[  3991.903] (==) NOUVEAU(0): Allowed maximum DRI level 2.
[  3991.903] (==) NOUVEAU(0): GLX sync to VBlank enabled.
[  3991.903] (==) NOUVEAU(0): Page flipping enabled
[  3991.903] (==) NOUVEAU(0): Swap limit set to 1 [Max allowed 2]
[  3991.903] (==) NOUVEAU(0): Page flipping synced to vblank by kernel.
[  3991.903] (II) NOUVEAU(0): Initializing outputs ...
[  3991.923] (II) NOUVEAU(0): Output DP-1 has no monitor section
[  3991.984] (II) NOUVEAU(0): Output DP-2 has no monitor section
[  3992.048] (II) NOUVEAU(0): Output DP-3 has no monitor section
[  3992.048] (II) NOUVEAU(0): 3 crtcs needed for screen.
[  3992.061] (II) NOUVEAU(0): Allocated crtc nr. 0 to this screen.
[  3992.061] (II) NOUVEAU(0): Allocated crtc nr. 1 to this screen.
[  3992.061] (II) NOUVEAU(0): Allocated crtc nr. 2 to this screen.
[  3992.061] (II) NOUVEAU(0): Allocated crtc nr. 3 to this screen.
[  3992.080] (II) NOUVEAU(0): EDID for output DP-1
[  3992.080] (II) NOUVEAU(0): Manufacturer: APP  Model: b005  Serial#: 0
[  3992.080] (II) NOUVEAU(0): Year: 2012  Week: 28
[  3992.080] (II) NOUVEAU(0): EDID Version: 1.4
[  3992.080] (II) NOUVEAU(0): Digital Display Input
[  3992.080] (II) NOUVEAU(0): 10 bits per channel
[  3992.080] (II) NOUVEAU(0): Digital interface is DisplayPort
[  3992.080] (II) NOUVEAU(0): Max Image Size [cm]: horiz.: 60  vert.: 34
[  3992.080] (II) NOUVEAU(0): Gamma: 2.20
[  3992.080] (II) NOUVEAU(0): DPMS capabilities: Off
[  3992.080] (II) NOUVEAU(0): Supported color encodings: RGB 4:4:4
[  3992.080] (II) NOUVEAU(0): First detailed timing is preferred mode
[  3992.080] (II) NOUVEAU(0): Preferred mode is native pixel format and refresh rate
[  3992.080] (II) NOUVEAU(0): redX: 0.653 redY: 0.334   greenX: 0.300 greenY: 0.620
[  3992.080] (II) NOUVEAU(0): blueX: 0.146 blueY: 0.050   whiteX: 0.312 whiteY: 0.329
[  3992.080] (II) NOUVEAU(0): Manufacturer's mask: 0
[  3992.080] (II) NOUVEAU(0): Supported detailed timing:
[  3992.080] (II) NOUVEAU(0): clock: 241.5 MHz   Image Size:  597 x 336 mm
[  3992.080] (II) NOUVEAU(0): h_active: 2560  h_sync: 2608  h_sync_end 2640 h_blank_end 2720 h_border: 0
[  3992.080] (II) NOUVEAU(0): v_active: 1440  v_sync: 1443  v_sync_end 1448 v_blanking: 1481 v_border: 0
[  3992.080] (II) NOUVEAU(0): Supported detailed timing:
[  3992.080] (II) NOUVEAU(0): clock: 74.5 MHz   Image Size:  597 x 336 mm
[  3992.080] (II) NOUVEAU(0): h_active: 1280  h_sync: 1344  h_sync_end 1472 h_blank_end 1664 h_border: 0
[  3992.080] (II) NOUVEAU(0): v_active: 720  v_sync: 723  v_sync_end 728 v_blanking: 748 v_border: 0
[  3992.080] (II) NOUVEAU(0): Monitor name: iMac
[  3992.080] (II) NOUVEAU(0): Supported detailed timing:
[  3992.080] (II) NOUVEAU(0): clock: 241.5 MHz   Image Size:  597 x 336 mm
[  3992.080] (II) NOUVEAU(0): h_active: 2560  h_sync: 2608  h_sync_end 2640 h_blank_end 2720 h_border: 0
[  3992.080] (II) NOUVEAU(0): v_active: 1440  v_sync: 1443  v_sync_end 1448 v_blanking: 1481 v_border: 0
[  3992.080] (II) NOUVEAU(0): Supported detailed timing:
[  3992.080] (II) NOUVEAU(0): clock: 74.5 MHz   Image Size:  597 x 336 mm
[  3992.080] (II) NOUVEAU(0): h_active: 1280  h_sync: 1344  h_sync_end 1472 h_blank_end 1664 h_border: 0
[  3992.080] (II) NOUVEAU(0): v_active: 720  v_sync: 723  v_sync_end 728 v_blanking: 748 v_border: 0
[  3992.080] (II) NOUVEAU(0): Number of EDID sections to follow: 1
[  3992.080] (II) NOUVEAU(0): EDID (in hex):
[  3992.080] (II) NOUVEAU(0):     00ffffffffffff00061005b000000000
[  3992.080] (II) NOUVEAU(0):     1c160104b53c227822612337554c9e25
[  3992.080] (II) NOUVEAU(0):     0c505400000001010101010101010101
[  3992.080] (II) NOUVEAU(0):     010101010101565e00a0a0a029503020
[  3992.080] (II) NOUVEAU(0):     350055502100001a1a1d008051d01c20
[  3992.080] (II) NOUVEAU(0):     4080350055502100001c000000fc0069
[  3992.080] (II) NOUVEAU(0):     4d61630a452020202020202000000000
[  3992.080] (II) NOUVEAU(0):     0000000000000000000000000000018e
[  3992.080] (II) NOUVEAU(0):     020328c1230913078301000070fa1000
[  3992.080] (II) NOUVEAU(0):     00127a31fc78bdb202108874e56afa10
[  3992.080] (II) NOUVEAU(0):     00dbeef5f023feff565e00a0a0a02950
[  3992.080] (II) NOUVEAU(0):     3020350055502100001a1a1d008051d0
[  3992.080] (II) NOUVEAU(0):     1c204080350055502100001c00000000
[  3992.080] (II) NOUVEAU(0):     00000000000000000000000000000000
[  3992.080] (II) NOUVEAU(0):     00000000000000000000000000000000
[  3992.080] (II) NOUVEAU(0):     000000000000000000000000000000cc
[  3992.080] (II) NOUVEAU(0): Printing probed modes for output DP-1
[  3992.080] (II) NOUVEAU(0): Modeline "2560x1440"x60.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz eP)
[  3992.080] (II) NOUVEAU(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz e)
[  3992.144] (II) NOUVEAU(0): EDID for output DP-2
[  3992.208] (II) NOUVEAU(0): EDID for output DP-3
[  3992.208] (II) NOUVEAU(0): Output DP-1 connected
[  3992.208] (II) NOUVEAU(0): Output DP-2 disconnected
[  3992.208] (II) NOUVEAU(0): Output DP-3 disconnected
[  3992.208] (II) NOUVEAU(0): Using exact sizes for initial modes
[  3992.208] (II) NOUVEAU(0): Output DP-1 using initial mode 2560x1440 +0+0
[  3992.208] (==) NOUVEAU(0): Using gamma correction (1.0, 1.0, 1.0)
[  3992.208] (--) NOUVEAU(0): Virtual size is 2560x1440 (pitch 0)
[  3992.208] (**) NOUVEAU(0):  Driver mode "2560x1440": 241.5 MHz (scaled from 0.0 MHz), 88.8 kHz, 60.0 Hz
[  3992.208] (II) NOUVEAU(0): Modeline "2560x1440"x60.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz eP)
[  3992.208] (**) NOUVEAU(0):  Driver mode "1280x720": 74.5 MHz (scaled from 0.0 MHz), 44.8 kHz, 59.9 Hz
[  3992.208] (II) NOUVEAU(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz e)
[  3992.208] (==) NOUVEAU(0): DPI set to (96, 96)
[  3992.208] (II) Loading sub module "fb"
[  3992.208] (II) LoadModule: "fb"
[  3992.208] (II) Loading /usr/lib64/xorg/modules/libfb.so
[  3992.208] (II) Module fb: vendor="X.Org Foundation"
[  3992.208]     compiled for 1.19.1, module version = 1.0.0
[  3992.208]     ABI class: X.Org ANSI C Emulation, version 0.4
[  3992.208] (II) Loading sub module "shadowfb"
[  3992.208] (II) LoadModule: "shadowfb"
[  3992.208] (II) Loading /usr/lib64/xorg/modules/libshadowfb.so
[  3992.208] (II) Module shadowfb: vendor="X.Org Foundation"
[  3992.208]     compiled for 1.19.1, module version = 1.0.0
[  3992.208]     ABI class: X.Org ANSI C Emulation, version 0.4
[  3992.208] (II) UnloadModule: "modesetting"
[  3992.208] (II) Unloading modesetting
[  3992.208] (II) UnloadModule: "fbdev"
[  3992.208] (II) Unloading fbdev
[  3992.208] (II) UnloadSubModule: "fbdevhw"
[  3992.208] (II) Unloading fbdevhw
[  3992.208] (II) UnloadModule: "vesa"
[  3992.208] (II) Unloading vesa
[  3992.208] (--) Depth 24 pixmap format is 32 bpp
[  3992.234] (II) NOUVEAU(0): Channel setup complete.
[  3992.258] (II) NOUVEAU(0): [COPY] async initialised.
[  3992.258] (II) NOUVEAU(0): Hardware support for Present enabled
[  3992.258] (II) NOUVEAU(0): [DRI2] Setup complete
[  3992.258] (II) NOUVEAU(0): [DRI2]   DRI driver: nouveau
[  3992.258] (II) NOUVEAU(0): [DRI2]   VDPAU driver: nouveau
[  3992.258] (II) Loading sub module "exa"
[  3992.258] (II) LoadModule: "exa"
[  3992.258] (II) Loading /usr/lib64/xorg/modules/libexa.so
[  3992.258] (II) Module exa: vendor="X.Org Foundation"
[  3992.258]     compiled for 1.19.1, module version = 2.6.0
[  3992.258]     ABI class: X.Org Video Driver, version 23.0
[  3992.258] (II) EXA(0): Driver allocated offscreen pixmaps
[  3992.258] (II) EXA(0): Driver registered support for the following operations:
[  3992.258] (II)         Solid
[  3992.258] (II)         Copy
[  3992.258] (II)         Composite (RENDER acceleration)
[  3992.258] (II)         UploadToScreen
[  3992.258] (II)         DownloadFromScreen
[  3992.258] (==) NOUVEAU(0): Backing store enabled
[  3992.258] (==) NOUVEAU(0): Silken mouse enabled
[  3992.258] (II) NOUVEAU(0): [XvMC] Associated with Nouveau GeForce 8/9 Textured Video.
[  3992.258] (II) NOUVEAU(0): [XvMC] Extension initialized.
[  3992.258] (==) NOUVEAU(0): DPMS enabled
[  3992.258] (II) NOUVEAU(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  3992.258] (--) RandR disabled
[  3992.368] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[  3992.368] (II) AIGLX: enabled GLX_ARB_create_context
[  3992.368] (II) AIGLX: enabled GLX_ARB_create_context_profile
[  3992.368] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[  3992.368] (II) AIGLX: enabled GLX_INTEL_swap_event
[  3992.368] (II) AIGLX: enabled GLX_SGI_swap_control
[  3992.368] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[  3992.368] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[  3992.368] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[  3992.368] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[  3992.369] (II) AIGLX: Loaded and initialized nouveau
[  3992.369] (II) GLX: Initialized DRI2 GL provider for screen 0
[  3992.371] (II) NOUVEAU(0): NVEnterVT is called.
[  3992.392] (II) NOUVEAU(0): Setting screen physical size to 677 x 381
[  3992.392] resize called 2560 1440
[  3992.433] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[  3992.433] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[  3992.433] (II) LoadModule: "evdev"
[  3992.433] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[  3992.433] (II) Module evdev: vendor="X.Org Foundation"
[  3992.433]     compiled for 1.19.1, module version = 2.10.5
[  3992.433]     Module class: X.Org XInput Driver
[  3992.433]     ABI class: X.Org XInput driver, version 24.1
[  3992.433] (II) Using input driver 'evdev' for 'Power Button'
[  3992.433] (**) Power Button: always reports core events
[  3992.433] (**) evdev: Power Button: Device: "/dev/input/event2"
[  3992.433] (--) evdev: Power Button: Vendor 0 Product 0x1
[  3992.433] (--) evdev: Power Button: Found keys
[  3992.433] (II) evdev: Power Button: Configuring as keyboard
[  3992.433] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[  3992.433] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[  3992.433] (**) Option "xkb_rules" "evdev"
[  3992.433] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[  3992.433] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[  3992.433] (II) Using input driver 'evdev' for 'Video Bus'
[  3992.433] (**) Video Bus: always reports core events
[  3992.433] (**) evdev: Video Bus: Device: "/dev/input/event3"
[  3992.433] (--) evdev: Video Bus: Vendor 0 Product 0x6
[  3992.433] (--) evdev: Video Bus: Found keys
[  3992.433] (II) evdev: Video Bus: Configuring as keyboard
[  3992.433] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/LNXVIDEO:00/input/input4/event3"
[  3992.433] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[  3992.433] (**) Option "xkb_rules" "evdev"
[  3992.434] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[  3992.434] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[  3992.434] (II) Using input driver 'evdev' for 'Power Button'
[  3992.434] (**) Power Button: always reports core events
[  3992.434] (**) evdev: Power Button: Device: "/dev/input/event0"
[  3992.434] (--) evdev: Power Button: Vendor 0 Product 0x1
[  3992.434] (--) evdev: Power Button: Found keys
[  3992.434] (II) evdev: Power Button: Configuring as keyboard
[  3992.434] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[  3992.434] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[  3992.434] (**) Option "xkb_rules" "evdev"
[  3992.434] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[  3992.434] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[  3992.434] (II) Using input driver 'evdev' for 'Sleep Button'
[  3992.434] (**) Sleep Button: always reports core events
[  3992.434] (**) evdev: Sleep Button: Device: "/dev/input/event1"
[  3992.434] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[  3992.434] (--) evdev: Sleep Button: Found keys
[  3992.434] (II) evdev: Sleep Button: Configuring as keyboard
[  3992.434] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[  3992.434] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
[  3992.434] (**) Option "xkb_rules" "evdev"
[  3992.434] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event6)
[  3992.434] (II) No input driver specified, ignoring this device.
[  3992.434] (II) This device may have been added with another device file.
[  3992.434] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event7)
[  3992.434] (II) No input driver specified, ignoring this device.
[  3992.434] (II) This device may have been added with another device file.

I tried running `X -configure` but it fails to configure X. The ouput of xrandr and xorg's log above were produced with the empty /etc/X11/xorg.conf.d/ and empty /etc/X11/xorg.conf.  All in all, I still have no clues how to fix this. Help is much appreciated.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I achieved partial success with this so far, after reading everywhere I can find about xorg.conf. Most notably, these threads:

 

  1. https://forums.gentoo.org/viewtopic-t-942924-start-0.html
  2. http://us.download.nvidia.com/XFree86/Linux-x86/173.14.12/README/chapter-15.html
  3. https://wiki.archlinux.org/index.php/multihead
  4. And of course `man xorg.conf`

 

My current config:

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Device"
        Identifier     "nvidia0"
        Driver "nouveau"
        BusID       "PCI:1:0:0"
        Option "Monitor-DP-1" "DP-1"
        Screen 0
EndSection

 Section "Device"
         Identifier     "nvidia1"
         Driver "nouveau"
         BusID       "PCI:1:0:0"
         Option "Monitor-DP-2" "DP-2"
         Screen 0
 EndSection
#

Section "Monitor"
        Identifier   "DP-1"
        Option "PreferredMode" "2560x1440_59.95"
        Option        "DPMS" "on"
        Option  "Enable" "on"
        Option  "Primary" "true"
EndSection


Section "Monitor"
        Identifier   "DP-2"
        Option "PreferredMode" "2560x1440_59.95"
        Option        "DPMS" "on"
        Option  "Enable" "on"
        Option  "RightOf" "DP-1"
EndSection

Section "Screen"
    Identifier      "screen0"
    Device          "nvidia1"
    Device          "nvidia0"
    Monitor                     "DP-1"
    Monitor         "DP-2"
    DefaultDepth     24
EndSection

Section "ServerLayout"
    Identifier "layout1"
    Screen 0 "screen0" 0 0
    #Screen 1 "screen1" rightOf "screen0"
        Option         "Xinerama" "0"
        Option         "RandR" "1"
EndSection

Some crucial points:

  • Must have two `device` sections, one for each monitor, even though they share the same BusID. Otherwise the thunderbolt display has less chance to be detected.
  • Must have screen number in the device section.
  • Wanted to switch on Xinerama but xdm could not start.
  • Monitor identifier (i.e. DP-1) should match outputname (as in `Option "Monitor-DP-1" "DP-1"`). Without this, Xorg log shows errors something like this:  Cannot position output DP-2 relative to unknown output iMacMinitor. Where, iMacMonitor is my self-choosen identifier for the iMac's monitor section.

 

Current problems:

The thunderbolt display does not always work correctly (still black screen haft of the times). I have to login in to console (Ctrl + Alt + F1) and restart xdm serveral times until I see the second screen is working.

The cursor and many dialog boxes are put right at the edge between the two monitors, so that they split up on two monitors and look ugly.

 

All in all, still feel like shooting in the dark.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...