mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Melchior FRANZ <melchior.franz@gmail.com>
To: Michael Chang <mchang@novell.com>
Cc: Takashi Iwai <tiwai@suse.de>,
	linux-kernel@vger.kernel.org, Joey Lee <jlee@novell.com>,
	chris@chris-wilson.co.uk, dri-devel@lists.freedesktop.org
Subject: Re: i915/kms/backlight-combo mode problem
Date: Tue, 17 May 2011 10:58:18 +0200	[thread overview]
Message-ID: <201105171058.21652@rk-nord.at> (raw)
In-Reply-To: <BANLkTikuBj0uCuyPRiDLD_iWypFN2MoTHQ@mail.gmail.com>

* Michael Chang -- Tuesday 17 May 2011:
[LBPC]
> You can know your LPBC value by:
>   $ lspci -xxx -s 00:02.0 | awk '/^f0:/ {print $6}'
> 
> And alter it's value via setpci (assuming set it to max)
>   $ setpci -s 00:02.0 F4.B=ff
> 
> I assume you've tried this .. as you report setpci works for you. :)

Ahh, yes, indeed. This lspci line (almost) always shows a value that
corresponds with the actual backlight brightness, and both lines work
with and without acpi_osi=Linux. (Whereas adjustment via keys only works
*with* acpi_osi=Linux.)  (Tested with 2.6.39-rc7/bd1a643e10)



> Could you help to get the LPBC value in the initial dark condition? If
> it's not corresponds to 255, maybe something sneaks and changes it but
> not logged.

Initially (with acpi_osi=Linux) LPBC=0xff. After "brightness down"
it's 0x19, and after then pressing "brightness up" it's 0x01. The lowest
value I can achieve after pressing "brightness down" a few times is 0xe5,
the highest is 0x01. Neither 0xff nor 0x00 can be reached via keys, but
can (most of the time -- see below!) be set with the setpci line and give
the expected results, backlight off and fully on. ("display toggle" has
no effect on LBPC, btw.) 

Setting 0xFF doesn't always turn the backlight off, though! If LBPC is
at the (key) maximum 0x01, then setting 0xFF via setpci changes only the
LBPC value as shown by lspci, but the backlight isn't actually turned off!
If I then press "backlight darker" once (LBPC=0x19), then setting 0xFF
via setpci works again.



>  1. $ dmesg -c
>  2. Close the lid
>  3. Open the lid
>  4. $ dmesg > dmesg.lid

The results are:

[  188.571040] [drm:intel_panel_set_backlight], set backlight PWM = 736950
[  188.571048] [drm:is_backlight_combination_mode], BLM_COMBINATION_MODE = 1073741824
[  188.571054] [drm:is_backlight_combination_mode], BLM_COMBINATION_MODE = 1073741824
[  188.571059] [drm:intel_panel_get_max_backlight], max backlight PWM = 736950
[  188.571064] [drm:intel_panel_set_backlight], set backlight max = 736950
[  188.571069] [drm:intel_panel_set_backlight], set backlight lbpc = 255
[  188.571075] [drm:intel_panel_set_backlight], set backlight tmp(1) = 189399040
[  188.571080] [drm:intel_panel_set_backlight], set backlight tmp(2) = 189399040
[  188.571084] [drm:intel_panel_set_backlight], 
[  188.571088] [drm:intel_opregion_asle_intr], non asle set request??
[  188.571093] set backlight level = 2890

The backlight is off now, as always after closing/reopening the lid,
and LPBC=0xff.

m.



PS: I'd be willing to join an irc.freenode.net channel in case you or
    anyone else wants quicker ("live") responses to such queries.

  reply	other threads:[~2011-05-17  8:58 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-27  4:30 Linux 2.6.39-rc5 Linus Torvalds
2011-04-29 15:58 ` Melchior FRANZ
2011-04-29 17:09   ` Takashi Iwai
2011-04-29 17:41     ` i915/kms/backlight-combo mode problem (was: Re: Linux 2.6.39-rc5) Melchior FRANZ
2011-04-29 19:47       ` Takashi Iwai
2011-04-29 20:09         ` Melchior FRANZ
2011-04-30  8:11           ` Takashi Iwai
2011-04-30  8:32             ` Melchior FRANZ
2011-04-30 10:27               ` Takashi Iwai
2011-04-30 11:34                 ` Melchior FRANZ
2011-04-30 14:37                   ` Joey Lee
2011-05-02 12:08                   ` Takashi Iwai
2011-05-02 13:12                     ` Melchior FRANZ
2011-05-04  7:07                     ` Joey Lee
     [not found] ` <201105051745.27992@rk-nord.at>
     [not found]   ` <s5htyd9kumz.wl%tiwai@suse.de>
2011-05-05 20:42     ` Melchior FRANZ
2011-05-06  8:52       ` i915/kms/backlight-combo mode problem Melchior FRANZ
2011-05-06 12:41         ` Joey Lee
2011-05-06 16:23           ` Melchior FRANZ
2011-05-07 20:22             ` Melchior FRANZ
2011-05-08 13:41               ` Joey Lee
2011-05-08 14:05                 ` Melchior FRANZ
2011-05-09  8:50                   ` Joey Lee
2011-05-09  9:00                     ` Takashi Iwai
2011-05-09  9:35                       ` Joey Lee
2011-05-09 10:08                     ` Melchior FRANZ
     [not found]                       ` <BANLkTimtvAWeS-t3bWjJmdVtyaPDw2uWDA@mail.gmail.com>
2011-05-10  3:29                         ` Michael Chang
2011-05-10 11:08                           ` Melchior FRANZ
     [not found]                             ` <BANLkTimQJM3N1WdBhYVOH0UyyOTFcxOfUQ@mail.gmail.com>
2011-05-13 21:20                               ` Joey Lee
2011-05-15 12:50                                 ` Melchior FRANZ
2011-05-15 10:08                             ` Takashi Iwai
2011-05-16 12:21                               ` Melchior FRANZ
2011-05-17  7:56                                 ` Michael Chang
2011-05-17  8:58                                   ` Melchior FRANZ [this message]
2011-05-17 10:12                                     ` Michael Chang
2011-05-17 11:40                                       ` Melchior FRANZ
2011-05-09  8:58               ` Takashi Iwai
2012-01-21 17:09 i915/kms/backlight-combo mode problem (was: Re: Linux 2.6.39-rc5) Chris Diamand
2012-01-21 18:32 ` Keith Packard
2012-01-21 21:25   ` i915/kms/backlight-combo mode problem Chris Diamand
2012-01-21 22:31     ` Keith Packard
2012-01-22 10:46       ` Chris Diamand

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=201105171058.21652@rk-nord.at \
    --to=melchior.franz@gmail.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jlee@novell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchang@novell.com \
    --cc=tiwai@suse.de \
    /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

all inboxes | Powered by JetHome®