From 3f25fb92b1dde002ea0c2a3aedffd3912054c380 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 29 Jan 2005 18:37:14 +0000 Subject: use FB_BLANK_UNBLANK and FB_BLANK_POWERDOWN for the 2.6 interface --- (limited to 'libopie2') diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 2128d46..59f1592 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp @@ -459,7 +459,7 @@ bool Zaurus::setDisplayStatus( bool on ) if ( fd ) { char buf[10]; - buf[0] = on ? '1' : '0'; + buf[0] = on ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; buf[1] = '\0'; res = ( ::write( fd, &buf[0], 2 ) == 0 ); ::close( fd ); diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h index 04e73c4..80593ce 100644 --- a/libopie2/opiecore/device/odevice_zaurus.h +++ b/libopie2/opiecore/device/odevice_zaurus.h @@ -75,7 +75,7 @@ #define APM_IOCSEVTSRC OD_IORW( 'A', 204, int ) #define APM_EVT_POWER_BUTTON (1 << 0) -// Brightness +// Brightness Embedix #define SHARP_FL_IOCTL_DEVICE "/dev/sharp_fl" #define SHARP_FL_IOCTL_ON 1 #define SHARP_FL_IOCTL_OFF 2 @@ -83,6 +83,10 @@ #define SHARP_FL_IOCTL_GET_STEP_CONTRAST 101 #define SHARP_FL_IOCTL_GET_STEP 102 +// Vesa Standard +#define FB_BLANK_UNBLANK 0 +#define FB_BLANK_POWERDOWN 4 + namespace Opie { namespace Core { namespace Internal { -- cgit v0.9.0.2