Skip to contentSkip to conversation

G4 Snowball DPMS 1 fix

PATCH Stefan de Konink 2 participants 2 messages Dec 22, 2012 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

commit 4e2b7e05ceb5afb2f1a0b9e5bfd405bbef11a723

Author: Stefan de Konink <[email protected]>
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 <https://bugs.freedesktop.org/show_bug.cgi?id=40275>

drivers/gpu/drm/nouveau/nv04_dfp.c +2 -2
index 184cdf8..eb76b69 100644
@@ -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);

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by
#2 lore raw
Quoted 23 lines · Stefan de Konink

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

commit 4e2b7e05ceb5afb2f1a0b9e5bfd405bbef11a723

Author: Stefan de Konink <[email protected]>
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 <https://bugs.freedesktop.org/show_bug.cgi?id=40275>

drivers/gpu/drm/nouveau/nv04_dfp.c +0 -0
index 184cdf8..eb76b69 100644

drivers/gpu/drm/nouveau/nv04_dfp.c static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode) · line 497

Quoted 10 lines
drivers/gpu/drm/nouveau/nv04_dfp.c +2 -2
@@ -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);