mirror of
https://github.com/X11Libre/xf86-video-nv.git
synced 2026-03-24 01:24:21 +00:00
[PATCH] Enable backlight toggling for Dell Inspiron 8200 GeForce2 Go
GeForce2 Go and similar cards are explicitly excluded from the NVBacklightEnable() code (purposedly, as the code used for the other chipsets on x86 has no effect.) This causes the backlight to remain active on laptops equipped with such a card, even when DPMS modes were active. Fix the issue for Dell Inspiron 8200 by introducing the proper registry writes to toggle the backlight. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
committed by
Aaron Plattner
parent
02e431eb09
commit
e844f10c7b
@@ -2184,8 +2184,17 @@ static void NVBacklightEnable(NVPtr pNv, Bool on)
|
||||
#endif
|
||||
|
||||
if(pNv->LVDS) {
|
||||
if(pNv->twoHeads && ((pNv->Chipset & 0x0ff0) != 0x0110)) {
|
||||
pNv->PMC[0x130C/4] = on ? 3 : 7;
|
||||
if(pNv->twoHeads) {
|
||||
if((pNv->Chipset & 0x0ff0) != 0x0110) {
|
||||
pNv->PMC[0x130C/4] = on ? 3 : 7;
|
||||
} else if(SUBVENDOR_ID(pNv->PciInfo) == 0x1028 &&
|
||||
SUBDEVICE_ID(pNv->PciInfo) == 0xd4) {
|
||||
// Dell Inspiron 8200, GeForce2 Go
|
||||
CARD32 tmp_pcrt = pNv->PCRTC0[0x081C/4] & 0xFFFFFFFC;
|
||||
if(on)
|
||||
tmp_pcrt |= 0x1;
|
||||
pNv->PCRTC0[0x081C/4] = tmp_pcrt;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
CARD32 fpcontrol;
|
||||
|
||||
Reference in New Issue
Block a user