Re: Turning backlight off on a wince device

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On May 13, 9:02 am, "Michel Verhagen (eMVP)" <mic...@xxxxxxxxxx>
wrote:
Are you sure the PM actually transitions states? Write a simple test
program that registers for power notifications
(RequestPowerNotifications with PBT_TRANSITION) and see if the PM is
actually transitioning states.

There may be something wrong with your registry settings (like you have
to put them betweeen ;HIVE BOOT SECTION tags for instance).

Also, enable all PM debug zones and check the debug output. The PM debug
output is abundant and will definitely help you pinpoint the problem. If
you still can't figure it out please post the debug output around the
state change.

Good luck,

Michel Verhagen, eMVP
Check out my blog:http://GuruCE.com/blog

  GuruCE Ltd.
  Microsoft Embedded Partner
 http://GuruCE.com
  Consultancy, training and development services.



rashee...@xxxxxxxxx wrote:
I am trying to turn off backlight on my wince based device. The use
case is as follows:
After 10 secs of inactivity, userIdle state is reached. This state is
to be mapped to D4 (suspend) state of backlight driver. So that
backlight should be turned off after 10 secs of user inactivity.
The reg settings which i am using are:

IF SYSGEN_PM

; Turn the backlight off during UserIdle.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State
\UserIdle\{A32942B7-920C-486b-B0E692A702A99B35}]
 "BKL"=dword:4           ; D4  =>backlight off

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\Timeouts]
; @CESYSGEN IF PM_PM_DEFAULT_PDD
    "ACUserIdle"=dword:a         ; implies 10 seconds : Time after which
backlight will turn off

ENDIF

But on reaching userIdle state IOCTL_POWER_SET is not being called by
the power manager which requests the device state change.Due to it the
backlight is not getting turned off.

Can anybody please provide some suggestion for this problem...- Hide quoted text -

- Show quoted text -

Hi

Thanks for the suggestion. Actually we are using the same architecture
for turning off display. We are mapping the systemIdle state with
display driver's D4 state. This solution is working fine for display.
Also in case of backlight IOCTL_POWER_CAPABILITIES is being called so
support for D0 and D4 states is there. That means I am providing the
correct Iclass ie PMCLASS_GENERIC_DEVICE and AdvertiseInterface call
is also working fine. I somehow feel that the mapping between system
and device power states is not correct. Thats why there is no driver
state change when useridle state is reached. can you please throw some
light on this issue. Otherwise I am also trying to do what you
suggested
thnkz..!
.



Relevant Pages

  • Re: Turning backlight off on a wince device
    ... Write a simple test program that registers for power notifications (RequestPowerNotifications with PBT_TRANSITION) and see if the PM is actually transitioning states. ... The PM debug output is abundant and will definitely help you pinpoint the problem. ... backlight should be turned off after 10 secs of user inactivity. ...
    (microsoft.public.windowsce.embedded)
  • Re: iPAQ 310 wont shut down
    ... I mention backlight because its setting is mixed up with power schemes, particularly in your Ipaq 310. ... I can now turn it on and off using the on/off button and it stays off even while connected to the wall charger. ...
    (rec.aviation.soaring)
  • Re: two patches - request for comments
    ... first liquid crystal displays and backlight are not connected to any ... the lcd and backlight modules will be used by the ... framebuffer device, which in most cases will be itself on a certain bus. ... lcd and backlight devices to power them off as well. ...
    (Linux-Kernel)
  • Re: Problems Disabling Automatic Screen Off for Display Driver.
    ... Set the PM debugzones all on and show us some debug output around the time the backlight turns off. ... change power states via requests from Applications and due to Sleep ... We have three drivers in use, a Display Driver, Backlight Driver ... I installed a stub battery driver that should set ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Dell Inspiron 8100 - how to turn off LCD backlight (in console mode)?
    ... Ideally, the backlight would turn off with the screensaver, and turn on when the screensaver is deactivated again. ... IMHO, either of the acpi, apm or sc driver should have taken care of backlight control and, or display power management. ... FYI, though the above looks like a page from FreeBSD 7.0, but I currently am running FreeBSD 8.0-CURRENT on my DELL Inspiron 4150/1.8GHz/256MB/40GB machine. ...
    (comp.unix.bsd.freebsd.misc)