Power & Source of Big Ideas

Rotate display

Moderators: chensy, FATechsupport

How do I rotate the display to landscape mode in Debian on the NeoPi S2?
fix change x11's config ok support rotate
Save this code and name it "xorg.conf" , copy to /etc/X11/


Code: Select all

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# Copyright (C) Guangzhou FriendlyARM Computer Tech. Co., Ltd.
# (http://www.friendlyarm.com)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, you can access it online at
# http://www.gnu.org/licenses/gpl-2.0.html.

Section "Monitor"
    Identifier          "Primary"
    VendorName          "FriendlyARM"
EndSection

Section "Device"
    Identifier          "Primary"
    Driver              "fbdev"
    Option              "fbdev" "/dev/fb0"
    Option              "Rotate" "CW"
EndSection

Section "Screen"
    Identifier          "Screen0"
    Device              "Primary"
    Monitor             "Primary"
    DefaultDepth         24
    SubSection          "Display"
        Depth            24
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier          "DefaultLayout"
    Screen              "Screen0"
EndSection

Section "InputClass"
    Identifier          "touchscreen"
    MatchIsTouchscreen  "on"
    MatchDevicePath     "/dev/input/event*"
    Driver              "evdev"
    Option              "SwapAxes" "true"
    Option              "InvertX" "false"
    Option              "InvertY" "true"
EndSection

Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 guests (based on users active over the past 5 minutes)
Most users ever online was 825 on Wed Aug 28, 2019 3:18 pm

Users browsing this forum: No registered users and 12 guests