From owner-freebsd-current@freebsd.org Wed Sep 16 05:21:21 2015 Return-Path: Delivered-To: freebsd-current@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 47B1D9C2E96 for ; Wed, 16 Sep 2015 05:21:21 +0000 (UTC) (envelope-from sgeos@hotmail.com) Received: from BAY004-OMC2S4.hotmail.com (bay004-omc2s4.hotmail.com [65.54.190.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35B6713B9 for ; Wed, 16 Sep 2015 05:21:20 +0000 (UTC) (envelope-from sgeos@hotmail.com) Received: from BAY182-W2 ([65.54.190.125]) by BAY004-OMC2S4.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 15 Sep 2015 22:20:15 -0700 X-TMN: [MWjnOYIlXw0yTlIj26F72llW9+UNoZ66] X-Originating-Email: [sgeos@hotmail.com] Message-ID: From: Brendan Sechter To: "gljennjohn@gmail.com" CC: "freebsd-current@freebsd.org" Subject: RE: FreeBSD 11.0-CURRENT Single User Keymap Date: Wed, 16 Sep 2015 14:20:15 +0900 Importance: Normal In-Reply-To: <20150916045940.77f5ec2d@ernst.home> References: , <20150916045940.77f5ec2d@ernst.home> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 16 Sep 2015 05:20:15.0902 (UTC) FILETIME=[5EDEF3E0:01D0F03F] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2015 05:21:21 -0000 > Date: Wed=2C 16 Sep 2015 04:59:40 +0200=0A= > From: gljennjohn@gmail.com=0A= > To: sgeos@hotmail.com=0A= > CC: freebsd-current@freebsd.org=0A= > Subject: Re: FreeBSD 11.0-CURRENT Single User Keymap=0A= >=0A= > On Tue=2C 15 Sep 2015 19:32:35 +0900=0A= > Brendan Sechter wrote:=0A= >=0A= >> When compiling a FreeBSD 11.0-CURRENT kernel=2C what is required to chan= ge the keymap used in single user mode? __I originally asked this question = on the FreeBSD forums=2C but was bounced to the mailing list because CURREN= T is an unsupported version.=0A= >>=0A= >> I have read an old forum thread on this topic. I have also read the__atk= bd(4)__and__ukbd(4)__man pages. The relevant parts of my kernel configurati= on are as follows:=0A= >>=0A= >> &__----------__----------__----------__----------=0A= >> include GENERIC=0A= >> ident MY_KERNEL=0A= >>=0A= >> & AT Keyboard=0A= >> device atkbdc=0A= >> options ATKBD_DFLT_KEYMAP=0A= >> makeoptions ATKBD_DFLT_KEYMAP=3Djp.106=0A= >> device atkbd=0A= >>=0A= >> & USB Keyboard=0A= >> device ukbd=0A= >> options UKBD_DFLT_KEYMAP=0A= >> makeoptions UKBD_DFLT_KEYMAP=3Djp.106=0A= >>=0A= >> & everything else=0A= >> & ...=0A= >> &__----------__----------__----------__----------=0A= >>=0A= >> So far as I can tell=2C these options should be working. I am using a 10= 6 key Japanese keyboard. Single user mode appears to use the keymap for a 1= 01 key standard US layout. I have tried the following values:=0A= >> - jp=0A= >> - jp.106=0A= >> - jp.106.kbd (not tried recently)=0A= >>=0A= >> Finally=2C this is a FreeBSD VM running in VirtualBox on OSX. I am 99% s= ure I am having the same problem on my physical machines. The specific driv= er almost certainly depends on the hardware.=0A= >>=0A= >=0A= > Try setting keymap in /etc/rc.conf to the entry you want. Just=0A= > putting keymap=3D"jp.106" there should work.=0A= =0A= My /etc/rc.conf already contained keymap=3D"jp".=0A= Changing it to keymap=3D"jp.106" did not resolve the issue.=0A= The keymap is correct in multi user mode=2C but not single user mode.=0A= =0A= I have never been able to get single user mode to boot with anything other = than a=A0101 key standard US layout.=0A= If I recall correctly=2C starting devd would load the /etc/rc.conf keymap i= n previous versions=2C but I am not 100% sure of that.=0A= =0A= Running kbdmap after booting into single user mode gives some interesting b= ut expected output.=0A= # kbdmap=0A= lang_default =3D en=0A= dialect =3D en=0A= lang_abk =3D en=0A= Could not open temporary file "/tmp/_kbd_lang.R4J6"=0A= #=0A= =0A= I can change the keymap by remounting a read/write filesystem and running k= bdmap.=0A= This is not ideal.=0A= # mount -u /=0A= # kbdmap=0A= [interactively select Japanese 106 keyboard layout]=0A= keymap=3D"jp.kbd"=0A= #=0A= =0A= I only found one solution to this issue in Japanese=2C but it requires remo= unting and manually setting the keymap.=0A= Are people booting into single user mode with working European keymaps?=0A= Is it possible the jp keymap has some quirk that is causing it to be reject= ed when booting in single user mode?=0A= =0A= If it matters=2C this system started as a minimal install using=A0FreeBSD-1= 0.2-RELEASE-amd64-disc1.iso.=0A= I tracked 11.0-CURRENT immediately after performing a minimum install and r= ebuilt everything a couple of times.=0A= =0A= > Umm=2C but this is for syscons. Not sure what you may need for vt=2C=0A= > which I don't use.=0A= =0A= Multiuser works=2C single user does not.=0A= =0A= Single user (default standard US keymap):=0A= # tty=0A= /dev/console=0A= =0A= Multi user (correct /etc/rc.conf keymap):=0A= # tty=0A= /dev/ttyv0=0A= =0A= Multi user SSH=A0(correct /etc/rc.conf keymap):=0A= $ su=0A= # tty=0A= /dev/pts/0=0A= =0A= > --=0A= > Gary Jennejohn=0A= > _______________________________________________=0A= > freebsd-current@freebsd.org mailing list=0A= > https://lists.freebsd.org/mailman/listinfo/freebsd-current=0A= > To unsubscribe=2C send any mail to "freebsd-current-unsubscribe@freebsd.o= rg"=0A= =