Comments (12)
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.
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.
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.
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.
BTW, Can I specify to use AMD graphics card instead ?
from redroid-doc.
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.
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.
try adb logcat --pid <pid of surfaceflinger>
, and it list mesa informations (like mesa version, driver info)
from redroid-doc.
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.
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.
In your case, you are using Intel GPU. you can find all
dri
interfaces byll /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.
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)
- Support for Using ReDroid with Proxy Authentication HOT 2
- redroid12 支持便携修改系统语言么? HOT 5
- Build Redroid 10 armeabi-v7a (32-bit) building errors HOT 8
- Build Redroid 13 with MindTheGapps "tau" will show ERROR! HOT 4
- Build Redroid 8 armv8a (64-bit) Exec format error HOT 8
- Is it possible to run a redroid container for arm64 on x86_64? HOT 8
- After mounting build.prop, the phone cannot install apk HOT 5
- Build Redroid 14 with MindTheGapps "upsilon" will encounter "unrecognized property 'preprocessed'" ERROR HOT 2
- 第二个 redroid 出现apex 错误 HOT 4
- weixin cannot be used on wechat HOT 5
- Weixin runing error HOT 4
- Docker Container crashing when another one starts. HOT 10
- Failed to open webview when log in wechat HOT 3
- No Network Connection in redroid HOT 1
- Cannot ADB Connect (offline) on Google Cloud ARM VM (T2A) HOT 2
- Issue with DNS Resolution Service HOT 7
- how to change proxy during runing? HOT 2
- how to use in openwrt? HOT 4
- Webview does'nt work HOT 3
- Game crash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redroid-doc.