From owner-freebsd-questions@freebsd.org Sun Jul 17 10:38:36 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C72C9B9C06A; Sun, 17 Jul 2016 10:38:36 +0000 (UTC) (envelope-from ike@michaeleichorn.com) Received: from mx1.eichornenterprises.com (mx1.eichornenterprises.com [104.236.13.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.eichornenterprises.com", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EE54117B; Sun, 17 Jul 2016 10:38:35 +0000 (UTC) (envelope-from ike@michaeleichorn.com) Received: from smtp.eichornenterprises.com (cpe-76-188-217-142.neo.res.rr.com [76.188.217.142]) by mx1.eichornenterprises.com (OpenSMTPD) with ESMTP id 47f9a499; Sun, 17 Jul 2016 06:31:51 -0400 (EDT) Received: by smtp.eichornenterprises.com (OpenSMTPD) with ESMTPSA id dc5bef72 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sun, 17 Jul 2016 06:31:52 -0400 (EDT) Message-ID: <1468751677.23217.10.camel@michaeleichorn.com> Subject: Re: How to change back to the console when stucked by the desktop environment From: "Michael B. Eichorn" To: Yubin Ruan , "Julian H. Stacey" Cc: freebsd-desktop@freebsd.org, freebsd-questions@freebsd.org Date: Sun, 17 Jul 2016 06:34:37 -0400 In-Reply-To: <578B4386.4080301@gmail.com> References: <201607161358.u6GDwTi1040789@fire.js.berklix.net> <578B4386.4080301@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.4 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2016 10:38:36 -0000 On Sun, 2016-07-17 at 16:36 +0800, Yubin Ruan wrote: > > Thanks, I just manage to install a proper desktop environment(Xfce) > to  > use and it seems to work fine. > However, still, I cannot manage to do tty-switching using Alt>  > ( didn't work either). Strangely, whenever I press  > , the whole desktop block. I don't know why, it just > block  > everytime I press ( the _ stand for number 1...8) > > My /etc/ttys file looks like this: > >      console     none                   unknown    off   secure >      ttyv0    "/usr/libexec/getty Pc"   xterm      on    secure >      . >      .          (the same ) >      . >      ttyv7    "/usr/libexec/getty Pc"   xterm      on    secure >      ttyv8    "/usr/local/bin/xdm-nodaemon"  xterm  off  secure > >      #serial terminal >      ttyu0    "/usr/libexec/getty 3wire"   vt100   onifconsole secure >      . >      . >      ttyu3    "/usr/libexec/getty 3wire"   vt100   onifconsole secure > >      #Dumb console >      dcons    "/usr/libexec/getty std.9600"  vt100 off  secure > > Any idea? > > Thanks, > Ruan Maybe it could be KMS related? Try swithing the console driver from sc(4) to vt(4) by adding: kern.vty=vt to /boot/loader.conf and rebooting. Vt(4), also known as newcons is the UTF-8 and KMS friendly console driver. Vt(4) will be the console driver for 11.0 (r274085) but the older sc(4) is the default on 10.x.