Skip to contentSkip to conversation

Put acpi/backlight code into kernel

DISCUSSION schmirrwurst-gM/[email protected] 4 participants 12 messages Aug 22, 2009 – Sep 19, 2009 12 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to bring devs to support for backlight on nv50 cards for above 1 year, without any success
A lot of laptop (from mac, hp, samsung) doesn't have laptop_panel in hal, and therefore no support for acpi/backlight..., and no entry in /proc/acpi/video nor /sys/class/backlight

Kernel team is not reacting, hal team won't fix, devicekit need standardise i/o...

I've tried nouveau, the acpi/backlight support works pretty well, but the driver itself is unusable for lambda users, it needs some times... So I'm asking if someone could put the backlight code in a kernel module, or in the kernel itself, for people to have backlight support even when using nvidia driver or nv, or vesa... ???

#2 lore raw
In reply to a message not in the archive
Quoted 5 lines · On Sat, Aug 22, 2009 at 08:34:28PM +0200…

I've tried nouveau, the acpi/backlight support works pretty well, but the driver itself is unusable for lambda users, it needs some times... So I'm asking if someone could put the backlight code in a kernel module, or in the kernel itself, for people to have backlight support even when using nvidia driver or nv, or vesa... ???

Not really - drivers that touch registers belonging to other drivers are generally frowned upon.

Signature · 1 line
Matthew Garrett | [email protected]
#6 lore raw
In reply to a message not in the archive

Le dimanche 13 septembre 2009 19:51:59, vous avez écrit :

Quoted 3 lines

nouveau is perfectly stable for 2D use. You'd really need to ask nvidia to provide support for their driver.

I'm trying to use nouveau since 2 month, and wasn't able to use it more than 1 minute without trouble... and I'm using linux since 10 years, so I'm not a bloody newbie...
Nvidia has already been asked 10000 times, they won't support backlight, because, every manufacturer is managing it differently, and there is anyway no real linux support by nvidia, that maybe also one of the most reason for nouveau, isn't it ?

I though it could be nice, to have backlight support until nouveau is really stable, because at that point, it is not designed for lambda users at all...

Nividia, nor someone else seems to be concerned by the fact that a lot of people, even with very recent hardware, are affected from this issue... and what we need, is a quick fix, even if nvidia would think about it, it would last some years until it works, I'm already waiting for backlight support for two years, one or two years more, and my hardware will be obselete ! We really need a fix that is quickly implemented, and if nouveau has already the code working, it must be not so complicated to add it to the kernel, or in a way that the backlight support is also working without nouveau...

#8 lore raw
In reply to a message not in the archive
Quoted 4 lines · On Sun, Sep 13, 2009 at 08:09:37PM +0200…

Nvidia has already been asked 10000 times, they won't support backlight, because, every manufacturer is managing it differently, and there is anyway no real linux support by nvidia, that maybe also one of the most reason for nouveau, isn't it ?

Then buy an AMD.

Signature · 1 line
Matthew Garrett | [email protected]
#10 lore raw
In reply to a message not in the archive
Quoted 8 lines · Matthew Garrett
Quoted 4 lines · On Sun, Sep 13, 2009 at 08:09:37PM +0200…

Nvidia has already been asked 10000 times, they won't support backlight, because, every manufacturer is managing it differently, and there is anyway no real linux support by nvidia, that maybe also one of the most reason for nouveau, isn't it ?

Then buy an AMD.

What's that for a dumb answer !!
I thought linux aim is not to work only on specific hw like mac ! I can't buy another hw, only because of such a issue. The aim of linux is to be as compliant as possible. A lot of people are experiencing that issue on mac, hp, samsung with geforce, and I don't think the linux distribution can ask all those user to buy an AMD !!!!!!!!

A solution has already be found on nouveau, so I think it could be possible to integrate it in the kernel

#14 lore raw
In reply to a message not in the archive
Quoted 1 line · Maarten Maathuis

Find someone who wants to create and maintain it.

This kind of code doesn't belong in the nouveau driver, as you probably already know.

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".

So what you want is a platform driver for your hardware. Now you need to either find someone who can code it, or do it yourself. It shouldn't be that difficult if working code is already available.

Cheers,
Renato

#16 lore raw
In reply to a message not in the archive

Thank you for your answer,

You said this kind of code doesn't belong in the nouveau driver, but backlight support have already been added in it, and it works well ...

So I need to find the person in charge of the sony platform driver, and ask him to take the nouveau backlight code.. would that work ?
Where are the platform driver hosted, who do I need to ask then ?

Thanks
Sebastien

Quoted 1 line · Renato Caldas

On Mon, Sep 14, 2009 at 10:02 AM, Maarten Maathuis <[email protected]>

Quoted 17 lines · wrote:
Quoted 1 line

Find someone who wants to create and maintain it.

This kind of code doesn't belong in the nouveau driver, as you probably already know.

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".

So what you want is a platform driver for your hardware. Now you need to either find someone who can code it, or do it yourself. It shouldn't be that difficult if working code is already available.

Cheers,
Renato

#18 lore raw
In reply to a message not in the archive
Quoted 4 lines · On Mon, Sep 14, 2009 at 1:40 PM, <schmirrwurst-gM/[email protected]…

Thank you for your answer,

You said this kind of code doesn't belong in the nouveau driver, but backlight support have already been added in it, and it works well ...

You need to be aware that people aren't comfortable in including every possible non-standard feature in the kernel. That would be unmaintainable, and it's the reason for the negative answers you've received so far, it's not that people are unwilling to help.

Quoted 2 lines

So I need to find the person in charge of the sony platform driver, and ask him to take the nouveau backlight code.. would that work ?

Possibly. IMHO that's the best place to put that kind of code.

Quoted 1 line

Where are the platform driver hosted, who do I need to ask then ?

That I have no idea. You can try to google for the project or check the kernel logs..

Cheers,
Renato

Quoted 25 lines

Thanks
Sebastien

Quoted 1 line · Renato Caldas

On Mon, Sep 14, 2009 at 10:02 AM, Maarten Maathuis <[email protected]>

Quoted 17 lines · wrote:
Quoted 1 line

Find someone who wants to create and maintain it.

This kind of code doesn't belong in the nouveau driver, as you probably already know.

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".

So what you want is a platform driver for your hardware. Now you need to either find someone who can code it, or do it yourself. It shouldn't be that difficult if working code is already available.

Cheers,
  Renato

#19 lore raw
In reply to a message not in the archive
Quoted 2 lines · Renato Caldas

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.

Quoted 4 lines

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.

Signature · 1 line
Matthew Garrett | [email protected]
#21 lore raw
In reply to a message not in the archive
Quoted 9 lines · Matthew Garrett
Quoted 2 lines · Renato Caldas

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.

Quoted 8 lines
Quoted 4 lines

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

Quoted 3 lines

--
Matthew Garrett | [email protected]