From owner-freebsd-questions@freebsd.org Wed Aug 2 04:48:50 2017 Return-Path: Delivered-To: freebsd-questions@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 60CB1DC5C2D for ; Wed, 2 Aug 2017 04:48:50 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "holgerdanske.com", Issuer "holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F9A6753C6 for ; Wed, 2 Aug 2017 04:48:50 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Tue, 1 Aug 2017 21:48:47 -0700 From: David Christensen Subject: Re: FreeBSD 11.1, Xfce, and laptop screen and external monitor resolution To: freebsd-questions@freebsd.org References: <20170731061847.6f78ba27.freebsd@edvax.de> Message-ID: Date: Tue, 1 Aug 2017 21:48:46 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170731061847.6f78ba27.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2017 04:48:50 -0000 On 07/30/17 21:18, Polytropon wrote: > On Sun, 30 Jul 2017 19:30:01 -0700, David Christensen wrote: >> When I run 'startxfce4', Xfce starts with a resolution of 1024x768. >> Applications Menu -> Settings -> Display offers two choices: 1024x768 >> and 800x600. How do I set the Xfce resolution to 1280x800 when driving >> the laptop screen? > > Option 1 is to set it using a configuration file "snippet" in the > /usr/local/etc/X11/xorg.conf.d directory, > > xorg.conf: only put section "Screen", subsection "Display", > setting "Modes" with the screen size you want. > > For example, it could look like this: > > Section "Screen" > Identifier "Screen0" > Device "Card0" > Monitor "Monitor0" > DefaultDepth 24 > SubSection "Display" > Viewport 0 0 > Depth 24 > Visual "TrueColor" > Modes "1920x1080" "1280x800" > EndSubSection > EndSection The X.org driver is supposed to read the EDID information for all available displays and act upon it "correctly"; this is not happening. I did some testing using FreeBSD 11.0 -- EDID works. But if I attempt to run in dual-head mode, I get the same bug as FreeBSD 11.1 where windows and dialogs are mostly blacked out. So, there are several bugs at work here. If/when I have the time and inclination, I will try to tease them out one at a time and file bug reports. > You could then probably even use Ctrl+Alt+[+] and Ctrl+Alt+[-] > to switch between the two modes (not tested, but old-fashioned > X could do that). Yes, I'm finding that I need old-school tricks. > > Option 2 is to use xrandr in ~/.xinitrc with the --size > option. This is 2017 and I shouldn't have to mess with low-level X stuff. This is just more infinite bug propagation, as I lamented on the TrueOS forum: https://discourse.trueos.org/t/trueos-2017-07-05-x64-dell-inspiron-e1505-and-external-monitor/1679/5 >> If I connect an external 1920x1080 monitor to the VGA port of the laptop >> and press the Fn+F8 (CRT/LCD) hot key at the GELI prompt, the video >> signal is sent to the external monitor (laptop screen goes dark). (I >> then close the laptop screen.) 'startxfce4' results in Xfce with a >> resolution of 1600x1200. Display offers choices of 1600x1200, >> 1280x1024, 1024x768, 800x600, and 640x480. How do I set the Xfce >> resolution to 1920x1080 when driving the external monitor? > > Similar to the approach for the laptop's screen. You can even > use xrandr from inside a running X session to change the screen > size dynamically. It's also a convenient tool for experiments. > > (Side note: I set up a Dell Latitude D630 laptop with a screen > size of 1280x800 and an external monitor of 1920x1080, but I > use Mate on this specific system which offers the native screen > size in its configuration program.) As above. David