Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    请问 screen0/1 与 fb0/1 怎么理解? 有什么差别呢?

    MR Series
    screen0 screen1 fb framebuffer
    2
    7
    2316
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      memory LV 7 last edited by

      请问 screen0/1 与 fb0/1 怎么理解? 有什么差别呢?

      A 1 Reply Last reply Reply Quote Share 0
      • A
        anruliu LV 6 @memory last edited by

        @memory
        screen0/1和board.dts中定义的screen0/1一致,默认screen0为lcd,screen1为hdmi
        fb0默认显示在screen0上,fb1目前没有使用

        M 1 Reply Last reply Reply Quote Share 0
        • M
          memory LV 7 @anruliu last edited by

          @anruliu

          fb1目前没有使用

          那我应该如何把数据显示到 fb1 呢?

          A 2 Replies Last reply Reply Quote Share 0
          • A
            anruliu LV 6 @memory last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote Share 0
            • A
              anruliu LV 6 @memory last edited by

              @memory
              修改linux-5.4/drivers/video/fbdev/sunxi/disp2/disp/dev_fb.c

              #define SUNXI_FB_MAX 1
              

              改成

              #define SUNXI_FB_MAX 2
              

              这样fb1就会生成出来

              在display_fb_request函数中

              for (sel = 0; sel < num_screens; sel++) 
              

              是判断显示到哪个screen

              建议不熟悉驱动不要修改,修改后可能出现其他异常

              M 2 Replies Last reply Reply Quote Share 0
              • M
                memory LV 7 @anruliu last edited by

                @anruliu

                #define SUNXI_FB_MAX 2

                如果需要双屏异显, 必须开启这个吗?

                1 Reply Last reply Reply Quote Share 0
                • M
                  memory LV 7 @anruliu last edited by

                  @anruliu

                  #define SUNXI_FB_MAX 2
                  

                  这样改了之后,确实有 fb0 和 fb1 了。

                  1 Reply Last reply Reply Quote Share 0
                  • 1 / 1
                  • First post
                    Last post

                  Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                  行为准则 | 用户协议 | 隐私权政策