lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4943A4BC.4060107@inf.tu-dresden.de>
Date:	Sat, 13 Dec 2008 13:04:12 +0100
From:	Mario Schwalbe <schwalbe@....tu-dresden.de>
To:	Matthew Garrett <mjg59@...f.ucam.org>
CC:	Richard Purdie <rpurdie@...ys.net>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] video: mbp_nvidia_bl: Add support for MacBook 5,
 MacBook Air 2, and MacBook Pro 5

Hi,

Matthew Garrett schrieb:
> On Fri, Dec 12, 2008 at 09:48:51PM +0100, Mario Schwalbe wrote:
>> Known Bugs:
>>     * MacBook Pro 5:
>>          Initial brightness after bootup is the last recently used
>>          brightness (in Mac OSX), while the firmware reports maximum.
>>          Impossible to fix.
> 
> In that case, why not read the firmware value and then set that 
> explicitly on driver load? Having the driver be in sync with the 
> hardware is better than avoiding a brightness change on boot.

that's already the case. the previous code worked like that and the
patch doesn't change that behaviour. however, the problem is:
(1) the driver tries to read the current setting which is always maximum,
    even through the actual brightness might be lower.
(2) afterwards the driver re-sends this value to hardware effectively
    setting the (visible) brightness to maximum. now hardware and software
    are consistent. that's a brightness change on boot we cannot avoid.

not re-sending the read value on boot is no solution either because if
the user later decides to adjust brightness incrementally (by means of
functions keys) it would immediately jump to some value near maximum
with his adjustment applied. then after the first change, the state
would be consistent.

>> +static int intel_chipset_get_intensity(struct backlight_device *bd)
>>  {
>>  	outb(0x03, 0xb3);
>>  	outb(0xbf, 0xb2);
>>  	return inb(0xb3) >> 4;
>>  }
> 
> Just to absolutely clarify, this is intel chipset as in motherboard 
> chipset and not graphics chipset, right? A comment to make that clear 
> would be good - it left me a little confused at first. Other than that, 
> it looks good.

yes, *_chipset refers to the motherboard chipset vendor.

ciao,
Mario

-- 
 Wo das Chaos auf die Ordnung trifft, gewinnt meist das Chaos,
 weil es besser organisiert ist.
     - Friedrich Nietzsche -

--
    _____    ________
   /     \  /   ____/  Mario Schwalbe
  /  \ /  \ \____  \
 /    Y    \/       \  eMail: schwalbe@....tu-dresden.de,
 \____|__  /______  /         ms790178@....tu-dresden.de
         \/       \/

          key ID: 7DA9 DAFF
      public key: https://www1.inf.tu-dresden.de/~ms790178/key.asc
 key fingerprint: 2979 AA20 4A93 B527 90CC  45E5 4B28 511A 7DA9 DAFF
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ