Sunday, March 8, 2015

Linux on GA-E2100N (AMD E1-2100 APU)


Linux experience on GA-E2100N (rev. 1.0) with AMD E1-2100 SoC.
Xubuntu 14.10.
Hardware:

Gigabyte GA-E2100N (rev. 1.0) board
CHIEFTEC IX-01B-90W mini-ITX case with 90W power supply.
GeIL PC10600 4GB CL9-9-9 D3-1333 (GN34GB1333C9S)
Kingston V300 120GB
HDMI cable
HD-ready TV (1360x768)
Logitech K400r wireless keyboard with touchpad
TP-Link TL-WN722N USB wifi adapter

BIOS options to note:
Fast Boot: Disabled (when left Fast and Ultra fast the board does not respond on reboot and required BIOS CMOS clear jumper to be set to restore normal operation)
Secure boot: disabled

Enabled EFI only in all options (disabled all legacy stuff).
On-board COM, LPT, LAN, Audio codec: disabled.
OS, minimal settings:
Xubuntu 14.10, installation USB stick in EFI mode. 
Launched live, started 
GParted and created EFI boot partition (200MiB), system (25GiB), swap (512MiB) and storage partitions, left ~8GiB unallocated for SSD overprovisioning.

Launched installation, selected all partitions as created by GParted ("something else" menu option).

After reboot disabled Light-locker, Compositor, installed Synaptic, made sure mesa-vdpau drivers installed, installed mpv for video playback, modified /etc/fstab to contain "discard,relatime" options for root and storage partitions to optimize for SSD.
"~/.mpv/config" contains:
hwdec=vdpau 

This line makes mpv use 5-10% CPU for 720p x264 videos, 60-100% otherwise.
Edited line in the "/etc/pulse/default.pa" to contain:

load-module module-udev-detect tsched=0

(added "tsched=0" argument to fix sound over HDMI issue (crackles, stutter).

Kodi (XBMC)

Enabled VDPAU acceleration only. Still uses too much CPU (~30-50% per core), without VDPAU uses 100%.
Problems
Heavy CPU usage in Kodi/XBMC.

Proprietary Catalyst drivers give poor performance for video playback, better stay with default Gallium3D.

No hardware acceleration for youtube, HTML5 videos, flash, although firefox is quite responsive.

Success

Low CPU usage with VDPAU in "mpv", very fast seeking times in any video file, no problems in playback.
Sauerbraten/cube is fast to start and very responsive, playable at 30 FPS with all effects at 1360x768 fullscreen.

Summary:
Max 71 C Core temparature at constant CPU load, 65 C at idle (neither fans in the case, nor CPU fan used, absolutely silent passive-cooled system), BIOS shows 55C CPU and 40C motherboard temperature values, touched the heatsink, and can confirm -- it is just warm, not burning. 
Quite responsive system with good multithreading (2 cores), although takes a lot of time to compile C/C++ code.
All the hardware automatically detected and worked out of the box, small tweaks required. Perfect hardware for a Linux installation.

Sunday, February 1, 2015

Composite tutorial

http://www.talisman.org/~erlkonig/misc/x11-composite-tutorial/

Saturday, January 31, 2015

Fix font color in GTK themes

Copy /usr/share/themes/Greybird (or some other theme) into ~/.themes/MyGreybird

Edit MyGreybird/gtk-2.0/gtkrc

make sure fg_color:#000000 and like if you want text to be black rather than grey.

Saturday, January 17, 2015

Lenovo A806 GApps installation

http://forum.xda-developers.com/showthread.php?t=2397942

Mini modular package. "pa_gapps-modular-mini-4.4.4-20150117-signed.zip"

Lenovo A806 New rom install (via TWRP)

Copy "VIBEUI_V2.0_1501_7.80.1_DEV_A806_NK_W_07B8.zip" file to Internal storage.
Reboot to recovery, wipe cache, dalvik, system, data.
Reboot again into recovery.
Unmount /cache.
Install ZIP.

Mount /system.

Rename /system/reovery-from-boot.p into something else does not work, had to reflash recovery. Finally deleted this file.

Reboot System, Install SuperSU? -> YES.

Lenovo A806 Recovery install

With SP Flash Tool: switch ON the option "DA DL All with Checksum".
Mark "recovery", select recovery.img from TWRP_Recovery.

The phone must be powered off, no battery. Click "Download", insert the phone cable.

All sound buttons + power to switch on the phone (cable ejected).

Lenovo A806 ROM flash readback

The phone arrived from China with a buggy altered firmware:
Hardware : MT6592
Model : Lenovo A806
Build number : VIBEUI_V2.0_9432_ST_A806
Build date UTC : 20140807-112632
Android  v : 4.4.2
Baseband v: A806.V30, 2014/07/31 14:53
Kernel v : 3.4.67 (buildslave@xmws58) (gcc version 4.7 (GCC) ) #1 SMP  Thu Aug 7 19:24:27 CST 2014


To backup the original firmware you need:

1) Preloader driver for MTK
2) MTK droid tools
3) SP flash tool

Backup process:
1) Get scatter file with MTK droid tool and phone switched on, debugging enabled
2) Eject the cable, power off the phone, eject the battery
3) Open SP flash tool, select the scatter file, go to the "Readback" tab, add new, put the number from the "Cache" partition start into the "Size" field.
4) Press "start readback", insert the battery, attach the cable.

I got a 1.4GB ROM file in 32 minutes.

http://www.theandroidhow.com/2014/05/how-to-backup-rom-dump-mtk-android.html
http://forum.xda-developers.com/showpost.php?p=44509214&postcount=407