summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-23 03:43:13 +0000
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-23 03:43:13 +0000
commit5847d54be1636f87d16e445e0a903d2e411f7c1c (patch)
tree0baa5cb1bdde0c1f97b5a82f310331f5a4f073ff
parentce8ad8bd402baed5c48becc6aad155d838dea21a (diff)
downloadalpine-conf-5847d54be1636f87d16e445e0a903d2e411f7c1c.zip
setup-xorg-base: don't install video DDX
modesetting provides superior compatibility and comparable performance on modern platforms. other distros such as debian/ubuntu [0] and fedora [1] switched to modesetting several years ago. users who require maximum xrender performance can manually install a ddx. [0] https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/AUPYPJMFJZMHPEKN24LBABZKIEOV4NU5/ [1] https://tjaalton.wordpress.com/2016/07/23/intel-graphics-gen4-and-newer-now-defaults-to-modesetting-driver-on-x/
-rw-r--r--setup-xorg-base.in22
1 files changed, 1 insertions, 21 deletions
diff --git a/setup-xorg-base.in b/setup-xorg-base.in
index 2e01c91..e557327 100644
--- a/setup-xorg-base.in
+++ b/setup-xorg-base.in
@@ -1,25 +1,5 @@
#!/bin/sh
-# simple script to setup x basic org server
-# you will still need a window manager and login manager or xinit
-
-base_pkgs="xorg-server xf86-input-libinput eudev"
-
-apk add pciutils eudev
-vgaline=$(lspci | grep -w VGA)
-
-case "$vgaline" in
-*Intel*) videodrv="xf86-video-intel";;
-*AMD*) videodrv="xf86-video-amdgpu";;
-*NVIDIA*) videodrv="xf86-video-nouveau";;
-*VMware*) videodrv="xf86-video-vmware";;
-*QXL*) videodrv="xf86-video-qxl";;
-esac
-
-# fallback driver
-videodrv="$videodrv xf86-video-modesetting"
-
-# install packages
-apk add $base_pkgs $videodrv $@
+apk add xorg-server xf86-input-libinput eudev "$@"
setup-udev