From owner-freebsd-questions@FreeBSD.ORG Thu Jan 2 02:12:33 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7BAAE13E for ; Thu, 2 Jan 2014 02:12:33 +0000 (UTC) Received: from mail-pb0-x236.google.com (mail-pb0-x236.google.com [IPv6:2607:f8b0:400e:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 50F2418CF for ; Thu, 2 Jan 2014 02:12:33 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id un15so13934869pbc.13 for ; Wed, 01 Jan 2014 18:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UJqL9SCjtjlxui9mtxnCB78sNQfFiGgQUgnimyiIRWY=; b=xNcvnrZ/nlWlmhDYQOqsFWDCSxSqTKs8mAqFzKpygaOAl+LF1uz2+jUIvHrpb5knDk vLg0HMRiTpB6UAhFqe/n4ch8wW87tBOwptbnrW7EEQpIbVQqmWfQyB0fky5yh/+IkURC LQYhLE3BTljdTqUT4tXtxt8EZMcBwt5mPmxNZiQ+EK03Sc4Gww5/IuEzBeqpy09sjZZR rd1OeUt/zZlAX0bhKb8Rw+TIDRvXVDWpFOLO/j+hLoyLLcVbzLELIVchXn8pMJyJ9gW4 RIKUNJpfrI8PnxUG1UgwUKfwDtkLHo9goXBTNY45KiXrse3INWBaFFsztgI9paEll2K/ rdnw== MIME-Version: 1.0 X-Received: by 10.68.228.138 with SMTP id si10mr85906878pbc.13.1388628752885; Wed, 01 Jan 2014 18:12:32 -0800 (PST) Received: by 10.70.92.71 with HTTP; Wed, 1 Jan 2014 18:12:32 -0800 (PST) In-Reply-To: References: Date: Wed, 1 Jan 2014 20:12:32 -0600 Message-ID: Subject: Re: VirtualBox and Xorg From: Adam Vande More To: Ben Paley Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2014 02:12:33 -0000 IOn Wed, Jan 1, 2014 at 7:13 PM, Ben Paley wrote: > Hello all, > > I=92ve installed 9.2-RELEASE in VirtualBox on a Macbook. It was, against = my > expectations, pretty much the easiest install I=92ve ever done, but I=92v= e had > trouble with Xorg. > > I followed the instructions at > http://www.freebsd.org/doc/handbook/virtualization-guest.html#virtualizat= ion-guest-virtualbox-guest-additions- I=92ve installed emulators/virtualbox= -ose-additions successfully (as far as > I can tell, anyway; VB now lets me configure a shared directory, even > though I don=92t seem to be able to mount it because FreeBSD doesn=92t su= pport > the file system). I=92ve added the vboxguest and vboxservice lines to > rc.conf, and I=92ve created /usr/local/etc/hal/fdi/policy/90-vboxguest.fd= i > with permissions 644 owned by root:wheel. > > If I do startx with no configuration then I get a nice vanilla X but the > cursor doesn=92t respond. > > If I do "Xorg -configure=94 then the Device section in xorg.conf.new is j= ust > like the one in the docs. The InputDevice is a little different: > > Section =93InputDevice=94 > Identifier =93Mouse0=94 > Driver =93vboxmouse=94 > Option =93Protocol=94 =93auto=94 > Option =93Device=94 =93/dev/sysmouse=94 > Option =93ZAxisMapping=94 =934 5 6 7=94 > EndSection > > =85but commenting out the extra lines doesn=92t seem to change anything: = if I > do =93X -config /root/xorg.conf.new=94 then the screen goes black and I= =92m not > sure what=92s happening. The cursor gets captured and released by Virtual= Box > just as it should, but while it=92s captured it becomes black or invisibl= e or > ceases to exist, or something. In any case I don=92t think it moves, beca= use > when I release it, it shows up in the same place even if I=92ve been wigg= ling > my finger around. > > I have a feeling that the vboxmouse and vboxvideo aren=92t present, or ar= e > improperly detected or something. Am I supposed to install them separatel= y? > Or is there anything else obvious? Or non-obvious? > > I=92m not sure whether or not the system is using HAL - hal-0.5.14_20 is > installed, but I don=92t really know if I need the HAL policy file: but i= t > doesn=92t seem to make any difference if I move it. > It is generally easier to run a full desktop environment like kde rather than just vanilla X, see the handbook. Also install the xorg-minimal package to insure you've got the needed depends installed. The FreeBSD VBox wiki works well for me. If it doesn't for you, please isolate the step where it fails and post the results. --=20 Adam