Graphics » History » Version 14

doak complex, 01/23/2020 08:10 PM
Changed formatting: all names cursive

1 1 Wolfgang Wiedmeyer
h1. Graphics
3 14 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 14 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 13 doak complex
h2. Enabling _llvmpipe_ as software renderer
8 1 Wolfgang Wiedmeyer
Make sure [[ADB]] is running as root and the system partition [[ADB#Modifying-the-system-partition|is mounted writable]].
The following command switches the software renderer implementation:
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" 
16 14 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.
17 6 Jeremy Rand
18 13 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_.
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. 
20 2 Wolfgang Wiedmeyer
21 14 doak complex
h2. Known issues with the _Android software renderer_
22 1 Wolfgang Wiedmeyer
23 14 doak complex
* Selecting the third option besides photo and video (_Panorama mode_) will crash the _Camera_ app.
* Video playback in the browser does not work. (issue #1533)
* Screenshots do not work. (see [[Screenshots]] for a workaround)
* Selecting wallpapers from storage does not work.
* Screen content is sometimes shortly visible before unlocking. (issue #1275, happens with _llvmpipe_ as well)
* Previews of the windows in the tasks switcher are missing.
* Switching between apps, apps and the launcher or different views inside an app is sometimes slow and the device may seem unresponsive.
* There are issues with using folders with the _Trebuchet launcher_. (issue #1790, happens with _llvmpipe_ as well)
31 1 Wolfgang Wiedmeyer
32 14 doak complex
h3. Popular apps from _F-Droid_ that do not work
33 2 Wolfgang Wiedmeyer
34 14 doak complex
* All _Firefox_-based browsers like "_IceCatMobile_": and _Orfox_
* "_Document Viewer_":
* "_LibreOffice Viewer_":
* "_RedReader_": cannot display images ("upstream bug":
38 8 Denis 'GNUtoo' Carikli
h2. See also
40 9 Denis 'GNUtoo' Carikli
41 14 doak complex
* There is a page about [[GraphicsResearch]] that gather information to improve graphics support.