Bug#771796: weston: Weston fails with Intel GM45

2014-12-02 Thread Anthony Carrico
Subject: weston: Weston fails with Intel GM45
Package: weston
Version: 1.6.0-2+b1
Severity: normal

Dear Maintainer,

I decided to try Weston. It is just an experiment to see how things are
coming along. It failed on this
machine with graphics hardware, but I was able to run it successfully
with the pixman renderer. I was also able to run successfully with the
graphics hardware on another machine.

Here is my graphics card:

$ glxinfo  | grep 'renderer string'
OpenGL renderer string: Mesa DRI Mobile IntelĀ® GM45 Express Chipset

I will paste two runs, the first fails, the second succeeds:

First try, with graphics hardware:

$ EGL_LOG_LEVEL=debug MESA_DEBUG=1 WAYLAND_DEBUG=1 LIBGL_DEBUG=verbose
weston-launch --verbose
weston-launch: spawned weston with pid: 4652
Date: 2014-12-02 EST
[08:36:08.292] weston 1.6.0
   http://wayland.freedesktop.org/
   Bug reports to:
https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.0
   Build: 1.5.93-5-g2858cc2 configure.ac: bump version to
1.6.0 (2014-09-19 13:40:14 +0300)
[08:36:08.292] OS: Linux, 3.13-1-amd64, #1 SMP Debian 3.13.10-1
(2014-04-15), x86_64
[08:36:08.292] Starting with no config file.
[08:36:08.293] Loading module
'/usr/lib/x86_64-linux-gnu/weston/drm-backend.so'
[08:36:08.295] initializing drm backend
weston-launch: opened /dev/dri/card0: ret: 0, fd: 4
[08:36:08.300] using /dev/dri/card0
[08:36:08.300] Loading module
'/usr/lib/x86_64-linux-gnu/weston/gl-renderer.so'
libEGL debug: Native platform type: drm (autodetected)
libEGL debug: EGL search path is /usr/lib/x86_64-linux-gnu/egl
libEGL debug: added /usr/lib/x86_64-linux-gnu/egl/egl_gallium.so to
module array
libEGL debug: added egl_dri2 to module array
libEGL debug: dlopen(/usr/lib/x86_64-linux-gnu/egl/egl_gallium.so)
libEGL info: use DRM for display 0xbe6330
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in
eglInitialize(no usable display)

libEGL debug: the best driver is DRI2
[08:36:08.346] failed to choose EGL config
[08:36:08.346] EGL error state: EGL_SUCCESS (0x3000)
*** Error in `/usr/bin/weston': corrupted double-linked list:
0x00be6320 ***

Second try, with pixman:

$ EGL_LOG_LEVEL=debug MESA_DEBUG=1 WAYLAND_DEBUG=1 LIBGL_DEBUG=verbose
weston-launch --verbose -- --use-pixman
weston-launch: spawned weston with pid: 6165
Date: 2014-12-02 EST
[08:51:16.243] weston 1.6.0
   http://wayland.freedesktop.org/
   Bug reports to:
https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.6.0
   Build: 1.5.93-5-g2858cc2 configure.ac: bump version to
1.6.0 (2014-09-19 13:40:14 +0300)
[08:51:16.243] OS: Linux, 3.13-1-amd64, #1 SMP Debian 3.13.10-1
(2014-04-15), x86_64
[08:51:16.243] Starting with no config file.
[08:51:16.243] Loading module
'/usr/lib/x86_64-linux-gnu/weston/drm-backend.so'
[08:51:16.388] initializing drm backend
weston-launch: opened /dev/dri/card0: ret: 0, fd: 4
[08:51:16.389] using /dev/dri/card0
weston-launch: opened /dev/input/event5: ret: 0, fd: 6
[08:51:16.390] input device 'Power Button', /dev/input/event5 is a keyboard
weston-launch: opened /dev/input/event9: ret: 0, fd: 7
[08:51:16.392] input device 'Video Bus', /dev/input/event9 is a keyboard
weston-launch: opened /dev/input/event3: ret: 0, fd: 8
[08:51:16.392] not using input device '/dev/input/event3'.
weston-launch: opened /dev/input/event4: ret: 0, fd: 9
[08:51:16.392] input device 'Sleep Button', /dev/input/event4 is a keyboard

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (650, 'stable'), (600, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages weston depends on:
ii  adduser 3.113+nmu3
ii  libc6   2.19-11
ii  libcairo2   1.14.0-2.1
ii  libcolord2  1.2.1-1
ii  libdbus-1-3 1.8.6-2
ii  libdrm2 2.4.56-1
ii  libegl1-mesa [libegl1-x11]  10.3.2-1
ii  libgbm1 10.2.6-1
ii  libgles2-mesa [libgles2]10.3.2-1
ii  libglib2.0-02.42.0-2
ii  libinput5   0.6.0+dfsg-2
ii  libjpeg62-turbo 1:1.3.1-10
ii  liblcms2-2  2.6-3
ii  libmtdev1   1.1.5-1
ii  libpam0g1.1.8-3.1
ii  libpango-1.0-0  1.36.8-2
ii  libpangocairo-1.0-0 1.36.8-2
ii  libpixman-1-0   0.32.6-3
ii  libpng12-0  1.2.50-2
ii  libsystemd0 215-5+b1
ii  lib

Bug#771832: xserver-xorg-video-modesetting: left or right rotation gives blank screen with gma500 card

2014-12-02 Thread Stefan Monnier
Package: xserver-xorg-video-modesetting
Version: 0.9.0-1+b1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

The quoted xorg.conf file below is the one I've been using for a few
years now with a gma500 card for the first screen and a displaylink card
for the second.  Both rotated.

I'm trying to use the "modesetting" driver instead so as to be able to use
hotplugging of the displaylink, but the rotation does not work.

I start I used an empty xorg.conf (a symlink to /dev/null), the Xorg
server startyed fine.  Then I used xrandr and saw that "DVI-0" is
the name used for my monitor, so I tried

  xrandr --output DVI-0 --rotate left; sleep 10; xrandr --output DVI-0 --rotate 
normal;

and the screen went blank (not just black: the monitor went to sleep)
for 10 seconds and then came back.

This is with the stock Debian 3.16.0-4-686-pae kernel.  There was no dmesg
output during the rotation.


Stefan


-- Package-specific info:
X server symlink status:

lrwxrwxrwx 1 root root 13 Mar 16  2007 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 2556784 Nov  3 16:52 /usr/bin/Xorg

VGA-compatible devices on PCI bus:
--
00:02.0 VGA compatible controller [0300]: Intel Corporation System Controller 
Hub (SCH Poulsbo) Graphics Controller [8086:8108] (rev 07)

Xorg X server configuration file status:

lrwxrwxrwx 1 root root 16 Dec  2 11:56 /etc/X11/xorg.conf -> xorg.conf.dualfb

Contents of /etc/X11/xorg.conf:
---
### DisplayLink Stuff ###

Section "Device"
Identifier  "DisplayLinkDevice"
driver  "fbdev"
#driver  "displaylink"
Option  "fbdev" "/dev/fb1"
# Hack to get fbdev to accept several devices.
# http://lists.freedesktop.org/archives/libdlo/2010-November/000791.html
BusID   "USB"
Option  "Rotate""CCW"
EndSection

Section "Monitor"
Identifier "DisplayLinkMonitor"
EndSection

Section "Screen"
Identifier "DisplayLinkScreen"
Device "DisplayLinkDevice"
Monitor "DisplayLinkMonitor"
SubSection "Display"
Depth 16 # 24bit works fine but for USB 2.0 a lot of data
#Modes "1280x1024"
EndSubSection
EndSection

 Original Video Settings ###

Section "Device"
Identifier  "Configured Video Device"
driver  "fbdev"
Option  "fbdev" "/dev/fb0"
# Hack to get fbdev to accept several devices.
# http://lists.freedesktop.org/archives/libdlo/2010-November/000791.html
BusID   "USB"
Option  "Rotate" "CCW"
EndSection

Section "Monitor"
Identifier  "Configured Monitor"
# Doesn't seem to work.
#Option "Rotate""left"
EndSection

Section "Screen"
Identifier  "DefaultScreen"
Monitor "Configured Monitor"
Device  "Configured Video Device"
EndSection

Section "ServerLayout"
Identifier "Server Layout"
Screen 0 "DefaultScreen" 0 0
Screen 1 "DisplayLinkScreen" RightOf "DefaultScreen"
Option "Xinerama" "on"
EndSection

/etc/X11/xorg.conf.d does not exist.

KMS configuration files:

/etc/modprobe.d/i915-kms.conf:
  options i915 modeset=1
/etc/modprobe.d/radeon-kms.conf:
  options radeon modeset=1

Kernel version (/proc/version):
---
Linux version 3.16.0-4-686-pae (debian-ker...@lists.debian.org) (gcc version 
4.8.3 (Debian 4.8.3-13) ) #1 SMP Debian 3.16.7-2 (2014-11-06)

Xorg X server log files on system:
--
-rw-r--r-- 1 root root 225345 Nov 16  2007 /var/log/Xorg.22.log
-rw-r--r-- 1 root root 138823 Nov 16  2007 /var/log/Xorg.23.log
-rw-r--r-- 1 root root  40062 Nov 16  2007 /var/log/Xorg.24.log
-rw-r--r-- 1 root root   2485 Apr 13  2010 /var/log/Xorg.3.log
-rw-r--r-- 1 root root  52283 Apr 13  2010 /var/log/Xorg.1.7.6.log
-rw-r--r-- 1 root root  14860 Oct 21  2010 /var/log/Xorg.21.log
-rw-r--r-- 1 root root  15503 Oct 21  2010 /var/log/Xorg.20.log
-rw-r--r-- 1 root root  24851 May 29  2013 /var/log/Xorg.2.log
-rw-r--r-- 1 root root  15996 Dec  2 11:29 /var/log/Xorg.1.log
-rw-r--r-- 1 root root  22098 Dec  2 12:02 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file (/var/log/Xorg.0.log):
-
[26.429] 
X.Org X Server 1.16.1.901 (1.16.2 RC 1)
Release Date: 2014-11-02
[26.429] X Protocol Version 11, Revision 0
[26.429] Build Operating System: Linux 3.2.0-4-amd64