public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Hiroshi Miura <miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
To: David Bronaugh <dbronaugh-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
Cc: Nate Lawson <nate-Y6VGUYTwhu0@public.gmane.org>,
	len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	letsnote-tech-eXqGM+LsbTTAqL8d+zIrHngSJqDPrsil@public.gmane.org
Subject: Re: [PATCH]Panasonic Hotkey Driver v0.5 [2/2]
Date: Sat, 21 Aug 2004 09:46:14 +0900	[thread overview]
Message-ID: <87n00pqpwp.wl%miura@da-cha.org> (raw)
In-Reply-To: <41263840.1010003-Y6VGUYTwhu0@public.gmane.org>

Hi,

I got internal datasheet from panasonic lets note team.
They said that they use value 0-20 for lcd brightness and
we should use these values for safety.

The datasheet is written by only Japanese.

sinf description.

SINF: get all setting information
  BIOS struct
    package() {
      mumber of maxmum batteries,	/* now assume only 0,1, or 2 */
      type of LCD ,	/* 0.. normal,  1..semi-transparent */
      maximum brightness on AC,
      minimum brightness on AC,
      current brightness on AC,	
      maximum brightness on DC,	/* if no battery, fix to 0 */
      minimum brightness on DC,	/* if no battery, fix to 0 */
      current brightness on DC,	/* if no battery, fix to 0 */
      current mute state,
      reserved ( == 1),
      current environment state, /* normal temp=0x01,high temp=0x81,no support=0x00 */
    }

At Fri, 20 Aug 2004 10:43:28 -0700,
Nate Lawson wrote:
> 
> David Bronaugh wrote:
> > Hiroshi Miura wrote:
> >> It's from Panasonic spec.
> >>
> >> 0,n  -- brightness on AC 1,n  -- brightness on battery.
> >> If pc go suspend/resume, BIOS set brightness according to this value.
> >>
> >> I should further study this interface.
> >>
> > At least on my R1, this function is incorrect. Brightness values range 
> > from 0-255 on my R1. Setting field 4 and field 7 of sinf have exactly 

Ok, I'll ask to panasonic team that reason.

> > the same effect (it would appear that they map to the same function) 

no. after hibernate/resume, it make effect by BIOS, i think.

> > even though they end up storing different values; disconnecting and 
> > connecting AC power does not change how bright the screen is at all. I

When running OS, brightness change is a work for OS. not BIOS on this spec.
If BIOS can handle brightness by SMI, OS may not be able to handle it.
 
> > believe this is intentional; however, I also believe that using ACPI to 
> > store values like this is pointless and it would be better to simplify 
> > the interface.

I want to simplify interface too, but I also want to implement proper functions.

> > My experience is that changing the code to accept values from 0-255 
> > allows me to set the full range of screen brightnesses; however, setting 

Yes, lets note member said me bios can accept 0-255 but they don't know what 
happen over 20, because they only test 0-20 on Windows XP.

The specsheet I have is up-to-date one, then it might change before.
At least, between R1/T1 and R2/T2/W2/Y2/R3 we have difference.

> > values less than 11 makes the screen flicker like crazy (I assume this 
> > is because I am underpowering the backlight). So perhaps a floor of, 
> > say, 15 on the screen brightness would be a good choice to avoid problems.
> > Also a small complaint -- displaying all 6 registers in 
> > acpi_pcc_read_brightness is confusing (not to me since I understand the 
> > code, but to end users).

My code assumes platform is R2/Y2/T2/W2/R3. R1 is not my focus now.
+/* device(HKEY) definitions */
+#define HKEY_HID               "MAT0019"

my driver handle HID 'MAT0019' but my R1 has HID 'MAT0012'.
It means R1 has different functionality.

My R1 has no SINF methods. it can controll brightness by SMM/SMI functionality.

What your R1's HID or DSDT?
I cannot find other version of DSDT on acpi.sourceforge.net.

> We handle these different laptops correctly in the FreeBSD 
> acpi_panasonic driver.  It may be a good example for you.
> 
> -- 
> Nate

thanks. I want to refer.

-- 
Hiroshi Miura  --- http://www.da-cha.org/  --- miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org
NTTDATA Corp. OpenSource Software Center. --- miurahr-3MafRgGXt7BL9jVzuh4AOg@public.gmane.org 
NTTDATA Intellilink Corp. OpenSource Engineering Dev. -- miurahr-w0OK63jvRlAuJ+9fw/WgBHgSJqDPrsil@public.gmane.org
Key fingerprint = 9117 9407 5684 FBF1 4063  15B4 401D D077 04AB 8617


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

  parent reply	other threads:[~2004-08-21  0:46 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-19  6:00 [PATCH]Panasonic Hotkey Driver David Bronaugh
     [not found] ` <41244219.1090603-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
2004-08-20  2:51   ` Hiroshi Miura
     [not found]     ` <871xi2s555.wl%miura@da-cha.org>
     [not found]       ` <871xi2s555.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-20  6:25         ` [PATCH]Panasonic Hotkey Driver v0.5 [1/2] Hiroshi Miura
     [not found]           ` <87vffeqqaq.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-20 17:11             ` Len Brown
2004-08-21  1:30               ` [letsnote-tech:00074] " Hiroshi Miura
     [not found]     ` <87acwqserw.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-20  6:25       ` [PATCH]Panasonic Hotkey Driver v0.5 [2/2] Hiroshi Miura
     [not found]         ` <87u0uyqqa7.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-20  7:44           ` David Bronaugh
     [not found]             ` <4125ABEF.9090106-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
2004-08-20  8:43               ` Hiroshi Miura
     [not found]                 ` <87pt5mqjxj.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-20 12:46                   ` Stefan Seyfried
2004-08-20 17:14                   ` David Bronaugh
     [not found]                     ` <41263192.7010300-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
2004-08-20 17:43                       ` Nate Lawson
     [not found]                         ` <41263840.1010003-Y6VGUYTwhu0@public.gmane.org>
2004-08-21  0:46                           ` Hiroshi Miura [this message]
2004-08-21  5:39                           ` Hiroshi Miura
2004-08-21  1:30                       ` Hiroshi Miura
2004-08-24 23:00           ` John Belmonte
2004-08-21  1:42   ` [PATCH]Panasonic Hotkey Driver Hiroshi Miura
     [not found]     ` <87zn4pl116.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-21  5:33       ` Hiroshi Miura
     [not found]         ` <87n00pkqc5.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-21  8:44           ` David Bronaugh
     [not found]             ` <41270B53.3060903-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
2004-08-21 10:34               ` Hiroshi Miura
     [not found]                 ` <87d61klqzh.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-21 11:50                   ` vgod spam
2004-08-22  6:45                   ` David Bronaugh
     [not found]                     ` <41284119.1060504-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
2004-08-22  8:27                       ` David Bronaugh
     [not found]                         ` <412858F0.8050406-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
2004-08-23  5:07                           ` David Bronaugh
     [not found]                             ` <41297BA7.3050503-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
2004-08-26  8:45                               ` [PATCH]Panasonic Hotkey Driver v0.6.3 Hiroshi Miura
     [not found]                                 ` <87pt5e5lu3.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-09-15  0:42                                   ` [PATCH]Panasonic Hotkey Driver v0.7 Hiroshi Miura

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=87n00pqpwp.wl%miura@da-cha.org \
    --to=miura-yiisdzvrolqdnm+yrofe0a@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=dbronaugh-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=letsnote-tech-eXqGM+LsbTTAqL8d+zIrHngSJqDPrsil@public.gmane.org \
    --cc=nate-Y6VGUYTwhu0@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox