Commit c5da5458 authored by Philip Müller's avatar Philip Müller

[pci] add video-virtualmachine

- patch created by TotallyNotElite <1yourexperiment@protonmail.com>
- see also https://forum.manjaro.org/t/117690
parent 58aba82a
# mhwd Driver Config
NAME="video-virtualbox"
INFO="X.org virtualbox video driver. Standard driver for use in a virtualbox emulation."
VERSION="2018.11.25"
FREEDRIVER="true"
PRIORITY="1"
CLASSIDS="0300"
VENDORIDS="80ee"
DEVICEIDS="*"
# Dependencies
DEPENDS="virtualbox-guest-utils"
DEPKMOD="virtualbox-guest-modules"
VBOXSCRIPT="/etc/profile.d/VBoxClient.sh"
post_install()
{
echo "#!/bin/bash" > "${VBOXSCRIPT}"
echo "" >> "${VBOXSCRIPT}"
echo "/usr/bin/VBoxClient-all > /dev/null" >> "${VBOXSCRIPT}"
chmod a+x "${VBOXSCRIPT}"
}
# mhwd Driver Config
NAME="video-vmware"
INFO="X.org vmware video driver."
VERSION="2017.03.12"
FREEDRIVER="true"
PRIORITY="1"
CLASSIDS="0300"
VENDORIDS="15AD"
DEVICEIDS="*"
# Dependencies
DEPENDS="xf86-video-vmware xf86-input-vmmouse open-vm-tools"
XORGFILE="/etc/X11/mhwd.d/vmware.conf"
post_install()
{
MHWD_HEADING "${XORGFILE}"
MHWD_ADD_DEVICE_SECTION_FOR_EACH_BUSID "vmware" "${XORGFILE}" 15AD
MHWD_ADD_DRI "${XORGFILE}"
MHWD_ADD_COMPOSITING "${XORGFILE}"
MHWD_ADD_BACKSPACE "${XORGFILE}"
mhwd-gpu --setxorg "${XORGFILE}"
if [[ ! -d /run/openrc ]];then
systemctl enable vmtoolsd.service
systemctl start vmtoolsd.service
fi
}
post_remove()
{
if [ -e "${XORGFILE}" ]; then
rm "${XORGFILE}"
fi
mhwd-gpu --check
if [[ ! -d /run/openrc ]];then
systemctl disable vmtoolsd.service
systemctl stop vmtoolsd.service
fi
}
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