NetBSD Problem Report #34105

From www@NetBSD.org  Fri Jul 28 19:25:48 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id D243963B850; Fri, 28 Jul 2006 19:25:48 +0000 (UTC)
Message-Id: <20060728192548.D243963B850@narn.NetBSD.org>
Date: Fri, 28 Jul 2006 19:25:48 +0000 (UTC)
From: gilb@nerim.fr
Reply-To: gilb@nerim.fr
To: gnats-bugs@NetBSD.org
Subject: NetBSD 3.0.1 kernel goes back on mousescroll quirk required for Apple's Mighty Mouse
X-Send-Pr-Version: www-1.0

>Number:         34105
>Category:       kern
>Synopsis:       NetBSD 3.0.1 kernel goes back on mousescroll quirk required for Apple's Mighty Mouse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 28 19:30:00 +0000 2006
>Originator:     Gilbert Fernandes
>Release:        NetBSD x30 3.0.1
>Organization:
>Environment:
NetBSD x30 3.0.1 NetBSD 3.0.1 (X30) #0: Tue Jul 25 21:57:12 UTC 2006  root@x30:/usr/src/sys/arch/i386/compile/X30 i386

>Description:
On my computer, I am using GENERIC with APM turned on
(no other change)

When using NetBSD 3.0 kernel, the mousescroll on the mighty mouse
works properly. Going up goes up, going down goes down.

When using the NetBSD 3.0.1 kernel, it no longer works.
The scroll up and down on the mouse is inactive, and using scroll-left and right on the mouse makes it scroll up and down.

That problem comes from the Might Mouse in fact. Apple did very strange mappings for the scrolling ball on that mouse (I did post a message to netbsd-users about this a few monthes ago btw)

here is what xevent says :

scrolling up = no event
scrolling down = no event

scrolling left = button 5

(this does the scroll down)

scrolling right = 4

(this does the scroll up)

Someone has fixed that Mighty Mouse f*cked mapping (thanks Apple) in NetBSD 3.0 but it seems someone removed that quirk on NetBSD 3.0.1 (perhaps while trying to fix a mistake which is not NetBSD's one but Apple's one)
>How-To-Repeat:
Mighty Mouse scrolls properly on NetBSD 3.0 under X
Under 3.0.1 kernel the scroll up/down events are not even passed from mouse to X and left/right scrolling gives you the up/down scroll.
>Fix:
In kernel, when Mighty Mouse is found,
map button 4 to scroll up button
map button 5 to scroll down button

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.