Display: Difference between revisions
Rahmanshaber (talk | contribs) mNo edit summary |
Rahmanshaber (talk | contribs) added scaling and removed duplicate guide |
||
Line 1: | Line 1: | ||
== Landscape mode == | == Landscape mode == | ||
All this fixes need device reboot. | |||
=== Rotate the screen === | === Rotate the screen === | ||
Line 16: | Line 17: | ||
=== Rotate the touchscreen === | === Rotate the touchscreen === | ||
In order to also rotate the touchscreen you need to change the udev rule | In order to also rotate the touchscreen you need to change the udev rule by | ||
<pre> | |||
/etc/udev/rules.d/90-device-samsung-i9070.rules | |||
</pre> | |||
And add one of the following line: | And add one of the following line: | ||
<pre> | <pre> | ||
Line 28: | Line 32: | ||
ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 1 0 0" | ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 1 0 0" | ||
</pre> | </pre> | ||
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. | 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. | ||
== | == Scaling == | ||
Xfce4 and Mate Desktop supports gtk apps scaling out of the box. | |||
As for qt app you need to set up environment variable by | |||
<pre> | <pre> | ||
sudo nano /etc/ | sudo nano /etc/environment | ||
</pre> | </pre> | ||
And past this lines after comments | |||
<pre> | <pre> | ||
QT_SCALE_FACTOR=2 | |||
QT_AUTO_SCREEN_SCALE_FACTOR=2 | |||
</pre> | </pre> | ||
== Display Power Management == | == Display Power Management == |
Revision as of 12:00, 22 July 2019
Landscape mode
All this fixes need device reboot.
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 by
/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"
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.
Scaling
Xfce4 and Mate Desktop supports gtk apps scaling out of the box. As for qt app you need to set up environment variable by
sudo nano /etc/environment
And past this lines after comments
QT_SCALE_FACTOR=2 QT_AUTO_SCREEN_SCALE_FACTOR=2
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