bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 12:36 pm

I'm getting screen glitches when moving, opening and closing windows. The corrupted bits of screen can be very persistent, hiding bits of window and not going away until the whole window is explicitly redrawn. Here's a screenshot that shows the sort of thing I mean:

https://dl.dropboxusercontent.com/u/824 ... Glitch.PNG

I'm trying out the Pi2 for running my reprap, which I've been using a model B for until now. The monitor is in portrait format for reasons I don't need to go into right now, with the display rotated by setting display_rotate=3 in /boot/config.txt, overscan disabled. Don't seem to get glitches in normal orientation. Raspbian installed from NOOBS lite.

Anyone else seen this sort of thing? is there a fix?

Ian

User avatar
DougieLawson
Posts: 42177
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 12:39 pm

What display are you using? Is it a regular HDMI monitor or an add-on TFT?
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 2:15 pm

Thanks for responding, Dougie, It's a run-of-the mill Iiyama E2274HDS - 1080p flat screen, HDMI, DVI and D-sub inputs, using the HDMI input for the Pi 2.

Ian

User avatar
DougieLawson
Posts: 42177
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 3:29 pm

Does it work OK with other equipment?

Have you looked at setting

Code: Select all

config_hdmi_boost=7
in /boot/config.txt?
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6062
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 4:05 pm

bradypus wrote:I'm getting screen glitches when moving, opening and closing windows. The corrupted bits of screen can be very persistent, hiding bits of window and not going away until the whole window is explicitly redrawn. Here's a screenshot that shows the sort of thing I mean:

I'm trying out the Pi2 for running my reprap, which I've been using a model B for until now. The monitor is in portrait format for reasons I don't need to go into right now, with the display rotated by setting display_rotate=3 in /boot/config.txt, overscan disabled. Don't seem to get glitches in normal orientation. Raspbian installed from NOOBS lite.
Can you confirm if Pi1 has the same glitches (when using the same sdcard image)?

drgeoff
Posts: 12998
Joined: Wed Jan 25, 2012 6:39 pm

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 6:31 pm

DougieLawson wrote: Have you looked at setting

Code: Select all

config_hdmi_boost=7
in /boot/config.txt?
Irrelevant. Problems on the HDMI connection cannot give the symtoms reported by bradypus.
Quis custodiet ipsos custodes?

bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 10:08 pm

Dom asked:
Can you confirm if Pi1 has the same glitches (when using the same sdcard image)?
I didn't think the SD card from a Pi2 would work in a Pi 1, but it does, and I can confirm that there are no glitches when using the same card in a Pi 1 model B.

Dougie asked:
Have you looked at setting
CODE: SELECT ALL
config_hdmi_boost=7
in /boot/config.txt?
I can confirm that that makes no difference (NOOBS installation set it to 4, I've tried it with that setting, set to 7 and commented out altogether. No discernible difference.

It shows the same behaviour on the big telly in the living room,

Ian

User avatar
DougieLawson
Posts: 42177
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 10:20 pm

I'd send it back to whence it came with a request for a replacement or refund.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6062
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 11:23 pm

DougieLawson wrote:I'd send it back to whence it came with a request for a replacement or refund.
I suspect it is a software issue. I can't imagine a hardware issue only affecting the rotated screen.

It feels like a GPU L2 cache coherency issue - I'll see if I can reproduce this tomorrow.

User avatar
DougieLawson
Posts: 42177
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 08, 2015 11:33 pm

dom wrote:
DougieLawson wrote:I'd send it back to whence it came with a request for a replacement or refund.
I suspect it is a software issue. I can't imagine a hardware issue only affecting the rotated screen.

It feels like a GPU L2 cache coherency issue - I'll see if I can reproduce this tomorrow.
If it's software then other folks should be able to re-create it.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Re: Pi 2 Screen Glitches in Portrait format

Mon Feb 09, 2015 10:53 am

Dom wrote:
I suspect it is a software issue. I can't imagine a hardware issue only affecting the rotated screen.

It feels like a GPU L2 cache coherency issue - I'll see if I can reproduce this tomorrow.
If you can't reproduce the issue, can I have a copy of your config.txt to compare, and see if there's something in there that's causing it? I can post mine later in case anyone wants to see if using it will reproduce the issue on another Pi2.

Ian

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6062
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi 2 Screen Glitches in Portrait format

Mon Feb 09, 2015 1:49 pm

@bradypus
I've just tried with display_rotate=3 (only entry in config.txt) and I've tried terminal, and Epihpany (dragging and resizing) and I'm not seeing any problem.
Can you provide your config.txt?
What does "tvservice -s" and "fbset" report?
Can you reproduce it with stock raspbian apps (e.g. terminal/Ephiphany)?
If you can explain exactly what operations you did.

bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Re: Pi 2 Screen Glitches in Portrait format

Mon Feb 09, 2015 9:41 pm

Dom asked:
Can you provide your config.txt?
What does "tvservice -s" and "fbset" report?
Can you reproduce it with stock raspbian apps (e.g. terminal/Ephiphany)?
If you can explain exactly what operations you did.
My config.txt is somewhere below. It's a bit long, sorry about most of it being commented out.

I can reproduce this with any window movement - terminal, image viewer, Epiphany, Leafpad, dialog boxes; just move them around the screen and redraw glitches show up, sometimes they even remain superimposed on windows that have been moved over the affected area. Some even remain when I log out of my lxde session and return to the shell, where they are either overwritten by scrolling text or scroll with it. It is also reproducible if I start the desktop with no apps auto-running.

The process to get the glitches is straightforward: boot up, login (pi/raspberry) startx, open a window or several and move them around.


tvservice -s reports:

Code: Select all

state 0x12001a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
fbset reports:

Code: Select all

mode "1080x1920"
    geometry 1080 1920 1080 1920 16
    timings 0 0 0 0 0 0 0
    rgba 5/11,6/5,5/0,0/16
endmode

Contents of config.txt:

Code: Select all


# For more options and information see 
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800


# NOOBS Auto-generated Settings:
hdmi_force_hotplug=1
#config_hdmi_boost=4
#overscan_left=24
#overscan_right=24
#overscan_top=16
#overscan_bottom=16
disable_overscan=1
gpu_mem=64
dtparam=spi=on
dtparam=i2c_arm=on

# comment out next line for normal orientation
display_rotate=3

bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Re: Pi 2 Screen Glitches in Portrait format

Mon Feb 09, 2015 9:47 pm

Forgot to include this bit in my last post:

I also get glitches using a different monitor with the rotated display, in this case an older 1280x1024 flat screen, using a HDMI-DVI cable. As before, no glitches in normal orientation.

Ian

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6062
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi 2 Screen Glitches in Portrait format

Mon Feb 09, 2015 10:53 pm

bradypus wrote: The process to get the glitches is straightforward: boot up, login (pi/raspberry) startx, open a window or several and move them around.
Hmmm. Running with your config.txt, your resolution, rotated display, and can't provoke any glitches on the display
(running epihany, lxterminal, scratch, python games, IDLE, and have been resizing and dragging them all).

Do you know anyone with a Pi 2? A swap test (i.e. their Pi 2 with your sdcard and other equipment) would identify if there is a hardware issue.
The other options is to try a clean install of raspbian (in case installing or updating something has got it into a bad state).

bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Re: Pi 2 Screen Glitches in Portrait format

Tue Feb 10, 2015 9:23 pm

@Dom - I've now done a clean install from debian6-19-04-2012.img, edited config.txt to rotate the screen & disable overscan. Glitches gone now, so we can definitively rule out a hardware problem, I think.

Will try slowly reinstalling the additional software, enabling I2C, SPI etc and see which, if any, of them reintroduces the problem. This may take a while.

One more small observation - I used to get a red square top-right of the coloured screen at reboot. I believe this is supposed to indicate overheating, but I'd ignored it, assuming it was simply indicating that the monitoring routine was active at that point in the boot sequence. That, too, has now gone.

I used a different SD card for the fresh install, so the old one is still available for further experimentation if necessary.

Thanks to all who offered help.

Ian

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6062
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi 2 Screen Glitches in Portrait format

Wed Feb 11, 2015 12:19 pm

bradypus wrote:@Dom - I've now done a clean install from debian6-19-04-2012.img, edited config.txt to rotate the screen & disable overscan. Glitches gone now, so we can definitively rule out a hardware problem, I think.
debian6-19-04-2012.img ? From the date that sounds rather old - any reason you're not using the raspbian image from the downloads page?
Will try slowly reinstalling the additional software, enabling I2C, SPI etc and see which, if any, of them reintroduces the problem. This may take a while.
Yes. "Install package X then corruption occurred" would be useful information.
One more small observation - I used to get a red square top-right of the coloured screen at reboot. I believe this is supposed to indicate overheating, but I'd ignored it, assuming it was simply indicating that the monitoring routine was active at that point in the boot sequence. That, too, has now gone.
I have seen this on occasion, but never when I have the debugger handy. I suspect the first temperature read is spurious in some circumstances - as long as it disappears during boot you can ignore it.

Kabinor
Posts: 2
Joined: Thu Feb 12, 2015 5:31 pm

Re: Pi 2 Screen Glitches in Portrait format

Thu Feb 12, 2015 6:49 pm

I think i have the same problem. Dont get any glitches in normal mode but when i rotate=3 i get them to.
So reinstall everything is the way to go?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6062
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi 2 Screen Glitches in Portrait format

Fri Feb 13, 2015 11:34 am

Kabinor wrote:I think i have the same problem. Dont get any glitches in normal mode but when i rotate=3 i get them to.
So reinstall everything is the way to go?
It appears that a clean raspbian doesn't have glitches. After various packages are installed and settings are changed the glitches appear.
So, ideally reinstall and then change settings and install packages slowly. Check for glitches after each change.
Hopefully we'll determine a package or setting that causes it - once we know that, it will make it easier to fix.

bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Re: Pi 2 Screen Glitches in Portrait format

Fri Feb 13, 2015 1:51 pm

I rather stupidly wrote:
@Dom - I've now done a clean install from debian6-19-04-2012.img, edited config.txt to rotate the screen & disable overscan. Glitches gone now, so we can definitively rule out a hardware problem, I think.
It had been a long day - I copied & pasted the name of the wrong image file, that should have been 2015-01-31-raspbian.img I should probably delete all the old images now ;)

Sorry about that one.

me_gazza
Posts: 2
Joined: Fri Feb 13, 2015 7:58 pm

Re: Pi 2 Screen Glitches in Portrait format

Fri Feb 13, 2015 8:39 pm

I have the same issue. I may not be getting your workaround, but I reinstalled my Noobs sd card, selected the OS to install, then on boot did the sudo nano /boot/config.txt to change my display_rotate=3. However I still get the redraw issue when moving windows around having run startx.

Thanks
Gareth

bradypus
Posts: 18
Joined: Sat Jun 09, 2012 4:07 pm

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 15, 2015 2:49 pm

OK, I've now reinstalled everything that was there before, when I got the glitches, and they have not returned.

So it looks like the lesson to be learned here (for the moment at least) is: pick the OS you want and download an SD card image for that, rather than using NOOBS and picking the OS whilst setting-up.

@me_gazza : try that instead?

me_gazza
Posts: 2
Joined: Fri Feb 13, 2015 7:58 pm

Re: Pi 2 Screen Glitches in Portrait format

Sun Feb 15, 2015 5:23 pm

Yeeeharrr!. Yep that fixed it for me thanks. I noted that when editing the /boot/config.txt following just using the raspbian image rather than noob, it did not have as many entries. Could be a possible issue.

Thanks again!

chalkers
Posts: 3
Joined: Wed Mar 04, 2015 6:42 am
Location: Portland, OR

Re: Pi 2 Screen Glitches in Portrait format

Wed Mar 04, 2015 6:46 am

I'm having issues on a clean install.

Here's my current settings:

Code: Select all

# For more options and information see 
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=82

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

gpu_mem=64
display_rotate=3
disable_splash=1
Any ideas?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6062
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi 2 Screen Glitches in Portrait format

Wed Mar 04, 2015 11:52 am

chalkers wrote:I'm having issues on a clean install.

Here's my current settings:
So are you saying that flashing latest raspbian image to sdcard, and editing config.txt to the version you posted will show the issue on first boot without installing any packages?
Please explain exactly what mouse presses you do to provoke the problem.

Return to “Troubleshooting”