From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 31 17:24:01 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB29BA82 for ; Fri, 31 Oct 2014 17:24:00 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2869F0 for ; Fri, 31 Oct 2014 17:24:00 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9VHO0im094905 for ; Fri, 31 Oct 2014 17:24:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194718] New: vt(4): Keyboard not working properly when not using kbdmux(4) Date: Fri, 31 Oct 2014 17:24:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dumbbell@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2014 17:24:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194718 Bug ID: 194718 Summary: vt(4): Keyboard not working properly when not using kbdmux(4) Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: dumbbell@FreeBSD.org When using kbdmux(4), which is the default in all supported versions of FreeBSD, the keyboard is working properly in the console and in an X session: $ kbdcontrol -i < /dev/ttyv0 kbd1: kbdmux0, type:AT 101/102 (2) $ xev (...) KeyPress event, serial 30, synthetic NO, window 0x2600001, root 0x2c3, subw 0x0, time 25050869, (525,686), root:(1486,706), state 0x10, keycode 45 (keysym 0x6b, k), same_screen YES, XLookupString gives 1 bytes: (6b) "k" XmbLookupString gives 1 bytes: (6b) "k" XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x2600001, root 0x2c3, subw 0x0, time 25050973, (525,686), root:(1486,706), state 0x10, keycode 45 (keysym 0x6b, k), same_screen YES, XLookupString gives 1 bytes: (6b) "k" XFilterEvent returns: False However, when kbdmux is disabled through "hint.kbdmux.0.disabled=1" in /boot/loader.conf, the keyboard isn't reported correctly by kbdcontrol: $ kbdcontrol -i < /dev/ttyv0 kbd0: 0, type:generic (0) And under X, the keyboard doesn't work at all. After the first keystroke, xev(1) receives invalid keyboard events in an infinite loop: KeyPress event, serial 30, synthetic NO, window 0x1200001, root 0x80, subw 0x0, time 81112, (639,380), root:(640,400), state 0x0, keycode 203 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x1200001, root 0x80, subw 0x0, time 81804, (639,380), root:(640,400), state 0x0, keycode 203 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 33, synthetic NO, window 0x1200001, root 0x80, subw 0x0, time 81804, (639,380), root:(640,400), state 0x0, keycode 203 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x1200001, root 0x80, subw 0x0, time 81845, (639,380), root:(640,400), state 0x0, keycode 203 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False Even the first keystroke is incorrect (here, it should be 'k'). The same situation tested with syscons works. kbdcontrol reports that atkbd0 is connected. -- You are receiving this mail because: You are the assignee for the bug.