Difference between revisions of "Lubuntu desktop"

From FriendlyELEC WiKi
Jump to: navigation, search
Line 1: Line 1:
 
[[Lubuntu desktop/zh|查看中文]]
 
[[Lubuntu desktop/zh|查看中文]]
 +
 +
===Rotate Display under Lubuntu Desktop===
 +
Firstly remove the "armsoc" configuration file:
 +
<syntaxhighlight lang="bash">
 +
sudo rm -f /usr/share/X11/xorg.conf.d/20-armsoc.conf
 +
</syntaxhighlight>
 +
 +
Create a new file "/etc/X11/xorg.conf":
 +
<syntaxhighlight lang="bash">
 +
sudo vi /etc/X11/xorg.conf
 +
</syntaxhighlight>
 +
 +
Here is the content of a typical xorg.conf file:
 +
<syntaxhighlight lang="bash">
 +
Section "Monitor"
 +
    Identifier          "Primary"
 +
    VendorName          "FriendlyARM"
 +
EndSection
 +
 +
Section "Device"
 +
    Identifier          "Primary"
 +
    Driver              "fbdev"
 +
    Option              "fbdev" "/dev/fb0"
 +
    Option              "Rotate" "CW"
 +
EndSection
 +
</syntaxhighlight>
 +
The configuration file sets display to rotate 90 degrees. The rotation angle is defined by "Rotate" which can be set to one of the following values:<br />
 +
CW    Rotate 90 degrees<br />
 +
UD    Rotate 180 degrees<br />
 +
CCW  Rotate 270 degrees<br />
 +
Save and reboot your board or start the lightdm service to make your change effective.

Revision as of 09:11, 18 December 2017

查看中文

Rotate Display under Lubuntu Desktop

Firstly remove the "armsoc" configuration file:

sudo rm -f /usr/share/X11/xorg.conf.d/20-armsoc.conf

Create a new file "/etc/X11/xorg.conf":

sudo vi /etc/X11/xorg.conf

Here is the content of a typical xorg.conf file:

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

The configuration file sets display to rotate 90 degrees. The rotation angle is defined by "Rotate" which can be set to one of the following values:
CW Rotate 90 degrees
UD Rotate 180 degrees
CCW Rotate 270 degrees
Save and reboot your board or start the lightdm service to make your change effective.