[SOLVED] Wandboard Quad X11 in portrait mode (rotate screen)

This forum is for supported devices using an ARMv7 Freescale SoC.

[SOLVED] Wandboard Quad X11 in portrait mode (rotate screen)

Postby enzeneer » Sat Nov 15, 2014 10:31 pm

Hello,

I'm using the gpu-viv-bin-mx6q-fb + xf86-video-fbdev as given in this thread http://archlinuxarm.org/forum/viewtopic.php?f=45&t=7139 with minimal X configuration (lwm). Monitor is connected through HDMI and words great at 1920x1080.

My requirement is to use the monitor in portrait mode.

I tried several settings with xrandr to no avail. This is info from xrandr
$this->bbcode_second_pass_code('', '
# xrandr -q --verbose
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 (0x53) normal (normal) 0mm x 0mm
Identifier: 0x52
Timestamp: 1622304
Subpixel: unknown
Clones:
CRTC: 0
CRTCs: 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
1920x1080 (0x53) 124.416MHz *current
h: width 1920 start 0 end 0 total 1920 skew 0 clock 64.80KHz
v: height 1080 start 0 end 0 total 1080 clock 60.00Hz
')
This is info from fbset:
$this->bbcode_second_pass_code('', '
# fbset -i -v
Linux Frame Buffer Device Configuration Version 2.1 (23/06/1999)
(C) Copyright 1995-1999 by Geert Uytterhoeven

Opening frame buffer device `/dev/fb0'
Using current video mode from `/dev/fb0'

mode "1920x1080-60"
# D: 148.500 MHz, H: 67.500 kHz, V: 60.000 Hz
geometry 1920 1080 1920 1080 32
timings 6734 148 88 36 4 44 5
hsync high
vsync high
rgba 8/16,8/8,8/0,8/24
endmode

Getting further frame buffer information
Frame buffer device information:
Name : DISP3 BG
Address : 0x76a00000
Size : 8294400
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 1
YPanStep : 1
YWrapStep : 1
LineLength : 7680
Accelerator : No
')
$this->bbcode_second_pass_code('', '
# xrandr --verbose --output default --rotate right
xrandr: output default cannot use rotation "right" reflection "none"

# xrandr --verbose --output default --rotate left
xrandr: output default cannot use rotation "left" reflection "none"

# xrandr --verbose -o left
SZ: Pixels Physical Refresh
*0 1920 x 1080 ( 508mm x 286mm ) *60
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none
Setting size to 0, rotation to left
Setting reflection on neither axis
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 2 (RRSetScreenConfig)
Serial number of failed request: 14
Current serial number in output stream: 14
')

I noticed that CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set in the kernel. But that is only for the the console anyway, isn't it?

I tried adding Option "Rotate" "left" to the /etc/X11/xorg.conf.d/20-vivante.conf but no go.

How can I permanently rotate the display to portrait mode? What more information would you need?
Last edited by enzeneer on Sun Nov 16, 2014 5:35 am, edited 1 time in total.
enzeneer
 
Posts: 19
Joined: Thu Nov 06, 2014 4:12 am

Re: Wandboard Quad X11 in portrait mode (rotate screen)

Postby pepedog » Sat Nov 15, 2014 11:55 pm

I'm no expert, but thought xf86-video-modesetting did this job? Or is it xinerama?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Wandboard Quad X11 in portrait mode (rotate screen)

Postby enzeneer » Sun Nov 16, 2014 5:34 am

pepedog, you are a genius! Thank you for pointing me in the right direction.

Though the modesettings driver is not the right one, I checked the documentation for the fbdev driver I was using.

And it has a Rotate option!

So I added Option "Rotate" "CW" in the Device section of /etc/X11/xorg.conf.d/20-vivante.conf and voila! the X server launches in portrait mode.

The curious thing is, xrandr now returns "RandR extension missing". Don't know what's up with that. Also no idea why xrandr did not work in the first place. I'm guessing that somehow the two are working at different levels of the X stack.

Now I only have one more thing to do: hardware accelerated (vpu) video decoding in the browser (chromium).

Thank you once again.
enzeneer
 
Posts: 19
Joined: Thu Nov 06, 2014 4:12 am

Re: [SOLVED] Wandboard Quad X11 in portrait mode (rotate scr

Postby pepedog » Sun Nov 16, 2014 10:45 am

I read that "XRandR and Xinerama are mutually exclusive that is why “RandR missing extension” shows up."
http://compulab.co.il/utilite-computer/ ... 6308#p6308
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [SOLVED] Wandboard Quad X11 in portrait mode (rotate scr

Postby enzeneer » Mon Nov 17, 2014 5:07 am

hmmm ... I'm not really using Xinerama, but maybe the rotation of the fb causes xrandr go to into spin ...
enzeneer
 
Posts: 19
Joined: Thu Nov 06, 2014 4:12 am


Return to Freescale

Who is online

Users browsing this forum: No registered users and 6 guests