Merge pull request #63 from Brine28/xconfig-explicit-gpu-selection
xconfig: support explicit GPU selection on multi-GPU systems
xconfig: address GPU selection review feedback
Signed-off-by: Muhammed Sariyildiz <asiyee994 at gmail.com>
xconfig: address GPU selection review feedback
Signed-off-by: Muhammed Sariyildiz <asiyee994 at gmail.com>
xconfig: address GPU selection review feedback
Signed-off-by: Muhammed Sariyildiz <asiyee994 at gmail.com>
xconfig: address GPU selection review feedback
Preserve shared DRM packages when selecting NVIDIA, defer cleanup until driver installation succeeds, and propagate setup failures. Clarify service-specific sysrc lookup behavior.
Signed-off-by: Muhammed Sariyildiz <asiyee994 at gmail.com>
xconfig: allow explicit GPU selection on multi-GPU systems
Add xconfig_gpu preferences for Intel, AMD and NVIDIA devices. Honor the configured preference when the rc.d service runs xconfig auto at boot, and remove stale DRM modules from kld_list when switching to NVIDIA.
Signed-off-by: Muhammed Sariyildiz <asiyee994 at gmail.com>
xconfig: recognize 3D-class PCI display controllers
Detect display devices by their PCI subclass instead of matching VGA only. This allows NVIDIA GPUs exposed as 3D controllers to be recognized.
Signed-off-by: Muhammed Sariyildiz <asiyee994 at gmail.com>
Merge pull request #62 from ghostbsd/remove-clean-option
Remove the clean option and always remove unused drivers
Remove the clean option and always remove unused drivers
Nothing called "xconfig clean", so drm-kmod, the GPU firmware and
open-vm-tools were never removed by auto. Drop TO_CLEAN and
pkg_clean_remove, and have remove_vmware and remove_drm use
pkg_remove so auto removes them whenever they are not needed.
Merge pull request #61 from ghostbsd/remove-xdrivers-gate
Removed the gated removal of XDrivers.
Removed the gated removal of XDrivers.
The removal was gated behind --clean, but rc.d/xconfig and the live
autologin only run "xconfig auto", so /xdrivers was never removed.
Drop TO_REMOVE_XDRIVERS and run remove_xdrivers at the end of main,
skipping debug and help.
Also fix the repo config path. pkg reads /usr/local/etc/pkg/repos,
not repo, so XDrivers.conf was never deleted.
Fix offline NVIDIA install and X server detection at boot
pkg add has no -r option, so installing from the XDrivers repo always
failed. Use pkg install -r XDrivers instead.
When started from rc.d, PATH lacks /usr/local, so Xorg was not found,
the X server was reported as unknown and the Xorg nvidia-driver was
installed instead of xlibre-nvidia-driver. Set a full PATH, and fall
back to checking the installed server package.
Merge pull request #60 from ghostbsd/nvidia-fix
Fix offline NVIDIA install and X server detection at boot
Remove unused packages before setting up drivers
Package removal was queued and only run after main returned, so any
early exit during driver setup (e.g. NVIDIA) skipped it and left
packages like virtualbox-ose-additions installed. The remove_*
functions now delete right away, before the setup functions run.
Also drop the leftover remove_qemu calls, which aborted the script
under set -e, and stop generating xorg.conf with X -configure for
NVIDIA.
Merge pull request #59 from ghostbsd/nvidia-fix
Remove unused packages before setting up drivers
Auto-assign pull requests to their author
Add a pr_assign_author job so each new pull request is assigned to the
person who opened it. Bot accounts such as dependabot are skipped since
they cannot be assignees.
Merge pull request #58 from b-aaz/imprv
Removed unnecessary configurations, simplifed configuration's and speedup the configuration.
Added back the removal of /xdrivers.
With some small clean-ups and improvements, and fixes.
Removed unnecessary configurations + simplified & speed-up config.
All the Bhyve, Hyper-v, QEMU, safe, and VESA configurations are
condensed into the "fb" (frame-buffer) configuration, in which xconfig
removes all other X drivers and only keeps the *xf86-video-scfb &
*xf86-video-vesa drives installed without any explicit configurations so
that the X server can choose the correct driver, based on the
frame-buffer API's available. (Normally SCFB only is available when
booting with an UEFI BIOS, and VESA only is available when booting with
a legacy BIOS)
Also made the script default to pkg-static as the `pkg` command, if it
is available, if not, it will choose the normal pkg command.
Additionally instead of doing a manual "from file install" form the
livecd's X drivers repository, use a file based repository named
"XDrivers" and use normal pkg commands. (Needs change in ghostbsd-build)
The package removals have all also been condensed into a single operation
[8 lines not shown]Merge pull request #57 from b-aaz/imprv
General improvements to XConfig (Focused on FB drivers and QEMU/KVM).
Skiped configurations for QXL, improved FB setup.
The QXL/SPICE X drivers have had known issues (segfaults) both on
X.Org/XLibre and Linux/BSD/..., this change makes XConfig skip that
driver and use the basic FB ones instead.
I've also simplified the setup of the frame-buffer drivers, removing the
unnecessary and restrictive (in terms of available modes) SCFB X Server
config. With these new changes when no other driver is setup, instead of
defaulting only to SCFB, which is not available on non UEFI systems,
XConfig keeps both the VESA and SCFB drivers installed, and lets the
server arbitrate between them based on their availability.
Merge pull request #55 from ghostbsd/update-drivers
Update RADEON and NVIDIA driver support
Remove support for NVIDIA 304 driver
- Delete NVIDIA 304 driver detection, setup, and menu options
- Simplify legacy driver handling by focusing on supported versions
Update RADEON and NVIDIA driver support
- Add support for NVIDIA 580 driver detection and installation
- Refactor `RADEON_DEVICE` IDs for improved AMD GPU compatibility
- Update menu options and helper functions to include NVIDIA 580
Merge pull request #54 from ghostbsd/nvidia
Fixed GPU detection logic
Fixed GPU detection logic
Merge pull request #53 from ghostbsd/scfb
Add remove_scfb and remove_vesa and refactor cleanup functions
Add remove_scfb and remove_vesa and refactor cleanup functions
Add remove_scfb() and remove_vesa() to uninstall xf86-video-scfb and
xf86-video-vesa when a proper driver is configured. Call them in
cmd_auto() for all GPU and VM detections, except hyperv and bhyve which
use the scfb driver internally.
Rename all cleanup_* functions to remove_* and drop template file
deletion, limiting them to package removal only. Remove cleanup_hyperv
and cleanup_bhyve as they had no packages to remove.
Merge pull request #52 from ghostbsd/cleanup
Improve VM guest setup and cleanup workflows
Split VMware package removal into separate commands in `cleanup_vmware` function.