From: Marco Chiappero <marco@absence.it>
To: Mattia Dongili <malattia@linux.it>
Cc: Javier Achirica <achirica@gmail.com>,
Matthew Garrett <mjg59@srcf.ucam.org>,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH 23/25] sony-laptop: add ALS support
Date: Wed, 08 Jun 2011 11:52:43 +0200 [thread overview]
Message-ID: <4DEF466B.4010304@absence.it> (raw)
In-Reply-To: <20110607223912.GB10612@kamineko.org>
Il 08/06/2011 00:39, Mattia Dongili ha scritto:
>>> Do you see where I'm going?
>>
>> To a perfect design it's not there, with other side effects, that is
>
> not really.
Yeah, because it's not perfect at all...
> You're stripping my mails a lot...
Because there is no need to have tons of useless words in every mail.
But if it's important for you, because you're unable to tell exactly
where what's working and what's not, just cut and paste the "relevant"
parts.
> I'm trying to demonstrate
absolutely nothing, apart being annoying.
> that the way you solved the multiple
> brightness writers problem would not work or at least that your solution
> as the same problem as the original issue.
I have my notebook here demonstrating that you are wrong, so, please,
stop insisting. Once again, if you don't like the patch (for whatever
reason), drop it and everything will be just fine. But stop insisting
with wrong argumentations.
> Making the acpi_video sysfs nodes ineffective and creating an alternate
> custom backlight regulation entry makes no sense and is a workaround
> that is not needed.
Not quite right: those nodes will be always working while the
autodimming feature is disabled, while when the feature is enabled they
will work with the help of the daemon (they will always be effective).
That said, it makes a lot of sense (if you can't understand it, I'm
sorry for you), I agree that it would be better not to have it (but it's
the only downside and it's not that bad - but this doesn't seem to be
relevant to you -), but has a lot of sense, and will make everything
working in a much cleaner way than the one you're proposing, which comes
with other drawbacks.
> [reshuffling the discussion a bit to bring pieces together]
>>>> Right, but how can you be sure when you have a backlight device that
>>>> can be accessed by anything?
>>>
>>> I'm not following you here. Sure about what? Also, is als_backlight only
>>> accessible to a few privileged ones?
>>
>> No, but what is supposed to use it?
>
> anything can use it. The fact that for now there is only your deamon
> using it doesn't mean that nothing else can use it. It's exactly the
> same situation you have with the standard acpi video backlight
> regulation where you say above you cannot be sure.
Not at all, because a backlight device is a standar interface known to
everybody, while als_backlight is not (yes, it is relevant). Please,
tell me, does, for example, gnome-power-manager use
/sys/class/backlight/ or /sys/devices/platform/sony-laptop? No. So,
again, please stop insisting with your pointless objections. The only
thing you're demonstrating is that you had a different idea (that would
be fine on different hardware, but not this one), no matter if it has
downsides, no matter if this requires everything else to change, you had
that idea and you refuse any other idea because it's not your idea. And
you can't accept that someone else does not agree with your idea,
otherwise you would not continue to try to demonstrate absolutely
nothing, to tell that I don't see the problem and other pointless stuff
about the top and the bottom. Nonetheless, it is fine, just say you
don't like the patch and reject it. Stop.
I won't reply anymore about this, I've already explained a lot, I have
no time to waste.
>>> I don't see how presenting illumination data and correction factors and
>>> giving a way to change lid backlight is such an unreasonable request.
>>
>> This is not an unreasonable request, and sony-acpid is exactly doing that.
>> Your request is to clone sony-acpid and merge it into every
>> available DE (which still means that the "unification" or
>> "interface" purpose is broken, because userspace have to know
>> hardware/model specific details).
>
> like what? if correction factors are provided what else is missing?
> Do you also really think that DEs would not try to integrate the
> function that sony-acpid is providing in their own framework?
DEs don't even have generic als support and are model agnostic, why
should they all add and maintain (very) model specific code [1] in their
programs? Are you sure they will? It makes no sense, we can have this
code in a single place, with a really small daemon that will make the
autodimming working even with no DE at all, and that will be installed
only on machines that really need it. Far better than your "solution".
>>>> Please specify "interaction/integration part". There is almost
>>>> nothing to be removed if you want code that makes sense and
>>>> something working, if you specify a particular function I'll try to
>>>> remove it, if it is feasible, otherwise be more specific, please.
>>>
>>> I'd just like to see just the ALS driver in one patch, all the
>>> managed/backlight stuff in another.
>>
>> Conceptually there are two drivers... that said, do you mean any
>> attribute with "all" and "stuff"? Splitting the patch will require a
>> certain amount of work and will result in a broken patch. I'll try
>> to do it, but I don't have much free time at the moment and I prefer
>> to work on patches that have a chance to be included soon.
>
> actually having the two separate would make merging at least some of the
> patch easier.
As you like, but it makes no sense to merge something that will be useless.
> I'm fine with the ALS driver (i.e. all the als_device_ops
> and als_lux/power/kelvin) part. The whole als_backlight/managed mode I
> wouldn't want to see merged as is. As I said before, I think we should
> always set managed mode and intercept the GPE notifications sending an
> (u?)event to userspace backlight changes and just chainging the
> backlight when the user writes to
> /sys/class/backlight/acpi_video/brightness.
> A fine grained control is already provided with acpi_backlight=vendor,
> potentially we could ask the acpi people to not take the device for
> specific models or anyway a way to force the vendor driver to take over
> backlight regulation without the need for a kernel parameter.
To sum up your idea: quirks everywhere. Quirks for the backlight device
(with a long list of models to be specified, that is likely to grow over
the time), quirks everywhere in userspace with duplicated and hard to
maintain code, ALS events always generated (I guess ignored when the
user do not want the autodimming feature, which is very clean...). No,
it does seem no way better to me. Everything else should change
(worsening) just to let you have your design realized and make
sony-laptop look good. We have a much smaller, cleaner and less invasive
solution, that only partially affects sony-laptop and sony-laptop only.
And we can have it now while now (we will see in the future if changes
are possible) there is no other better solution.
In the end, take your decision, there is nothing more to say.
[1] they should detect the model type and use a specific parameter set
with a specific formula.
next prev parent reply other threads:[~2011-06-08 9:52 UTC|newest]
Thread overview: 129+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 15:22 [PATCH 0/25] sony-laptop: code improvements and support extension for newer Vaios Marco Chiappero
2011-06-03 15:26 ` [PATCH 1/25] sony-laptop: use usigned data type when calling ACPI methods Marco Chiappero
2011-06-03 15:28 ` [PATCH 2/25] sony-laptop: simple_strtoul replaced by strict_strtoul Marco Chiappero
2011-06-12 21:56 ` Mattia Dongili
2011-06-03 15:29 ` [PATCH 3/25] sony-laptop: new ACPI SN06 method helper functions Marco Chiappero
2011-06-03 15:32 ` [PATCH 4/25] sony-laptop: new SNC setup and cleanup functions Marco Chiappero
2011-06-12 22:21 ` Mattia Dongili
2011-06-13 0:01 ` Marco Chiappero
2011-06-13 1:28 ` Mattia Dongili
2011-06-13 9:39 ` Marco Chiappero
2011-06-13 13:42 ` Mattia Dongili
2011-06-13 14:10 ` Marco Chiappero
2011-06-18 22:50 ` Marco Chiappero
2011-06-18 23:06 ` Marco Chiappero
2011-06-28 9:27 ` Mattia Dongili
2011-06-28 10:04 ` Marco Chiappero
2011-07-01 10:54 ` Marco Chiappero
2011-07-13 22:19 ` Marco Chiappero
2011-07-14 22:05 ` Mattia Dongili
2011-07-18 14:49 ` Marco Chiappero
2011-07-19 22:03 ` Mattia Dongili
2011-06-20 13:49 ` Marco Chiappero
2011-06-03 15:33 ` [PATCH 5/25] sony-laptop: new handles " Marco Chiappero
2011-06-03 15:35 ` [PATCH 6/25] sony-laptop: new notebook controller resume function Marco Chiappero
2011-06-03 15:36 ` [PATCH 7/25] sony-laptop: sony_nc_function_setup modifications Marco Chiappero
2011-06-03 15:38 ` [PATCH 8/25] sony-laptop: sony_nc_notify rewritten and improved Marco Chiappero
2011-06-04 8:43 ` Mattia Dongili
2011-06-04 11:26 ` Marco Chiappero
2011-06-05 22:38 ` Mattia Dongili
2011-06-06 12:23 ` Marco Chiappero
2011-06-06 12:42 ` Mattia Dongili
2011-06-06 12:45 ` Marco Chiappero
2011-06-20 14:00 ` Marco Chiappero
2011-07-19 21:30 ` Mattia Dongili
2011-06-04 12:42 ` Matthew Garrett
2011-06-04 14:22 ` Marco Chiappero
2011-06-04 14:30 ` Matthew Garrett
2011-06-04 14:34 ` Marco Chiappero
2011-06-04 14:36 ` Matthew Garrett
2011-06-04 14:42 ` Marco Chiappero
2011-06-04 14:45 ` Matthew Garrett
2011-06-04 15:04 ` Corentin Chary
2011-06-04 16:50 ` Marco Chiappero
2011-06-04 20:22 ` Alan Cox
2011-06-05 17:48 ` Marco Chiappero
2011-06-05 19:14 ` Alan Cox
2011-06-05 20:13 ` Marco Chiappero
2011-06-03 15:39 ` [PATCH 9/25] sony-laptop: sony_walk_callback moved for better readability Marco Chiappero
2011-06-03 15:41 ` [PATCH 10/25] sony-laptop: keyboard backlight support extended to newer Vaios Marco Chiappero
2011-06-04 7:58 ` Mattia Dongili
2011-06-04 10:30 ` Marco Chiappero
2011-06-04 11:23 ` Mattia Dongili
2011-06-04 11:41 ` Marco Chiappero
2011-06-05 22:33 ` Mattia Dongili
2011-06-06 12:27 ` Marco Chiappero
2011-06-10 12:31 ` Marco Chiappero
2011-06-12 22:24 ` Mattia Dongili
2011-06-13 14:28 ` Marco Chiappero
2011-06-18 4:15 ` Mattia Dongili
2011-06-03 15:42 ` [PATCH 11/25] sony-laptop: rfkill improvements Marco Chiappero
2011-06-04 7:59 ` Mattia Dongili
2011-06-03 15:43 ` [PATCH 12/25] sony-laptop: input core improvements improvements Marco Chiappero
2011-06-04 8:07 ` Mattia Dongili
2011-06-04 10:42 ` Marco Chiappero
2011-06-04 12:44 ` Matthew Garrett
2011-06-04 12:44 ` Matthew Garrett
2011-06-04 13:11 ` Marco Chiappero
2011-06-08 8:26 ` Joey Lee
2011-06-08 8:26 ` Joey Lee
2011-06-04 15:21 ` Marco Chiappero
2011-06-04 16:40 ` Mattia Dongili
2011-06-04 16:40 ` Mattia Dongili
2011-06-04 16:58 ` Marco Chiappero
2011-06-04 16:58 ` Marco Chiappero
2011-06-05 22:24 ` Mattia Dongili
2011-06-06 13:26 ` Marco Chiappero
2011-06-07 14:23 ` Mattia Dongili
2011-06-07 15:15 ` Marco Chiappero
2011-06-07 16:24 ` Mattia Dongili
2011-06-07 17:59 ` Marco Chiappero
2011-06-20 13:53 ` Marco Chiappero
2011-07-01 11:12 ` Marco Chiappero
2011-07-01 12:50 ` Matthew Garrett
2011-07-01 14:03 ` Marco Chiappero
2011-07-01 14:09 ` Matthew Garrett
2011-07-01 14:20 ` Marco Chiappero
2011-07-01 15:06 ` Matthew Garrett
2011-07-01 15:11 ` Marco Chiappero
2011-07-01 15:53 ` Matthew Garrett
2011-07-01 16:12 ` Marco Chiappero
2011-07-19 21:26 ` Mattia Dongili
2011-06-03 15:45 ` [PATCH 13/25] sony-laptop: code style fixes Marco Chiappero
2011-06-03 15:46 ` [PATCH 14/25] sony-laptop: battery care functionality added Marco Chiappero
2011-06-03 17:33 ` [PATCH 15/25] sony-laptop: add thermal control feature Marco Chiappero
2011-06-03 17:45 ` [PATCH 16/25] sony-laptop: add HDD shock protection Marco Chiappero
2011-06-03 17:54 ` [PATCH 17/25] sony-laptop: add resume from S4/S3 when opening the lid Marco Chiappero
2011-06-03 18:02 ` [PATCH 18/25] sony-laptop: add control file for the HighSpeed Charging feature Marco Chiappero
2011-06-03 18:16 ` [PATCH 19/25] sony-laptop: add touchpad enable/disable control file Marco Chiappero
2011-06-03 20:23 ` Dmitry Torokhov
2011-06-03 20:33 ` Marco Chiappero
2011-06-03 21:00 ` Dmitry Torokhov
2011-06-03 21:46 ` Marco Chiappero
2011-06-03 22:12 ` Dmitry Torokhov
2011-06-04 1:54 ` Marco Chiappero
2011-06-04 7:09 ` Mattia Dongili
2011-06-04 11:15 ` Marco Chiappero
2011-06-04 12:46 ` Matthew Garrett
2011-06-04 14:28 ` Marco Chiappero
2011-06-03 18:28 ` [PATCH 20/25] sony-laptop: add fan related controls Marco Chiappero
2011-06-03 18:50 ` [PATCH 21/25] sony-laptop: add optical device power control Marco Chiappero
2011-06-03 19:27 ` [PATCH 22/25] sony-laptop: forward Hybrid GFX notifications to userspace Marco Chiappero
2011-06-04 8:48 ` Mattia Dongili
2011-06-20 21:12 ` Marco Chiappero
2011-07-19 21:50 ` Mattia Dongili
2011-06-03 19:49 ` [PATCH 23/25] sony-laptop: add ALS support Marco Chiappero
2011-06-05 5:31 ` Mattia Dongili
2011-06-05 22:21 ` Marco Chiappero
2011-06-06 7:41 ` Javier Achirica
2011-06-06 13:08 ` Mattia Dongili
2011-06-06 13:51 ` Marco Chiappero
2011-06-06 22:24 ` Mattia Dongili
2011-06-06 23:26 ` Marco Chiappero
2011-06-07 16:07 ` Mattia Dongili
2011-06-07 17:50 ` Marco Chiappero
2011-06-07 22:39 ` Mattia Dongili
2011-06-08 9:52 ` Marco Chiappero [this message]
2011-06-03 20:10 ` [PATCH 24/25] sony-laptop: backlight device changes Marco Chiappero
2011-06-03 20:10 ` [PATCH 25/25] sony-laptop: update copyright owners Marco Chiappero
2011-06-04 8:54 ` [PATCH 0/25] sony-laptop: code improvements and support extension for newer Vaios Mattia Dongili
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=4DEF466B.4010304@absence.it \
--to=marco@absence.it \
--cc=achirica@gmail.com \
--cc=malattia@linux.it \
--cc=mjg59@srcf.ucam.org \
--cc=platform-driver-x86@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.