Project

General

Profile

Graphics » History » Version 16

doak complex, 01/24/2020 12:25 AM
Revert italic for terms again

1 1 Wolfgang Wiedmeyer
h1. Graphics
2
3 16 doak complex
By default, Replicant devices use the Android software renderer, which relies on the CPU for graphics rendering. Using the dedicated graphics processor (GPU) currently requires non-free software on all of the supported devices. As free-software replacements are not yet available, the GPU cannot be used with Replicant for the moment (see [[GraphicsResearch]]). The software rendering is the reason why Replicant devices appear slow at times and is responsible for a lot of crashes that can happen during usage.
4 11 Fil Bergamo
5 16 doak complex
llvmpipe has more complete EGL support than the Android software renderer (see #705), so more apps work with it, like Firefox-based browsers or more recent webviews (see #1780). Unfortunately, llvmpipe is still too slow to be the default renderer, but it is possible to switch back and forth between llvmpipe and the Android software renderer.
6 1 Wolfgang Wiedmeyer
7 16 doak complex
h2. Enabling llvmpipe as software renderer
8 1 Wolfgang Wiedmeyer
9 16 doak complex
TODO: The following enables it globally. Add information about scripts to switch only "non-system"-components (SurfaceFlinger, bootanimation, system server ?) to llvmpipe.
10 15 doak complex
TODO: Also add information which files are used for this (@/etc/libGLES_android@ and other files within @/data/data/<app>@). Refer to "this mail":https://lists.osuosl.org/pipermail/replicant/2019-August/002054.html.
11
12 1 Wolfgang Wiedmeyer
Make sure [[ADB]] is running as root and the system partition [[ADB#Modifying-the-system-partition|is mounted writable]].
13
14
The following command switches the software renderer implementation:
15
<pre>
16
adb shell "grep -q "ro.libagl=1" /system/build.prop && sed "s/ro.libagl=1/ro.libagl=0/" -i /system/build.prop || sed "s/ro.libagl=0/ro.libagl=1/" -i /system/build.prop" 
17
</pre>
18
19 16 doak complex
Then reboot the device. llvmpipe should now be enabled. To switch back to the default Android software renderer, run the above command again and reboot the device.
20 6 Jeremy Rand
21 16 doak complex
There are also issues with certain apps when using llvmpipe, although crashes should be less frequent. Usually, the screen stays black if an app does not work with llvmpipe.
22
In case the screen compositor (SurfaceFlinger) is used with llvmpipe, this could have an effect to other apps. For instance with Gallery and Orbot it happens, that some GUI elements are visible, while the main screen is black. The GUI of Simple File Manager works as long as no image is viewed in fullscreen. 
23 2 Wolfgang Wiedmeyer
24 16 doak complex
h2. Known issues with the Android software renderer
25 1 Wolfgang Wiedmeyer
26 16 doak complex
* Selecting the third option besides photo and video (Panorama mode) will crash the Camera app.
27 14 doak complex
* Video playback in the browser does not work. (issue #1533)
28
* Screenshots do not work. (see [[Screenshots]] for a workaround)
29
* Selecting wallpapers from storage does not work.
30 16 doak complex
* Screen content is sometimes shortly visible before unlocking. (issue #1275, happens with llvmpipe as well)
31 14 doak complex
* Previews of the windows in the tasks switcher are missing.
32
* Switching between apps, apps and the launcher or different views inside an app is sometimes slow and the device may seem unresponsive.
33 16 doak complex
* There are issues with using folders with the Trebuchet launcher. (issue #1790, happens with llvmpipe as well)
34 1 Wolfgang Wiedmeyer
35 16 doak complex
h3. Popular apps from F-Droid that do not work
36 2 Wolfgang Wiedmeyer
37 16 doak complex
* All Firefox-based browsers like "IceCatMobile":https://f-droid.org/repository/browse/?fdfilter=icecat&fdid=org.gnu.icecat and Orfox
38
* "Document Viewer":https://f-droid.org/repository/browse/?fdfilter=document+viewer&fdid=org.sufficientlysecure.viewer
39
* "LibreOffice Viewer":https://f-droid.org/repository/browse/?fdfilter=libreoffice&fdid=org.documentfoundation.libreoffice
40
* "RedReader":https://f-droid.org/repository/browse/?fdfilter=redreader&fdid=org.quantumbadger.redreader cannot display images ("upstream bug":https://github.com/QuantumBadger/RedReader/issues/279)
41 8 Denis 'GNUtoo' Carikli
42
h2. See also
43 9 Denis 'GNUtoo' Carikli
44 14 doak complex
* There is a page about [[GraphicsResearch]] that gather information to improve graphics support.