Difference between revisions of "Hildon"

From postmarketOS
Jump to: navigation, search
(removed redundant comma)
Line 6: Line 6:
 
| toolkit = GTK+2, [https://talk.maemo.org/showthread.php?t=96800 WIP: GTK+3]
 
| toolkit = GTK+2, [https://talk.maemo.org/showthread.php?t=96800 WIP: GTK+3]
 
}}
 
}}
 
+
[[File:Asus flo hildon.jpg|thumb|Hildon on the [[Google Nexus 7 2013 (asus-flo)|Nexus 7 2013]]]]
 
This is the desktop from Maemo, which is a Debian-based distribution that originally ran on the N900.<br />
 
This is the desktop from Maemo, which is a Debian-based distribution that originally ran on the N900.<br />
 
We do not have a <code>postmarketos-ui-hildon</code> yet (but that should be easy to make, look at <code>postmarketos-ui-weston</code> for reference if you're interested, dear reader).
 
We do not have a <code>postmarketos-ui-hildon</code> yet (but that should be easy to make, look at <code>postmarketos-ui-weston</code> for reference if you're interested, dear reader).

Revision as of 08:25, 20 November 2017

Hildon
Hildon running in QEMU
Hildon running in QEMU
Name Hildon
Graphics stack X11
Toolkit GTK+2, WIP: GTK+3
Hildon on the Nexus 7 2013

This is the desktop from Maemo, which is a Debian-based distribution that originally ran on the N900.
We do not have a postmarketos-ui-hildon yet (but that should be easy to make, look at postmarketos-ui-weston for reference if you're interested, dear reader).

Installation instructions

In pmbootstrap init, select hildon as user interface, then do the installation as usually. When running postmarketOS, it should boot automatically into Hildon now!

Running

hildon-desktop can be run in a horizontal view only. To run programs from the terminal you need to export DISPLAY=:0. To set it by default edit sudo nano /etc/profile.

Rotate screen using fbdev driver

In order to rotate the screen using the framebuffer, you need to create this file:

/etc/X11/xorg.conf.d/1-fbdev.conf

Section "Device"
  Identifier "LCD"
  Driver "fbdev"
  Option "Rotate" "CW"
EndSection

reference: https://www.x.org/archive//X11R6.8.0/doc/fbdev.4.html

Rotate screen using xrandr

In order to rotate the screen using xrandr, you need to edit a file and put xrandr -o right or xrandr -o left:

sudo nano /etc/postmarketos-ui/xinitrc_hildon.sh
xrandr -o right
exec hildon-desktop

Calibrate the touchscreen

After rotating the screen change/add a value in this file:

sudo nano /etc/udev/rules.d/90-android-touch-dev.rules
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1", \
# default			ENV{LIBINPUT_CALIBRATION_MATRIX}="1 0 0 0 1 0"
# Left - 90 degree clockwise	ENV{LIBINPUT_CALIBRATION_MATRIX}="0 -1 1 1 0 0"
# 180 degree clockwise		ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1"
# Right - 270 degree clockwise	ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"
# reflect along y axis		ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 1 0 0"

Performance issues

Software rendering is slow. A possible fix is in the Software OpenGL article with TinyGLES and similar software.

See also