NetBSD Problem Report #22021

Received: (qmail 19538 invoked by uid 605); 30 Jun 2003 18:30:28 -0000
Message-Id: <20030630183026.14CA411158@narn.netbsd.org>
Date: Mon, 30 Jun 2003 18:30:26 +0000 (UTC)
From: cagney@mac.com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: cagney@mac.com
To: gnats-bugs@gnats.netbsd.org
Subject: wsconsctl -a trashes mac keyboard
X-Send-Pr-Version: www-1.0

>Number:         22021
>Category:       kern
>Synopsis:       wsconsctl -a trashes mac keyboard
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 30 18:31:00 +0000 2003
>Closed-Date:    
>Last-Modified:  Thu Nov 04 23:23:38 +0000 2010
>Originator:     Andrew Cagney
>Release:        1.6.1 userland, more recent kernel
>Organization:
>Environment:
NetBSD localhost 1.6.1_STABLE NetBSD 1.6.1_STABLE (NETLUX) #10: Tue Jun 24 23:24:56 EDT 2003     cagney@localhost:/home/NetBSD/netbsd-1-6/src/sys/arch/macppc/compile/NETLUX macppc

>Description:
When running X11 (that 4.0.1 snap) entering wcconsctl -a trashes the keyboard.  Pick one:
- in a <carage-return> loop
- prints garbage when a key is hit
The exact kernel is from  Tue Jun 24 23:24.  I can't try a newer kernel, it currently doesn't build :-(


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: Aymeric Vincent <Aymeric.Vincent@labri.fr>
To: cagney@mac.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/22021: wsconsctl -a trashes mac keybard
Date: 30 Jun 2003 20:40:52 +0200

         Hi,

 Could you please be more specific?

 I pulled up a patch that allows one to use the "raw" keyboard
 interface to access the keyboard from X11 and am thus wondering
 whether I could be responsible for your problem.

 Did you change your XF86Config file? Is it new? Does it use the
 "wscons" protocol?

 Did you compile in the WSDISPLAY_COMPAT_RAWKBD option?

 More importantly, when did it last work with the same setup, if it
 ever did?

 Thanks,
  Aymeric

 > NetBSD localhost 1.6.1_STABLE NetBSD 1.6.1_STABLE (NETLUX) #10: Tue Jun 24 23:24:56 EDT 2003     cagney@localhost:/home/NetBSD/netbsd-1-6/src/sys/arch/macppc/compile/NETLUX macppc
 > 
 > >Description:
 > When running X11 (that 4.0.1 snap) entering wcconsctl -a trashes the keyboard.  Pick one:
 > - in a <carage-return> loop
 > - prints garbage when a key is hit
 > The exact kernel is from  Tue Jun 24 23:24.  I can't try a newer kernel, it currently doesn't build :-(

From: Andrew Cagney <cagney@mac.com>
To: Aymeric Vincent <Aymeric.Vincent@labri.fr>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/22021: wsconsctl -a trashes mac keybard
Date: Mon, 30 Jun 2003 14:55:36 -0400

 >         Hi,
 > 
 > Could you please be more specific?

 I'm afraid not really :-(

 > I pulled up a patch that allows one to use the "raw" keyboard
 > interface to access the keyboard from X11 and am thus wondering
 > whether I could be responsible for your problem.

 Does this fix my problem of a non-apple USB keyboard printing strange 
 characters?!

 > Did you change your XF86Config file? Is it new? Does it use the
 > "wscons" protocol?

 It appears to use wskbd:

 Section "InputDevice"
      Identifier  "Keyboard"
      Driver      "keyboard"
      Option      "Protocol"      "wskbd"
      Option      "Device"        "/dev/wskbd"
      Option      "AutoRepeat"    "500 5"
      Option      "XkbRules"      "xfree86"
      Option      "XkbModel"      "macadb"
      Option      "XkbLayout"     "us"
 EndSection

 > Did you compile in the WSDISPLAY_COMPAT_RAWKBD option?

 No (what WSDISPLAY_COMPAT_RAWKBD option?).

 > More importantly, when did it last work with the same setup, if it
 > ever did?

 Don't know, probably never tried it.

 Andrew



From: Aymeric Vincent <Aymeric.Vincent@labri.fr>
To: Andrew Cagney <cagney@mac.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/22021: wsconsctl -a trashes mac keybard
Date: 30 Jun 2003 21:30:27 +0200

 > Does this fix my problem of a non-apple USB keyboard printing strange
 > characters?!

 I believe so, together with a "recent" xsrc.

 > No (what WSDISPLAY_COMPAT_RAWKBD option?).

 With this option enabled, you can have a simpler Keyboard section 

 Section "InputDevice"
     Identifier  "Keyboard1"
     Driver      "Keyboard"
     Option "AutoRepeat" "500 30"
     Option "XkbRules"   "xfree86"
     Option "XkbModel"   "pc104"
     Option "XkbLayout"  "us"
 EndSection

 and then plug/unplug USB keyboards at any time under X11 and have them
 work properly, like the internal keyboard.

 see:
 http://mail-index.netbsd.org/port-macppc/2002/08/13/0000.html


 > > More importantly, when did it last work with the same setup, if it
 > > ever did?
 > 
 > Don't know, probably never tried it.

 Alright, so there is still a good chance that I'm not at fault. ;-)

  Aymeric

From: Andrew Cagney <cagney@mac.com>
To: Aymeric Vincent <Aymeric.Vincent@labri.fr>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/22021: wsconsctl -a trashes mac keybard
Date: Tue, 01 Jul 2003 11:57:22 -0400

 > More importantly, when did it last work with the same setup, if it
 >> > ever did?
 > 
 >> 
 >> Don't know, probably never tried it.
 > 
 > 
 > Alright, so there is still a good chance that I'm not at fault. ;-)

 I'm not so sure :-(  X, on the current kernel, crashes (and before it 
 didn't - as in I can't remember an X crash prior to the current 
 updates).  Again, I'm afraid, a not very descriptive description of the 
 problem.

 Andrew


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.