diff options
author | Holger Paradies <retabell@gmx.de> | 2017-11-01 23:16:46 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2017-11-02 10:30:10 +0100 |
commit | 4383ae035689a788f23157dfa7065712b6a8eacc (patch) | |
tree | 71e51f3afc9b622a65d56469136d4406ec5f6a9b /config/chroot_local-includes | |
parent | 2e1649fdaf6e9e00e95370877cebc496476bc526 (diff) | |
download | kanotix-4383ae035689a788f23157dfa7065712b6a8eacc.zip kanotix-4383ae035689a788f23157dfa7065712b6a8eacc.tar.gz |
add cheatcodes radeoncfg intel intelcfgold
Diffstat (limited to 'config/chroot_local-includes')
-rwxr-xr-x | config/chroot_local-includes/lib/live/config/9026-intel-cfg | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9026-intel-cfg b/config/chroot_local-includes/lib/live/config/9026-intel-cfg new file mode 100755 index 0000000..f138e0e --- /dev/null +++ b/config/chroot_local-includes/lib/live/config/9026-intel-cfg @@ -0,0 +1,62 @@ +#!/bin/sh + +Intelcfg () +{ + # Checking if configured + if [ -e /var/lib/live/config/intelcfg ] + then + return + fi + echo -n " intel-cfg" + Configure_intelcfg +} +Configure_intelcfg () +{ + # Boot parameters can be acted up either this way... + if [ -x /var/lib/dpkg/info/xserver-xorg-video-intel.postinst ] + then + if grep -qs "intelcfg" /proc/cmdline + then + # + mkdir -p /etc/X11/xorg.conf.d +cat > /etc/X11/xorg.conf.d/25-xorg-intel.conf <<"EOF" +Section "Device" + Identifier "Intel" + Driver "intel" + #Option "AccelMethod" "uxa" + #Option "DRI" "2" +EndSection +EOF + if grep -qs "intelcfgold" /proc/cmdline + then + # +cat > /etc/X11/xorg.conf.d/25-xorg-intel.conf <<"EOF" +Section "Device" + Identifier "Intel" + Driver "intel" + Option "AccelMethod" "uxa" + #Option "DRI" "2" +EndSection +EOF + fi + fi + fi +# workaround radeon +if grep -qs "radeoncfg" /proc/cmdline + then + # + mkdir -p /etc/X11/xorg.conf.d +cat > /etc/X11/xorg.conf.d/25-xorg-radeon.conf <<"EOF" +Section "Device" + Identifier "DeviceRadeon" + Driver "radeon" + Option "AccelMethod" "glamor" + Option "DRI" "3" +EndSection +EOF +fi + # Creating state file + touch /var/lib/live/config/intelcfg +} + +Intelcfg |