Display: Difference between revisions
Appearance
Rahmanshaber (talk | contribs) added display wiki page |
Rahmanshaber (talk | contribs) mNo edit summary |
||
Line 15: | Line 15: | ||
=== Rotate the touchscreen === | === 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> | 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: | And add one of the following line: | ||
Line 46: | Line 47: | ||
== Display Power Management == | == Display Power Management == | ||
To control display from a terminal, first set DISPLAY environment variable: | To control display from a terminal, first set DISPLAY environment variable: | ||
<source lang="shell"> | <source lang="shell"> | ||
Line 57: | Line 59: | ||
xset q # Prints current display status info | xset q # Prints current display status info | ||
</source> | </source> | ||
== Troubleshooting == | |||
Check the logs with <code>logread -f | grep x11</code> | |||
[[Category:Guide]] | [[Category:Guide]] |
Revision as of 14:06, 13 March 2019
Landscape mode
Rotate the screen
You can rotate adding the following configuration file: /etc/X11/xorg.conf.d/00-fbdev-rotate.conf
Section "Device" Identifier "LCD" Driver "fbdev" Option "Rotate" "CW" EndSection
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: /etc/udev/rules.d/90-device-samsung-i9070.rules
And add one of the following line:
# 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"
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:
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
Troubleshooting
Check the logs with logread -f | grep x11