tree: 2ccd87db0563f2b99679f31021c8270a5e02ed6b [path history] [tgz]
  1. bo_import_capture.cc
  2. bo_import_capture.h
  3. BUILD.gn
  4. capture.h
  5. crtc.cc
  6. crtc.h
  7. egl_capture.cc
  8. egl_capture.h
  9. kmsvnc.cc
  10. OWNERS
  11. png.cc
  12. png.h
  13. ptr_util.h
  14. README.md
  15. screenshot.cc
  16. uinput.cc
  17. uinput.h
screen-capture-utils/README.md

screen-capture-utils

Utilities for screen capturing for dev/test images for working with screen capture.

screenshot

Provides a screenshot of the current display. Useful for capturing what's on the display when test has failed, for example. Not all devices are supported yet, so your mileage may vary.

kmsvnc

VNC server using the same infrastructure as screenshot for grabbing display.

Here’s a quick rundown of how to use kmsvnc.

(DUT)# kmsvnc

VNC server will start listening on port 5900. Forward the port with SSH from your client, and connect through the port. Example:

(workstation)$ ssh -L 5900:localhost:5900 DUT

Then connect using a VNC client, such as VNC Viewer for Google Chrome to localhost:5900. It will ask you if you want to connect unauthenticated, here we are relying on ssh forwarding to restrict who can connect.