From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan de Konink Subject: G4 Snowball DPMS 1 fix Date: Sat, 22 Dec 2012 18:25:21 +0100 Message-ID: <50D5ED01.2030206@konink.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040003070408040007010103" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org This is a multi-part message in MIME format. --------------040003070408040007010103 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, Since I am a proud owner of a G4 Snowball, and the screen did some strange things in DPMS 1 (blanking), I thought it was a good idea to fix it. With some help from IRC I made the attached patch. Stefan --------------040003070408040007010103 Content-Type: text/x-patch; name="dpms-g4-snowball.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dpms-g4-snowball.diff" commit 4e2b7e05ceb5afb2f1a0b9e5bfd405bbef11a723 Author: Stefan de Konink Date: Sat Dec 22 18:04:37 2012 +0100 drm/nouveau: Fix DPMS 1 on G4 Snowball, from snow white to coal black. This fixes bug Signed-off-by: Stefan de Konink diff --git a/drivers/gpu/drm/nouveau/nv04_dfp.c b/drivers/gpu/drm/nouveau/nv04_dfp.c index 184cdf8..eb76b69 100644 --- a/drivers/gpu/drm/nouveau/nv04_dfp.c +++ b/drivers/gpu/drm/nouveau/nv04_dfp.c @@ -490,8 +490,8 @@ static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode) /* BIOS scripts usually take care of the backlight, thanks * Apple for your consistency. */ - if (dev->pci_device == 0x0179 || dev->pci_device == 0x0189 || - dev->pci_device == 0x0329) { + if (dev->pci_device == 0x0174 || dev->pci_device == 0x0179 || + dev->pci_device == 0x0189 || dev->pci_device == 0x0329) { if (mode == DRM_MODE_DPMS_ON) { nv_mask(device, NV_PBUS_DEBUG_DUALHEAD_CTL, 0, 1 << 31); nv_mask(device, NV_PCRTC_GPIO_EXT, 3, 1); --------------040003070408040007010103 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --------------040003070408040007010103--