Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2021 19:11:23 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Tomasz CEDRO <tomek@cedro.info>
Cc:        Victor Sudakov <vas@sibptus.ru>, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Xorg crashes several times a day
Message-ID:  <20210124191123.e14e770a.freebsd@edvax.de>
In-Reply-To: <8e371d97-a723-92f9-a884-087cc240ff96@cedro.info>
References:  <YAz90Yiz1YC/wynK@admin.sibptus.ru> <CAM8r67AV4xMHTUMPJM9GHSGH_E1RAoUZ_QeBfbG06F6ishiYWw@mail.gmail.com> <YA1b/Evxfrk3NLj9@admin.sibptus.ru> <8e371d97-a723-92f9-a884-087cc240ff96@cedro.info>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 24 Jan 2021 18:40:37 +0100, Tomasz CEDRO wrote:
> On 24.01.2021 12:37, Victor Sudakov wrote:
> > [...]
> > Do you remember how to do that, as I have no xorg.conf? The Xserver just
> > finds whatever it finds.
> 
> 1. Remove this new drm (drm-kmod, i915, amdgpu, etc) packages + load 
> commands from /etc/rc.conf or /boot/loader.conf.
> 
> 2. Install x11-drivers/xf86-video-scfb (if you use uefi) or 
> x11-drivers/xf86-video-vesa (if you use bios).
> 
> 3. Generate a default config with Xorg -configure, then copy config from 
> /root/xorg.conf.new to /etc/X11/xorg.conf.
> 
> 4. Find a "Device" that matches your video card and set Driver "scfb".
> 
> Try running as root first, if that works try running as user, in case of 
> problems look at /var/log/Xorg.0.log :-)

Won't that leave X in VESA mode? Any halfway modern desktop
environment or Linux-derived window manager will be slow and
useless this way, not to start about using Firefox or LibreOffice
or playing video... that's why it's recommended you also know
what graphics card you have _and_ install the xf86-video-<blah>
package that contains the appropriate driver. While VESA should
always work as a "lowest level solution", it will probably cause
problems for running or at least using actual programs.

So like in common Linux-style, we now have two moving parts
where historically were zero (because the correct one would
have been loaded automatically): kernel DRM driver (kmod KPI)
plus X11 driver. And among those, if you're using nVidia
hardware or AMD / Radeon, there is even _more_ choice. :-)

In most cases, just starting X without a configuration file
will do the right thing, given the required parts are present.
Only older hardware might need manual intervention.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210124191123.e14e770a.freebsd>