From: Ed Tomlinson <edt-Yad3+ZauZac@public.gmane.org>
To: Dmitry Torokhov
<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Michael Poole <mdpoole-IZmAEv5cUt1AfugRpC6u6w@public.gmane.org>,
Jiri Kosina <jkosina-AlSwsSmVLrQ@public.gmane.org>,
linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Marcel Holtmann <marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>,
linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/1] Enable xy scrolling for Apple Magic Mouse
Date: Mon, 15 Feb 2010 07:50:25 -0500 [thread overview]
Message-ID: <201002150750.26142.edt@aei.ca> (raw)
In-Reply-To: <20100215071850.GB9135-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
On Monday 15 February 2010 02:18:50 Dmitry Torokhov wrote:
> On Sun, Feb 14, 2010 at 06:58:26PM -0500, Ed Tomlinson wrote:
> > On Sunday 14 February 2010 17:51:15 Michael Poole wrote:
> > > Ed Tomlinson writes:
> > >
> > > > Hi,
> > > >
> > > > Here is a patch that enables xy scrolling with the magic mouse. I have also
> > > > changed the accelleration logic to work better with xy scrolling.
> > >
> > > Hi Ed,
> > >
> > > Your other patch to call input_unregister_device() looks good -- thanks!
> >
> > Thanks. One question about it though. Do we have to check if msc is null before
> > the unregister?
>
> If it is NULL whan remove() is running there are much bigger problems
> with the driver/HID subsystem.
>
> >
> > > I've never used a horizontal scroll wheel -- what are the common uses
> > > for it? Why should the acceleration be separate for the two directions
> > > rather than using the same factor? Why does the kernel need to emulate
> > > this rather than having user-space implement the emulation?
> >
> > Its usefull for scrolling left and right while browsing. If you use kde it can
> > be used to scroll between applications on the taskbar. Here most applications
> > with a horizontial scrollbar work as expected.
> >
> > I first tried with a single acceleration value for both axies. It leads to confusing
> > things happening. For example. I quickly scroll down, then nudge the
> > window to the left. This works as expect with two values. With one the
> > nudge is accelerated and moves too far.
> >
> > My personal goal is to have the basic, apple defined, gestures working
> > from kernel space. This way the device works as expected without needing
> > to fiddle with X or other managers (think wayland and/or chromeOS).
>
> I am not sure if this is the desired approach. The current idea is to
> export useable but minimally processed events to userspace and let them
> be turned into gestures there (by evdev, synaptics driver and so forth).
I would go along with this if the code to add the emulation in kernel was large or complex.
Its not. About 30 more lines should add the pgup/pgdn code.
Thanks
Ed
next prev parent reply other threads:[~2010-02-15 12:50 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <alpine.LNX.2.00.1001291515560.356@pobox.suse.cz>
[not found] ` <dd18b0c31002082322m4238a4a6m73fc30752ba30447@mail.gmail.com>
[not found] ` <1265710460.2383.5685.camel@localhost.localdomain>
[not found] ` <201002090736.55576.edt@aei.ca>
[not found] ` <alpine.LNX.2.00.1002091339190.30967@pobox.suse.cz>
[not found] ` <alpine.LNX.2.00.1002091339190.30967-ztGlSCb7Y1iN3ZZ/Hiejyg@public.gmane.org>
2010-02-09 13:10 ` [PATCH 0/2] Provide a driver for the Apple Magic Mouse Michael Poole
2010-02-09 13:13 ` [PATCH 2/2] Add a device " Michael Poole
2010-02-10 18:20 ` Dmitry Torokhov
[not found] ` <20100210182024.GA29610-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2010-02-10 20:31 ` Michael Poole
2010-02-11 5:32 ` [PATCH] hid-magicmouse: Coding style and probe failure fixes Michael Poole
[not found] ` <873a18e3qu.fsf_-_-IZmAEv5cUt1AfugRpC6u6w@public.gmane.org>
2010-02-11 6:55 ` Dmitry Torokhov
2010-02-11 10:26 ` Jiri Kosina
2010-02-11 23:10 ` Michael Poole
[not found] ` <87pr4eeemz.fsf_-_-IZmAEv5cUt1AfugRpC6u6w@public.gmane.org>
2010-02-10 13:06 ` [PATCH 2/2] Add a device driver for the Apple Magic Mouse Jiri Kosina
[not found] ` <alpine.LNX.2.00.1002101404210.30967-ztGlSCb7Y1iN3ZZ/Hiejyg@public.gmane.org>
2010-02-10 13:58 ` Jiri Kosina
2010-02-11 3:05 ` Ed Tomlinson
[not found] ` <201002102205.58967.edt-Yad3+ZauZac@public.gmane.org>
2010-02-11 3:20 ` Michael Poole
2010-02-11 12:51 ` [PATCH 2/2] Add a device driver for the Apple Magic Mouse (2.6.32.8) Ed Tomlinson
[not found] ` <87y6j2eeqv.fsf_-_-IZmAEv5cUt1AfugRpC6u6w@public.gmane.org>
2010-02-09 13:11 ` [PATCH 1/2] Provide a driver for the Apple Magic Mouse Michael Poole
2010-02-09 21:37 ` [PATCH 0/2] " Justin P. Mattock
2010-02-10 13:57 ` Jiri Kosina
2010-02-13 19:29 ` [PATCH 0/2] Provide a driver for the Apple Magic Mouse - opps Ed Tomlinson
2010-02-14 8:03 ` Dmitry Torokhov
[not found] ` <20100214080344.GA4423-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2010-02-14 14:22 ` Ed Tomlinson
2010-02-15 7:11 ` Dmitry Torokhov
[not found] ` <20100215071145.GA9135-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2010-02-15 12:42 ` Ed Tomlinson
2010-02-15 12:44 ` Ed Tomlinson
2010-02-16 12:57 ` Jiri Kosina
2010-02-16 12:34 ` Ed Tomlinson
2010-02-16 12:55 ` Jiri Kosina
[not found] ` <alpine.LNX.2.00.1002101456490.30967-ztGlSCb7Y1iN3ZZ/Hiejyg@public.gmane.org>
2010-02-14 22:24 ` [PATCH 1/1] Enable xy scrolling for Apple Magic Mouse Ed Tomlinson
2010-02-14 22:51 ` Michael Poole
[not found] ` <87zl3bbfdo.fsf-IZmAEv5cUt1AfugRpC6u6w@public.gmane.org>
2010-02-14 23:58 ` Ed Tomlinson
2010-02-15 7:18 ` Dmitry Torokhov
[not found] ` <20100215071850.GB9135-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2010-02-15 12:50 ` Ed Tomlinson [this message]
2010-02-15 0:18 ` Ed Tomlinson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201002150750.26142.edt@aei.ca \
--to=edt-yad3+zauzac@public.gmane.org \
--cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=jkosina-AlSwsSmVLrQ@public.gmane.org \
--cc=linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org \
--cc=mdpoole-IZmAEv5cUt1AfugRpC6u6w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).