From owner-freebsd-x11@FreeBSD.ORG Tue Jun 24 12:29:30 2014 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3D339674 for ; Tue, 24 Jun 2014 12:29:30 +0000 (UTC) Received: from smtp.smtpout.orange.fr (smtp01.smtpout.orange.fr [80.12.242.123]) by mx1.freebsd.org (Postfix) with ESMTP id DA89E235E for ; Tue, 24 Jun 2014 12:29:29 +0000 (UTC) Received: from localhost ([92.156.230.129]) by mwinf5d53 with ME id JCVM1o00F2o9his03CVMgt; Tue, 24 Jun 2014 14:29:22 +0200 X-ME-Helo: localhost X-ME-Date: Tue, 24 Jun 2014 14:29:22 +0200 X-ME-IP: 92.156.230.129 Message-ID: <53A96F20.1010900@orange.fr> Date: Tue, 24 Jun 2014 14:29:20 +0200 From: Claude Buisson Reply-To: Claude Buisson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: jau789@gmail.com Subject: keyboard problem with vt + Xorg Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 12:29:30 -0000 Hi, Your keyboard problem looks like mine. To make the story short: I made a number of tests with i386 and amd64, with FreeBSD stable/9 and FreeBSD stable/10, with syscons + TEKEN_UTF8 and vt, to get the following: the keyboard cannot be initialized under Xorg when: a) the system is an amd64. b) a (console) keyboard map specifying unicode values > 255 is loaded (typically the euro symbol with value 8364, which is the only change compared to fr.iso.acc). It works OK on i386 systems with any keyboard map, and on amd64 systems with a "standard" keyboard map. But on amd64 + "unicode" keyboard map: - if xorg.conf does not have a Device option, the server segfaults. - if xorg.conf has a Device option: [ 43.677] (EE) Keyboard0: cannot open "/dev/kbd0" (Device busy) [ 43.677] (EE) PreInit returned 8 for "Keyboard0" [ 43.677] (II) UnloadModule: "kbd" when /dev/kbd0 may be replaced by /dev/kbdmux0 according to xorg.conf. Note that I applied your patch to xf86-input-keyboard to print the errno. This problem is not limited to vt. It appears the same way on amd64 systems (stable/9 and stable/10) with syscons + TEKEN_UTF8. FWIW, I do not use HAL nor DEVD. Hoping this may be useful, Claude Buisson