Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
alpine-conf
Commits
b421b066
Commit
b421b066
authored
May 19, 2017
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-xorg-base: use libinput and modesetting
also try figure out a good video driver from lspci outout
parent
00220ede
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
setup-xorg-base.in
setup-xorg-base.in
+12
-8
No files found.
setup-xorg-base.in
View file @
b421b066
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment