From owner-freebsd-questions@freebsd.org Sun Jan 24 18:11:29 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E8D3D4D4D65 for ; Sun, 24 Jan 2021 18:11:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DP1KD6ppBz3tnk for ; Sun, 24 Jan 2021 18:11:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.5.94.3]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPA (Nemesis) id 1MmU5P-1llI5M0o3V-00iTOo; Sun, 24 Jan 2021 19:11:25 +0100 Date: Sun, 24 Jan 2021 19:11:23 +0100 From: Polytropon To: Tomasz CEDRO Cc: Victor Sudakov , FreeBSD Questions Mailing List 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: <8e371d97-a723-92f9-a884-087cc240ff96@cedro.info> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:kFiYzFVwm6Uf2WhMTJ3+DFPPEzRaauXfa/TKfHG350zvpCYMCCB rC6NFA+aqSjvUeGSdO6/xu4qlMcT0rRWm75UZ1Lc9LPpT7muFNtrVOjeSPMbLxoW9FL2vBk nX6GW+RQR5i2YGjm2T4EvJcqCek3aFFMnsGJmIc3cd82q5AsNPjEo/btMkb2g9aPlpjpi0+ Yw+0G3EeXDjIC+T8s1cOQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qPssnwRnC40=:jy7lzbvf8muZTT2pURH8in LkjzUKLXxXUumWnvAeHunetfOHMD5gVknXNeAsBOvA3RO5n55I++wXqT1+HfadxgLNQCllNi7 zrGhpA5c5Wj9P+w/YW6D/PlTOVRbeKiVKRvQ+1cQ8JgMY63zuw2PkfowDquRzAbxut1WKlmUn YfYXxBgqImp/zKZkFkGAdyEGoJb/6AnqWfSRCpZu1DMZAACDFXPYKKAfz4hWbqUwjhEhBCqgW lFoct17TtyAoTyTPL9GRY+uV1uAOaHsG1CZn5yaVivHA8Cvcx9g84W3koajQBkLzIHwiOCeAz iAp1NLnnJgBdf0kWvuTIPDh2k6jHBOGNcN4s7y/y69LjCBbQR3hM0NkL/4QPwAG3Y7UIUqQmn k/fil3mzuPeNk2GAsu1rryp3M7StmVBFitWRjmomRlM57n4DCb6Pf1w9nubHS X-Rspamd-Queue-Id: 4DP1KD6ppBz3tnk X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.73) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [-0.59 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.991]; RECEIVED_SPAMHAUS_PBL(0.00)[178.5.94.3:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[217.72.192.73:from]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[217.72.192.73:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[217.72.192.73:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[217.72.192.73:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2021 18:11:30 -0000 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- 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, ...