From owner-freebsd-x11@freebsd.org Sat Dec 22 19:22:50 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84BA21338B96 for ; Sat, 22 Dec 2018 19:22:50 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [140.82.23.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 82DCF6DDE8 for ; Sat, 22 Dec 2018 19:22:48 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from duke.gem.co (cpe-23-243-162-239.socal.res.rr.com [23.243.162.239]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 8598776f TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Sat, 22 Dec 2018 11:22:46 -0800 (PST) Subject: Re: xserver - black screen To: starikarp@yandex.com, freebsd-x11@freebsd.org References: <20181221172029.6a769ebc@yandex.com> <20181222122918.74010adf@yandex.com> From: Pete Wright Message-ID: <83c41986-18b1-ce22-6b30-b689efabab7c@nomadlogic.org> Date: Sat, 22 Dec 2018 11:22:46 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <20181222122918.74010adf@yandex.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 82DCF6DDE8 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 140.82.23.70 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-5.63 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[239.162.243.23.zen.spamhaus.org : 127.0.0.10]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[nomadlogic.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mail.nomadlogic.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.94)[-0.945,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-2.37)[ip: (-8.99), ipnet: 140.82.16.0/21(-4.50), asn: 20473(1.71), country: US(-0.08)]; FREEMAIL_TO(0.00)[yandex.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:140.82.16.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Dec 2018 19:22:50 -0000 On 12/22/18 9:29 AM, starikarp@yandex.com wrote: > On Fri, 21 Dec 2018 15:28:36 -0800 > Pete Wright wrote: > >> On 12/21/18 2:20 PM, starikarp@yandex.com wrote: >>> I did install Xorg, Openbox and some other apps which I had before >>> and also drm-kmod which choose version for 12 and xf86-video-ati. >>> But after startx it start just black screen. I also try >>> drm-legacy-kmod and legacy ati drivers but it is the same black >>> screen. >>> >>> sysctl machdep boothmetod shows UEFI >>> >>> and >>> sysctl kern.vty shows vt >>> >>> I also try to make xorg.conf but I got the black screen too. >>> I made in /usr/local/etc/X11/xorg.conf.d/driver-scfb.conf and it >>> works. >>> >>> Any suggestion how should I use mine Radeon 4850, please? >> can you send over a copy of your dmesg and your /var/log/Xorg.0.log >> after you attempt to start Xorg with no configuration in place? >> >> also, make sure you are a member of the "video" group so that your >> user has access to the graphics device. >> >> >> -pete >> > Thank you. > The log is when I try to start xserver. Everything was black and I need > to restart computer. I just press ctrl-alt-F3 and than ctrl-c and > shutdown - now and boot me back. But the problem is also if I > kldload /boot/modules/radeonkms.ko. The screen is black and I need > restart again. hrm nothing is jumping out at me yet. can you post a dmesg from when you boot the system and enable loading the radeonkms.ko via rc.conf like so: kld_list="/boot/modules/radeonkms.ko" it should have a bunch of loglines prefixed with [drm] - that should show us if the driver is attaching correctly. looking at the Xorg.0.log you sent I don't see anything obviously wrong aside from this: [  1675.580] (II) GLX: Initialized DRI2 GL provider for screen 0 [  1675.586] (II) RADEON(0): Setting screen physical size to 677 x 381 [  1675.648] failed to add FB for modeset [  1675.648] (WW) RADEON(0): Failed to set mode on CRTC 0 [  1675.657] (EE) RADEON(0): Failed to enable any CRTC hopefully there will more useful info in the dmesg buffer when you load the radeonkms driver vi rc.conf.  one final thing you can also try is uninstalling the drm-kmod package and installing the "drm-legacy-kmod" package if you haven't tested that already. cheers, -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA