mhwd-db issueshttps://gitlab.manjaro.org/applications/mhwd-db/-/issues2023-09-12T17:21:52Zhttps://gitlab.manjaro.org/applications/mhwd-db/-/issues/9r8168 post_remove correction2023-09-12T17:21:52ZMark Wagier8168 post_remove correctionWhen r8168 is removed, it should reload r8169.
I can't create a new MR until !17 is merged as had forgotten to create a new branch for it.
```
diff --git a/pci/network_drivers/r8168/MHWDCONFIG b/pci/network_drivers/r8168/MHWDCONFIG
in...When r8168 is removed, it should reload r8169.
I can't create a new MR until !17 is merged as had forgotten to create a new branch for it.
```
diff --git a/pci/network_drivers/r8168/MHWDCONFIG b/pci/network_drivers/r8168/MHWDCONFIG
index 9b32329..86307d6 100644
--- a/pci/network_drivers/r8168/MHWDCONFIG
+++ b/pci/network_drivers/r8168/MHWDCONFIG
@@ -32,5 +32,6 @@ post_remove()
rm "${MODULESBLACKLIST}"
fi
- modprobe -r r8169
+ modprobe -r r8168
+ modprobe r8169
}
```https://gitlab.manjaro.org/applications/mhwd-db/-/issues/7virtualbox-guest-modules are build-in in virtualbox-host-modules2021-07-03T13:20:40ZPhilip Hvirtualbox-guest-modules are build-in in virtualbox-host-modulesUpdate fix virtualbox-guest-modules to virtualbox-host-modules because Guest-Modules are now built-in.
```bash
# mhwd Driver Config
NAME="video-virtualmachine"
INFO="X.org vmware video driver and open-vm-tools/virtualbox tools"
VERSION...Update fix virtualbox-guest-modules to virtualbox-host-modules because Guest-Modules are now built-in.
```bash
# mhwd Driver Config
NAME="video-virtualmachine"
INFO="X.org vmware video driver and open-vm-tools/virtualbox tools"
VERSION="2021.06.10"
FREEDRIVER="true"
PRIORITY="2"
CLASSIDS="0300"
# Virtualbox version 6.0 uses VMSVGA on Linux guests by default, which has VMWare's VENDORID.
# VENDOR VMWare=80ee Virtualbox=15AD Redhat(QXL)=1af4 Redhat(VirtIO)=1b36
VENDORIDS="80ee 15AD 1af4 1b36"
DEVICEIDS="*"
# Dependencies, gtkmm3 is needed to enable copy/paste support with vmware
DEPENDS="virtualbox-guest-utils xf86-video-vmware open-vm-tools xf86-input-vmmouse spice-vdagent"
OPTREMDEPENDS="gtkmm3"
DEPKMOD="virtualbox-host-modules"
XDGAUTOSTARTFILE="/etc/xdg/autostart/mhwd-vmsvga-alert.desktop"
MHWDALERTSCRIPT="/var/lib/mhwd/scripts/vmsvga-alert"
autostart()
{
cat <<EOF > "${MHWDALERTSCRIPT}"
#!/bin/bash
[[ "\$(lspci -nn | grep 'VMware')" != '' ]] && [[ "\$(systemd-detect-virt)" == 'oracle' ]] && notify-send --icon=dialog-warning -u critical -a MHWD "Window Resizing" "Set your Virtualbox Graphics Controller to VBoxSVGA to enable window resizing"
EOF
cat <<EOF > "${XDGAUTOSTARTFILE}"
[Desktop Entry]
Type=Application
Exec=${MHWDALERTSCRIPT}
X-GNOME-Autostart-enabled=true
X-KDE-autostart-after=panel
EOF
# Has to be added separately because MHWD thinks this is the config name
echo Name=MHWD VMSVGA detection >> "${XDGAUTOSTARTFILE}"
# Set exec
chmod +x "${MHWDALERTSCRIPT}"
}
gdm_disable_wayland()
{
if [[ -e /etc/gdm/custom.conf ]]; then
sed -i -e 's|#WaylandEnable=false|WaylandEnable=false|g' /etc/gdm/custom.conf
fi
}
post_install()
{
if [[ "$(systemd-detect-virt)" == "oracle" ]]; then
# Virtualbox detected
# Automatically check if Virtualbox is set to VMSVGA mode and tell the user to switch away
autostart
if [[ ! -d /run/openrc ]]; then
# Load kernel modules and sync clock
systemctl enable --now vboxservice.service
fi
# We have to make /dev/vboxuser read-write, otherwise VBoxClient won't be able to connect. This is not done automatically until the next reboot.
chmod 666 /dev/vboxuser
else
# Remove VBox-Client desktop file when not running in virtualbox
rm -f "/etc/xdg/autostart/vboxclient.desktop"
if [[ "$(systemd-detect-virt)" == "vmware" ]]; then
# Vmware detected
if [[ ! -d /run/openrc ]]; then
systemctl enable --now vmtoolsd.service
fi
else
# Not virtualbox or vmware. Start spice-vdagentd.socket to auto detect if spice is in use. Otherwise, do nothing.
systemctl start spice-vdagentd.socket
fi
fi
gdm_disable_wayland
}
post_remove()
{
if [[ "$(systemd-detect-virt)" == "oracle" ]]; then
# Virtualbox detected
rm -f "${XDGAUTOSTARTFILE}"
rm -f "${MHWDALERTSCRIPT}"
if [[ ! -d /run/openrc ]]; then
systemctl disable --now vboxservice.service
fi
elif [[ "$(systemd-detect-virt)" == "vmware" ]]; then
# Vmware detected
if [[ ! -d /run/openrc ]]; then
systemctl disable --now vmtoolsd.service
fi
fi
}
```https://gitlab.manjaro.org/applications/mhwd-db/-/issues/2[PATCH] Add nvidia prime offloading support to mhwd2020-01-06T17:31:15ZGhost User[PATCH] Add nvidia prime offloading support to mhwdPatch: [nvidia-prime.diff](/uploads/180eec2d09ee999be634edc0a9062ec0/nvidia-prime.diff)
Built package: [here](https://gitlab.com/TotallyNotElite/mhwd-db-testing/raw/master/mhwd-db-0.6.3-16-x86_64.pkg.tar.xz)
Forum discussions: [here](h...Patch: [nvidia-prime.diff](/uploads/180eec2d09ee999be634edc0a9062ec0/nvidia-prime.diff)
Built package: [here](https://gitlab.com/TotallyNotElite/mhwd-db-testing/raw/master/mhwd-db-0.6.3-16-x86_64.pkg.tar.xz)
Forum discussions: [here](https://forum.manjaro.org/t/working-test-version-inside-adding-nvidia-prime-offloading-support-to-mhwd/108849)
Purpose:
* Replace bumblebee (abandoned project) with nvidia prime render offloading (official solution) to vastly increase compatibility. Discussion [here](https://forum.manjaro.org/t/working-test-version-inside-adding-nvidia-prime-offloading-support-to-mhwd/108849).
* Remove stub configs. These configs don't install anything or modify the system in any way. (I'm not sure if it's ok to remove these. Just let me know)
* Update mhwd conflicts (for example video-intel was removed)
Tests done:
* My laptop: Intel(R) UHD Graphics 630, Nvidia 1660ti
* [onechard (1)](https://forum.manjaro.org/t/working-test-version-inside-adding-nvidia-prime-offloading-support-to-mhwd/108849/18): Intel(R) HD Graphics 630, GeForce GTX 1050
* [onechard (2)](https://forum.manjaro.org/t/working-test-version-inside-adding-nvidia-prime-offloading-support-to-mhwd/108849/19): Intel(R) HD Graphics 630, GeForce GTX 1050 Max-Q
* [peter](https://forum.manjaro.org/t/working-test-version-inside-adding-nvidia-prime-offloading-support-to-mhwd/108849/17): Intel(R) Haswell Mobile, GeForce 840M