pfps / yoga-laptop

Systems and information to make Lenovo Yoga laptops work better
GNU General Public License v3.0
156 stars 30 forks source link

Screen tearing since upgrade to Ubuntu 14.10 #28

Closed dehuszar closed 9 years ago

dehuszar commented 9 years ago

I have had the orientation and sensors working pretty well in Ubuntu 14.04, but upon the upgrade to 14.10, I've been experiencing screen tearing when flipping into tent mode directly from the default orientation.

If I rotate to the vertical orientation first and then go upside-down, then it seems to transition smoothly, but from default to upside-down orientation causes the viewport to show inverted duplications of the bottom half of the screen and duplicate cursors for each orientation.

I've tried both with just the compiled orientation program and also with the compiled ideapad-laptop module, just to make sure I wasn't seeing the issue because the orientation program was expecting something to be in place. The sensors program won't compile (and the docs advise against using it), but the default 3.16 sensors drivers seem to be otherwise working okay.

I've attached a screenshot so you can see what I mean.

screen tearing example

Thanks in advance, Sam

pfps commented 9 years ago

I don't see how this has anything to do with the orientation program itself which uses xrandr to actually rotate the screen. You could try rotating the screen manually with xrandr --orientation ... to see if you can recreate the problem.

peter

On 11/09/2014 03:26 PM, dehuszar wrote:

I have had the orientation and sensors working pretty well in Ubuntu 14.04, but upon the upgrade to 14.10, I've been experiencing screen tearing when flipping into tent mode directly from the default orientation.

If I rotate to the vertical orientation first and then go upside-down, then it seems to transition smoothly, but from default to upside-down orientation causes the viewport to show inverted duplications of the bottom half of the screen and duplicate cursors for each orientation.

I've tried both with just the compiled orientation program and also with the compiled ideapad-laptop module, just to make sure I wasn't seeing the issue because the orientation program was expecting something to be in place. The sensors program won't compile (and the docs advise against using it), but the default 3.16 sensors drivers seem to be otherwise working okay.

I've attached a screenshot so you can see what I mean.

screen tearing example https://cloud.githubusercontent.com/assets/617658/4969671/7c374614-6867-11e4-90e9-22c2ff18a2ce.png

Thanks in advance, Sam

— Reply to this email directly or view it on GitHub https://github.com/pfps/yoga-laptop/issues/28.

rubo77 commented 9 years ago

I have the same phenomena when using my script that uses xrandr: https://gist.github.com/rubo77/daa262e0229f6e398766

sjuxax commented 9 years ago

Reported to Launchpad here. https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1395182

dehuszar commented 9 years ago

Good catch! I've added my name to the affected list On Nov 21, 2014 4:02 PM, "Jeff Cook" notifications@github.com wrote:

Reported to Launchpad here. https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1395182

— Reply to this email directly or view it on GitHub https://github.com/pfps/yoga-laptop/issues/28#issuecomment-64045094.

tobbyd commented 9 years ago

It seems to be a problem with the intel graphics driver.
Compiling latest intel driver (xf86-video-intel - 2.99.917) fixed it for me (Yoga 3 Pro): https://01.org/linuxgraphics/downloads

It also fixed the broken shadows of windows in Gnome 3.

jymbob commented 9 years ago

I can also confirm no tearing with latest intel drivers on Ubuntu 14.10

PPA with latest drivers: https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers