Skip to content
Snippets Groups Projects
Commit 3ba6e7be authored by Rahmanshaber's avatar Rahmanshaber
Browse files

added display wiki page

parent 64f54a44
No related branches found
No related tags found
No related merge requests found
== Landscape mode ==
=== Rotate the screen ===
You can rotate adding the following configuration file: <code>/etc/X11/xorg.conf.d/00-fbdev-rotate.conf</code>
<pre>
Section "Device"
Identifier "LCD"
Driver "fbdev"
Option "Rotate" "CW"
EndSection
</pre>
Reboot ,Then open the display app and set the correct resolution.
=== Rotate the touchscreen ===
In order to also rotate the touchscreen you need to change the udev rule: <code>/etc/udev/rules.d/90-device-samsung-i9070.rules</code>
And add one of the following line:
<pre>
# 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>
and reboot udev or the device.
NT: If you use the rotate screen code as it is use the # Right option to rotate the touch on the direction of rotated screen.
== Calibrate the touchscreen ==
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 ==
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>
[[Category:Guide]]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment