From owner-freebsd-questions@freebsd.org Mon Jun 27 12:02:49 2016 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 813B0B849C4 for ; Mon, 27 Jun 2016 12:02:49 +0000 (UTC) (envelope-from alphachi@mediaspirit.org) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A0D5254E for ; Mon, 27 Jun 2016 12:02:49 +0000 (UTC) (envelope-from alphachi@mediaspirit.org) Received: by mail-vk0-x233.google.com with SMTP id j2so228653655vkg.2 for ; Mon, 27 Jun 2016 05:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediaspirit-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Sztu2A/574pJwkAba8UYnUFqhFfR38nIfu6sVNPFrqw=; b=YWf7xjYWzOY+E4fdRTb4v6havoQIndsGWvspD+IZcQ15OwWZ/CW+eAt60JvmqmQ1LM j0G15DjagnfQwk95E3uyub2Wc147G1QZiq3X2DSQCTG1iMUA8cx5Jfpy87Ob6Ms/8L+2 PHGO76hqqd7b7mr1xVb2OTJZ56E5N79hydUeFsb0Vrsgo18ed8K540idwKBysQtxFzzg CZlIzkZfrrIS98ucxVCsfUEDkUN61MhTo9IyjJve6NkWFsEi4wqCMuQxNnM3ADQHA5ic eDFPxcCAvv+Acx/YiSPIrrUY8FgF8VRuqJ43Wtzh64hd7N++kp57Cz0DVqV6v7nQt22v kgow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Sztu2A/574pJwkAba8UYnUFqhFfR38nIfu6sVNPFrqw=; b=iyJk5TCOAUOsw7UR/1yHVBl9ul8vPie4+Wb2y76+dm1EM7EQk0CqmyEEAve5bsRyFN mX0f7dKMVGTU4xgOJPunn2Y/4k/tlISxRy7owkWYQCiUs/8vXhsfGuU0RsuBZ8BoE2Fw Xq7i2BJCT/+dqEGrggxu4iRo8BxRmrbPIs+3cSWPozZAdJoykttUef7dnfE25B/myJ9u QzbzBgGZn9Uuc0eAJfwlsVRKGbBlthPcYY65dY1/CH+l8wdASKZ2lfg+vvWKLrRpgKPy e7wDRTgM/hdNFO7CaQNGQ+zv47WyhY8X4AqE1MFXinJLm0oPB8/Fn12Xi4lgxLV+mwme sk0g== X-Gm-Message-State: ALyK8tIYpYD5geV70h+ySZeQWvA3SPldhHm6BuBQ1MR9V3294vaczy0SZT5UgCEW1Y4rPNbFnk0iF71YgLnG9Q== X-Received: by 10.176.65.36 with SMTP id j33mr7929467uad.2.1467028968315; Mon, 27 Jun 2016 05:02:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.233.135 with HTTP; Mon, 27 Jun 2016 05:02:47 -0700 (PDT) In-Reply-To: <20160624211629.cfeec2df.freebsd@edvax.de> References: <1466789057.3429597.647623793.146F091D@webmail.messagingengine.com> <20160624211629.cfeec2df.freebsd@edvax.de> From: alphachi Date: Mon, 27 Jun 2016 20:02:47 +0800 Message-ID: Subject: Re: Resolution on SCFB X11 Driver To: Polytropon Cc: "Charles W. Ross" , "list: freebsd" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 12:02:49 -0000 https://forums.freebsd.org/threads/55222/ 2016-06-25 3:16 GMT+08:00 Polytropon : > On Fri, 24 Jun 2016 13:24:17 -0400, Charles W. Ross wrote: > > Hi all, > > > > I'm running FreeBSD 10.3 on an Intel NUC with 4th generation graphics. > > This is not supported by the i915 driver yet, so I'm using the SCFB > > (frame buffer) driver. > > > > It works, but I can't seem to set an optimal resolution. My display (24" > > Dell) supports 1920*1200, but the system only permits X11 to operate at > > 1280*1024. > > > > I have tried the usual settings in xorg.conf to define the display's > > "Modes" at 1920*1200, but no luck. Running 'xrandr' presents only one > > option: 1280*1024. > > > > I know the SCFB driver is capable of operating at higher resolutions, > > does anyone have any tips on how to set this? > > Some years ago, I had a similar problem with the nvidia driver > not providing a screen size biiger than 1024x768 (which isn't > that great on an 21" 4:3 CRT), so I tested and collected some > tweaks for xorg.conf. Maybe those are driver-specific or even > outdated, but maybe they can be an inspiration for further > investigations. > > I did manually define the monitor's physical parameters to > allow X to calculate the required resolution and size: > > Section "Monitor" > Identifier "Monitor0" > VendorName "Eizo" > ModelName "FlexScan F980" > HorizSync 30.0 - 137.0 > VertRefresh 50.0 - 160.0 > Option "DPMS" "false" > DisplaySize 410 305 > # X*Y in mm for DPI calculation, cf. xinit -- -dpi 72/75/96/115 > EndSection > > In that section, if I set > > Option "PreferredMode" "1920x1200" > > the system locked up. No idea why. > > Later on, I tried to set the DPI size and disable EDID information > retrieval: > > Section "Device" > Identifier "Card0" > Driver "nvidia" > [...] > Option "UseEdid" "FALSE" > Option "UseEdidDpi" "FALSE" > Option "DPI" "96 x 96" > EndSection > > In the "most important section" of xorg.conf, I could successfully > set the screen sizes to switch manually (with Ctrl+Alt+[+]/[-] keys) > or via program (for example games that activated a full screen mode > that was not the "usual" mode). > > Section "Screen" > Identifier "Screen0" > Device "Card0" > Monitor "Monitor0" > DefaultDepth 24 > SubSection "Display" > Viewport 0 0 > Depth 24 > Visual "TrueColor" > Modes "1400x1050" "1152x864" "1024x768" > "800x600" "640x480" "320x240" > EndSubSection > EndSection > > In case of a flat panel, all size settings should be the same, and > in the "Screen" section, there should be only one entry of the > desired format. > > I always could manually switch to the desired mode: > > xrandr --fb 1400x1050 > xrandr --size 1400x1050 > > which I had temporarily put into ~/.xinitrc, but that looked wrong. > > With "xrandr" without parameter) you should then get a list of the > available modes, with the one selected at the top. > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Paranoid in Sabbath ...