Mailinglist Archive: radeonhd (408 mails)
| < Previous | Next > |
Re: [radeonhd] [PATCH] Somehow /force/ backlight control
- From: Alex Deucher <alexdeucher@xxxxxxxxx>
- Date: Tue, 30 Jun 2009 12:03:15 -0400
- Message-id: <a728f9f90906300903o3a8e63c7g55dfa3852b6abe8e@xxxxxxxxxxxxxx>
2009/6/30 Rafał Miłecki <zajec5@xxxxxxxxx>:
Those are the bios scratch regs.
As I said previously, IIRC, it's controlled by LCD1OutputControl on
pre-DCE3 chips, and DIG2TransmitterControl on DCE3 and newer chips.
As I recall, you set the requested level in one of the bios scratch
regs and then execute the table with the action set to the appropriate
LCD_BLOFF/BLON/BL_BRIGHTNESS_CONTROL for the table. See atombios.h.
Alex
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
W dniu 30 czerwca 2009 17:32 użytkownik Egbert Eich <eich@xxxxxxx> napisał:
> So I can add "UseAtomBIOS", remove all NOT_YET and this should work
> for me? Because you mentioned earlier it's not ready yet...?
You don't even have to remove the NOT_YET with thoe UseAtomBIOS option.
I'm currently looking at why I added the NOT_YETs. It's working on RS690
(LVTMA). I still need to try it on DIG.
OK, I just tested it and it works actually.
I decided to check out atombios's check about backlight control.
1) In rhd_dig.c we call RhdAtomSetupBacklightControlProperty which
returns bl level
2) in rhd_atomout.c: RhdAtomSetupBacklightControlProperty calls
RHDAtomBIOSScratchBlLevel
3) in rhd_biosscratch.c: RHDAtomBIOSScratchBlLevel just check 0x18 /
0x172C register.
Those are the bios scratch regs.
So is this AtomBIOS based backlight control just using another
register? No special AtomBIOS commands?
As I said previously, IIRC, it's controlled by LCD1OutputControl on
pre-DCE3 chips, and DIG2TransmitterControl on DCE3 and newer chips.
As I recall, you set the requested level in one of the bios scratch
regs and then execute the table with the action set to the appropriate
LCD_BLOFF/BLON/BL_BRIGHTNESS_CONTROL for the table. See atombios.h.
Alex
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
| < Previous | Next > |