From 12c70393c6ef14f66c9f0d3d930c472f1f195e6a Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Wed, 4 May 2011 20:14:19 +0000 Subject: Fallback to X server run-time autodetection on laptops instead of 1024x768 when the monitor could not be probed (Mageia #1059). --- lib/Xconfig/monitor.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Xconfig/monitor.pm b/lib/Xconfig/monitor.pm index 0fc2c31..857ac01 100644 --- a/lib/Xconfig/monitor.pm +++ b/lib/Xconfig/monitor.pm @@ -19,11 +19,12 @@ sub good_default_monitor() { sub default_monitor { my ($card_Driver) = @_; - if (detect_devices::is_virtualbox() || ($card_Driver eq 'siliconmotion' && arch() =~ /mips/)) { + if (detect_devices::is_virtualbox() || detect_devices::isLaptop() || ($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 + # On laptops the X server should usually be able to autodetect everything. { VendorName => "Plug'n Play" }; } else { good_default_monitor() =~ /(.*)\|(.*)/ or internal_error("bad good_default_monitor"); -- cgit v1.2.1