All of lore.kernel.org
 help / color / mirror / Atom feed
From: Riccardo Stronati <r.stronati@gmail.com>
To: koansoftware@gmail.com
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: Screen rotation
Date: Wed, 3 Sep 2014 10:50:43 +0200	[thread overview]
Message-ID: <CABhF65FSqMfpp1RDfQsU9b3sTqZ0WM+LFrZqGmQnNLfY09M68g@mail.gmail.com> (raw)
In-Reply-To: <5406D183.9090204@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 18318 bytes --]

I'm not able to play with xrandr, I get an error, seems that the video
output is not populated:

root@edm-fairy-imx6:~# xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 600, current 1024 x 600, maximum 1024 x 600
default connected 1024x600+0+0 0mm x 0mm
   1024x600       61.0*

I paste the xorg.log for your interest:

edm-fairy-imx6:~# cat /var/log/Xorg.0.log
[910888.385] _
XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
[910888.386] _XSERVTransOpen: transport open failed for
inet6/edm-fairy-imx6:0
[910888.386] _XSERVTransMakeAllCOTSServerListeners: failed to open listener
for inet6
[910888.456]
X.Org X Server 1.14.0
Release Date: 2013-03-05
[910888.457] X Protocol Version 11, Revision 0
[910888.457] Build Operating System: Linux 3.13.0-32-generic x86_64
[910888.457] Current Operating System: Linux edm-fairy-imx6
3.0.35-4.1.0-edm_fairy+gb417315 #1 SMP PREEMPT Mon Sep 1 22:52:58 UTC 2014
armv7l
[910888.457] Kernel command line: console=ttymxc0,115200
root=/dev/mmcblk1p2 rootwait rw
display0=dev=lvds0,mode=LDB-WSVGA,if=RGB18,bpp=32
display1=dev=hdmi0,mode=1280x720@60,if2
[910888.457] Build Date: 25 August 2014  09:02:28PM
[910888.457]
[910888.458] Current version of pixman: 0.30.2
[910888.458]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[910888.458] Markers: (--) probed, (**) from config file, (==) default
setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[910888.459] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Sep  2
12:16:01 2014
[910888.485] (==) Using config file: "/etc/X11/xorg.conf"
[910888.486] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[910888.500] (==) No Layout section.  Using the first Screen section.
[910888.500] (**) |-->Screen "Default Screen" (0)
[910888.500] (**) |   |-->Monitor "<default monitor>"
[910888.516] (**) |   |-->Device "i.MX Accelerated Framebuffer Device"
[910888.516] (==) No monitor specified for screen "Default Screen".
        Using a default monitor configuration.
[910888.516] (**) Option "BlankTime" "0"
[910888.517] (**) Option "StandbyTime" "0"
[910888.517] (**) Option "SuspendTime" "0"
[910888.517] (**) Option "OffTime" "0"
[910888.517] (==) Automatically adding devices
[910888.517] (==) Automatically enabling devices
[910888.517] (==) Automatically adding GPU devices
[910888.537] (WW) The directory "/usr/share/fonts/X11/misc/" does not exist.
[910888.537]    Entry deleted from font path.
[910888.537] (WW) The directory "/usr/share/fonts/X11/TTF/" does not exist.
[910888.537]    Entry deleted from font path.
[910888.537] (WW) The directory "/usr/share/fonts/X11/OTF/" does not exist.
[910888.537]    Entry deleted from font path.
[910888.537] (WW) The directory "/usr/share/fonts/X11/Type1/" does not
exist.
[910888.538]    Entry deleted from font path.
[910888.538] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not
exist.
[910888.538]    Entry deleted from font path.
[910888.538] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not
exist.
[910888.538]    Entry deleted from font path.
[910888.538] (==) FontPath set to:

[910888.538] (==) ModulePath set to "/usr/lib/xorg/modules"
[910888.538] (==) |-->Input Device "Touchscreen"
[910888.539] (==) No Layout section. Using the first core pointer device.
[910888.539] (II) The server relies on udev to provide the list of input
devices.
        If no devices become available, reconfigure udev or disable
AutoAddDevices.
[910888.550] (II) Loader magic: 0x1a5dc0
[910888.550] (II) Module ABI versions:
[910888.550]    X.Org ANSI C Emulation: 0.4
[910888.551]    X.Org Video Driver: 14.1
[910888.551]    X.Org XInput driver : 19.1
[910888.551]    X.Org Server Extension : 7.0
[910888.553] (II) config/udev: Adding drm device (/dev/dri/card0)
[910888.555] (II) Open APM successful
[910888.555] Initializing built-in extension Generic Event Extension
[910888.555] Initializing built-in extension SHAPE
[910888.555] Initializing built-in extension MIT-SHM
[910888.555] Initializing built-in extension XInputExtension
[910888.555] Initializing built-in extension XTEST
[910888.556] Initializing built-in extension BIG-REQUESTS
[910888.556] Initializing built-in extension SYNC
[910888.556] Initializing built-in extension XKEYBOARD
[910888.556] Initializing built-in extension XC-MISC
[910888.556] Initializing built-in extension XFIXES
[910888.556] Initializing built-in extension RENDER
[910888.556] Initializing built-in extension RANDR
[910888.556] Initializing built-in extension COMPOSITE
[910888.557] Initializing built-in extension DAMAGE
[910888.557] Initializing built-in extension MIT-SCREEN-SAVER
[910888.557] Initializing built-in extension DOUBLE-BUFFER
[910888.557] Initializing built-in extension DPMS
[910888.557] Initializing built-in extension X-Resource
[910888.557] Initializing built-in extension XVideo
[910888.557] Initializing built-in extension XVideo-MotionCompensation
[910888.558] Initializing built-in extension XFree86-VidModeExtension
[910888.558] Initializing built-in extension XFree86-DGA
[910888.558] Initializing built-in extension XFree86-DRI
[910888.558] Initializing built-in extension DRI2
[910888.558] (II) LoadModule: "glx"
[910888.630] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[910888.682] (II) Module glx: vendor="X.Org Foundation"
[910888.682]    compiled for 1.14.0, module version = 1.0.0
[910888.682]    ABI class: X.Org Server Extension, version 7.0
[910888.683] (==) AIGLX enabled
[910888.683] Loading extension GLX
[910888.683] (II) LoadModule: "vivante"
[910888.684] (II) Loading /usr/lib/xorg/modules/drivers/vivante_drv.so
[910888.828] (II) Module vivante: vendor="X.Org Foundation"
[910888.829]    compiled for 1.14.0, module version = 1.0.0
[910888.829]    ABI class: X.Org Video Driver, version 14.1
[910888.829] Loading extension vivext
[910888.829] (II) LoadModule: "tslib"
[910888.837] (II) Loading /usr/lib/xorg/modules/input/tslib_drv.so
[910888.852] (II) Module tslib: vendor="X.Org Foundation"
[910888.852]    compiled for 1.14.0, module version = 0.0.1
[910888.852]    Module class: X.Org XInput Driver
[910888.852]    ABI class: X.Org XInput driver, version 19.1
[910888.852] (II) VIVANTE: fb driver for vivante: VivanteGC500,
VivanteGC2100,
        VivanteGCCORE
[910888.853] (--) using VT number 1

[910888.937] (WW) Falling back to old probe method for vivante
[910888.937] (II) Loading sub module "fbdevhw"
[910888.937] (II) LoadModule: "fbdevhw"
[910888.958] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[910888.971] (II) Module fbdevhw: vendor="X.Org Foundation"
[910888.971]    compiled for 1.14.0, module version = 0.0.2
[910888.971]    ABI class: X.Org Video Driver, version 14.1
[910888.972] (II) VIVANTE(0): using default device
[910888.972] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card
support
[910888.972] (II) VIVANTE(0): Creating default Display subsection in Screen
section
        "Default Screen" for depth/fbbpp 24/32
[910888.972] (**) VIVANTE(0): Depth 24, (--) framebuffer bpp 32
[910888.972] (==) VIVANTE(0): RGB weight 888
[910888.973] (==) VIVANTE(0): Default visual is TrueColor
[910888.973] (==) VIVANTE(0): Using gamma correction (1.0, 1.0, 1.0)
[910888.973] (II) VIVANTE(0): hardware: DISP3 BG (video memory: 2400kB)
[910888.973] (II) VIVANTE(0): checking modes against framebuffer device...
[910888.973] (II) VIVANTE(0): checking modes against monitor...
[910888.973] (--) VIVANTE(0): Virtual size is 1024x600 (pitch 1024)
[910888.973] (**) VIVANTE(0):  Built-in mode "current": 51.5 MHz, 38.6 kHz,
60.8 Hz
[910888.974] (II) VIVANTE(0): Modeline "current"x0.0   51.50  1024 1144
1244 1334  600 601 634 635 +hsync -vsync -csync (38.6 kHz b)
[910888.974] (==) VIVANTE(0): DPI set to (96, 96)
[910888.974] (II) Loading sub module "fb"
[910888.974] (II) LoadModule: "fb"
[910888.975] (II) Loading /usr/lib/xorg/modules/libfb.so
[910889.630] (II) Module fb: vendor="X.Org Foundation"
[910889.631]    compiled for 1.14.0, module version = 1.0.0
[910889.631]    ABI class: X.Org ANSI C Emulation, version 0.4
[910889.631] (II) Loading sub module "exa"
[910889.631] (II) LoadModule: "exa"
[910889.633] (II) Loading /usr/lib/xorg/modules/libexa.so
[910889.735] (II) Module exa: vendor="X.Org Foundation"
[910889.735]    compiled for 1.14.0, module version = 2.6.0
[910889.735]    ABI class: X.Org Video Driver, version 14.1
[910889.735] (--) Depth 24 pixmap format is 32 bpp
[910890.378] (II) VIVANTE(0): FB Start = 0x4482e000  FB Base = 0x4482e000
FB Offset = (nil)
[910890.425] (II) VIVANTE(0): test Initializing EXA
[910890.425] (II) VIVANTE(0): (driver build from: -dirty)
[910890.426] (II) EXA(0): Driver allocated offscreen pixmaps
[910890.426] (II) EXA(0): Driver registered support for the following
operations:
[910890.426] (II)         Solid
[910890.426] (II)         Copy
[910890.426] (II)         Composite (RENDER acceleration)
[910890.426] (II)         UploadToScreen
[910890.484] (==) VIVANTE(0): Backing store disabled
[910890.487] (==) VIVANTE(0): DPMS enabled
[910890.504] drmOpenDevice: node name is /dev/dri/card0
[910890.504] drmOpenDevice: open result is 11, (OK)
[910890.504] drmOpenDevice: node name is /dev/dri/card0
[910890.505] drmOpenDevice: open result is 11, (OK)
[910890.505] drmOpenByBusid: Searching for BusID platform:Vivante GCCore:00
[910890.505] drmOpenDevice: node name is /dev/dri/card0
[910890.505] drmOpenDevice: open result is 11, (OK)
[910890.505] drmOpenByBusid: drmOpenMinor returns 11
[910890.505] drmOpenByBusid: drmGetBusid reports platform:Vivante GCCore:00
[910890.505] (II) [drm] DRM interface version 1.4
[910890.506] (II) [drm] DRM open master succeeded.
[910890.506] (II) VIVANTE(0): [drm] Using the DRM lock SAREA also for
drawables.
[910890.506] (II) VIVANTE(0): [drm] framebuffer handle = 0x14000000
[910890.506] (II) VIVANTE(0): [drm] added 1 reserved context for kernel
[910890.507] (II) VIVANTE(0): X context handle = 0x1
[910890.507] (II) VIVANTE(0): [drm] installed DRM signal handler
[910890.507] (II) VIVANTE(0): [DRI] installation complete
[910890.507] (==) RandR enabled
[910890.600] (II) AIGLX: Screen 0 is not DRI2 capable
[910890.600] drmOpenDevice: node name is /dev/dri/card0
[910890.600] drmOpenDevice: open result is 12, (OK)
[910890.600] drmOpenByBusid: Searching for BusID platform:Vivante GCCore:00
[910890.601] drmOpenDevice: node name is /dev/dri/card0
[910890.601] drmOpenDevice: open result is 12, (OK)
[910890.601] drmOpenByBusid: drmOpenMinor returns 12
[910890.601] drmOpenByBusid: Interface 1.4 failed, trying 1.1
[910890.601] drmOpenByBusid: drmGetBusid reports platform:Vivante GCCore:00
[910890.865] (EE) AIGLX error: vivante exports no extensions
(/usr/lib/dri/vivante_dri.so: undefined symbol: __driDriverExtensions)
[910890.865] (EE) AIGLX: reverting to software rendering
[910891.290] (II) AIGLX: Loaded and initialized swrast
[910891.290] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[910891.925] (II) Using input driver 'tslib' for 'Touchscreen'
[910891.926] (**) Option "SendCoreEvents" "true"
[910891.926] (**) Option "CorePointer" "on"
[910891.926] (**) Touchscreen: always reports core events
[910891.926] (**) Touchscreen: always reports core events
[910891.982] (II) XINPUT: Adding extended input device "Touchscreen" (type:
TOUCHSCREEN, id 6)
[910891.982] xf86TslibControlProc
[910891.982] (**) Touchscreen: (accel) keeping acceleration scheme 1
[910891.982] (**) Touchscreen: (accel) acceleration profile 0
[910891.982] (**) Touchscreen: (accel) acceleration factor: 2.000
[910891.983] (**) Touchscreen: (accel) acceleration threshold: 4
[910891.983] xf86TslibControlProc
[910892.005] (II) config/udev: Adding input device PIXART USB OPTICAL MOUSE
(/dev/input/event3)
[910892.005] (**) PIXART USB OPTICAL MOUSE: Applying InputClass "evdev
pointer catchall"
[910892.005] (II) LoadModule: "evdev"
[910892.006] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[910892.032] (II) Module evdev: vendor="X.Org Foundation"
[910892.033]    compiled for 1.14.0, module version = 2.8.1
[910892.033]    Module class: X.Org XInput Driver
[910892.033]    ABI class: X.Org XInput driver, version 19.1
[910892.033] (II) Using input driver 'evdev' for 'PIXART USB OPTICAL MOUSE'
[910892.033] (**) PIXART USB OPTICAL MOUSE: always reports core events
[910892.033] (**) evdev: PIXART USB OPTICAL MOUSE: Device:
"/dev/input/event3"
[910892.034] (--) evdev: PIXART USB OPTICAL MOUSE: Vendor 0x93a Product
0x2510
[910892.034] (--) evdev: PIXART USB OPTICAL MOUSE: Found 3 mouse buttons
[910892.034] (--) evdev: PIXART USB OPTICAL MOUSE: Found scroll wheel(s)
[910892.034] (--) evdev: PIXART USB OPTICAL MOUSE: Found relative axes
[910892.034] (--) evdev: PIXART USB OPTICAL MOUSE: Found x and y relative
axes
[910892.034] (II) evdev: PIXART USB OPTICAL MOUSE: Configuring as mouse
[910892.035] (II) evdev: PIXART USB OPTICAL MOUSE: Adding scrollwheel
support
[910892.035] (**) evdev: PIXART USB OPTICAL MOUSE: YAxisMapping: buttons 4
and 5
[910892.035] (**) evdev: PIXART USB OPTICAL MOUSE: EmulateWheelButton: 4,
EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[910892.035] (**) Option "config_info"
"udev:/sys/devices/platform/fsl-ehci.1/usb2/2-1/2-1.1/2-1.1:1.0/input/input3/event3"
[910892.035] (II) XINPUT: Adding extended input device "PIXART USB OPTICAL
MOUSE" (type: MOUSE, id 7)
[910892.036] (II) evdev: PIXART USB OPTICAL MOUSE: initialized for relative
axes.
[910892.037] (**) PIXART USB OPTICAL MOUSE: (accel) keeping acceleration
scheme 1
[910892.038] (**) PIXART USB OPTICAL MOUSE: (accel) acceleration profile 0
[910892.038] (**) PIXART USB OPTICAL MOUSE: (accel) acceleration factor:
2.000
[910892.038] (**) PIXART USB OPTICAL MOUSE: (accel) acceleration threshold:
4
[910892.041] (II) config/udev: Adding input device PIXART USB OPTICAL MOUSE
(/dev/input/mouse1)
[910892.041] (II) No input driver specified, ignoring this device.
[910892.041] (II) This device may have been added with another device file.
[910892.044] (II) config/udev: Adding input device accelerometer
(/dev/input/event1)
[910892.044] (II) No input driver specified, ignoring this device.
[910892.044] (II) This device may have been added with another device file.
[910892.049] (II) config/udev: Adding input device ADS7846 Touchscreen
(/dev/input/event0)
[910892.049] (**) ADS7846 Touchscreen: Applying InputClass "evdev
touchscreen catchall"
[910892.049] (II) Using input driver 'evdev' for 'ADS7846 Touchscreen'
[910892.049] (**) ADS7846 Touchscreen: always reports core events
[910892.049] (**) evdev: ADS7846 Touchscreen: Device: "/dev/input/event0"
[910892.050] (--) evdev: ADS7846 Touchscreen: Vendor 0 Product 0
[910892.050] (--) evdev: ADS7846 Touchscreen: Found absolute axes
[910892.050] (--) evdev: ADS7846 Touchscreen: Found x and y absolute axes
[910892.050] (--) evdev: ADS7846 Touchscreen: Found absolute touchscreen
[910892.050] (II) evdev: ADS7846 Touchscreen: Configuring as touchscreen
[910892.050] (**) evdev: ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5
[910892.050] (**) evdev: ADS7846 Touchscreen: EmulateWheelButton: 4,
EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[910892.050] (**) Option "config_info"
"udev:/sys/devices/platform/imx6q-ecspi.0/spi_master/spi0/spi0.0/input/input0/event0"
[910892.051] (II) XINPUT: Adding extended input device "ADS7846
Touchscreen" (type: TOUCHSCREEN, id 8)
[910892.051] (II) evdev: ADS7846 Touchscreen: initialized for absolute axes.
[910892.052] (**) ADS7846 Touchscreen: (accel) keeping acceleration scheme 1
[910892.052] (**) ADS7846 Touchscreen: (accel) acceleration profile 0
[910892.052] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
[910892.053] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
[910892.055] (II) config/udev: Adding input device ADS7846 Touchscreen
(/dev/input/mouse0)
[910892.055] (II) No input driver specified, ignoring this device.
[910892.055] (II) This device may have been added with another device file.
[910892.056] (II) config/udev: Adding drm device (/dev/dri/card0)
[910892.059] (II) config/udev: Adding input device mag3110
(/dev/input/event2)
[910892.059] (II) No input driver specified, ignoring this device.
[910892.059] (II) This device may have been added with another device file.
root@edm-fairy-imx6:~# xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 600, current 1024 x 600, maximum 1024 x 600
default connected 1024x600+0+0 0mm x 0mm
   1024x600       61.0*



2014-09-03 10:29 GMT+02:00 Marco <koansoftware@gmail.com>:

> Il 03/09/2014 09:09, Riccardo Stronati ha scritto:
>
>  Hi Guys,
>>
>> I need to rotate my desktop environment by 90 deg. I've read on
>> freescale comunity that vivante driver do not support the rotation so I
>> need to go back to framebuffer. Is that right?
>>
>>
>> How do I build and enable the frame buffer?
>> I changed the xorg.conf but the xserver can't find the framebuffer
>> driver. I suppose that I need to change the image recipe and change the
>> kernel bootargs, how?
>>
>> I'm using technexion edm1-cf-m6 board with yocto 1.5.3 and kernel 3.0.35
>> as the technexion doesn't support yocto 1.6.
>>
>> Thank you again.
>>
>> Riccardo
>>
>>
>>
>
> Riccardo,
> AFAIK you have to play with xrandr to get the Xorg screen rotation.
> I'm not sure if it is supported by Yocto < 1.6
>
>
> Cordiali Saluti / Kindest Regards / Mit freundlichen Grüßen
> --
> Marco Cavallini | KOAN sas | Bergamo - Italia
>  embedded and real-time software engineering
> Phone:+39-035-255.235 - Fax:+39-178-22.39.748
>       http://www.KoanSoftware.com
>         http://www.KaeilOS.com
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

[-- Attachment #2: Type: text/html, Size: 21336 bytes --]

  reply	other threads:[~2014-09-03  8:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-03  7:09 Screen rotation Riccardo Stronati
2014-09-03  8:29 ` Marco
2014-09-03  8:50   ` Riccardo Stronati [this message]
2014-09-03 12:50     ` Otavio Salvador
2014-09-03 13:14       ` Riccardo Stronati
2014-09-03 13:27         ` Otavio Salvador
2014-09-03 13:44           ` Riccardo Stronati
2014-09-03 13:44             ` Otavio Salvador
2014-09-11 14:36 ` Cliff Brake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABhF65FSqMfpp1RDfQsU9b3sTqZ0WM+LFrZqGmQnNLfY09M68g@mail.gmail.com \
    --to=r.stronati@gmail.com \
    --cc=koansoftware@gmail.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.