From c391ae79db4a14d6aad5e525192cc52869cd17de Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 14 Apr 2009 14:35:42 +0000 Subject: Use plugnplay monitor for virtual box, fixes #49642. Thanks Titi for the patch! --- lib/Xconfig/monitor.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Xconfig/monitor.pm') diff --git a/lib/Xconfig/monitor.pm b/lib/Xconfig/monitor.pm index e3fe0ea..cc963c7 100644 --- a/lib/Xconfig/monitor.pm +++ b/lib/Xconfig/monitor.pm @@ -19,9 +19,11 @@ sub good_default_monitor() { sub default_monitor { my ($card_Driver) = @_; - if ($card_Driver eq 'siliconmotion' && arch() =~ /mips/) { + if (detect_devices::is_virtualbox() || ($card_Driver eq 'siliconmotion' && arch() =~ /mips/)) { # HACK: since there is no way to get the EDID on gdium, the resolution is passed to the kernel # so we can rely on it + # in vbox, we return Plug'n'Play because the vbox integration addons + # will take care of everything for us { VendorName => "Plug'n Play" }; } else { good_default_monitor() =~ /(.*)\|(.*)/ or internal_error("bad good_default_monitor"); -- cgit v1.2.1