Xorg freeze

Bug #1538741 reported by Erik Brangs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I've got Xorg freezes from time to time. Previously, I was able to reproduce it with

sleep 1; xset s activate

as described at https://wiki.ubuntu.com/X/Troubleshooting/Freeze . That's no longer possible.

However, freezes happen from time to time when I try to use the computer after the screen has been deactivated.

I suspect it's a kernel problem because changing the kernel makes a difference:
- on some kernels it doesn't seem to occur at all (e.g. 4.0.3 from mainline-crack) or the frequency is just so low that I haven't seen it yet
- on newer kernels (e.g. 4.5 rc* and later, including the 4.5 release), the system restores the screen but Xorg freezes up almost instantly afterwards
- on some kernels, the system doesn't properly restore the screen, there's a pattern with stripes or a single color (e.g. 4.0.4 from mainline-crack)

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: xorg 1:7.7+7ubuntu4
ProcVersionSignature: Ubuntu 4.2.0-25.30-generic 4.2.6
Uname: Linux 4.2.0-25-generic x86_64
.tmp.unity.support.test.0:

ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,workarounds,scale,expo,ezoom]
CompositorRunning: None
CurrentDesktop: XFCE
Date: Wed Jan 27 21:37:53 2016
DistUpgraded: 2016-01-11 19:25:27,198 ERROR got error from PostInstallScript ./xorg_fix_proprietary.py (g-exec-error-quark: Failed to execute child process "./xorg_fix_proprietary.py" (No such file or directory) (8))
DistroCodename: wily
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, including running git bisection searches
GpuHangFrequency: Several times a week
GpuHangReproducibility: Yes, I can easily reproduce it
GpuHangStarted: Immediately after installing this version of Ubuntu
GraphicsCard:
 Advanced Micro Devices, Inc. [AMD/ATI] RV515/M54 [Mobility Radeon X1400] [1002:7145] (prog-if 00 [VGA controller])
   Subsystem: Lenovo Thinkpad T60 model 2007 [17aa:2006]
MachineType: LENOVO 2007QPG
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-25-generic root=UUID=2a7cf7e8-4927-4e73-a6d3-e783efe97779 ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: Upgraded to wily on 2016-01-11 (16 days ago)
dmi.bios.date: 09/12/2008
dmi.bios.vendor: LENOVO
dmi.bios.version: 79ETE3WW (2.23 )
dmi.board.name: 2007QPG
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr79ETE3WW(2.23):bd09/12/2008:svnLENOVO:pn2007QPG:pvrThinkPadT60:rvnLENOVO:rn2007QPG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 2007QPG
dmi.product.version: ThinkPad T60
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.12.2+15.10.20151015-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.64-1
version.libgl1-mesa-dri: libgl1-mesa-dri 11.0.2-1ubuntu4
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.0.2-1ubuntu4
version.xserver-xorg-core: xserver-xorg-core 2:1.17.2-1ubuntu9.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.9.2-1ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.5.0+git20150819-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20150808-0ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.11-1ubuntu3
xserver.bootTime: Wed Jan 27 21:17:51 2016
xserver.configfile: default
xserver.errors:

xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.17.2-1ubuntu9.1
xserver.video_driver: radeon

Revision history for this message
Erik Brangs (erik-brangs) wrote :
Revision history for this message
Erik Brangs (erik-brangs) wrote :
Revision history for this message
Erik Brangs (erik-brangs) wrote :

According to my notes, the problem also occurred on the following kernels with Ubuntu 15.10:
- 4.2.0-23-generic #28-Ubuntu SMP Sun Dec 27 17:47:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
- 3.19.0-43-generic #49-Ubuntu SMP Sun Dec 27 19:43:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Erik Brangs (erik-brangs) wrote :

I've upgraded the BIOS to version 2.27 rev 2 from 2011 and upgraded the kernel.

The problem still occurs with 4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux.

I also tested 3.19.0-43 again and wasn't able to reproduce the problem with "sleep 1; xset s activate". So it's likely that 3.19.0-43 doesn't have the problem.

Revision history for this message
Erik Brangs (erik-brangs) wrote :

I don't know if this is a Kernel problem but I tested a few versions from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D regardless:
- the newest broken version is http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc2-wily/ (that's the newest version available right now)
- the first broken version is http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-rc1-vivid/
- the last good version is http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.9-wily/

Revision history for this message
Erik Brangs (erik-brangs) wrote :

After some more testing, it seems that http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.9-wily/ is broken for me, too.

Revision history for this message
Erik Brangs (erik-brangs) wrote :

According to my current testing, the last good version is http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.3-wily/ and the first bad one is http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.4-wily/ .

Revision history for this message
Erik Brangs (erik-brangs) wrote :

I can't reproduce this anymore.

Changed in xorg (Ubuntu):
status: New → Fix Released
Changed in xorg (Ubuntu):
status: Fix Released → New
Revision history for this message
Erik Brangs (erik-brangs) wrote :

X windows still freezes when I haven't used it for some time.

I can't reproduce it by entering a command but the freeze still happens.

The kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.4-wily/ definitively has the problem. The latest kernel ( http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc6-wily/ ) is also affected. I'm currently using http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.3-wily/ which seems to be fine for now. If the kernel turns out to be good, I'll try to narrow the problem down by bisecting.

Revision history for this message
Erik Brangs (erik-brangs) wrote :

I'm in the process of bisecting.

The latest kernel ( http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc7-wily/ ) is affected by a freeze, too. I'm not sure if it's the same as the one that I'm seeing in the 4.0.x series: On the latest kernel, the system simply freezes after trying to use it after the screen has blanked out. The original screen content is properly restored. In the 4.0.x series freeze, the the screen content shows a single color or a stripe pattern when the freeze happens.

Revision history for this message
Erik Brangs (erik-brangs) wrote :

I'm still bisecting, it's probably either
- fcfb5aa246c80df8b0a2ccadd7284b4c189149b0 ( https://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack/commit/?id=fcfb5aa246c80df8b0a2ccadd7284b4c189149b0 )
or
- 09af0842dac496aae363719c449cb88dcc953299 ( https://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack/commit/?id=09af0842dac496aae363719c449cb88dcc953299 )

from the mainline-crack repository ( https://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack ) . AFAIK my Lenovo T60 doesn't have an i915 chipset so it's probably the vblank commit.

The latest released kernel, 4.5 ( http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-wily/ ) still has freezes for me.

description: updated
Revision history for this message
Erik Brangs (erik-brangs) wrote :

The first bad commit seems to be "[fcfb5aa246c80df8b0a2ccadd7284b4c189149b0] drm: Zero out invalid vblank timestamp in drm_update_vblank_count."

Revision history for this message
Erik Brangs (erik-brangs) wrote :

I just had a freeze using 4.0.3 so it's likely that the chance of occurrence is just too low for me to properly bisect this if it truly is a kernel problem. If someone knows whether this could be a kernel problem or if it's likely to be something else, I would appreciate the information.

Revision history for this message
Erik Brangs (erik-brangs) wrote :

I suspect that this might be DPMS related. When I use xscreensaver with screen blanking but no DPMS, the problem doesn't seem to occur. When I use xscreensaver with DPMS and standby (setting suspend and off to high values so they don't get triggered), freezes occur when trying to use the computer again after the screen has been blank for some time.

Revision history for this message
Erik Brangs (erik-brangs) wrote :

I suspect that this was caused by hardware problems.

Changed in xorg (Ubuntu):
status: New → Invalid
To post a comment you must log in.