public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: Peter Osterlund <petero2@telia.com>,
	Luca Bigliardi <shammash@artha.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Vojtech Pavlik <vojtech@suse.cz>,
	linux-kernel@vger.kernel.org
Subject: Re: request for opinion on synaptics, adb and powerpc
Date: Sat, 07 Jan 2006 15:44:07 +1100	[thread overview]
Message-ID: <1136609048.4840.210.camel@localhost.localdomain> (raw)
In-Reply-To: <200601062336.26035.dtor_core@ameritech.net>

On Fri, 2006-01-06 at 23:36 -0500, Dmitry Torokhov wrote:
> On Friday 06 January 2006 23:33, Benjamin Herrenschmidt wrote:
> > 
> > > Why would you want to switch to relative mode when leaving X? As far as
> > > I know the only other mouse "user" out there is GPM and there are patches
> > > available for it to use event device:
> > > 
> > > 	http://geocities.com/dt_or/gpm/gpm.html
> > > 
> > > Unfortunately the maintainer can't find time to merge these so they were
> > > sitting there for over 2 years. FWIW Fedora patches their GPM with these.
> > 
> > gpm among other legacy things ...
> > 
> 
> What other legacy things? And in that case I think manually forcing protocol
> back to relative would be an option.
> 
> The thing is that Synaptics in absolute and relative mode is 2 completely
> different devices with different capabilities. If you want to switch mode
> you really need to kill old input device and create a brand new one.

Ok, so what method should we use to "switch" ? sysfs isn't quite an
option yet as the ADB bus isn't yet represented there (unless we add
attributes to the input object, but that's a bit awkward as it would be
destroyed and re-created if I follow you). A module option would work
but adbhid isn't a module, thus that would basically end up as a static
kernel argument, unless the driver "polls" the module param regulary to
trigger the change.. I don't think there is a way for a driver to get a
callback when /sys/module/<driver>/parameters/* changes is there ?

Ben.



  reply	other threads:[~2006-01-07  4:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20060106231301.GG4732@kamaji.shammash.lan>
2006-01-07  0:25 ` request for opinion on synaptics, adb and powerpc Peter Osterlund
2006-01-07  0:51   ` Benjamin Herrenschmidt
2006-01-07  4:17     ` Dmitry Torokhov
2006-01-07  4:33       ` Benjamin Herrenschmidt
2006-01-07  4:36         ` Dmitry Torokhov
2006-01-07  4:44           ` Benjamin Herrenschmidt [this message]
2006-01-07  4:46             ` Dmitry Torokhov
2006-01-07  5:02               ` Dmitry Torokhov
2006-01-07  5:49               ` Benjamin Herrenschmidt
2006-01-07  8:25         ` Vojtech Pavlik
2006-01-07 16:04           ` Dmitry Torokhov
2006-01-07 18:40             ` Vojtech Pavlik
2006-01-07 22:15               ` Benjamin Herrenschmidt

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=1136609048.4840.210.camel@localhost.localdomain \
    --to=benh@kernel.crashing.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dtor_core@ameritech.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petero2@telia.com \
    --cc=shammash@artha.org \
    --cc=vojtech@suse.cz \
    /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