From: Aaron Sowry <aaron+nv-+1tCnOwpXBmzQB+pC5nmwQ@public.gmane.org>
To: Ben Skeggs <skeggsb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: NV50 backlight brightness
Date: Thu, 21 Oct 2010 11:16:21 +0200 [thread overview]
Message-ID: <20101021091621.GA29567@aeneby.se> (raw)
In-Reply-To: <1287573459.24955.11.camel@araqiel>
[-- Attachment #1.1.1: Type: text/plain, Size: 580 bytes --]
On Wed, Oct 20, 2010 at 09:17:39PM +1000, Ben Skeggs wrote:
> I have a question to you that's important first: if you fix nouveau's
> max_brightness level, can you actually properly change the brightness?
>
> I have an eDP laptop that shows the same backlight level regardless of
> what's in that register.
>
By applying the attached patch I can properly change the brightness levels using g-p-m. The only question is what the 0x40000000 bit represents as set by BIOS/ACPI - both 0x40001fff and 0x00001fff seem to work fine as far as brightness levels are concerned.
[-- Attachment #1.1.2: linux-2.6.35-20100921.patch --]
[-- Type: text/x-diff, Size: 781 bytes --]
diff -uNrp kernel-2.6.35.fc14.orig/drivers/gpu/drm/nouveau/nouveau_backlight.c kernel-2.6.35.fc14.new/drivers/gpu/drm/nouveau/nouveau_backlight.c
--- kernel-2.6.35.fc14.orig/drivers/gpu/drm/nouveau/nouveau_backlight.c 2010-09-10 14:04:09.301972164 +0200
+++ kernel-2.6.35.fc14.new/drivers/gpu/drm/nouveau/nouveau_backlight.c 2010-10-21 10:04:03.709309995 +0200
@@ -120,7 +120,11 @@ static int nouveau_nv50_backlight_init(s
return 0;
memset(&props, 0, sizeof(struct backlight_properties));
- props.max_brightness = 1025;
+ if (dev_priv->chipset >= 0xa8)
+ props.max_brightness = 0x0001ffff;
+ else
+ props.max_brightness = 1025;
+
bd = backlight_device_register("nv_backlight", &dev->pdev->dev, dev,
&nv50_bl_ops, &props);
if (IS_ERR(bd))
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 489 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2010-10-21 9:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 9:10 NV50 backlight brightness Aaron Sowry
[not found] ` <20101019091030.GA28588-+1tCnOwpXBmzQB+pC5nmwQ@public.gmane.org>
2010-10-20 11:17 ` Ben Skeggs
2010-10-21 9:16 ` Aaron Sowry [this message]
[not found] ` <20101021091621.GA29567-+1tCnOwpXBmzQB+pC5nmwQ@public.gmane.org>
2010-10-21 10:45 ` Ben Skeggs
2010-10-22 9:57 ` Aaron Sowry
[not found] ` <20101022095740.GA30072-+1tCnOwpXBmzQB+pC5nmwQ@public.gmane.org>
2010-10-22 11:17 ` Ben Skeggs
[not found] ` <FC457B53-D6EF-48DC-BB56-F2FAC3D84577-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-10-22 11:51 ` Aaron Sowry
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=20101021091621.GA29567@aeneby.se \
--to=aaron+nv-+1tcnowpxbmzqb+pc5nmwq@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=skeggsb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.