Giter Club home page Giter Club logo

Comments (12)

zhouziyang avatar zhouziyang commented on August 26, 2024 1

you are missing some params, try docker run -itd --rm --memory-swappiness=0 --privileged -v ~/data2:/data -p 5556:5555 redroid/redroid:11.0.0-amd64 qemu.gles.vendor=mesa ro.hardware.gralloc=gbm

Currently, ReDroid only support one GPU device, and use /dev/dri/renderD128 as rendering node (in your case, may use Intel GPU instead of AMD).
I'm planning to enhance the GPU support (auto switch from GPU / swiftshader, allow specify different GPU render node etc.)

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

can you provide the full docker command? docker run -itd ...
besides, please provide the GPU related info (GPU model etc.): sudo lspci -nnk | grep -i vga -A3

from redroid-doc.

heyange2002 avatar heyange2002 commented on August 26, 2024

Docker command:
sudo docker run -itd --memory-swappiness=0 --privileged -v ~/data2:/data -p 5556:5555 redroid/redroid:11.0.0-amd64 qemu.gles.vendor=mesa

sudo lspci -nnk | grep -i vga -A3
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:1912] (rev 06)
Subsystem: Hewlett-Packard Company HD Graphics 530 [103c:8053]
Kernel driver in use: i915
Kernel modules: i915

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Caicos XT [Radeon HD 7470/8470 / R5 235/310 OEM] [1002:6778]
Subsystem: Micro-Star International Co., Ltd. [MSI] Caicos XT [Radeon HD 7470/8470 / R5 235/310 OEM] [1462:3310]
Kernel driver in use: radeon
Kernel modules: radeon

from redroid-doc.

heyange2002 avatar heyange2002 commented on August 26, 2024

you are missing some params, try docker run -itd --rm --memory-swappiness=0 --privileged -v ~/data2:/data -p 5556:5555 redroid/redroid:11.0.0-amd64 qemu.gles.vendor=mesa ro.hardware.gralloc=gbm

Currently, ReDroid only support one GPU device, and use /dev/dri/renderD128 as rendering node (in your case, may use Intel GPU instead of AMD).
I'm planning to enhance the GPU support (auto switch from GPU / swiftshader, allow specify different GPU render node etc.)

Thanks for reply , It works ! :)

from redroid-doc.

heyange2002 avatar heyange2002 commented on August 26, 2024

BTW, Can I specify to use AMD graphics card instead ?

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

try run setprop gralloc.gbm.device=/dev/dri/renderD129 and kill [email protected] process.

this property is set in vendor/etc/init/hw/init.redroid.rc; you can change this file, then commit your docker image for persistence.

from redroid-doc.

heyange2002 avatar heyange2002 commented on August 26, 2024

try run setprop gralloc.gbm.device=/dev/dri/renderD129 and kill [email protected] process.

this property is set in vendor/etc/init/hw/init.redroid.rc; you can change this file, then commit your docker image for persistence.

Seems not working , it still uses the Intel GPU .

sudo intel_gpu_top

render busy:  20%: ████                                   render space: 1547584736/4096

                      task  percent busy
                        CS:  20%: ████                    vert fetch: 42500 (120/sec)
                       GAM:  14%: ██▉                     prim fetch: 21250 (60/sec)
                      GAFS:   4%: ▉                    VS invocations: 42500 (120/sec)
                        SF:   2%: ▌                    GS invocations: 0 (0/sec)
                        CL:   2%: ▌                         GS prims: 0 (0/sec)
                        VS:   2%: ▌                    CL invocations: 21250 (60/sec)
                        VF:   2%: ▌                         CL prims: 21250 (60/sec)
                       SDE:   2%: ▌                    PS invocations: 5313810492 (20567484/sec)
                      URBM:   1%: ▎                    PS depth pass: 5299724171 (20517385/sec)
                       SVG:   0%:                      
                       TSG:   0%:                      
                       VFE:   0%:                      
                      GAFM:   0%:                      
                       TDG:   0%:                      

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

try adb logcat --pid <pid of surfaceflinger>, and it list mesa informations (like mesa version, driver info)

from redroid-doc.

heyange2002 avatar heyange2002 commented on August 26, 2024

06-09 01:21:19.205 79 79 I RenderEngine: OpenGL ES informations:
06-09 01:21:19.205 79 79 I RenderEngine: vendor : Intel Open Source Technology Center
06-09 01:21:19.205 79 79 I RenderEngine: renderer : Mesa DRI Intel(R) HD Graphics 530 (SKL GT2)
06-09 01:21:19.205 79 79 I RenderEngine: version : OpenGL ES 3.2 Mesa 20.0.1 (git-ab67765313)

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

In your case, you are using Intel GPU. you can find all dri interfaces by ll /dev/dri. by default, redroid use /dev/dri/renderD128, try with some other.

from redroid-doc.

heyange2002 avatar heyange2002 commented on August 26, 2024

In your case, you are using Intel GPU. you can find all dri interfaces by ll /dev/dri. by default, redroid use /dev/dri/renderD128, try with some other.

We tried to change it to use renderD129 and rebuild the image , but it not working.

redroid_x86_64:/ $ cat /vendor/etc/init/hw/init.redroid.rc
on early-init
mount none /system/etc /etc bind rec # docker fix
mount sysfs sysfs /sys rw remount # ueventd fix

write /data/.empty 0
mount none /data/.empty /proc/vmallocinfo bind

mkdir /dev/input

setprop gralloc.gbm.device /dev/dri/renderD129

on post-fs-data
exec - system system -- /vendor/bin/ipconfigstore

trigger nonencrypted

on boot
setprop debug.stagefright.ccodec 0

1|redroid_x86_64:/ $ ls -l /dev/dri

crw-rw-rw- 1 root graphics 226, 0 2021-06-09 11:46 card0
crw-rw-rw- 1 root graphics 226, 1 2021-06-09 11:46 card1
crw-rw-rw- 1 root graphics 226, 128 2021-06-09 11:46 renderD128
crw-rw-rw- 1 root graphics 226, 129 2021-06-09 11:46 renderD129

from redroid-doc.

zhouziyang avatar zhouziyang commented on August 26, 2024

new params added to support GLES configs.
redroid.gpu.mode=[auto|host|guest] and redroid.gpu.node=[/dev/dri/renderDxxx]

from redroid-doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.