nomadbsd / NomadBSD

Livesystem based on FreeBSD
http://nomadbsd.org
BSD 2-Clause "Simplified" License
361 stars 42 forks source link

Display initgfx gfx_menu window only in case Xorg failed #70

Open probonopd opened 4 years ago

probonopd commented 4 years ago

It would be much nicer if NomadBSD would boot straight into a working desktop without asking the user any questions.

I understand that gfx_menu is meant for situation in which the autodetection fails.

Hence, one could run the autoconfiguration, launch Xorg, check its exit code, and display initgfx's gfx_menu window only in case Xorg returned a non-zero exit code.

mrclksr commented 4 years ago

Hi @probonopd,

Hence, one could run the autoconfiguration, launch Xorg, check its exit code, and diisplay initgfx's gfx_menu window only in case Xorg returned a non-zero exit code.

I'm already working on it, and this is exactly the approach I chose :)

mrclksr commented 4 years ago

Give it a try if you like

Boot your NomadBSD and execute the following commands as root to install the new initgfx:

#!/bin/sh

mv -i /etc/rc.d/initgfx ~/initgfx.old

cd /usr/local/etc/X11/xorg.conf.d/ && \
rm 10-intel.conf 10-nvidia.conf 10-driver-scfb.conf 10-driver-vesa.conf \
20-ati.conf 20-amdgpu.conf 20-modesetting.conf

fetch -o /etc/rc.d/initgfx \
        https://raw.githubusercontent.com/nomadbsd/NomadBSD/new_initgfx/config/etc/rc.d/initgfx

chmod a+x /etc/rc.d/initgfx

fetch -o /etc/initgfx_device.db \
        https://raw.githubusercontent.com/nomadbsd/NomadBSD/new_initgfx/config/etc/initgfx_device.db

fetch -o /etc/initgfx_xorg.cfg \
        https://raw.githubusercontent.com/nomadbsd/NomadBSD/new_initgfx/config/etc/initgfx_xorg.cfg
probonopd commented 4 years ago

Thanks a lot @mrclksr. Looks like I need to get another SSD because the one I got for "trying out" NomadBSD has since morphed into being my daily driver main desktop system... :+1: