Heavy black flickering with Intel graphics after VT switching from X to Mir
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Linux |
Won't Fix
|
Medium
|
||
| | Mir |
Invalid
|
High
|
Unassigned | |
| | linux (Ubuntu) |
High
|
Unassigned | ||
| | mir (Ubuntu) |
High
|
Unassigned | ||
Bug Description
After running mir_demo_server on VT 1, when I switch to VT 7 then back to VT 1, the demo server really flickers black quite a lot (entire screen, pointer included). I'm not sure, but I also upgraded my kernel to 3.18.2-
---
ApportVersion: 2.15.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: Unity
DistroRelease: Ubuntu 15.04
HibernationDevice: RESUME=
Lsusb:
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 3249CTO
Package: mir
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.140
SystemImageInfo:
current build number: 0
device name:
channel: daily
last update: Unknown
Tags: vivid
Uname: Linux 3.18.0-9-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm autopilot cdrom dip disk fuse kvm libvirtd lpadmin plugdev sambashare sbuild sudo video
_MarkForUpload: True
dmi.bios.date: 01/26/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET35WW (1.05 )
dmi.board.name: 3249CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 3249CTO
dmi.product.
dmi.sys.vendor: LENOVO
| Daniel van Vugt (vanvugt) wrote : | #1 |
| Changed in mir: | |
| status: | New → Incomplete |
| Changed in mir (Ubuntu): | |
| status: | New → Incomplete |
| Daniel van Vugt (vanvugt) wrote : | #2 |
Can you also try mir_proving_server?
| William Hua (attente) wrote : | #3 |
Will apport-collect provide any information in the case that the server doesn't crash? I ran it, but nothing seemed to happen.
I also tried mir_proving_server, but it exhibited the same flickering behaviour.
| Daniel van Vugt (vanvugt) wrote : | #4 |
Yes, it should provide useful information about your software and hardware, that we need.
| William Hua (attente) wrote : | #5 |
It only pops up a dialog saying "No additional information collected."
| William Hua (attente) wrote : | #6 |
Not sure if this will help much, but when I downgraded to Mir 0.9.0+15.
Also, these are my video card details:
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device 215a
Flags: bus master, fast devsel, latency 0, IRQ 26
Memory at f2000000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 1800 [size=8]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
| Daniel van Vugt (vanvugt) wrote : | #7 |
Thanks. Can you also paste the log output you get (from 0.10) when running mir_proving_server? It contains important information about the system.
| Daniel van Vugt (vanvugt) wrote : | #8 |
Also can you provide CPU information? (/proc/cpuinfo)
| William Hua (attente) wrote : | #9 |
Running mir_proving_server (0.10) as root doesn't show any output other than:
[1421162423.862128] (II) SharedLibrary: Loading libmirplatform5
[1421162424.018693] (II) DisplayServer: Mir version 0.10.0
[1421162424.027428] (II) GLRenderer: GL vendor: Intel Open Source Technology Center
[1421162424.027475] (II) GLRenderer: GL renderer: Mesa DRI Intel(R) Ironlake Mobile
[1421162424.027490] (II) GLRenderer: GL version: OpenGL ES 2.0 Mesa 10.3.2
[1421162424.027502] (II) GLRenderer: GLSL version: OpenGL ES GLSL ES 1.0.16
*vt switch*
[1421162461.237578] (II) GLRenderer: GL vendor: Intel Open Source Technology Center
[1421162461.237630] (II) GLRenderer: GL renderer: Mesa DRI Intel(R) Ironlake Mobile
[1421162461.237645] (II) GLRenderer: GL version: OpenGL ES 2.0 Mesa 10.3.2
[1421162461.237658] (II) GLRenderer: GLSL version: OpenGL ES GLSL ES 1.0.16
*vt switch*
[1421162469.291452] (II) GLRenderer: GL vendor: Intel Open Source Technology Center
[1421162469.292135] (II) GLRenderer: GL renderer: Mesa DRI Intel(R) Ironlake Mobile
[1421162469.292524] (II) GLRenderer: GL version: OpenGL ES 2.0 Mesa 10.3.2
[1421162469.292557] (II) GLRenderer: GLSL version: OpenGL ES GLSL ES 1.0.16
| William Hua (attente) wrote : | #10 |
/proc/cpuinfo (couldn't attach it for some reason):
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
stepping : 2
microcode : 0x9
cpu MHz : 1333.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida arat dtherm tpr_shadow vnmi flexpriority ept vpid
bugs :
bogomips : 4787.88
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
stepping : 2
microcode : 0x9
cpu MHz : 1333.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida arat dtherm tpr_shadow vnmi flexpriority ept vpid
bugs :
bogomips : 4787.88
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
stepping : 2
microcode : 0x9
cpu MHz : 1333.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida arat dtherm tpr_shadow vnmi flexpriority ept vpid
bugs :
bogomips : 4787.88
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
stepping : 2
microcode : 0x9
cpu MHz : 1333.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 5
initial apicid : 5
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl...
| Daniel van Vugt (vanvugt) wrote : | #11 |
Thanks. That is indeed a processor family I don't have myself to test with. But I'll work on that.
| Changed in mir: | |
| status: | Incomplete → New |
| Changed in mir (Ubuntu): | |
| status: | Incomplete → New |
| Changed in mir: | |
| importance: | Undecided → High |
| Changed in mir (Ubuntu): | |
| importance: | Undecided → High |
| summary: |
- Heavy black flickering in mir_demo_server + Heavy black flickering in mir_demo_server on Intel Ironlake Mobile. |
| Daniel van Vugt (vanvugt) wrote : Re: Heavy black flickering after VT switching on Intel Ironlake Mobile. | #12 |
You say the hardware pointer is flickering too? That's rendered entirely by the kernel so this sounds like a kernel driver bug.
| summary: |
- Heavy black flickering in mir_demo_server on Intel Ironlake Mobile. + Heavy black flickering after VT switching on Intel Ironlake Mobile. |
| William Hua (attente) wrote : | #13 |
Daniel, thanks, you're completely right. I downgraded my kernel to 3.16.7-
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1409133
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.
| Changed in linux (Ubuntu): | |
| status: | New → Incomplete |
| Daniel van Vugt (vanvugt) wrote : Re: Heavy black flickering after VT switching on Intel Ironlake Mobile. | #15 |
See comment #1 onward.
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
| status: | Confirmed → New |
| Daniel van Vugt (vanvugt) wrote : | #16 |
Actually, no...
William: Can you please re-run "apport-collect 1409133" when the /broken/ kernel version is running?
The command should work now this bug has a kernel task.
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1409133
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.
| Changed in linux (Ubuntu): | |
| status: | New → Incomplete |
| William Hua (attente) wrote : AlsaInfo.txt | #18 |
apport information
| tags: | added: apport-collected vivid |
| description: | updated |
| William Hua (attente) wrote : BootDmesg.txt | #19 |
apport information
| William Hua (attente) wrote : CRDA.txt | #20 |
apport information
| William Hua (attente) wrote : CurrentDmesg.txt | #21 |
apport information
| William Hua (attente) wrote : IwConfig.txt | #22 |
apport information
| William Hua (attente) wrote : Lspci.txt | #23 |
apport information
| William Hua (attente) wrote : ProcCpuinfo.txt | #24 |
apport information
| William Hua (attente) wrote : ProcEnviron.txt | #25 |
apport information
apport information
| William Hua (attente) wrote : ProcModules.txt | #27 |
apport information
| William Hua (attente) wrote : PulseList.txt | #28 |
apport information
| William Hua (attente) wrote : RfKill.txt | #29 |
apport information
| William Hua (attente) wrote : UdevDb.txt | #30 |
apport information
| William Hua (attente) wrote : UdevLog.txt | #31 |
apport information
| William Hua (attente) wrote : WifiSyslog.txt | #32 |
apport information
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Joseph Salisbury (jsalisbury) wrote : Re: Heavy black flickering after VT switching on Intel Ironlake Mobile. | #33 |
Would it be possible for you to test the latest upstream kernel? Refer to https:/
If this bug is fixed in the mainline kernel, please add the following tag 'kernel-
If the mainline kernel does not fix this bug, please add the tag: 'kernel-
If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".
Thanks in advance.
[0] http://
| Changed in linux (Ubuntu): | |
| importance: | Undecided → High |
| Joseph Salisbury (jsalisbury) wrote : | #34 |
Does this bug also go away with the test kernel in comment #28 of bug 1408593
| tags: | added: kernel-da-key |
| William Hua (attente) wrote : | #35 |
Thanks Joseph,
The bug still exists with 3.19.0-
The bug does not exist with 3.19.0-994-generic. However the pointer is very laggy.
I think I can only revert to 3.16.7-
| tags: | added: kernel-bug-exists-upstream |
| Joseph Salisbury (jsalisbury) wrote : | #36 |
The 3.19.0-994-generic is the daily build. That may indicate that this will be fixed in 3.19-rc5. Were you also able to test the test kernel in comment #28 of bug 1408593 ?
| William Hua (attente) wrote : | #37 |
Sorry, I wasn't specific enough. I meant I used the 3.19.0-
| Daniel van Vugt (vanvugt) wrote : | #38 |
Re: Comment #35
By laggy pointer you mean laggy in X? That would indicate it's falling back to software rendering and a software cursor.
| tags: | added: bios-outdated-1.40 |
| tags: |
added: kernel-bug-exists-upstream-3.19-rc4 needs-upstream-testing removed: black demo flicker kernel kernel-bug-exists-upstream mir server |
| Changed in linux (Ubuntu): | |
| status: | Confirmed → Incomplete |
| William Hua (attente) wrote : | #40 |
Still occurs with 3.19.0-
William Hua, the next step is to fully commit bisect from kernel 3.16.7 to 3.18 in order to identify the last good kernel commit, followed immediately by the first bad one. This will allow for a more expedited analysis of the root cause of your issue. Could you please do this following https:/
Thank you for your understanding.
| tags: |
added: kernel-bug-exists-upstream-3.19-rc6 removed: kernel-bug-exists-upstream-3.19-rc4 needs-upstream-testing |
| tags: | added: needs-bisect regression-release |
| Daniel van Vugt (vanvugt) wrote : | #42 |
William,
Can you post a video of the flickering? That's often helpful for us to identify the kind of problem it might be.
| William Hua (attente) wrote : | #43 |
Sorry, video is a bit big.
- switched to VT 1
- started mir_demo_server (no flickering yet)
- switched to VT 7
- switched to VT 1 (flickering is apparent, as seen by cursor)
- switched to VT 7
- started gedit under the mir backend
- switched to VT 1 (flickering is apparent, as seen by cursor and gedit window)
I will do the kernel bisection to find out what went wrong.
| William Hua (attente) wrote : | #44 |
Oops, sorry, that should be a .ogv extension...
| Daniel van Vugt (vanvugt) wrote : | #45 |
Certainly Mir's page flipping logic changed a bit in Mir 0.10 (faster). However, this bug doesn't occur on any other GPU (even tried several intel GPUs), and if the cursor is flickering then it's likely a kernel bug.
| Launchpad Janitor (janitor) wrote : | #46 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in mir (Ubuntu): | |
| status: | New → Confirmed |
| Daniel van Vugt (vanvugt) wrote : | #47 |
Confirmed on Ivy Bridge. I can see the bug now :)
| Changed in mir: | |
| status: | New → Confirmed |
| milestone: | none → 0.12.0 |
| summary: |
- Heavy black flickering after VT switching on Intel Ironlake Mobile. + Heavy black flickering after VT switching on Intel graphics |
| Daniel van Vugt (vanvugt) wrote : Re: Heavy black flickering after VT switching on Intel graphics | #48 |
Weirdly the bug only happens on VT switching directly from X (VT 7). If you switch to some other VT before Mir's then there's no flickering.
| William Hua (attente) wrote : | #49 |
Kernel bisection yielded this as the culprit:
Might try to bisect that branch, but it might be more difficult to test.
| tags: |
added: bisect-done removed: needs-bisect |
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Triaged |
William Hua, the issue you are reporting is an upstream one. Could you please report this problem to the appropriate mailing list (<email address hidden>) by following the instructions verbatim at https:/
Please provide a direct URL to your e-mail to the mailing list once you have made it so that it may be tracked via http://
Thank you for your understanding.
| Daniel van Vugt (vanvugt) wrote : | #51 |
Also confirmed it doesn't matter which version of Mir I try; the bug is still present. This one is all kernel.
| Changed in mir: | |
| milestone: | 0.12.0 → none |
| status: | Confirmed → Invalid |
| Changed in mir (Ubuntu): | |
| status: | Confirmed → Invalid |
| summary: |
- Heavy black flickering after VT switching on Intel graphics + Heavy black flickering with Intel graphics after VT switching from X |
| Daniel van Vugt (vanvugt) wrote : Re: Heavy black flickering with Intel graphics after VT switching from X | #52 |
WORKAROUND:
Switch to a different VT (other than X or Mir) before switching to Mir. That will avoid triggering the bug. It only happens if you're coming from the X VT.
|
|
#53 |
[1.] One line summary of the problem:
Switching from an X VT to a Mir VT with Intel graphics causes heavy black flickering.
[2.] Full description of the problem/report:
This is a regression caused by https:/
As root, run the mir_demo_server from the Mir project located at https:/
[3.] Keywords (i.e., modules, networking, kernel):
[4.] Kernel version (from /proc/version):
Linux version 3.19.0-rc7-custom+ (root@attente) (gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu2) ) #1 SMP Tue Feb 3 11:38:45 CET 2015
[5.] Output of Oops.. message (if applicable) with symbolic information resolved (see Documentation/oops-tracing.txt)
[6.] A small shell script or example program which triggers the problem (if possible)
Please see the mir_demo_server program from the Mir project.
[7.] Environment
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04
[7.1.] Software (add the output of the ver_linux script here)
Linux attente 3.19.0-rc7-custom+ #1 SMP Tue Feb 3 11:38:45 CET 2015 x86_64 x86_64 x86_64 GNU/Linux
Gnu C 4.9.2
Gnu make 4.0
binutils 2.25
util-linux 2.25.2
mount debug
module-init-tools 18
e2fsprogs 1.42.12
pcmciautils 018
PPP 2.4.6
Linux C Library 2.19
Dynamic linker (ldd) 2.19
Procps 3.3.9
Net-tools 1.60
Kbd 1.15.5
Sh-utils 8.23
wireless-tools 30
Modules Loaded ctr ccm nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_CHECKSUM iptable_mangle xt_tcpudp bridge stp llc iptable_filter ip_tables x_tables intel_powerclamp coretemp arc4 kvm_intel kvm iwldvm mac80211 serio_raw iwlwifi snd_hda_codec_hdmi intel_ips snd_hda_
[7.2.] Processor information (from /proc/cpuinfo):
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
stepping : 2
microcode : 0x9
cpu MHz : 1199....
|
|
#54 |
Please attach a drm.debug=0xf dmesg from across the VT switch. Something like:
In X, "echo 0xf > /sys/module/
VT switch to Mir
wait 10 second to capture the flicker
VT switch to X
dmesg && attach
|
|
#55 |
Created attachment 113111
DRM debug log
| Changed in linux: | |
| importance: | Unknown → Medium |
| status: | Unknown → Confirmed |
| summary: |
- Heavy black flickering with Intel graphics after VT switching from X + Heavy black flickering with Intel graphics after VT switching from X to + Mir |
Probably a duplicate of bug 90508. Could you give the patch referenced there a try?
| Changed in linux: | |
| status: | Confirmed → Incomplete |
|
|
#57 |
Created attachment 116362
dmesg.txt
(In reply to Ander Conselvan de Oliveira from comment #3)
> Probably a duplicate of bug 90508. Could you give the patch referenced there
> a try?
Bug #90508 is fixed in kernel-4.0.4-301. I'm using kernel-4.0.4-303 and I still got that issue.
Fedora 22 Workstation, x86_64.
After VT switch to X, I got this:
[ 5427.787710] [drm:intel_
Francesco, please open a separate bug report and include dmesg with drm.debug=0xe from boot to the point where you get the FIFO underrun.
|
|
#59 |
(In reply to Ander Conselvan de Oliveira from comment #5)
> Francesco, please open a separate bug report and include dmesg with
> drm.debug=0xe from boot to the point where you get the FIFO underrun.
Done.
Here's the link (in the case they could be related somehow): https:/
| Changed in linux: | |
| status: | Incomplete → Won't Fix |
| Daniel van Vugt (vanvugt) wrote : | #60 |
Needs retesting.
| Changed in linux (Ubuntu): | |
| status: | Triaged → Incomplete |

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal: /wiki.ubuntu. com/ReportingBu gs.
apport-collect 1409133
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/