Linux Framebuffer save as picture

/*********************************************************************************
 *                     Linux Framebuffer save as picture
 * 说明:
 *     系统调试的,有时候需要处理Framebuffer中的内容。
 *
 *                                              2017-11-28 深圳 南山平山村 曾剑锋
 ********************************************************************************/
    
一、参考文档:
    1. Upload PPM file to convert    
        https://www.coolutils.com/online/PPM-to-PNG#

二、fbdump help
    # fbdump --help
    fbdump 0.4.2
    
    (c) Richard Drummond 2001-2007
    
    Dumps the contents of the framebuffer to stdout as a PPM file.
    Usage:
      -fb <string>   Path to the framebuffer device to dump is <string>
      -vt <n>        Bring virtual terminal no. <n> to the foreground before dumping
      -delay <n>     Wait <n> seconds before dumping
      --help         Show this help
    #


三、截屏:
    1. fbdump -fb /dev/fb0 > screenshot_fb0.ppm
    2. Windows看不了ppm图片,Linux可以直接看;
    3. Windows需要用参考文档中的链接进行图片转换。

 

posted on 2017-11-28 12:06  zengjf  阅读(542)  评论(0编辑  收藏  举报

导航