--- 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;