From owner-freebsd-questions@freebsd.org Thu Jan 3 06:39:09 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D83AB14197C0 for ; Thu, 3 Jan 2019 06:39:08 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E9C778C995 for ; Thu, 3 Jan 2019 06:39:06 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by mail-oi1-x235.google.com with SMTP id c206so26999572oib.0 for ; Wed, 02 Jan 2019 22:39:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v3bAuRaEGqqi8pb9L2K/Pdu0bRvPDtKcqHGdkL7fKqE=; b=U3kXtwogozzXay8dDT1FhbZDN6airOGL3S7qGHZ+g/e/FRNVuQvMMir1GyOSEFzPOx fPQAYzdhCpC7h35WDL9AWm+C6Qt9crmvdLcLnrwQ6/sw8ISEGeYUEldmPwOAdS5yJCUK 4mbv3sFDY8IZWXaftPcJc7SYS86OG5hxRplsAnoJ3LsP+DYZYzO/EByyyHcXr9q6ZIB2 ELf4SEWv8UsmI0QFZeELb+4VCGQGmrOCuQ1PmyFD8DYZq9C5fyPzIBVr1uIVhNaS2b5X Sshz3abJvZD5lPPO/thzNAm0F2lqJQc9+woB+SdIo5bp19/r/oQrnCqFoCCfl4+MkzFo T//A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v3bAuRaEGqqi8pb9L2K/Pdu0bRvPDtKcqHGdkL7fKqE=; b=f7l4MQNqY2PEYSS8OgtDInVXVnAzFEiUv1pMhWxmecCV37NP7Qqx6xkwJfM8izGAOG 1fYE1cSADhkCR/d/EtNjicNJPrMSoD3g1EoGEhc5LOVK6wAtrKoEf6bkeoC9v33UwMC1 rEelCYl7XmJiuDZp4ykv0JfqPjzA79bl+qyx7lP2AjUYyrNnWP3wuV2C/Rgzs7BNPO3Y p6aafIT8rA0/jWi9vrAxIUwaPZn2THO6Wtrs6toAwvc1QQmdl2jn+YZsiCkqd68bbhmG 5re8AL5moTFk+JXAxNNTP2eoAgzFDPAHmmRNPxPHQRmDp5rt7dO5Z8zj0q8g8rg7IWPv 2iBA== X-Gm-Message-State: AA+aEWYc46HbXbphCUIfnUnL+wH+Jb/yLd9TKcDPIG+GgNw4vkl47U0q UF/gqjr5v8UKyXYW0YI6QuRv/aCv/37EfCdnSSU= X-Google-Smtp-Source: AFSGD/Vk2u1d1enYVWJJe0pxH+h+jupUI5TIk+Ovl0DBHJF6YoKy8p4WX7Bxut3lsMI8+VgRkhAykC3AoVAaMtWpXek= X-Received: by 2002:aca:eccb:: with SMTP id k194mr29482877oih.104.1546497545273; Wed, 02 Jan 2019 22:39:05 -0800 (PST) MIME-Version: 1.0 References: <20190102221306.1bbd6c85.freebsd@edvax.de> In-Reply-To: <20190102221306.1bbd6c85.freebsd@edvax.de> From: "Kurt Buff - GSEC, GCIH" Date: Wed, 2 Jan 2019 22:38:33 -0800 Message-ID: Subject: Re: Video resolution in a VM To: Polytropon Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: E9C778C995 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=U3kXtwog; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kurtbuff@gmail.com designates 2607:f8b0:4864:20::235 as permitted sender) smtp.mailfrom=kurtbuff@gmail.com X-Spamd-Result: default: False [-6.53 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.91)[-0.914,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[5.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.61)[ip: (-9.23), ipnet: 2607:f8b0::/32(-2.11), asn: 15169(-1.63), country: US(-0.08)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2019 06:39:09 -0000 On Wed, Jan 2, 2019 at 1:13 PM Polytropon wrote: > > On Tue, 1 Jan 2019 17:05:09 -0800, Kurt Buff - GSEC, GCIH wrote: > > I'm not able to get display resolution greater than 1280x720 - I'd > > really like to get it to 1920x1080, to match the laptop capabilities. > > > > [...] > > > > The laptop shows two video displays in hdwwiz.cpl in Windows: > > Intel HD Graphics 630 > > NVIDIA GeForce 940MX > > but it looks as if the NVIDIA isn't active. Don't know why that is. > > > > When I run xvinfo, it shows no display available. > > > > For "display", pciconf says: > > vgapci0@pci0:0:15:0: class=0x030000 card=0x040515ad > > chip=0x040515ad rev=0x00 hdr=0x00 > > vendor = 'VMware' > > device = 'SVGA II Adapter' > > class = display > > subclass = VGA > > > > The .vmx files shows the following for the display: > > vmotion.checkpointSVGAPrimarySize = "8323072" > > svga.maxHeight = "1080" > > svga.maxWidth = "1920" > > svga.autodetect = "FALSE" > > svga.vramSize = "8323072" > > > > Any thoughts would be appreciated. > > There are several things you can try: > > First of all, it seems that VMware does not properly "represent" > the existing hardware to your FreeBSD VM instance, so you only > seem to get the generic "SVGA card". Also, have you thought > about increasing the VRAM size? You can never have enough > of VRAM. :-) I'll have to look that up. > Try using xrandr to set the screen size from insie the VM. > A command line > > xrandr --size 1920x1080 > > should work. Dang. Nope. I get the message: "Can't open display" > You can also try to use a specific X configuration fragment, > for example /usr/local/etc/X11/xorg.conf.d/screen-resolution.conf > with a content like this: > > Section "Screen" > Identifier "Screen0" > Device "Card0" > SubSection "Display" > Modes "1920x1080" > EndSubSection > EndSection No success with that just now. Also tried this, without success: Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Visual "TrueColor" Modes "1920x1080" "1280x800" EndSubSection EndSection > You could then experiment with the setting DisplaySize (in mm) > and the Option "DPI" (for example with "110 x 110"), depending > on the actual properties of the hardware (!) you are using. > A laptop display only has one sceen size and one resolution. > Normally, X will calculate the correct information itself, > which is usually obtained from the display, but this might not > work as intended because of the "VM mangling"... ;-) Hm. I will have to look that up as well. Thanks for the help so far. Kurt