| OLD | NEW |
| 1 On Chrome OS, we want to dim the screen when the user is idle. To do this, | 1 On Chrome OS, we want to dim the screen when the user is idle. To do this, |
| 2 the power manager subscribes for idle notifications from XSync, and adjusts | 2 the power manager subscribes for idle notifications from XSync, and adjusts |
| 3 the backlight based on whether or not the user is idle. | 3 the backlight based on whether or not the user is idle. |
| 4 | 4 |
| 5 Executable programs: | 5 Executable programs: |
| 6 * backlight-tool (backlight-tool.cc) | 6 * backlight-tool (backlight-tool.cc) |
| 7 Simple tool to get and set the brightness level of the display backlight. | 7 Simple tool to get and set the brightness level of the display backlight. |
| 8 * powerd (powerd.cc) | 8 * powerd (powerd.cc) |
| 9 Upper power manager. Adjusts device status based on whether the | 9 Upper power manager. Adjusts device status based on whether the |
| 10 user is idle and on video activity indicator from the window manager. | 10 user is idle and on video activity indicator from the window manager. |
| 11 This daemon is responsible for dimming the backlight or turning off the | 11 This daemon is responsible for dimming the backlight or turning off the |
| 12 screen based on user idle, and it is responsible for adjusting backlight | 12 screen based on user idle, and it is responsible for adjusting backlight |
| 13 intensity based on user input and ambient light condition. The daemon also | 13 intensity based on user input and ambient light condition. The daemon also |
| 14 monitors plug state (on ac or on battery) and battery state-of-charge. | 14 monitors plug state (on ac or on battery) and battery state-of-charge. |
| 15 * powerm (powerman_daemon.cc) | 15 * powerm (powerman_daemon.cc) |
| 16 Lower power manager. Provides infrastructure for invoking suspend to RAM and | 16 Lower power manager. Provides infrastructure for invoking suspend to RAM and |
| 17 system shutdown. Handles input events for hall effect sensor (lid) and power | 17 system shutdown. Handles input events for hall effect sensor (lid) and power |
| 18 button. | 18 button. |
| 19 * xidle-example (xidle-example.cc) | 19 * xidle-example (xidle-example.cc) |
| 20 Prints console notifications when the user is and is not idle. | 20 Prints console notifications when the user is and is not idle. |
| 21 * drm-tool (drm-tool.cc) |
| 22 Waits for drm hotplug events, mostly useful as a demo for the udev class. |
| 21 | 23 |
| 22 Main Classes: | 24 Main Classes: |
| 23 * AmbientLightSensor (ambient_light_sensor.{cc,h}) | 25 * AmbientLightSensor (ambient_light_sensor.{cc,h}) |
| 24 Polls the ambient light sensor for current lighting conditions. | 26 Polls the ambient light sensor for current lighting conditions. |
| 25 * Backlight (backlight.{cc,h}) | 27 * Backlight (backlight.{cc,h}) |
| 26 Get and set the brightness level of the display backlight. | 28 Get and set the brightness level of the display backlight. |
| 27 * BacklightController (backlight_controller.{cc,h}) | 29 * BacklightController (backlight_controller.{cc,h}) |
| 28 Adjusts the backlight based on whether the user is idle. | 30 Adjusts the backlight based on whether the user is idle. |
| 29 * VideoDetector (video_detector.{cc,h}) | 31 * VideoDetector (video_detector.{cc,h}) |
| 30 Polls the root window for video activity timestamp posted by the window | 32 Polls the root window for video activity timestamp posted by the window |
| 31 manager. Allows powerd to defer idle when video has been playing recently. | 33 manager. Allows powerd to defer idle when video has been playing recently. |
| 32 * XIdle (xidle.{cc,h}) | 34 * XIdle (xidle.{cc,h}) |
| 33 Receive notifications from the X Server when the user is marked as | 35 Receive notifications from the X Server when the user is marked as |
| 34 idle, or as no longer idle | 36 idle, or as no longer idle |
| 35 | 37 |
| 36 Unit tests: | 38 Unit tests: |
| 37 * idle_dimmer_unittest.cc: | 39 * idle_dimmer_unittest.cc: |
| 38 Tests the BacklightController class. | 40 Tests the BacklightController class. |
| 39 * xidle_unittest.cc: | 41 * xidle_unittest.cc: |
| 40 Tests the XIdle class with a real X server (or a virtual framebuffer). | 42 Tests the XIdle class with a real X server (or a virtual framebuffer). |
| 41 | 43 |
| 42 Autotests: | 44 Autotests: |
| 43 * hardware_Backlight | 45 * hardware_Backlight |
| 44 Verifies that backlight-tool can adjust brightness. | 46 Verifies that backlight-tool can adjust brightness. |
| 45 * power_Backlight | 47 * power_Backlight |
| 46 Verifies that adjusting the brightness with the backlight-tool changes the | 48 Verifies that adjusting the brightness with the backlight-tool changes the |
| 47 amount of power used by the machine. | 49 amount of power used by the machine. |
| 48 | 50 |
| OLD | NEW |