summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/Xconfig/various.pm3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 85a9a4f..1c06686 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- add 'xclone' boot option to control Xorg default configuration (mga#24469)
+
Version 1.25 - 4 November 2018
- fix setting systemd default.target to requested runlevel (mga#22593)
diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm
index 7d245f2..114390f 100644
--- a/lib/Xconfig/various.pm
+++ b/lib/Xconfig/various.pm
@@ -49,6 +49,8 @@ sub default {
my $isLaptop = detect_devices::isLaptop();
+ my ($clone) = cat_("/proc/cmdline") =~ /.*\bxclone=(\S+)/;
+
add2hash_($various, {
isLaptop => $isLaptop,
xdm => 1,
@@ -59,6 +61,7 @@ sub default {
if_($card->{Driver} eq 'savage', HWCursor => 1),
if_($card->{Driver} eq 'intel' && $isLaptop, Clone => 0),
if_($card->{Driver} eq 'ati' && $isLaptop, Clone => 1, BIOSHotkeys => 0),
+ if_(defined $clone, Clone => $clone), # overrides driver-specific default
if_(exists $card->{DRI_GLX}, use_DRI_GLX => $card->{DRI_GLX} && !$card->{Xinerama}),
if_(member($card->{Driver}, qw(i128 ati sis trident via savage)), EXA => 0), #- list taken from http://wiki.x.org/wiki/ExaStatus
});