From owner-freebsd-questions@freebsd.org Wed Aug 2 05:48:13 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 C6655DC6BDF for ; Wed, 2 Aug 2017 05:48:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay15.qsc.de (mailrelay15.qsc.de [212.99.187.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B94576CC8 for ; Wed, 2 Aug 2017 05:48:12 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay15.qsc.de; Wed, 02 Aug 2017 07:48:04 +0200 Received: from r56.edvax.de (port-92-195-203-176.dynamic.qsc.de [92.195.203.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id A82AF3CC3F; Wed, 2 Aug 2017 07:48:03 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v725m2X1002626; Wed, 2 Aug 2017 07:48:02 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 2 Aug 2017 07:48:02 +0200 From: Polytropon To: David Christensen Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.1, Xfce, and laptop screen and external monitor resolution Message-Id: <20170802074802.8d9d8e11.freebsd@edvax.de> In-Reply-To: References: <20170731061847.6f78ba27.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay15.qsc.de with 0775F6836F5 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1369 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 05:48:13 -0000 On Tue, 1 Aug 2017 21:48:46 -0700, David Christensen wrote: > 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. Yes, it is supposed to do so, but in some cases, it strangely does not work. This is where "forced settings" can be used to tell X the correct settings it won't detect on its own. > 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. Hmmm... I've never tried using dual-head mode (independent displays?) in this way. Having both displays active, while the bigger one simply scales up the content of the smaller one, is possible. > > 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. You need them whenever "modern magic" doesn't work. ;-) > > 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. Fully correct, but for testing it's very convenient, and in case the mentioned autodetection does not work as intended, it can provide a useful workaround. You could even program two xrandr calls to function keys for easily switching between "big" and "small" screen. However, as you said, it _should_ work as it is supposed to do, so it's totally valid to assume a bug here - or simply incomplete software support... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...