[Nouveau] Put acpi/backlight code into kernel

Renato Caldas seventhguardian at gmail.com
Sat Sep 19 14:36:20 PDT 2009


On Sat, Sep 19, 2009 at 8:54 PM, Matthew Garrett <mjg59 at srcf.ucam.org> wrote:
> On Mon, Sep 14, 2009 at 11:00:59AM +0100, Renato Caldas wrote:
>
>> This kind of code doesn't belong in the nouveau driver, as you
>> probably already know.
>
> Sure it does. It's common for nvidia-based machines to use the GPU's
> built-in backlight control, and when that's the case the appropriate
> place for the control code is in the driver that touches the rest of
> those registers - nouveau, in this case.

Sorry, I seem to have missed the point of the original request.
Re-reading it fixed that.

>> But there are things called "platform drivers" that support all those
>> non-standard features you may find on laptops, like radio switches,
>> leds, ... and backlight. There is one such driver for my Asus laptop,
>> which is called "asus-laptop".
>
> When there's a platform interface, a platform driver is indeed the
> correct answer. But in some cases (nvidia-based Sonys, for instance)
> there's no platform interface to use.

I see. How difficult would it be to create a tool for that purpose?
Something like radeontool or nvclock?

Cheers,
  Renato

> --
> Matthew Garrett | mjg59 at srcf.ucam.org
>


More information about the Nouveau mailing list