From owner-freebsd-questions@freebsd.org Thu Sep 19 19:40:42 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 F1D0912CA36 for ; Thu, 19 Sep 2019 19:40:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Z6dj4xhMz4Bp2 for ; Thu, 19 Sep 2019 19:40:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.202.13]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPA (Nemesis) id 1MGyl3-1iNQbw3ZNj-00E3Wj; Thu, 19 Sep 2019 21:40:35 +0200 Date: Thu, 19 Sep 2019 21:40:35 +0200 From: Polytropon To: "Trey Sizemore" Cc: freebsd-questions@freebsd.org Subject: Re: Can't get graphical desktop environment on FBSD12 Message-Id: <20190919214035.f617cae7.freebsd@edvax.de> In-Reply-To: References: 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:LHejh2z/Fc3/W7Kn4OEUddZX6sPvG2Wo+b/MM1dI4gn0GogNFU0 LhjL1BTCmhYRFlF6T/dVWqTdWTbm+uYwrJofJ2KLeKaK4xIaGTV+YKdTFHlW8kiKrat4JEJ UfXLRVhS+6yuZ7/0n80YieNh3TDiSwMoCKdfPx2Juj9RdkNbFfvFQn126B5/W7KDK9xYXjq uWiudpzYW/iaBCp4vCwow== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:GA7iBf8sRN8=:msMVSCDIXMGcD7cSrXpBMb bCBbP1/QNTVASfEjlLN4G812wklIhu2mb8lcPqrOQZ5T2tAZePAXPTUmxJSWdZdO9rd+dq/g7 Mfjpwc8WAhQxHlOHzjQoJ8VuNhH2GVLOhCtGTRvLrmEby+rx/2v77kiYwa4yu/rO81hPVCLM0 oP2H50OVfougiAR8yynsX6YR8ERcjPvooF/6bg7J3WQ2S8O5qPq+arCATQllAXp1k90V80H1I zzvb25QpG61gO5ainx3ZNOiZolV3xD+VygWPxECM3uvDcQQ4stDqq31yzMvXEyTHf5CB67KrW sQb4urCk5uSzL+xD/6vVWJd+78JO25R1hJLv1XEDHk5iL1/7uvKLKzxtg2RHExcX43rXVaSyo rCclvD9d6juOrpez+Bj04DQhRBcd4nZwxkpvZvPsH7y/OuXvaWVVokIKdd2xGymekXO0smQql gAXqnCEfQBkKwn3l5BNVdNgdgYgN/TkPtmCWbEg1X4zqWPqTjmwKGLeAp4NiVo2rWmvz4E3Qr cY/YD20UcAT3SXqZiZWsc+FUil1XJEWEx7IdQyTbJZ0wtk3ZoCGDoQzhw05HAQX2V8VrQQiFB TXtUyNu98TSyCkca7cMqawD4wtHB9UVni8d8RKqnehxr/GJfzlgE/J9z/W8VocpmA4CMLf3Ha 3M/CAItAWhhNBZr23NkeUjytvEV/KHiX7CzEFQDliOWHurDCuG7n3MfMjEoc41m1zWhbl3cH+ Dy90Glpw3YEcWJHOq74V2LJFg5ARyviqETsvNxe2bFh9MFCRBCNHamF/UBn7i/EmpiCaevnzv xTn25s3lewgeGNr5oiznvbcUUUgiL0tzf7jYXO4/QklD2+6Tmyq8U9UTOaq1698Xbm6xsM6fu OMzio3En2mlpPmagxNzU9Qdk2jk+68LxwDLT6ys6Y= X-Rspamd-Queue-Id: 46Z6dj4xhMz4Bp2 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 212.227.17.10) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [2.81 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[fastmail.fm]; RECEIVED_SPAMHAUS_PBL(0.00)[13.202.222.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.30)[0.296,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.15)[0.152,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[10.17.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[10.17.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.04)[ip: (-0.98), ipnet: 212.227.0.0/16(-1.35), asn: 8560(2.14), country: DE(-0.01)] 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, 19 Sep 2019 19:40:43 -0000 On Thu, 19 Sep 2019 15:21:21 -0400, Trey Sizemore wrote: > HI all- > > Just did an install recently of FreeBSD 12 on a Thinkpad X! Carbon (Gen 5). > > Following the directions here[1] as well as here[2] I'm unable to get > anything other than a command prompt when I restart the machine. The instructions sometimes don't match reality. :-( > I should say when I reboot, it appears to hang and I only get a black > screen (issuing either 'reboot' or 'shutdown -r now') and I have to > power down and back up using the laptop's power button. That looks strange, but let's keep this as a different problem for the moment. > I'm actually wanting to get Cinnamon (which I've installed as well) > up and running as the DE. Good choice - I find it superior to Gnome 3. > I've installed gnome-desktop, gdm, xorg, and gnome3 It looks you missed to install the graphics driver for X, right? What kind of graphics does your system include? From there on, find out if you need to load the KMS driver via /boot/loader.conf or /etc/rc.conf. Then do diagnostics in _small_ steps, i. e., start X first without anything. For testing, a .xinitrc file with something like "exec xterm" should be fully sufficient. Examine /var/log/Xorg.0.log for possible errors when you do _not_ get a desktop running an X terminal. Use "pciconf -lv | less" to find out what graphics card is in your system. Example for Intel graphics in a Lenovo R61i: In /boot/loader.conf: i915kms_load="YES" Installed for X: xf86-video-intel Example for ATI / AMD "card" in a HP DM-1: In /boot/loader.conf: drm_load="YES" In /etc/rc.conf: kld_list="/boot/modules/radeonkms.ko" Installed for OS: drm-fbsd12.0-kmod Installed for X: xf86-video-ati However, in this specific setup, 3D support does not work (X uses the software renderer). > I have the following in my /etc/rc.conf: > $ less /etc/rc.conf > hostname="lenovo" > wlans_iwm0="wlan0" > ifconfig_wlan0="WPA DHCP" > sshd_enable="YES" > ntpdate_enable="YES" > ntpd_enable="YES" > powerd_enable="YES" > # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable > dumpdev="AUTO" > gnome_enable="YES" > moused_enable="YES" > dbus_enable="YES" > hald_enable="YES" > gdm_enable="YES" Looks correct so far. Suggestion to add: background_fsck="NO" Just in case. :-) > This is /etc/fstab: > $ less /etc/fstab > # Device Mountpoint FStype Options Dump Pass# > /dev/nvd0p2 / ufs rw 1 1 > /dev/nvd0p3 none swap sw 0 0 > proc /proc procfs rw 0 0 Probably not relevant here, but looks correct. > And I have an .xinitrc file with the following: > $ less .xinitrc > exec /usr/local/bin/gnome-session That's probably wrong. If I remember correctly, Gnome resuires you to use "ck-launch dbus-something -with-something-polkit gnome-esseion", but I don't remember because I dumped Gnome long time ago. :-) > $ ls -alF | grep xinitrc > -rw-r--r-- 1 trey trey 34 Sep 19 11:29 .xinitrc Correct permissions. > Have I mis-typed something or what am I missing? Probably not. I assume you simply forgot to install the _drivers_ needed for graphics (as mentioned above), which has become a significant hurdle in recent FreeBSD (as compared to the past when things were a lot simpler, and better documented), but well, that's the price of "modern" hardware... ;-) Summary: Find out what graphics card you need to support, install the appropriate drivers, test with a minimal configuration first, then extend to what you need for your desktop environment; in case of errors, examine the X log file. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...