diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2019-03-16 12:10:36 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2019-03-16 13:51:09 +0000 |
commit | e37c1f5f5741450ba6233d4301b6222b67f7fc22 (patch) | |
tree | e48d0218ec3578f55aeeb3b73d3bffe87dfa57d1 /lib | |
parent | 0324e5d28ca477228c2e9b5f680b4097b3a0aac1 (diff) | |
download | drakx-kbd-mouse-x11-e37c1f5f5741450ba6233d4301b6222b67f7fc22.tar drakx-kbd-mouse-x11-e37c1f5f5741450ba6233d4301b6222b67f7fc22.tar.gz drakx-kbd-mouse-x11-e37c1f5f5741450ba6233d4301b6222b67f7fc22.tar.bz2 drakx-kbd-mouse-x11-e37c1f5f5741450ba6233d4301b6222b67f7fc22.tar.xz drakx-kbd-mouse-x11-e37c1f5f5741450ba6233d4301b6222b67f7fc22.zip |
Add 'xclone' boot option to control Xorg default configuration (mga#24469).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Xconfig/various.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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 }); |