From owner-freebsd-questions@freebsd.org Thu Nov 28 23:52:17 2019 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 A06241BC546 for ; Thu, 28 Nov 2019 23:52:17 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 47PDvh6mQBz4FHZ for ; Thu, 28 Nov 2019 23:52:16 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x236.google.com with SMTP id 128so16509771oih.4 for ; Thu, 28 Nov 2019 15:52:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CKvLd/Sp5gt0f/2JiYsWpKbiw5xImet2p45bQTCoe9w=; b=g3NGpw2EZKS0yOtzbhIYaJmCQwsebt00K3QHwDBrc4L+t8hCriwtNyDblQ7myset4+ CeM07TCsCGYD0eTaLDMalViC06tJBAzue63MrS1gFV1hXtOfnotJikMNl4P9kTXb/y8n op7LKl38Pzgxi3zC6s6nwJOLQ5/Xyf8YWSibMmv5lsKjQfHCGr8QIXjWeKDHicOmHN2+ BleM3nN843/XU43VZGI4D0kimlUglOi3lN211BICDXHGHtQkDqEVB+uPBdrAvGDFug5r 18kf+Ql7Z2FdIKO8GRJuIjHNmFZxfz1upmEizpzNsmpxZ19HJdEOZJJgapOkC0P/3XWW uxUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CKvLd/Sp5gt0f/2JiYsWpKbiw5xImet2p45bQTCoe9w=; b=boyNEmBWMGNJh9j1ArhLSXDhtzsZhMsCHYzDlfYTmzRuYIwE4El2ccYFI6bxOjDoqi 6R4KigDJeG+CvwL3UOAoh2aeaXFVrLr3e9fceiEN+emgPdRB7s1UhF9TfEUQqF/F5ncu CzvUzzHHB1GxKp+S+wO8Hvwz9hQj2WXXExRiTW2J4mkCc6WFpcgx69cQnM8LSpDpRQGc Xk7y2Bq0F8re+xtIC3uPtVq4feiOTtzTRtW6p19A9fqFWj9L724Qs/JWGtrsMSAx/WCF 7r+Fw4NNp1slcuIg5m3MzTdQUHUOYAtV+vQtSIIfFOGUHx7RYZfBfjCxzu1H4ImkXGpH NbUQ== X-Gm-Message-State: APjAAAXxp90Asy2OOP52Yh1IrZ3pGEt3Fnx139/G7cO8K2EW06Lk+Diw kwk2MSGPkMpJkreTHG4lgvzxDeQhJ48= X-Google-Smtp-Source: APXvYqx/syZUT26Q88jBbtl4GeqYpW1juHcbHmkVksJfaL86T6Gg8U2wVduD1buQulFJLNMri64k5w== X-Received: by 2002:aca:f18b:: with SMTP id p133mr9848264oih.22.1574985135463; Thu, 28 Nov 2019 15:52:15 -0800 (PST) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com. [209.85.167.179]) by smtp.gmail.com with ESMTPSA id x189sm1949412oig.20.2019.11.28.15.52.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Nov 2019 15:52:14 -0800 (PST) Received: by mail-oi1-f179.google.com with SMTP id c16so2424090oic.3 for ; Thu, 28 Nov 2019 15:52:14 -0800 (PST) X-Received: by 2002:aca:5785:: with SMTP id l127mr1243573oib.168.1574985133710; Thu, 28 Nov 2019 15:52:13 -0800 (PST) MIME-Version: 1.0 References: <20191128103810.9599da0b.freebsd@edvax.de> <770ebb05-9d76-1b54-5bf5-af548368e19e@hedeland.org> <20191128140254.fc3ee735.freebsd@edvax.de> In-Reply-To: From: Tomasz CEDRO Date: Fri, 29 Nov 2019 00:52:01 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: FreeBSD-12.1 on laptop To: vm finance Cc: Polytropon , Per Hedeland , Daniele Mazzotti , FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47PDvh6mQBz4FHZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=g3NGpw2E; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::236) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.40 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[6.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.60)[ip: (-8.74), ipnet: 2607:f8b0::/32(-2.25), asn: 15169(-1.94), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 23:52:17 -0000 Read the instructions provided on screen - it tells you to update port tree or disable vulnerability check and you even have command showed how to do that :-) It seems you did not update the ports tree as instructed so the Intel driver will not work and cannot be built. Did you type all commands as instructed in given order? If "portsnap fetch update" did not update your port tree try "portsnap fetch extract" that would fetch and extract the latest port tree. Then go to drm port (the latest is 4.16.g20191120) and do: make clean make make deinstall make install kldunload drm kldunload i915kms kldload /boot/modules/i915kms.ko startx You may have Intel and nVidia graphics on your machine. First make Intel working. Then you will easily make nVidia working (replace drm and 915kms modules with nvidia.ko). If you still have problems with both Intel and nVidia drivers get the default framebuffer video driver that is slow but works: pkg install xf86-video-scfb If that does not work for you then you are making something wrong with all good sufficiently enough information provided from the list, now its your time to do the homework and _understand_ how things work and where _you_ are making the mistake :-) Have fun :-) On Thu, Nov 28, 2019 at 6:13 PM vm finance wrote: > > Thanks Tomasz, > > Well, make at step #4 gave an error > > pkg install Xorg hal dbus > portsnap fetch update > cd /usr/ports/graphics/drm-fbsd12.0-kmod/ > make <==== error here > > Pls see the attached screen shot... > > Many thanks! > > > > On Thu, Nov 28, 2019 at 8:34 PM Tomasz CEDRO wrote: >> >> Do this as root: >> >> pkg install Xorg hal dbus >> portsnap fetch update >> cd /usr/ports/graphics/drm-fbsd12.0-kmod/ >> make >> make deinstall >> make install >> kldunload drm >> kldunload i915kms >> kldload /boot/modules/drm.ko >> kldload /boot/modules/i915kms.ko >> startx >> >> You can also generate Xorg configuration with: >> Xorg -configure >> cp /root/xorg.config.new /etc/X11/xorg.conf >> startx >> >> Note that you have to compile the DRM kernel driver on your machine, >> also you need to load /boot/modules/drm.ko and >> /boot/modules/i915kms.ko from that location otherwise you will load >> default drm/i915 drivers that does not work with modern GPU. >> >> If all above works put below line into /etc/rc.conf: >> kld_list="/boot/modules/drm.ko /boot/modules/i915kms.ko" >> >> You may also take a look at https://forums.freebsd.org/ to see if >> people had similar problems and found a working solution. >> >> Have fun :-) >> >> -- >> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info