From owner-freebsd-questions@freebsd.org Mon Dec 7 02:49:40 2015 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 6D7409B7CEA for ; Mon, 7 Dec 2015 02:49:40 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 29A671C7F for ; Mon, 7 Dec 2015 02:49:39 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a5lro-0005vw-1X for freebsd-questions@freebsd.org; Mon, 07 Dec 2015 03:49:36 +0100 Received: from 203.184.10.44 ([203.184.10.44]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Dec 2015 03:49:32 +0100 Received: from erwin.pacua by 203.184.10.44 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Dec 2015 03:49:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Erwin Pacua Subject: Re: Mouse & Keyboard not working in Virtual Box VM Date: Mon, 07 Dec 2015 15:49:11 +1300 Lines: 227 Message-ID: References: <010EFC12-FD25-4A04-B042-9B0C95478C03@gmail.com> Reply-To: erwin.pacua@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 203.184.10.44 User-Agent: KNode/4.14.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2015 02:49:40 -0000 John Aten wrote: > Hello all, > > I am completely new to FreeBSD. I recently downloaded the FreeBSD > 10.2-RELEASE virtual machine image for Virtual Box. I am running Virtual > Box 4.3.30 on Mac OSX 10.6.8. (There are newer versions of Virtual Box, > which require a newer version of OSX than I am running, thus I haven't > been able to upgrade) Everything seemed to go well, until I tried to get a > window manager working. I installed the Enlightenment desktop in my > regular user account, but when it starts the mouse and keyboard do not > work. The same happens in whatever basic window manager comes up in the > root account. > > The X log says that since 'hotplugging' is on, these devices will be > disabled: > > [ 429.942] (**) |-->Input Device "Mouse0" > [ 429.943] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' > [ or 'vmmouse' will be disabled. 429.943] (WW) Disabling Mouse0 > [ 432.737] (II) config/devd: adding input device (null) (/dev/sysmouse) > [ 432.737] (II) LoadModule: "mouse" > [ 432.738] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so > [ 432.742] (II) Module mouse: vendor="X.Org Foundation" > [ 432.742] (II) UnloadModule: "mouse" > [ 432.742] (II) Unloading mouse > [ 432.742] (EE) Failed to load module "mouse" (module requirement > [ mismatch, 0) 432.743] (EE) No input driver matching `mouse' > [ 432.777] (II) config/devd: adding input device Mouse (/dev/psm0) > [ 432.777] (II) LoadModule: "mouse" > [ 432.778] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so > [ 432.779] (II) Module mouse: vendor="X.Org Foundation" > [ 432.779] (II) UnloadModule: "mouse" > [ 432.779] (II) Unloading mouse > [ 432.779] (EE) Failed to load module "mouse" (module requirement > [ mismatch, 0) 432.779] (EE) No input driver matching `mouse' > [ 429.942] (**) |-->Input Device "Keyboard0" > [ 429.943] (WW) Disabling Keyboard0 > > I have found several articles and forum threads that deal with this, and > similar issues, but none of the fixes seem to work, and many involve other > issues that I am not having. > > I installed the virtualbox guest additions from ports, and from looking at > various sources around the internet, I placed the following in rc.conf: > > ifconfig_em0="DHCP" > > vboxguest_enable="YES" > vboxservice_enable="YES" > > mouse_enable="YES" > > hald_enable="YES" > dbus_enable="YES" > > It appears I do not have hald installed; when I run `service hald start`, > I get an error that says hald does not exist. I read somewhere that hald > is deprecated, anyway, so I'm not sure that getting it running is the > answer. Before I read that, though, I did add the suggested > /usr/local/etc/hal/fdi/policy called 90-vboxguest.fdi file recommended > from here: > http://technologytales.com/2014/03/02/installing-freebsd-in-a-virtualbox-virtual-machine/ > . > > I don't know if maybe I have a problem with the guest additions install; I > don't see how this would produce the problem, but I do get the following > warnings in /var/log/messages: > > Dec 4 22:31:06 kernel: ACPI APIC Table: > Dec 4 22:31:06 kernel: acpi0: on motherboard > Dec 4 22:31:06 kernel: cd0: Removable CD-ROM SCSI > device > Dec 4 22:31:06 kernel: ada0: ATA-6 device > Dec 4 22:31:06 kernel: KLD vboxguest.ko: depends on kernel - not > available or version mismatch > Dec 4 22:31:07 root: /etc/rc: WARNING: failed to start vboxservice > Dec 5 06:49:29 kernel: ACPI APIC Table: > Dec 5 06:49:29 kernel: acpi0: on motherboard > Dec 5 06:49:29 kernel: cd0: Removable CD-ROM SCSI > device > Dec 5 06:49:29 kernel: ada0: ATA-6 device > Dec 5 06:49:29 kernel: KLD vboxguest.ko: depends on kernel - not > available or version mismatch > Dec 5 06:49:31 root: /etc/rc: WARNING: failed to start vboxservice > Dec 5 07:27:14 kernel: ACPI APIC Table: > Dec 5 07:27:14 kernel: acpi0: on motherboard > Dec 5 07:27:14 kernel: cd0: Removable CD-ROM SCSI > device > Dec 5 07:27:14 kernel: ada0: ATA-6 device > Dec 5 07:27:14 kernel: KLD vboxguest.ko: depends on kernel - not > available or version mismatch > Dec 5 07:27:16 root: /etc/rc: WARNING: failed to start vboxservice > Dec 5 07:33:31 kernel: ACPI APIC Table: > Dec 5 07:33:31 kernel: acpi0: on motherboard > Dec 5 07:33:31 kernel: cd0: Removable CD-ROM SCSI > device > Dec 5 07:33:31 kernel: ada0: ATA-6 device > Dec 5 07:33:31 kernel: KLD vboxguest.ko: depends on kernel - not > available or version mismatch > Dec 5 07:33:33 root: /etc/rc: WARNING: failed to start vboxservice > Dec 5 18:04:52 kernel: ACPI APIC Table: > Dec 5 18:04:52 kernel: acpi0: on motherboard > Dec 5 18:04:52 kernel: cd0: Removable CD-ROM SCSI > device > Dec 5 18:04:52 kernel: ada0: ATA-6 device > Dec 5 18:04:52 kernel: KLD vboxguest.ko: depends on kernel - not > available or version mismatch > Dec 5 18:04:55 root: /etc/rc: WARNING: failed to start vboxservice > > After installing Enlightenment, I ran X -configure, and also added some > lines to xorg.conf in accordance with suggestions from the internet. My > current xorg.conf (I added both "AutoAddDevices" lines, and the entire > ServerFlags section): > > Section "ServerLayout" > Identifier "X.org Configured" > Screen 0 "Screen0" 0 0 > InputDevice "Mouse0" "CorePointer" > InputDevice "Keyboard0" "CoreKeyboard" > Option "AutoAddDevices" "False" > EndSection > > Section "ServerFlags" > Option "AutoAddDevices" "False" > EndSection > > Section "Files" > ModulePath "/usr/local/lib/xorg/modules" > FontPath "/usr/local/share/fonts/misc/" > FontPath "/usr/local/share/fonts/TTF/" > FontPath "/usr/local/share/fonts/OTF/" > FontPath "/usr/local/share/fonts/Type1/" > FontPath "/usr/local/share/fonts/100dpi/" > FontPath "/usr/local/share/fonts/75dpi/" > EndSection > > Section "Module" > Load "glx" > EndSection > > Section "InputDevice" > Identifier "Keyboard0" > Driver "kbd" > EndSection > > Section "InputDevice" > Identifier "Mouse0" > Driver "vboxmouse" > EndSection > > Section "Monitor" > Identifier "Monitor0" > VendorName "Monitor Vendor" > ModelName "Monitor Model" > EndSection > > Section "Device" > ### Available Driver options are:- > ### Values: : integer, : float, : "True"/"False", > ### : "String", : " Hz/kHz/MHz", > ### : "%" > ### [arg]: arg optional > Identifier "Card0" > Driver "vboxvideo" > BusID "PCI:0:2:0" > EndSection > > Section "Screen" > Identifier "Screen0" > Device "Card0" > Monitor "Monitor0" > SubSection "Display" > Viewport 0 0 > Depth 1 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 4 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 8 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 15 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 16 > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 24 > EndSubSection > EndSection > > I am pretty sure that this is all that I have altered in the course of > working on this problem, but it is easy to lose track. It seems that I > have to somehow turn 'hotplugging' off, but I have not been able to find > out how to successfully do this, and I have no idea what to do next. I > would very much appreciate any insight on this problem. > _______________________________________________ > 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" > Option "AutoAddDevices" "False" PCBSD is working fine without this line > Dec 4 22:31:06 kernel: KLD vboxguest.ko: depends on kernel - not > available or version mismatch how about reinstalling virtualbox-ose-additions which provides vboxguest. Then unload/reload the module back, or restart? > mouse_enable="YES" it's moused. I don't have that line and mouse under X is working fine, though. output of pkg info | grep 'xf86-input-' would be helpful. Hope it helps.