Project

General

Profile

Graphics » History » Version 6

Jeremy Rand, 08/20/2017 03:05 PM
Spelling fix

1 1 Wolfgang Wiedmeyer
h1. Graphics
2
3 2 Wolfgang Wiedmeyer
By default, Replicant devices use the Android software renderer which uses the CPU for graphics rendering. The dedicated graphics processor (GPU) cannot be used with Replicant because for none of the currently supported devices, a fully free software implementation does exist that can make use of it (see [[GraphicsResearch]]). The software rendering is the reason why Replicant devices appear slow at times and it is responsible for a lot of crashes that can happen during usage.
4
  
5
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
h2. Enabling llvmpipe as software renderer
8
9
Make sure [[ADB]] is running as root and the system partition [[ADB#Modifying-the-system-partition|is mounted writable]].
10
11
The following command switches the software renderer implementation:
12
<pre>
13
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" 
14
</pre>
15
16 6 Jeremy Rand
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 1 Wolfgang Wiedmeyer
18 5 Jeremy Rand
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. Apps where this happens include the gallery app and Orbot.
19 2 Wolfgang Wiedmeyer
20 3 Wolfgang Wiedmeyer
h2. Known issues with the Android software renderer
21 1 Wolfgang Wiedmeyer
22
* Selecting the third option besides photo and video will crash the camera app. This is the panorama mode.
23 2 Wolfgang Wiedmeyer
* Video playback in the browser does not work (issue #1533)
24
* Screenshots do not work (see [[Screenshots]] for a workaround)
25 1 Wolfgang Wiedmeyer
* Selecting wallpapers from storage does not work
26 2 Wolfgang Wiedmeyer
* Screen content is sometimes shortly visible before unlocking (issue #1275)
27
* Previews of the windows in the tasks switcher are missing
28 4 Wolfgang Wiedmeyer
* Switching between apps, apps and the launcher or different views inside an app is sometimes slow and the device may seem unresponsive
29 2 Wolfgang Wiedmeyer
* There are issues with using folders with the Trebuchet launcher (issue #1790, happens with llvmpipe as well)
30 1 Wolfgang Wiedmeyer
31
h3. Popular apps from F-Droid that do not work
32 2 Wolfgang Wiedmeyer
33 5 Jeremy Rand
* all Firefox-based browsers like "IceCatMobile":https://f-droid.org/repository/browse/?fdfilter=icecat&fdid=org.gnu.icecat and Orfox
34 2 Wolfgang Wiedmeyer
* "Document Viewer":https://f-droid.org/repository/browse/?fdfilter=document+viewer&fdid=org.sufficientlysecure.viewer
35
* "LibreOffice Viewer":https://f-droid.org/repository/browse/?fdfilter=libreoffice&fdid=org.documentfoundation.libreoffice
36
* "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)