6406671 Xorg needs to recognize a new S3 event file name
authorJay Cotton <Jay.Cotton@Sun.COM>
Wed, 02 Aug 2006 12:56:22 -0700
changeset 41 d37df4a6d754
parent 40 bec81b174839
child 42 2062e3c46bd0
6406671 Xorg needs to recognize a new S3 event file name
XORG_NV/sun-src/xc/programs/Xserver/hw/xfree86/os-support/sunos/sun_apm.c
--- a/XORG_NV/sun-src/xc/programs/Xserver/hw/xfree86/os-support/sunos/sun_apm.c	Tue Aug 01 18:01:02 2006 -0700
+++ b/XORG_NV/sun-src/xc/programs/Xserver/hw/xfree86/os-support/sunos/sun_apm.c	Wed Aug 02 12:56:22 2006 -0700
@@ -63,6 +63,7 @@
  very soon...
 */
 #define APM_DEVICE "/dev/apm"
+#define APM_DEVICE1 "/dev/srn"
 
 static pointer APMihPtr = NULL;
 static void sunCloseAPM(void);
@@ -181,7 +182,9 @@
     }
 
     if ((fd = open(APM_DEVICE, O_RDWR)) == -1) {
-	return NULL;
+    	if ((fd = open(APM_DEVICE1, O_RDWR)) == -1) {
+		return NULL;
+	}
     }
     xf86PMGetEventFromOs = sunPMGetEventFromOS;
     xf86PMConfirmEventToOs = sunPMConfirmEventToOs;