From owner-freebsd-x11@freebsd.org Wed Mar 30 20:37:26 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92083AE3631 for ; Wed, 30 Mar 2016 20:37:26 +0000 (UTC) (envelope-from listjm@club.fr) Received: from smtp25.services.sfr.fr (smtp25.services.sfr.fr [93.17.128.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2C1B91CF3 for ; Wed, 30 Mar 2016 20:37:25 +0000 (UTC) (envelope-from listjm@club.fr) Received: from filter.sfr.fr (localhost [78.118.195.213]) by msfrf2509.sfr.fr (SMTP Server) with ESMTP id 9E2857000042; Wed, 30 Mar 2016 22:31:14 +0200 (CEST) Authentication-Results: sfrmc.priv.atos.fr; dkim=none (no signature); dkim-adsp=none (no policy) header.from=listjm@club.fr Received: from [192.168.1.51] (213.195.118.78.rev.sfr.net [78.118.195.213]) by msfrf2509.sfr.fr (SMTP Server) with ESMTP id 542A970000B4; Wed, 30 Mar 2016 22:31:14 +0200 (CEST) X-SFR-UUID: 20160330203114344.542A970000B4@msfrf2509.sfr.fr Subject: Haswell composite desktop - laptop+HDMI monitor - how? To: freebsd-x11@freebsd.org, mexas@bris.ac.uk From: Juan =?iso-8859-1?b?UmFt824=?= Molina Menor Message-ID: <56FC3789.5090404@club.fr> Date: Wed, 30 Mar 2016 22:31:05 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2016 20:37:26 -0000 On Wed, 30 Mar 2016 13:30:04 +0100 (BST) Anton Shterenlikht > wrote: >>>From tijl at freebsd.org Wed Mar 30 12:37:40 2016 >>> >>>On Wed, 30 Mar 2016 10:52:11 +0100 (BST) Anton Shterenlikht wrote: >>>> Using xrandr as in the handbook, Sec. 5.4.6: >>>> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html >>>> I finally got this configuration: >>>> >>>> % xrandr >>>> Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192 >>>> eDP1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 293mm x 165mm >>>> 1366x768 60.00*+ 40.00 >>>> 1024x768 60.00 >>>> 800x600 60.32 56.25 >>>> 640x480 59.94 >>>> HDMI1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 509mm x 286mm >>>> 1920x1080 60.00*+ 50.00 >>>> 1920x1080i 60.00 50.00 >>>> 1600x900 59.98 >>>> 1280x1024 75.02 60.02 >>>> 1152x864 75.00 >>>> 1280x720 60.00 50.00 >>>> 1440x576i 50.00 >>>> 1024x768 75.08 60.00 >>>> 1440x480i 59.94 >>>> 800x600 75.00 60.32 >>>> 720x576 50.00 >>>> 720x480 59.94 >>>> 640x480 75.00 60.00 59.94 >>>> 720x400 70.08 >>>> DP1 disconnected (normal left inverted right x axis y axis) >>>> HDMI2 disconnected (normal left inverted right x axis y axis) >>>> DP2 disconnected (normal left inverted right x axis y axis >>>> % >>>> >>>> The problem is that only about the leftmost >>>> 1/3 to 1/4 of the width of the HDMI is used. >>>> No graphical window can be moved further to the right. >>>> >>>> Am I missing something? >>>> >>>> Again, this worked perfectly for me (using xorg.conf) >>>> on a older laptop with nvidia driver and VGA monitor. >>> >>> Try specifying the virtual screen resolution in xorg.conf: >>> >>> Section "Screen" >>> [...] >>> DefaultDepth 24 >>> [...] >>> SubSection "Display" >>> Depth 24 >>> Virtual 3286 1080 >>> [...] >>> EndSubSection >>> EndSection >> >> That didn't help. Although I'm not sure I follow your >> instructions correctly. If I set something like this >> in xorg.conf or in >> /usr/local/etc/X11/xorg.conf.d/screen-resolution.conf >> then it seems to be ignored on X startup. >> Perhaps I have to include both what you wrote and >> equivalents of: >> >> xrandr --output eDP1 --auto >> xrandr --output HDMI1 --auto >> xrandr --output HDMI1 --right-of eDP1 >> >> also in a config file? >> >> Also, I'm confused by xrandr reporting only screen0. >> Previously, with nvidia, I had in xorg.conf screen0 >> and screen1 positioned to the right of screen0. >> Perhaps xrandr uses a different terminology to xorg.conf? I remember having some issues before getting HDMI with my Haswell laptop to work. Here’s the xorg.conf I’m using (it clearly needs some cleaning, but it works). I needed to explicitly define the highest resolution Modeline to force its use, as it defaulted to a lower resolution. Also, I had to set the Position of the external monitor. Only one Screen section is necessary. --------- Section "ServerLayout" Identifier "Lenovo ThinkPad S440" Screen 0 "Screen0" 0 0 InputDevice "Keyboard" "CoreKeyboard" InputDevice "Touchpad" "CorePointer" Option "AutoAddDevices" "false" EndSection Section "Monitor" Identifier "Internal" Option "Position" "0 0" EndSection Section "Monitor" Identifier "BenQ" Option "Position" "1600 0" Option "RightOf" "Internal" # Option "PreferredMode" "1920x1080" ModeLine "2560x1440" 241.5 2560 2608 2640 2720 1440 1443 1448 1481 Option "PreferredMode" "2560x1440" EndSection Section "Device" Identifier "Card0" Driver "intel" # BusID "PCI:0:2:0" Option "monitor-eDP1" "Internal" Option "monitor-HDMI2" "BenQ" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Internal" Monitor "BenQ" EndSection #Section "Device" # Identifier "Generic FB" # Driver "scfb" # Option "NoAccel" "True" #EndSection Section "InputDevice" Identifier "Keyboard" Driver "kbd" Option "XkbLayout" "fr" Option "XkbVariant" "latin9" EndSection Section "InputDevice" Identifier "Touchpad" Driver "mouse" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "5 4 6 7" EndSection Section "Files" FontPath "/usr/local/share/fonts/terminus-font/" EndSection --------- I hope you’ll find a clue for your case. Cheers, Juan