Jump to content

Xfce4

From postmarketOS Wiki
Revision as of 17:47, 31 March 2018 by Sagethesagesage (talk | contribs) (Add status section and re-format each section to be uniform with other UI pages)
Samsung Galaxy SII running XFCE
Samsung Galaxy SII running XFCE
In postmarketOS
Package postmarketos-ui-xfce4
Status Available

Xfce4 is a GTK-based desktop environment aiming to be fast and lightweight.

Status

It works on most devices with a working display, and runs fine without hardware acceleration.

Installation

  • pmbootstrap init
  • User interface: xfce4
  • Extra packages: xf86-video-vesa mesa-egl
    • Add matchbox-keyboard to get an on-screen keyboard [1]

Calibrate the touchscreen

If you rotate 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"

Controlling display power management

To control display from a terminal first set DISPLAY environment variable like:

export DISPLAY=:0.0

xset command can be used to turn diplay on and off or set a display timeout value

xset dpms force off    # To turn off display
xset dpms force on     # To turn the display back on
xset q                 # Prints current display status info

applications| settings| windowmanager Default-xhdpi Font ... 16?

settings|panels, panel1, hide panel inteligently, 53 pixels. settings|panels, panel2, hide panel inteligently.

With configuration above, you get this. Only obvious problem is waste of space at top of the screen.

Simple status window without decorations can be put there. Plan is to display battery / signal status there: