I'm guessing that the computer is running when you put it in the dock and that if you started it while docked you'd get the second output.
I'm not sure exactly what laptop model you're using, but in my case, after connecting my T450s to the dock, sometimes I have to press the "monitor select" button (F7) to get the second monitor to display. It seems to default randomly to single-monitor (laptop) mode. However I've not checked if it shows up in xrandr in this state as the workaround for me is fairly simple.
--
Joshua M. Boniface
Linux System Administrator
Sigmentation fault. Core dumped.
On 03/02/16 04:27 AM, Fedele Mantuano wrote:
> Hi,
>
> I'm debian jessie user. I can detect external monitor only after restart of gdm.service. Can you help me?
>
> xrandrcommand before restart gdm.service:
> /Fedele Mantuano/>
> Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
> eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
> 1366x768 60.00*+
> 1360x768 59.80 59.96
> 1024x768 60.00
> 800x600 60.32 56.25
> 640x480 59.94
> VGA1 disconnected (normal left inverted right x axis y axis)
> DP1 disconnected (normal left inverted right x axis y axis)
> HDMI1 disconnected (normal left inverted right x axis y axis)
> DP2 disconnected (normal left inverted right x axis y axis)
> HDMI2 disconnected (normal left inverted right x axis y axis)
>
> xrandr command after restart gdm.service:
>
> Screen 0: minimum 320 x 200, current 1600 x 900, maximum 8192 x 8192
> eDP1 connected (normal left inverted right x axis y axis)
> 1366x768 60.00 +
> 1360x768 59.80 59.96
> 1024x768 60.00
> 800x600 60.32 56.25
> 640x480 59.94
> VGA1 disconnected (normal left inverted right x axis y axis)
> DP1 disconnected (normal left inverted right x axis y axis)
> HDMI1 disconnected (normal left inverted right x axis y axis)
> DP2 disconnected (normal left inverted right x axis y axis)
> HDMI2 disconnected (normal left inverted right x axis y axis)
> DP3 disconnected (normal left inverted right x axis y axis)
> DP4 disconnected (normal left inverted right x axis y axis)
> DP5 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 432mm x 240mm
> 1600x900 60.00 + 75.00*
> 1280x1024 75.02 70.00 60.02
> 1152x864 75.00
> 1024x768 75.08 70.07 60.00
> 832x624 74.55
> 800x600 72.19 75.00 60.32 56.25
> 640x480 75.00 72.81 60.00
> 720x400 70.08
>
> My lspcioutput:
>
> 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
> 00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
> 00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
> 00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
> 00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
> 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 05)
> 00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
> 00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
> 00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
> 00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 (rev d5)
> 00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
> 00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
> 00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
> 00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05)
> 00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
> 00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
> 02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b)
> 08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
>
>
> Regards
> --