Capturing screen only returns black when resumed before

Bug #1234178 reported by Simon Eisenmann
22
This bug affects 8 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Capturing the screen fullscreen (eg. using the Screenshot application, x11vnc, or the builtin vnc server) does only return black when suspended and back from resume. When switching to a text console (eg. CTRL+ALT+F1) and back to X11 again it suddenly starts working again.

Works fine directly after boot too. Looks like resume does not re enable some stuff on the graphics card.

This has been working fine on the very same machine with Ubuntu 13.04. See this now with 13.10.

The most simple code to reproduce this issue
XImage *img = XGetImage(scanner->display, scanner->root, 0, 0, width, height, AllPlanes, ZPixmap);
returns a black image when resumend and not switched to a text terminal once.

Can be easily reproduced with "gnome-screenshot".

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: xorg 1:7.7+1ubuntu5
ProcVersionSignature: Ubuntu 3.11.0-11.17-generic 3.11.3
Uname: Linux 3.11.0-11-generic x86_64
.tmp.unity.support.test.0:

ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
Date: Wed Oct 2 15:29:50 2013
DistUpgraded: Fresh install
DistroCodename: saucy
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Google, Inc. Device [1ae0:c000]
InstallationDate: Installed on 2013-09-27 (4 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Beta amd64 (20130925.1)
MachineType: GOOGLE Link
MarkForUpload: True
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.11.0-11-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/10/2012
dmi.bios.vendor: coreboot
dmi.chassis.type: 3
dmi.chassis.vendor: GOOGLE
dmi.modalias: dmi:bvncoreboot:bvr:bd12/10/2012:svnGOOGLE:pnLink:pvr1.0:cvnGOOGLE:ct3:cvr:
dmi.product.name: Link
dmi.product.version: 1.0
dmi.sys.vendor: GOOGLE
version.compiz: compiz 1:0.9.10+13.10.20130927.1-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.46-1
version.libgl1-mesa-dri: libgl1-mesa-dri 9.2-1ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.2-1ubuntu3
version.xserver-xorg-core: xserver-xorg-core 2:1.14.2.901-2ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu3.1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.2.0-0ubuntu9
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.21.14-4ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.9-2ubuntu1
xserver.bootTime: Wed Oct 2 15:21:16 2013
xserver.configfile: None
xserver.errors:

xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
 product id 889
 vendor LGD
xserver.version: 2:1.14.2.901-2ubuntu7

Revision history for this message
Simon Eisenmann (longsleep) wrote :
Revision history for this message
Chris Wilson (ickle) wrote :

Sounds like:

commit 3fd116782bb1c05a140f4783e92a8ee6a57143cd
Author: Chris Wilson <email address hidden>
Date: Mon Sep 23 21:03:07 2013 +0100

    sna/dri: Clear the clear hint upon applying DRI damage

    Otherwise a later call to GetImage will not notice the DRI update if it
    was already clear - and so return a blank image. One example is the use
    of x11vnc replaying xbmc.

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69730
    Signed-off-by: Chris Wilson <email address hidden>

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

2.99.903 with that fix is available in:

https://launchpad.net/~canonical-x/+archive/x-staging

please test

affects: xorg (Ubuntu) → xserver-xorg-video-intel (Ubuntu)
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Incomplete
Changed in xserver-xorg-video-intel (Ubuntu):
importance: Undecided → High
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

and now on the main repository, please upgrade

Revision history for this message
Simon Eisenmann (longsleep) wrote :

The problem was solved by upgrade to xserver-xorg-video-intel 2:2.99.903-0ubuntu1 (main repository).

So the issue is fixed. Please close.

Thank you!

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

thanks for confirming!

Changed in xserver-xorg-video-intel (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.