Commit b421b066 authored by Natanael Copa's avatar Natanael Copa

setup-xorg-base: use libinput and modesetting

also try figure out a good video driver from lspci outout
parent 00220ede
......@@ -3,18 +3,22 @@
# 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-video-vesa xf86-video-modesetting
xf86-input-evdev xf86-input-mouse xf86-input-keyboard udev"
base_pkgs="xorg-server xf86-input-libinput eudev"
# TODO: detect graphics card and pick proper xf86-video-* driver based on that
apk add pciutils
vgaline=$(lspci | grep -w VGA)
# TODO: detect if we need xf86-input-synaptics
case "$vgaline" in
*Intel*) videodrv="xf86-video-intel";;
*AMD*) videodrv="xf86-video-amdgpu";;
*NVIDIA*) videodrv="xf86-video-nouveau";;
*VMware*) videodrv="xf86-video-vmware";;
esac
# ps mouse
modprobe psmouse
grep -q -w psmouse /etc/modules || echo "psmouse" >> /etc/modules
# fallback driver
videodrv="$videodrv xf86-video-modesetting"
# install packages
apk add $base_pkgs $@
apk add $base_pkgs $videodrv $@
setup-udev
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment