Tips and Tricks for Ayufan's Bionic LXDE Image
#1
Thanks to a lot of hard work from Ayufan and others, we have a working Bionic image that does sound, hardware video, suspend-to-RAM, and has good power efficiency. Unfortunately, it doesn't quite work out of the box, so here are the tweaks I've used to enable and enhance my experience on Ayufan's Bionic LXDE 0.7.28.

Getting WiFi

Installing network-manager-gnome and gnome-keyring (used for storing configurations securely) permits connecting to all kinds of WiFi networks including WPA2-Enterprise.

Make sure to use wlan0 and not p2p0 as the interface.

BUGS: No icon in system tray; you just have to click in the tray area until you get it.

HiDPI Scaling

The 1080p display on the 11.6 inch form factor is very high-DPI and thus scaling may be desired. To enable this on LXDE, create a .Xresources file in the home directory and add

Xft.dpi: 130

Replace 130 with whatever DPI setting is desired. 130 is a sane default, if a little small for some.

Enabling GPU Acceleration

Ayufan makes available packages for the the sunxi / Mali drivers (run pine64_enablea_sunxidrm.sh and install), but in order to use them, the libMali.so binary (in /usr/lib/aarch64-linux-gnu/mali/) needs to be symlinked at /usr/lib/aarch64-linux-gnu/libEGL.so.1 and at /usr/lib/aarch64-linux-gnu/libGLESv2.so.2 and those libraries need to be entirely moved away or removed somehow.

Getting a Better Panel

XFCE4 provides very useful software for use with LXDE. Installing xfce4-power-manager, xfce4-panel, and xfce4-goodies gives you access to a much nicer panel and menu (Whisker Menu).

Edit .config/lxsession/LXDE/autostart and replace the lxpanel line with a line for xfce4-panel, then log in and out and configure xfce4-panel to your liking.

PulseAudio Control

PulseAudio is installed by default, but you need pavucontrol to change settings in a sensible way.

To add keyboard shortcuts, you need xfce4-pulseaudio-plugin and lxhotkey-plugin-openbox. Install them and add the pulseaudio plugin to your panel.
Leonora Tindall | https:///nora.codes
Pinebook 1080p / Pinebook Pro / Pinephone UBPorts CE
#2
Excellent post. Let me know if you'd rather have it moved to the tutorials subforum.
You can find me on IRC, Discord and Twitter


#3
(11-17-2018, 09:32 AM)LeoLambda Wrote: Thanks to a lot of hard work from Ayufan and others, we have a working Bionic image that does sound, hardware video, suspend-to-RAM, and has good power efficiency. Unfortunately, it doesn't quite work out of the box, so here are the tweaks I've used to enable and enhance my experience on Ayufan's Bionic LXDE 0.7.28.

Getting WiFi

Installing network-manager-gnome and gnome-keyring (used for storing configurations securely) permits connecting to all kinds of WiFi networks including WPA2-Enterprise.

Make sure to use wlan0 and not p2p0 as the interface.

BUGS: No icon in system tray; you just have to click in the tray area until you get it.

HiDPI Scaling

The 1080p display on the 11.6 inch form factor is very high-DPI and thus scaling may be desired. To enable this on LXDE, create a .Xresources file in the home directory and add

Xft.dpi: 130

Replace 130 with whatever DPI setting is desired. 130 is a sane default, if a little small for some.

Enabling GPU Acceleration

Ayufan makes available packages for the the sunxi / Mali drivers (run pine64_enablea_sunxidrm.sh and install), but in order to use them, the libMali.so binary (in /usr/lib/aarch64-linux-gnu/mali/) needs to be symlinked at /usr/lib/aarch64-linux-gnu/libEGL.so.1 and at /usr/lib/aarch64-linux-gnu/libGLESv2.so.2 and those libraries need to be entirely moved away or removed somehow.

Getting a Better Panel

XFCE4 provides very useful software for use with LXDE. Installing xfce4-power-manager, xfce4-panel, and xfce4-goodies gives you access to a much nicer panel and menu (Whisker Menu).

Edit .config/lxsession/LXDE/autostart and replace the lxpanel line with a line for xfce4-panel, then log in and out and configure xfce4-panel to your liking.

PulseAudio Control

PulseAudio is installed by default, but you need pavucontrol to change settings in a sensible way.

To add keyboard shortcuts, you need xfce4-pulseaudio-plugin and lxhotkey-plugin-openbox. Install them and add the pulseaudio plugin to your panel.

I was wondering if you had a link to this image?
#4
(11-17-2018, 03:49 PM)caps Wrote: I was wondering if you had a link to this image?

Yep! It's available on GitHub. Don't try the more recent builds; they both have broken suspend-to-RAM and sound (which is why they're marked prerelease).
Leonora Tindall | https:///nora.codes
Pinebook 1080p / Pinebook Pro / Pinephone UBPorts CE
#5
To have a wifi tray icon is not needed to install network-manager-gnome, there is an applet in the lxde panel to show it (search for Manage Networks applet) and you can use nmtui in CLI to add new networks.
#6
(11-18-2018, 06:36 AM)e-minguez Wrote: To have a wifi tray icon is not needed to install network-manager-gnome, there is an applet in the lxde panel to show it (search for Manage Networks applet) and you can use nmtui in CLI to add new networks.

Neither of these options support WPA2-Enterprise, so I can't use them to connect to my college's wireless.
Leonora Tindall | https:///nora.codes
Pinebook 1080p / Pinebook Pro / Pinephone UBPorts CE
#7
Can't login. After I enter "pine64" password, screen blinks and returns to login screen.
#8
The default user and password is 'alarm'

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
#9
i'm getting errors after I enable the accelerated driver following the guide above when i run es2_info

EGL_VERSION: 1.4 Linux-r6p0-01rel0
EGL_VENDOR: ARM
EGL_EXTENSIONS:
EGL_KHR_image, EGL_KHR_image_base, EGL_KHR_image_pixmap,
EGL_EXT_image_dma_buf_import, EGL_KHR_gl_texture_2D_image,
EGL_KHR_gl_texture_cubemap_image, EGL_KHR_gl_renderbuffer_image,
EGL_KHR_reusable_sync, EGL_KHR_fence_sync,
EGL_KHR_swap_buffers_with_damage, EGL_EXT_swap_buffers_with_damage,
EGL_KHR_lock_surface, EGL_KHR_lock_surface2,
EGL_EXT_create_context_robustness, EGL_ANDROID_blob_cache,
EGL_KHR_create_context, EGL_KHR_partial_update
EGL_CLIENT_APIS: OpenGL_ES
GL_VERSION: OpenGL ES 2.0
GL_RENDERER: Mali-400 MP
GL_EXTENSIONS:
GL_OES_texture_npot, GL_OES_vertex_array_object,
GL_OES_compressed_ETC1_RGB8_texture,
GL_EXT_compressed_ETC1_RGB8_sub_texture, GL_OES_standard_derivatives,
GL_OES_EGL_image, GL_OES_depth24, GL_ARM_rgba8,
GL_ARM_mali_shader_binary, GL_OES_depth_texture,
GL_OES_packed_depth_stencil, GL_EXT_texture_format_BGRA8888,
GL_OES_vertex_half_float, GL_EXT_blend_minmax, GL_OES_EGL_image_external,
GL_OES_EGL_sync, GL_OES_rgb8_rgba8, GL_EXT_multisampled_render_to_texture,
GL_EXT_discard_framebuffer, GL_OES_get_program_binary,
GL_ARM_mali_program_binary, GL_EXT_shader_texture_lod, GL_EXT_robustness,
GL_OES_depth_texture_cube_map, GL_KHR_debug,
GL_ARM_shader_framebuffer_fetch,
GL_ARM_shader_framebuffer_fetch_depth_stencil, GL_OES_mapbuffer
[xcb] Unknown request in queue while appending request
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
es2_info: ../../src/xcb_io.c:151: append_pending_request: Assertion `!xcb_xlib_unknown_req_pending' failed.
Aborted
_______________________________

when i reinstalled xcb related packages, it clobbered all the symlinks i made. any idea how to fix this?
_____________________________
I fixed them again:

/usr/lib/aarch64-linux-gnu$ ls -l libGLESv2*
lrwxrwxrwx 1 root root 15 Jan 22 18:57 libGLESv2.so -> mali/libMali.so
lrwxrwxrwx 1 root root 15 Jan 22 18:54 libGLESv2.so.2 -> mali/libMali.so
lrwxrwxrwx 1 root root 15 Jan 22 19:07 libGLESv2.so.2.0.0 -> mali/libMali.so

/usr/lib/aarch64-linux-gnu$ ls -l libEGL.so*
lrwxrwxrwx 1 root root 15 Jan 22 18:56 libEGL.so -> mali/libMali.so
lrwxrwxrwx 1 root root 15 Jan 22 18:55 libEGL.so.1 -> mali/libMali.so
lrwxrwxrwx 1 root root 15 Jan 22 19:05 libEGL.so.1.0.0 -> mali/libMali.so
__________________________________________
this is my mali dir:

/usr/lib/aarch64-linux-gnu$ ls -l mali/
total 1476
-rw-r--r-- 1 root root 32 Oct 24 08:32 ld.so.conf
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libEGL.so -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libEGL.so.1 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libEGL.so.1.0 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libEGL.so.1.0.0 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libEGL.so.1.4 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libEGL.so.1.4.0 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libGLESv1_CM.so -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libGLESv1_CM.so.1 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libGLESv1_CM.so.1.1 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libGLESv2.so -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libGLESv2.so.2 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libGLESv2.so.2.0 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libGLESv2.so.2.0.0 -> libMali.so
-rw-r--r-- 1 root root 1507224 Oct 24 08:32 libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libgbm.so -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libgbm.so.1 -> libMali.so
lrwxrwxrwx 1 root root 10 Oct 24 08:32 libgbm.so.1.0.0 -> libMali.so

any advice on fixing this would be awsome, should I make the symlinks reflect the mali dir in the parent directory?

thanks
Working as a Film Electric and I have been using Linux since around 2002. 
Like to play with Python and Jupyter Lab/Notebooks when not going to the park with my baby girl.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Write image to eMMC - Pinebook 11.6" irongarment 4 4,704 01-04-2022, 09:22 PM
Last Post: irongarment
  E: The repository 'http://pinebook.kde.org.uk bionic Release' no longer has a Release pixelpaperyarn 3 5,937 05-07-2021, 10:20 AM
Last Post: tophneal
  Display battery charge value with LXDE and lxpanel wlad 1 5,247 12-04-2019, 03:36 AM
Last Post: pnts-se
  KDE Neon Image - Where can i find the Kernel Source ? matze79 4 6,754 08-14-2019, 04:27 AM
Last Post: matze79
  Adding coherent_pool to boot.cmd on Xenial Mate by Ayufan causes boot loop k_mp 0 2,183 06-11-2019, 01:36 PM
Last Post: k_mp
  KDE Neon Pinebook remix edition RC image bshah 67 131,811 05-18-2019, 11:44 AM
Last Post: rookieone
  Battery Status in Bionic X-Istence 3 5,695 03-11-2019, 03:52 PM
Last Post: soupbowl
  Pinebook X11 cursor gone after updating ayufan 0.7.30 fatalhalt 0 2,147 12-02-2018, 10:15 PM
Last Post: fatalhalt
Star New Pinebook releases (28.10.2018) - Ayufan Luke 5 7,714 11-08-2018, 03:54 AM
Last Post: Luke
  Armbian 18.04 (Bionic) for Pinebook Luke 0 3,477 08-17-2018, 02:28 PM
Last Post: Luke

Forum Jump:


Users browsing this thread: 1 Guest(s)