From nobody@FreeBSD.org  Thu Jan 19 08:35:37 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 422A116A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 08:35:37 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1125943D49
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 08:35:37 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0J8ZWqr094782
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 08:35:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k0J8ZWUf094781;
	Thu, 19 Jan 2006 08:35:32 GMT
	(envelope-from nobody)
Message-Id: <200601190835.k0J8ZWUf094781@www.freebsd.org>
Date: Thu, 19 Jan 2006 08:35:32 GMT
From: Henri Hennebert <hlh@ciger.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: keyboard not working under Xorg 6.8.2 / 6.9.0 and syscons driver
X-Send-Pr-Version: www-2.3

>Number:         91990
>Category:       kern
>Synopsis:       [kbd] keyboard not working under Xorg 6.8.2 / 6.9.0 and syscons driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 19 08:40:06 GMT 2006
>Closed-Date:    Fri Jan 20 17:22:17 GMT 2006
>Last-Modified:  Sat Feb 11 05:36:33 GMT 2006
>Originator:     Henri Hennebert
>Release:        FreeBSD 6.0-RELEASE / 6.0-STABLE
>Organization:
CIGER sa
>Environment:
FreeBSD champlain.cigersoft.be 6.0-STABLE FreeBSD 6.0-STABLE #0: Wed Jan 18 14:52:49 CET 2006     root@champlain.cigersoft.be:/usr/obj/usr/src/sys/CHAMPLAIN  i386
>Description:
startx launch a X server but the keyboard is not working at all. After exiting
from X (e.g. by killing X from an ssh session) the console display some
gibberish characters... and all return to normal.

in the custom kernel config I have:

device      atkbdc          # AT keyboard controller
device      atkbd           # AT keyboard
options     ATKBD_DFLT_KEYMAP       # specify the built-in keymap
makeoptions ATKBD_DFLT_KEYMAP="be.iso"

device      sc
options     MAXCONS=4       # number of virtual consoles
options     SC_HISTORY_SIZE=800     # number of history buffer lines

and in /etc/rc.conf.local I have:

keymap="be.iso"         # keymap in /usr/share/syscons/keymaps/* (or NO).
font8x8="iso-8x8"       # font 8x8 from /usr/share/syscons/fonts/* (or NO).

I upgrade from 6.0-RELEASE to STABLE and from Xorg 6.8.2 to 6.9.0 to no avail.

Henri
>How-To-Repeat:

>Fix:
I delete options MAXCONS and SC_HISTORY_SIZE from sc, rebuild the kernel
and the problem vanished :-)

>Release-Note:
>Audit-Trail:

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Henri Hennebert <hlh@ciger.be>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/91990: keyboard not working under Xorg 6.8.2 / 6.9.0 and
 syscons driver
Date: Thu, 19 Jan 2006 12:15:48 +0300

 Henri Hennebert wrote:
 >> Fix:
 > I delete options MAXCONS and SC_HISTORY_SIZE from sc, rebuild the kernel
 > and the problem vanished :-)
 
 Look your /etc/ttys file, which terminal configured for the xdm 
 starting? (after change MAXCONS you must change xdm's terminal)
 
 -- 
 WBR, Andrey V. Elsukov

From: "bu7cher" <bu7cher@yandex.ru>
To: hlh@ciger.be
Cc: bu7cher@yandex.ru
Subject: Re: kern/91990: keyboard not working under Xorg 6.8.2 / 6.9.0 and syscons driver
Date: Thu, 19 Jan 2006 17:36:57 +0300 (MSK)

 >> Look your /etc/ttys file, which terminal configured for the xdm 
 >> starting? (after change MAXCONS you must change xdm's terminal)
 >I Don't use xdm, I log in on terminal 2 (ALT+F2 - /dev/ttyv1) and run 
 >the script `startxfce4' and enconnter the KB problem.
 
 When you start X Window, it starts on the terminal where xdm is started (default on the ttyv8). When you set MAXCONS=4 in your kernel, you must chenge xdm's terminal, for example:
 ttyv3      "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure
 
 -- 
 WBR, Andrey V. Elsukov

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Henri Hennebert <hlh@ciger.be>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/91990: keyboard not working under Xorg 6.8.2 / 6.9.0 and
 syscons driver
Date: Fri, 20 Jan 2006 14:09:10 +0300

 In-Reply-To: <43D0AA25.60905@ciger.be>
 Content-Type: text/plain; charset=KOI8-R; format=flowed
 Content-Transfer-Encoding: 7bit
 Sender: butcher@properlan.net
 
 Henri Hennebert wrote:
 > I put back the 2 options MAXCONS=4 and SC_HISTORY_SIZE=800 and
 > with the `magic' line
 > 
 > ttyv3   "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure
 > 
 > as you advise all is OK under X started by the command startxfce4
 > 
 > Thank you for your help.
 
 I think, this PR probably should be closed..
 
 > One more think:
 > 
 > can you explain why the line with ttyv3 (corresponding with the 4th 
 > console according to MAXCONS=4) witch has a `off' switch is doing the 
 > big magic ?
 
 I am not correct when say that "you MUST rename ttys into tty3".
 You can have any number of terminals but they do not need to be in
 sequencial order. You can have: ttyv1, ttyv2, ttyv5, ttyv8. And
 no need to set ttyv1, ttyv2, ttyv3, ttyv4..
 And when i say that "you must chenge xdm's terminal" -
 X server runs on the first terminal with terminal type == xterm, do
 not need xdm on this terminal.
 
 Sorry for my mistake..
 -- 
 WBR, Andrey V. Elsukov
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Jan 20 17:21:32 UTC 2006 
State-Changed-Why:  
It seems as though a solution was found. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91990 
Responsible-Changed-From-To: freebsd-bugs->lawrance 
Responsible-Changed-By: lawrance 
Responsible-Changed-When: Sat Feb 11 05:22:07 UTC 2006 
Responsible-Changed-Why:  
Yoink 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91990 
Responsible-Changed-From-To: lawrance->freebsd-bugs 
Responsible-Changed-By: lawrance 
Responsible-Changed-When: Sat Feb 11 05:36:06 UTC 2006 
Responsible-Changed-Why:  
Pilot error. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91990 
>Unformatted:
