linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Eduard Hasenleithner <ehasenle@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH v2] Wacom Intuos4 LED and OLED support
Date: Wed, 6 Apr 2011 11:46:48 -0700	[thread overview]
Message-ID: <20110406184648.GA17470@core.coreip.homeip.net> (raw)
In-Reply-To: <BANLkTikmHMg=TVpQ_e7U2yED_2ciznsuCg@mail.gmail.com>

On Tue, Apr 05, 2011 at 09:28:52PM +0200, Eduard Hasenleithner wrote:
> Hi
> 
> 2011/4/5 Dmitry Torokhov <dmitry.torokhov@gmail.com>:
> > On Tue, Apr 05, 2011 at 08:12:07PM +0200, Eduard Hasenleithner wrote:
> >> I have been encouraged by Ping Cheng to submit the OLED matrix display
> >> patch for the Intuos4 to the linux-input mailing list. In absence of
> >> any comment by you on this issue, I'm a bit lost. Could you give
> >> something like a quick ACK (e.g. you will have a look into it later,
> >> when you have time) or NACK (e.g. no way for inclusion, needs major
> >> change, ...).
> >
> > Sorry, just a bit swamped at the moment (unfortunately happens to be
> > quite often ;( ), that is why not responding...
> 
> If you like, I can come back in a month or so for discussion. Or you
> write me an email when you are less stressed (you being a maintainer,
> this is probably just wishful thinking).

No, that would not be a good idea as there will be more drivers in the
queue...

> 
> > The main issue for me is adding a new device-specific interface. Are
> > there any other suitable ways to provide access to the functionality?
> > Something like auxdisplay?
> 
> I had the impression that using the existing RAW USB-device IOCTL
> mechanism would not be considered an additional interface. There is no
> change in the event- or any other subsystem, just in the wacom driver.

This is definition of adding a new device-specific interface. You are
adding something that can only work with these 3 devices and required
specially written userspace component to make use of the interface.

> And, as a bonus, using sysfs the RAW USB Device belonging to the event
> device can be located in a straight forward way. Since the wacom
> driver "grabs" the USB device and the OLED part of the Intuos4 is not
> a separate USB device, the display control has to be performed in any
> case in the wacom (input) driver. A "auxdisplay" implementation would
> then have to be done also there.
>

Yes, of course.

> Wrt auxdisplay: a quick look at the driver reveals that it exposes a
> (generic?) framebuffer device. If you say: "This is the way to go",
> I'll try it. It is just that I fear that some X-Server might
> automatically use it as display, which is not exactly my intention ;)
> Furthermore, there are four LEDs (only one can be lit at a time) on
> the device, and three different luminace settings, which would
> probably need some IOCTL anyway. And due to the higher complexity,
> implementing a (simulated) framebuffer device provides more
> possibilities for bugs.

OK, it could be that representing these leds as a generic framebuffer
device is not the best idea (I am not ocnvinced either way yet). If this
is the case have you thought about accessing the leds via binary sysfs
attributes? At least you can simply "cat" icon data in those...

Thanks.

-- 
Dmitry

  reply	other threads:[~2011-04-06 18:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-03  7:57 [PATCH v2] Wacom Intuos4 LED and OLED support Eduard Hasenleithner
2011-04-05 18:12 ` Eduard Hasenleithner
2011-04-05 18:28   ` Dmitry Torokhov
2011-04-05 19:28     ` Eduard Hasenleithner
2011-04-06 18:46       ` Dmitry Torokhov [this message]
2011-04-06 19:08         ` Eduard Hasenleithner

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=20110406184648.GA17470@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=ehasenle@gmail.com \
    --cc=linux-input@vger.kernel.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).