Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
wiki
Commits
3ba6e7be
Commit
3ba6e7be
authored
6 years ago
by
Rahmanshaber
Browse files
Options
Downloads
Patches
Plain Diff
added display wiki page
parent
64f54a44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Display.mw
+61
-0
61 additions, 0 deletions
Display.mw
with
61 additions
and
0 deletions
Display.mw
0 → 100644
+
61
−
0
View file @
3ba6e7be
== 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]]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment