Rotate screen & touchscreen (LCD7 cap)

Hi,

I’m trying to rotate the screen by 90° of my beaglebone.

I don’t want to edit the xorg.conf because later i will disable gnome.

So, I tried to rotate the screen with that :

echo 1 > /sys/class/graphics/fb0/rotate

but it didn’t work :frowning: .

Can someone explain to me why ? What I’ve to do to enable rotation of the screen and the touchscreen also.

Thx you very much.

Have you tried xrandr?

David

Well,

Thx for the advise. But i can’t find the output name for the LCD 7 CAP. The command xrandr give:

screen 0: minimum 800x480, current 800x480 maximum 800x480
default connected 800x480+0+0 0mm x 0 mm
800x480 62.*

Also will it be possible with this tools ( looks like ) to rotate the screen by 90° so that the resolution will be : 480*800.

Why ? Because I need to put the screen vertically, that why I need to have a resolution 480*800.

I have an another question, it is about the xorg.conf :

Section “Module”

Load “extmod”

Load “dbe”

Load “glx”

Load “freetype”

Load “type1”

Load “record”

Load “dri”

EndSection

Section “Monitor” $

Identifier “Builtin Default Monitor”

EndSection

Section “Device”

Identifier “Builtin Default fbdev Device 0”

Driver “fbdev”

EndSection

Section “Screen”

Identifier “Builtin Default fbdev Screen 0”

Device “Builtin Default fbdev Device 0”

Monitor “Builtin Default Monitor”

EndSection

Section “ServerLayout”

Identifier “Builtin Default Layout” $

Screen “Builtin Default fbdev Screen 0”

EndSection

I can’t figure out, where is the device touch screen and the device lcd ? Can someone explain to us what is each section ? Thx !

The Beaglebone is amazing!

Mickae1,

Well,

Thx for the advise. But i can’t find the output name for the LCD 7 CAP. The

command xrandr give:

Look in the X log, it will give you the relevant display name

screen 0: minimum 800x480, current 800x480 maximum 800x480

default connected 800x480+0+0 0mm x 0 mm

800x480 62.*

Also will it be possible with this tools ( looks like ) to rotate the

screen by 90° so that the resolution will be : 480*800.

Yes, provided the driver supports RANDR.

Why ? Because I need to put the screen vertically, that why I need to have

a resolution 480*800.

I have an another question, it is about the xorg.conf :

Section “Module”

Load “extmod”

Load “dbe”

Load “glx”

Load “freetype”

Load “type1”

Load “record”

Load “dri”

EndSection

Section “Monitor”

$

Identifier “Builtin Default Monitor”

EndSection

Section “Device”

Identifier “Builtin Default fbdev Device 0”

Driver “fbdev”

EndSection

Section “Screen”

Identifier “Builtin Default fbdev Screen 0”

Device “Builtin Default fbdev Device 0”

Monitor “Builtin Default Monitor”

EndSection

Section “ServerLayout”

Identifier “Builtin Default Layout”

$

Screen “Builtin Default fbdev Screen 0”

EndSection

I can’t figure out, where is the device touch screen and the device lcd ?

Can someone explain to us what is each section ? Thx !

These days most people tun without any xorg.conf file because it finds things

out all by itself. You only need to specify the things that you want to

override or it can not find by probing.

David

Thx for the advice, I found :

[684947.656] (II) FBDEV(0): using default device
[684947.656] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[684947.656] (II) FBDEV(0): Creating default Display subsection in Screen section
“Builtin Default fbdev Screen 0” for depth/fbbpp 16/16
[684947.656] (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16

the log show that it use the default device, which don’t help me.

Also, I was able to rotate the screen with the xorg.conf with :

Section “Device”
Identifier “Builtin Default fbdev Device 0”
Driver “fbdev”
Option “Rotate” “CW”
EndSection

but the screen is not anymore calibrate …

Do you have some idea ?

Thx,

You do not need the display name if there is only one:-

xrandr -o left

will rotate the screen through 90 degrees to the left.

David

Well, I got :

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 139 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Serial number of failed request: 14
Current serial number in output stream: 14

I don’t understand what it means :frowning:

Well, I got :

X Error of failed request: BadMatch (invalid parameter attributes)

Major opcode of failed request: 139 (RANDR)

Minor opcode of failed request: 2 (RRSetScreenConfig)

Serial number of failed request: 14

Current serial number in output stream: 14

I don’t understand what it means :frowning:

It may be that the device driver does not support RANDR (not all do).

In which case there is probably no way to do it.

David

So, the only way to do it, would be by ( which work ) :

Section “Device”
Identifier “Builtin Default fbdev Device 0”
Driver “fbdev”

Option “Rotate” “CW”
EndSection

But how to rotate also the calibration ? Do I have to use ts_calibrate ?
How can i apply the file generated by ts_calibrate to gnome ?

Thx,

So, the only way to do it, would be by ( which work ) :

Section “Device”

Identifier “Builtin Default fbdev Device 0”

Driver “fbdev”

Option “Rotate” “CW”

EndSection

But how to rotate also the calibration ? Do I have to use ts_calibrate ?

How can i apply the file generated by ts_calibrate to gnome ?

Sorry, I have no idea, never having used that option.

David

I found the solutions ^^ .

Here:

nano /usr/share/X11/xorg.conf.d/10-evdev.conf

you have :

Section “InputClass”

Identifier “evdev touchscreen catchall”

MatchIsTouchscreen “on”

MatchDevicePath “/dev/input/event*”

Driver “evdev”

EndSection

it’s where the touchscreen data are initialized. You have to invert the X and the Y :

http://www.x.org/archive/X11R7.5/doc/man/man4/evdev.4.html

which is :

**Option "SwapAxes" "***Bool***"**
Swap x/y axes. Default: off. Property: "Evdev Axes Swap".

And yes it works ^^.

Hi Sir ,

I was able to rotate the display by the below method display now works fine in portrait mode .
But i having a new issue in System settings–> Display settings.
It shows “Could not get screen information RANDR extension is not present”.
If you have any inputs on this issue please let me know.

Regards ,
Jimmy