[i915] Lockscreen/lid-close xserver freeze if UXA accel used.

Bug #1273832 reported by Lee H
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On a Haswell system, if AccelMethod UXA selected in xorg.conf, xserver freezes
(moveable cursor, but frozen and unresponsive desktop) each time the screen is
locked (either via inactivity or lid close on laptop) .

This freeze does not occur if "SNA" AccelMethod is selected.
This freeze can also be avoided if vblank_mode=0 is used, even
if UXA acceleration selected.

1) Ubuntu release: 13.10, but I also tested this on
12.04 LTS, in which case I got exactly the same bug, only
the frozen screen was blank rather than frozen desktop image.

2) Expected result:

No freeze when locking screen/closing lid. Just
the login screen greeter.

3) How to reproduce:

On Haswell system, in xorg.conf:

    Section "Device"
            Identifier "Intel Graphics"
            Driver "intel"
            Option "AccelMethod" "UXA" #bug occurs
# Option "AccelMethod" "SNA" #(default) no bug!
    EndSection

reboot. Try closing the lid or locking screen a number of times
(normally within a few attempts you will see the freeze).

4) Resolution:

Short term solution is to switch to a tty and back.

Alternatively, boot with the SNA acceleration method instead.

Another alternative: use a dri config file in home directory:
~/.drirc containing

    <device screen="0" driver="dri2">
           <application name="Default">
                   <option name="vblank_mode" value="0"/>
          </application>
    </device>

to turn off vsync.

5) Importance for fglrx driver users with AMD cards:

fglrx and pxpress by default force the i915 driver to use "UXA" mode,
thus when selecting the iGPU users of fglrx will experience this freezing bug.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: xserver-xorg-video-intel 2:2.99.904-0ubuntu2.1
ProcVersionSignature: Ubuntu 3.11.0-15.23-generic 3.11.10
Uname: Linux 3.11.0-15-generic x86_64
NonfreeKernelModules: fglrx
.tmp.unity.support.test.0:

ApportVersion: 2.12.5-0ubuntu2.2
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: Tue Jan 28 20:43:34 2014
DistUpgraded: Fresh install
DistroCodename: saucy
DistroVariant: ubuntu
DkmsStatus: fglrx, 13.251, 3.11.0-15-generic, x86_64: installed
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:2216]
   Subsystem: Lenovo Device [17aa:2216]
InstallationDate: Installed on 2014-01-17 (10 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MachineType: LENOVO 20B3CTO1WW
MarkForUpload: True
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-15-generic.efi.signed root=UUID=8a15962e-ad4d-4eb0-96af-37d167313e92 ro
SourcePackage: xserver-xorg-video-intel
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/28/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: GPET53WW (1.53 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20B3CTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: 0B98405 Std
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrGPET53WW(1.53):bd11/28/2013:svnLENOVO:pn20B3CTO1WW:pvrThinkPadS5-S540:rvnLENOVO:rn20B3CTO1WW:rvr0B98405Std:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 20B3CTO1WW
dmi.product.version: ThinkPad S5-S540
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.10+13.10.20131011-0ubuntu1
version.fglrx-installer: fglrx-installer N/A
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.46-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 9.2.1-1ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.2.1-1ubuntu3
version.xserver-xorg-core: xserver-xorg-core 2:1.14.5-1ubuntu2~saucy1
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-0ubuntu10
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.904-0ubuntu2.1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.9-2ubuntu1
xserver.bootTime: Tue Jan 28 19:11:22 2014
xserver.configfile: /etc/X11/xorg.conf
xserver.errors:

xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.14.5-1ubuntu2~saucy1
xserver.video_driver: intel

Revision history for this message
Lee H (popov-ghost) wrote :
Revision history for this message
Chris Wilson (ickle) wrote :

It sounds like the fairly typical error that UXA is eating the vblank notification whilst DPMS off and not informing the client that they are no longer ignored.

How about trying Option "Triplebuffer" "false"?

Revision history for this message
Lee H (popov-ghost) wrote :

If I remove the ~/.drirc file then boot with the xorg.conf device section:

Section "Device"
        Identifier "Intel Graphics"
        Driver "intel"
        Option "AccelMethod" "UXA"
        Option "Triplebuffer" "false"
EndSection

I still managed to reproduce the bug on closing the lid a few times.

Chris Wilson (ickle)
summary: - [i915] Lockscreen/lid-close xserver freeze if UXA accel used.
+ [fglrx] Lockscreen/lid-close xserver freeze if UXA accel used.
Revision history for this message
Lee H (popov-ghost) wrote : Re: [fglrx] Lockscreen/lid-close xserver freeze if UXA accel used.

Chris:

I don't agree that this is an [fglrx] issue. I thought so at the beginning, but it happens even on a clean install before fglrx drivers have been installed at all, so long as the i915 is loaded with UXA accel via xorg.conf. Surely that means it's an i915 issue.

Revision history for this message
Lee H (popov-ghost) wrote :

(or indeed if fglrx is blacklisted, then an intel only xorg.conf is used that specifies UXA accel (without the .drirc fix)....)

Revision history for this message
Anthony Kamau (ak-launchpad) wrote :

Recently I underwent a botched nvidia-prime install that left a bitter taste in my mouth:
https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1249067

I had to purge my system of all nvidia drivers (apt-get --purge remove nvidia\*), then reinstall them:
https://wiki.ubuntu.com/Bumblebee

After reinstallation, when my screen goes blank after idling, sometimes it resumes to the desktop, other times I'm left at a black screen with moving cursor that appears to indicate the screen is actually there, but just not visible. The mouse cursor will change from a pointer to a hand (if it happens to hover over a hyperlink in the browser), or a 'I' (when it hovers over a text input area). I kept searching for a solution that related to the Xorg system, but everything I threw at it (the little I know about X) didn't bear fruit. In the end, I just simply had to go to a console (CTRL+ALT+F1) to restart lightdm to get my desktop back. When working with multiple windows and having many applications open, losing the desktop can cause one to experiance weird emotions and exhibit irrational actions; and it gets really old, really fast!

To cut a long story short, today I got fedup with it and started killing anything that interracts with the display system (sometimes fatally that I had to reboot by holding power button down for >5secs) to get this sorted. Interestingly, the culprit appears to be compiz. I can now duplicate this easily:

1. launch screensaver preferences (i use xscreensaver)
2. select a GL screensaver (the black screen with mouse occurs more often with such a screensaver)
3. click Preview button then hit the ESC key to return to desktop repeatedly until the black screen+mouse appears
4. CTRL+ALT+F1 to go to console window 1 and run the command: kill -9 $(pgrep compiz)
5 CTRL+ALT+F7 to return to GUI desktop - you should see your desktop minus the open windows
6 move mouse cursor to get compiz to reactivate itself and bring all your open applications into view

Hopefully this workaround will keep people like me sane for a little longer...

Cheers,
ak.

Revision history for this message
Anthony Kamau (ak-launchpad) wrote :

UPDATE:

I got tired of the workaround and reverted to gnome-screensaver which has since fixed my blank screen w/ mouse issue:

sudo apt-get install --reinstall ubuntu-desktop gnome-screensaver
sudo apt-get remove --purge xscreensaver* && sudo apt-get autoremove

I'm now back to a bland blank screen as my screensaver but at least it resumes every time!

Cheers,
ak.

Lee H (popov-ghost)
summary: - [fglrx] Lockscreen/lid-close xserver freeze if UXA accel used.
+ [i915] Lockscreen/lid-close xserver freeze if UXA accel used.
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Lee H, thank you for reporting this bug to Ubuntu. Saucy reached EOL on July 17, 2014.
See this document for currently supported Ubuntu releases: https://wiki.ubuntu.com/Releases

If this is reproducible in a supported release, please file a new report.

Changed in xserver-xorg-video-intel (Ubuntu):
status: Confirmed → Invalid
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.