From owner-freebsd-questions@FreeBSD.ORG Fri Apr 8 21:18:30 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B299106564A for ; Fri, 8 Apr 2011 21:18:30 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.4.200]) by mx1.freebsd.org (Postfix) with ESMTP id DB9448FC15 for ; Fri, 8 Apr 2011 21:18:29 +0000 (UTC) Received: from corellia.vindaloo.com (ool-457cb346.dyn.optonline.net [69.124.179.70]) by mta5.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0LJC0041BR6SXVH0@mta5.srv.hcvlny.cv.net> for freebsd-questions@freebsd.org; Fri, 08 Apr 2011 17:18:29 -0400 (EDT) Received: from hadar.vindaloo.com (hadar.vindaloo.com [172.24.145.72]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by corellia.vindaloo.com (Postfix) with ESMTPSA id 457BE28461; Fri, 08 Apr 2011 17:18:28 -0400 (EDT) Date: Fri, 08 Apr 2011 17:18:27 -0400 From: Christopher Hilton In-reply-to: To: Sascha Vieweg Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.1084) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD VMWare Mac screen resulution and keyboard map X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2011 21:18:30 -0000 On Apr 8, 2011, at 12:22 PM, Sascha Vieweg wrote: > As a curious beginner I am running FreeBSD on VMWare Fusion 3.1.2 on a MacBook Pro 13'' i5, and I want to do two things on the normal (startup) console: > > (1) use my apple keyboard, especially, scroll through console output > The Apple Keyboard should just work. The FreeBSD console has a special mode where you can scroll back and forth in console output after hitting Scroll Lock. I'm just not sure what key on the Apple Keyboard VMware maps to Scroll Lock. > (2) have a screen resolution of at least 800x600. To start, the X log file: /var/log/Xorg.0.log file is a good source of information about what X is doing if you are trying to tune things. Getting a good screen resolution should just be a matter of setting the refresh rates to match your monitor. You may be able to put any values you like in there since your screen and video adapter are virtual. All of this gets configured in /etc/X11/xorg.conf. I believe it's considered gauche to hand configure this anymore but since many modern displays, the Apple laptops included, don't conform to the VESA standard modes it's helpful to be able to tune things by hand. The problem is compounded by the fact that again, in VMware you probably aren't talking to the real hardware. Any modern hardware should just tell the X server what it's Sync and Refresh rates are. One final tip: Check the amount of VideoRam that VMware assigned to the virtual machine. I noticed that it was a little skint at 2Mb or something and I bumped it up to something larger than 8Mbso I could have a 1920x1080x24bpp display. Here's my xorg.conf file which I started on an Acrylic MacBook running Parallels and them moved to and retuned for a unibody 15" MacBook Pro. I'm following up my first post since I revisited this file this afternoon to fix a couple of issues that I had worked around. My box is FreeBSD 8.2-STABLE built from sources on 4/6/2011. I'm running xorg-7.5.1 from ports -------------------- Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" ModulePath "/usr/local/lib/xorg/modules" FontPath "/usr/local/lib/X11/fonts/misc/" FontPath "/usr/local/lib/X11/fonts/TTF/" FontPath "/usr/local/lib/X11/fonts/OTF" FontPath "/usr/local/lib/X11/fonts/Type1/" FontPath "/usr/local/lib/X11/fonts/100dpi/" FontPath "/usr/local/lib/X11/fonts/75dpi/" EndSection Section "Module" Load "extmod" Load "record" Load "dbe" Load "glx" Load "dri" Load "dri2" Load "vmmouse" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "vmmouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Section "Monitor" Identifier "Apple MacBook Pro A1286 Display" VendorName "Apple" HorizSync 27.0-86.0 ## These shouldn't matter VertRefresh 50.0-72.0 ## ## 15" MacBook Pro Modeline "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync ## 13" MacBook and possibly 13" MacBook Pro Modeline "1280x800" 83.46 1280 1344 1480 1680 800 801 804 828 EndSection Section "Device" Identifier "VMware Legacy Emulated SVGA II Adapter" Driver "vmwlegacy" VendorName "VMware" BoardName "Legacy Emulated SVGA II Adapter" BusID "PCI:0:15:0" EndSection Section "Screen" Identifier "Screen0" Device "VMware Legacy Emulated SVGA II Adapter" Monitor "Apple MacBook Pro A1286 Display" ## Purge the display modes that I don't need from here. SubSection "Display" Viewport 0 0 Depth 24 Modes "1440x900" ## 15" MacBook Pro Modes "1280x800" ## 13" MacBook/MacBook Pro EndSubSection EndSection -- Chris -- __o Chris Hilton _`\<,_ e: chris /at/ vindaloo /dot/ com __(*)/_(*)____________________________________________________________ "All I was doing was trying to get home from work." -Rosa Parks