gemian-debos-recipes/overlay/geminipda/etc/X11/xorg.conf.d/20-hwcomposer.conf
2023-06-13 19:45:03 +01:00

32 lines
1.3 KiB
Text

# Note: to set orientation to portrait requires a restart of X11 after updating
# this file and picking the correct touch screen orientation
# Astro Portrait (comment out all Rotate Options below)
# echo 1 | sudo tee /sys/devices/platform/touch/screen_rotation
# Astro Landscape (pick "Rotate" "CW" below)
# echo 8 | sudo tee /sys/devices/platform/touch/screen_rotation
Section "Monitor"
Identifier "Monitor0"
DisplaySize 148 68 # In millimeters - see physical_height/width in kernel sources (aeon_ssd2092_fhd_dsi_solomon.c - Cosmo)
# DisplaySize 68 148 # In millimeters - see physical_height/width in kernel sources (aeon_ssd2092_fhd_dsi_solomon.c - Cosmo)
EndSection
Section "Device"
Identifier "MediaTek HWC"
Driver "hwcomposer"
# Option "Rotate" "CW"
# Option "Rotate" "UD"
Option "Rotate" "CCW"
EndSection
Section "Screen"
Identifier "Screen0"
Device "MediaTek HWC"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
#Virtual 1440 720
#Virtual 1080 540
EndSubSection
EndSection