Bug 96795 - Screen rolling/rotating horizontally when using specific applications
Summary: Screen rolling/rotating horizontally when using specific applications
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
Depends on:
Reported: 2016-07-04 04:17 UTC by Amish Naidu
Modified: 2017-07-24 22:41 UTC (History)
2 users (show)

See Also:
i915 platform: BDW
i915 features:

The glitch with gedit (2.87 MB, image/gif)
2016-07-04 04:17 UTC, Amish Naidu
no flags Details
kernel log with drm.debug=14 (239.98 KB, text/x-log)
2016-07-05 04:10 UTC, Amish Naidu
no flags Details
Xorg log from /var/log/Xorg.0.log (27.46 KB, text/x-log)
2016-07-05 04:10 UTC, Amish Naidu
no flags Details

Description Amish Naidu 2016-07-04 04:17:18 UTC
Created attachment 124882 [details]
The glitch with gedit

Sometimes the following graphics glitch is triggered where the screen starts moving/rotating rapidly. See attachment or https://i.imgur.com/u6j5auo.gif (gedit on LXDE).
This is triggered semi-randomly while using specific apps like Kate, gEdit, gVim, leafpad, embedded console inside Dolphin, KDevelop and rarely with Konsole.
Also triggered for a few split-seconds when I move the mouse when in fullscreen mode in VLC but stabilises quickly. However, everything is stable when I just use Chrome or Firefox, LXTerminal, Clementine and Code::Blocks, even for hours.

Whenever this is triggered, it can sometimes be fixed when I switch to desktop or Chrome or a different app while closing the trigger-er app while other times, rebooting is the only way. Sometimes (rarely) the screen becomes completely black after a while, with key-presses and mouse movements revealing the screen for split-seconds which allows me to properly shutdown/restart the laptop.
I've tried to Google the problem with no results, I'm not even sure what to search for.

Some system details:
OS: Lubuntu 16.04
Kernel (uname -r): 4.4.0-28-generic
Laptop: Lenovo G50-80 with Intel 5500 Integrated graphics chip (Broadwell-U Integrated Graphics, inside Core i3-5005U)

Relevant lspci block:

00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Broadwell-U Integrated Graphics
        Flags: bus master, fast devsel, latency 0, IRQ 48
        Memory at c0000000 (64-bit, non-prefetchable) [size=16M]
        Memory at b0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 4000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
        Kernel modules: i915
Resolution from xrandr --verbose:

1366x768 (0x47) 72.330MHz -HSync -VSync *current +preferred
        h: width  1366 start 1414 end 1446 total 1526 skew    0 clock  47.40KHz
        v: height  768 start  770 end  775 total  790           clock  60.00Hz
Comment 1 yann 2016-07-04 17:22:19 UTC
Amish, can you attach some logs such as kernel and xorg?
please also add drm.debug=14 in your boot command line.
Comment 2 Amish Naidu 2016-07-05 04:10:00 UTC
Created attachment 124901 [details]
kernel log with drm.debug=14
Comment 3 Amish Naidu 2016-07-05 04:10:58 UTC
Created attachment 124902 [details]
Xorg log from /var/log/Xorg.0.log
Comment 4 Amish Naidu 2016-07-05 04:13:13 UTC
Added the kernel log and xorg log.
The kernel log (it's dmesg, right?) is shortly after the glitch triggered while using Kate, where again the screen became unstable and started rolling. After closing Kate, the screen stabilised.
Comment 5 Amish Naidu 2016-07-06 04:16:02 UTC
Can someone please help ?
Comment 6 Amish Naidu 2016-07-08 06:50:41 UTC
Comment 7 yann 2016-07-11 15:05:50 UTC
this right dmesg is kernel module, but getting from the boot time is better :)

Checking on your xorg.log, it looks like "Intel" module cannot be found (or loaded).
do you have intel_drv.so located in /usr/lib/xorg/modules/drivers/?

BTW did you encounter this issue after an update of Ubuntu or a fresh Install of 16.04?

you may have a look here http://askubuntu.com/questions/80914/how-reinstall-the-default-graphics-drivers (don't forget to restart your system since unity --restart is deprecated)
Comment 8 yann 2016-07-11 15:13:42 UTC
(In reply to yann from comment #7)
> this right dmesg is kernel module, but getting from the boot time is better
> :)

dmesg is kernel log (not module ;)
Comment 9 Amish Naidu 2016-07-11 17:13:20 UTC
(In reply to yann from comment #7)
> dmesg is kernel log, but getting from the boot time is better

How do I obtain it ?

> do you have intel_drv.so located in /usr/lib/xorg/modules/drivers/?

No, I don't

> BTW did you encounter this issue after an update of Ubuntu or a fresh Install of 16.04?

This is a fresh install on a new laptop.

Surprisingly, the package "xserver-xorg-video-intel" was not installed...
However, other than the occasional glitch, I have been able to watch HD videos and play games fine.
I've reinstalled the drivers.
I will report after a restart.

Thank you for helping me out. :)
Comment 10 Amish Naidu 2016-07-13 03:24:14 UTC
After about a day of using my laptop after installing `xserver-xorg-video-intel` and reinstalling other graphics component, I haven't been able to trigger the glitch at all.
A bit digging revealed this: http://ubuntuforums.org/showthread.php?t=2324014
Lubuntu 16.04, the LXDE flavor decided to not include the above package for some reason, though after installing it manually, the problem at hand could be considered resolved.

Although, while playing AssaultCube, I did notice some flickering, but that is something I can live with.

P.S. I hope I have selected the appropriate status
Comment 11 yann 2016-07-13 12:48:53 UTC
Thanks Amish. If you want please feel free to open another bug for the flashing issue you are seeing.

concerning the kernel log, you may extend current log buffer size with log_buf_len=4M on your command line (this is a ring buffer).

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.