From owner-freebsd-questions@freebsd.org Sun Jan 24 17:40:39 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 8FEDE4D36F4 for ; Sun, 24 Jan 2021 17:40:39 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DP0df2gXQz3rQZ for ; Sun, 24 Jan 2021 17:40:38 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-lj1-x22e.google.com with SMTP id p13so12514591ljg.2 for ; Sun, 24 Jan 2021 09:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=subject:to:references:cc:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Rx8bj7OfbYPyDENnpF0H/jptHVBuUGX6BzAsWX7W0ic=; b=FpAzMFEdahnvVbtgpzeC8C0vCLPBg81j8aJelUK0lJbpTiI8DcKaigikoVTEVGmzjV oE3y5ui7XN7NoaYIUzXoPF/RQWEIKlYITOt0Vg1rvHachLMJP+0rmHcyDVPWdRXk+p10 BLDPvGgL7qVNtq/WhYVxRLu/WN9lURM8NhzS1kp+mVFhZgWeckJRcObjdKjUzc8Wf2qf ijdR2Uit1mVntwZ77smaHsZaz54m/LLSe4bXkAQJNaYO6bGD6NPPEKedjWK2iVBT9vQI wv7l4tVozdRFT3ebgxC5CQEwwkk3jup14pqmQsbzWrVXUz/iwkmXyhuSrYY2tmlxOIiC 31GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Rx8bj7OfbYPyDENnpF0H/jptHVBuUGX6BzAsWX7W0ic=; b=MLokH8zsdfanAfOHMjqn6jge/7asN8GvzCl986iBnUy2oADRnrXifzgD6GGHUKefUI vFh8yRufclUyt5nWUAdIBlbcQ3cPCiWVRn1LHwqjXg+6CYHC5+WsuZEiFpmAvTA35sGi 81A/pbdB4bKUtTWsB8RiWGHaZMMymPrg9iIdA0afRKKBdKk/j+saiI/SqPNI+QK2OFRG 0Dg8GEvLzT3vODF3lHrKDK5dVL0M0KkZK3FzZb9qR27BVCZBkykwQoltPtVxnSwYkg5t qBAGdHEZc9nSbryPfdR7RmV73E6s53pmUZdMX+EjCEBleoT9F3h4r9Bjc+15dNST1kOI v4Yg== X-Gm-Message-State: AOAM531xaEBQgaEGTS68Ra4/PRo41JQUuagR1DlVgn6YfhpjCqNqKGMe DZTPlBypXo79s8VUn7cOcEBLUOkNT0ldPqhc X-Google-Smtp-Source: ABdhPJwF3JxQV7YLRf2q/pcwhJRpfPXOMaPzTGY4Mnmr0p4zKZhw9n9ilCW97W7jCJkxuSvexcP73A== X-Received: by 2002:a2e:b6cc:: with SMTP id m12mr171822ljo.401.1611510036329; Sun, 24 Jan 2021 09:40:36 -0800 (PST) Received: from [192.168.0.101] ([31.179.178.250]) by smtp.gmail.com with ESMTPSA id l16sm1511960lfg.222.2021.01.24.09.40.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 Jan 2021 09:40:35 -0800 (PST) Subject: Re: Xorg crashes several times a day To: Victor Sudakov References: Cc: FreeBSD Questions Mailing List From: Tomasz CEDRO Organization: CeDeROM Message-ID: <8e371d97-a723-92f9-a884-087cc240ff96@cedro.info> Date: Sun, 24 Jan 2021 18:40:37 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DP0df2gXQz3rQZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=FpAzMFEd; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2a00:1450:4864:20::22e) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.22 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.92)[-0.915]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::22e:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::22e:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22e:from]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_ALL(0.00)[]; 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 17:40:39 -0000 On 24.01.2021 12:37, Victor Sudakov wrote: > Tomasz CEDRO wrote: >> with Intel drm no problem, but you have to build and reinstall >> drm-kmod-fbsd12xxx by hand. lock it with pkg lock so it not get replaced >> with pkg binary version that is compiled on 12.1 and does not work on 12.2. > > Is the graphics/drm-kmod port really necessary and why? The default > FreeBSD 12.2 installation already contains /boot/kernel/i915kms.ko and > /boot/kernel/drm2.ko, and I load them from rc.conf. This graphics/drm-kmod seems to ba "metaport" that initially or with pkg installs automatically the dependencies. But I noticed that rebuilding and reinstalling that port does NOT rebuild and reinstall dependencies. This is why that drm-kmod-fbsd12xxx seems only important (if you use Intel). I am not sure why these modules are not distributed with default kernel but this stuff is Linux KPI port so that may have something to do with GPL tainting..? Also the full path needs to be specified to the drm modules otherwise the default (those distrubuted with kernel that does not work with new cards) are loaded and those does not work (quite obvious isnt it). Brave New World of Bleeding Edge Linux Style :-) :-) However feedback from the lists and forums could have some impact on a release organization :-) >> amdgpu even compiled by hand crashes kernel quite often and it's dangerous >> to use. >> >> you can always fall back to VESA (for bios system) or SCFB (for uefi >> system) generic framebuffer driver. > > 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 :-) -- CeDeROM, SQ7MHZ, https://www.tomek.cedro.info