View Single Post
Old 03-16-2010, 01:55 PM   #160
badbob001
Fanatic
badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.
 
badbob001's Avatar
 
Posts: 556
Karma: 1102020
Join Date: Sep 2009
Device: Kindle Keyboard (rip), Kindle Voyage, Fire Tablet 10 '17, iPad '19
Quote:
Originally Posted by Shaggy View Post
We're assuming that the screen is directly related to whether or not it's in standby mode, which may not be true. Can it go into standby without blanking the screen, or can it blank the screen and not be in standby correctly? Both are theoretically possible.
\sysd-3.0+3.0+svnr5463\sysd\src\system.c
Code:
static void prepare_standby()
{
    LOGPRINTF("entry");

    if ( (device_state == STATE_DEVICE_STOPPING) ||                               /* preparing power off */
         (power_state == STATE_POWER_STANDBY) ||                                  /* preparing standby */
         (power_state == STATE_POWER_IDLE) ||                                     /* preparing idle */
         ((usb_state == STATE_USB_UNMOUNTED) && (g_usb_device_source != 0)) )     /* polling for USB charger/host */
    {
        LOGPRINTF("Don't enter standby now! (device_state [%d] power_state [%d] usb_state [%d][%d])", 
          device_state, power_state, usb_state, g_usb_device_source);
        return;
    }
    
    power_state = STATE_POWER_STANDBY;
    // display updates are suppressed from here

    LOGPRINTF("Prepare standby");
    
    // standby preparations by sysd
    display_blank();
    ipc_send_prepare_standby();
    conn_stop();

    g_timeout_add(PREPARE_STANDBY_TIMEOUT_MS, on_check_standby, NULL);
}
It looks like it blanks the screen first (display_blank) before sending a standby signal to the system (ipc_send_prepare_standby) and finally stopping any connections (conn_stop). So certainly there is still things to do after the display blanks.

I wonder if just blanking out the display_blank line will achieve the "always on" look that some people want.

Further digging shows that the wacom can either be disabled or left alone to automatically go into low power mode, where it reads the digitizer at 8pps (points per second) instead of 133pps.

I'm no coder but this is what I think I see.
badbob001 is offline   Reply With Quote