From owner-freebsd-questions@FreeBSD.ORG Tue Apr 27 19:26:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C89AF106564A for ; Tue, 27 Apr 2010 19:26:53 +0000 (UTC) (envelope-from amsibamsi@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7E5128FC13 for ; Tue, 27 Apr 2010 19:26:53 +0000 (UTC) Received: by gyh20 with SMTP id 20so6946916gyh.13 for ; Tue, 27 Apr 2010 12:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=Ml6KKRsJ5SSquN2iKVL7Zu4TQzk/SeSy0SiBfQ1pgRg=; b=AdtXZlmMFX4/HPzjhbqW2bjfF2J/Ox9ViOxKe1I42p9i6+vEB0dRveyXLO25UbydP2 a7vUGsLOc1sX/vz3LB5RYjy0VxTzObREqQxZbUs9mlRlVU/yR88d0q8kj6nuQKbyeekd m8e97GRb7vhMI4yERheURsIA4zbVupQDFmOtU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=XwhoYuQScPd7OEZrLsfzlFxvsMjTZcpqmQGv9ZhaNvEvv4kuJzZUKRT9Nup6ed/Dbq jZ0EXGetruPL7J6XwTPozAKTYMy8p1L+jXy511FMq1BLBvkjzeY27JHKGSt0mCnZFz7+ Q2jtRI7cCvh2wu8mqIn12H8I8Jx4aah5vEqqs= Received: by 10.101.153.5 with SMTP id f5mr1823804ano.234.1272396410103; Tue, 27 Apr 2010 12:26:50 -0700 (PDT) Received: from hulk.l.ttyv0.net ([72.14.241.44]) by mx.google.com with ESMTPS id t28sm57112787ano.16.2010.04.27.12.26.48 (version=SSLv3 cipher=RC4-MD5); Tue, 27 Apr 2010 12:26:48 -0700 (PDT) Message-ID: <4BD73A75.5020006@gmail.com> Date: Tue, 27 Apr 2010 21:26:45 +0200 From: Anselm Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100424 Thunderbird/3.0.4 MIME-Version: 1.0 To: Polytropon References: <20100427070655.e1b363ac.freebsd@edvax.de> In-Reply-To: <20100427070655.e1b363ac.freebsd@edvax.de> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: USB keyboard: mode switch / numlock freezes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2010 19:26:54 -0000 On 04/27/10 07:06, Polytropon wrote: > On Mon, 26 Apr 2010 00:33:28 +0200, Anselm Strauss wrote: >> Could it be a numlock issue? Any idea how to address this? > > A good tool for diagnostics always is the xev program. See > if something like > > KeyPress event, serial 24, synthetic NO, window 0x1c00001, > root 0x73, subw 0x0, time 1034406899, (-570,493), root:(12,632), > state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyRelease event, serial 27, synthetic NO, window 0x1c00001, > root 0x73, subw 0x0, time 1034406949, (-570,493), root:(12,632), > state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False > > comes out when pressing the Num key. > > You can always remap the Num Lock functionality onto another > key that doesn't fail after the 4th use - see xmodmap. > > I tried xev, but there is no event when I press the mode switch. I mapped numlock to scrolllcok for testing. I then see the numlock event but the mode on the keyboard block does not change. So it doesn't seem to be implemented over the numlock functionality. Is there another way to debug the USB device directly? Anselm