close
修改檔案
C:\WINCE600\PLATFORM\SMDK6410\SRC\DRIVERS\DISPLAY\s3c6410_disp_drv\s3c6410_disp.cpp
修改內容如下
CEDEVICE_POWER_STATE NewDx = *(PCEDEVICE_POWER_STATE) pvOut;
if(VALID_DX(NewDx))
{
RETAILMSG(DISP_ZONE_TEMP, (_T("[DISPDRV] DrvEscape() : IOCTL_POWER_SET(D%d)\n\r"), NewDx));
//SetDisplayPowerState(PmToVideoPowerState(NewDx));
SetDisplayPowerState(PmToVideoPowerState((CEDEVICE_POWER_STATE) 0));
//強制改變電源狀態為 0 (D0) 模式
Result = ESC_SUCCESS;
}
MSDN 相關參考內容
http://msdn.microsoft.com/en-us/library/aa447663.aspx
另一種方式, 改變WinCE登錄檔
C:\WINCE600\PUBLIC\COMMON\OAK\FILES\common.reg
修改資料
"ACUserIdle"=dword:0 ; in seconds
"ACSystemIdle"=dword:0 ; in seconds
"ACSuspend"=dword:0 ; in seconds
"BattUserIdle"=dword:0 ; in seconds
"BattSystemIdle"=dword:0 ; in seconds
"BattSuspend"=dword:0 ; in seconds
C:\WINCE600\PLATFORM\SMDK6410\SRC\DRIVERS\DISPLAY\s3c6410_disp_drv\s3c6410_disp.cpp
修改內容如下
CEDEVICE_POWER_STATE NewDx = *(PCEDEVICE_POWER_STATE) pvOut;
if(VALID_DX(NewDx))
{
RETAILMSG(DISP_ZONE_TEMP, (_T("[DISPDRV] DrvEscape() : IOCTL_POWER_SET(D%d)\n\r"), NewDx));
//SetDisplayPowerState(PmToVideoPowerState(NewDx));
SetDisplayPowerState(PmToVideoPowerState((CEDEVICE_POWER_STATE) 0));
//強制改變電源狀態為 0 (D0) 模式
Result = ESC_SUCCESS;
}
MSDN 相關參考內容
http://msdn.microsoft.com/en-us/library/aa447663.aspx
另一種方式, 改變WinCE登錄檔
C:\WINCE600\PUBLIC\COMMON\OAK\FILES\common.reg
修改資料
"ACUserIdle"=dword:0 ; in seconds
"ACSystemIdle"=dword:0 ; in seconds
"ACSuspend"=dword:0 ; in seconds
"BattUserIdle"=dword:0 ; in seconds
"BattSystemIdle"=dword:0 ; in seconds
"BattSuspend"=dword:0 ; in seconds
全站熱搜
留言列表