Jump to content

Xfce4: Difference between revisions

From postmarketOS Wiki
m Fix a small typo
No edit summary
Line 8: Line 8:
== Status ==
== Status ==


It works on most devices with a working display, and runs fine without hardware acceleration.
It works on most devices with a working display, and runs fine without hardware acceleration. Uses packages from Alpine repo.


== Installation ==
== Installation ==
Line 16: Line 16:
** Add <code>matchbox-keyboard</code> to get an on-screen keyboard [https://postmarketos.org/static/img/2017-12/xfce4-i9505.jpg]
** Add <code>matchbox-keyboard</code> to get an on-screen keyboard [https://postmarketos.org/static/img/2017-12/xfce4-i9505.jpg]


== Calibrate the touchscreen ==
== Guide ==
If you rotate the screen, change/add a value in this file:
<pre>
sudo nano /etc/udev/rules.d/90-android-touch-dev.rules
</pre>
<pre>
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"
</pre>


== Display Power Management ==
Follow the [https://wiki.postmarketos.org/wiki/Display Display] guide to change and fix display related issues.
To control display from a terminal, first set DISPLAY environment variable:
<source lang="shell">
export DISPLAY=:0.0
</source>
 
The <B>xset</B> command can be used to turn display on and off, or set a display timeout value.
<source lang="shell">
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
</source>


==Improving Touchscreen-Friendliness==
==Improving Touchscreen-Friendliness==

Revision as of 14:15, 13 March 2019

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. Uses packages from Alpine repo.

Installation

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

Guide

Follow the Display guide to change and fix display related issues.

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.