Jump to content

Xfce4: Difference between revisions

From postmarketOS Wiki
Gave ideas to improve touch-friendliness their own section. Replaced photos of phones with running screenshots. Other light re-wording and punctuation.
m Fix a small typo
Line 36: Line 36:
</source>
</source>


The <B>xset</B> command can be used to turn diplay on and off, or set a display timeout value.
The <B>xset</B> command can be used to turn display on and off, or set a display timeout value.
<source lang="shell">
<source lang="shell">
xset dpms force off    # To turn off display
xset dpms force off    # To turn off display

Revision as of 22:44, 27 July 2018

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"

Display Power Management

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

export DISPLAY=:0.0

The xset command can be used to turn display 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

Improving Touchscreen-Friendliness

Example configuration with matchbox-keyboard running on Galaxy SII

In Window Manager settings, changing the theme to Default-hdpi or Default-xhdpi will make window buttons and title bars larger. A font size of about 16 can work well with these themes.

In Panel settings, increasing panel height, and setting panels to hide Intelligently, will make them easier to interact with, without losing effective screen real estate.

This results in something like the right. The only obvious problem is the large, permanent, title bars.