FaqSolvingEditorGarbledText

When scrolling large files under X11 the text becomes garbled, how to solve this?

I am sure one image tell more than thousands of words, so here... we... go!

Click to enlarge

If you are experiencing this kind of behavior in your application, IDE or any kind of editor, don't worry so much, it is a misconfiguration of your video device. Just to track the problem, some issues were filed against NetBeans Issuezilla and they were identified as a invalid issue, since it is a video card misconfiguration. After some searches and tests I realized how to solve the problem. I am current using a Ubuntu 8.10 with an Mobile Intel X3100 video card, which was automatically configured by Ubuntu in my xorg.conf file as below:

Section "Device"
	Identifier	"Configured Video Device"
EndSection

The first step to solve the problem is to know which display controller you are exactly using. To got it, I used lspci command line tool, where Display controller property will say what you need. Now, you just need to edit your /etc/X11/xorg.conf file with the code that follow and don't forget to backup your current xorg.conf file:

Section "Device"
	Identifier	"Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
        Option          "AccelMethod"           "xaa"
        Option          "RenderAccel"           "true"
EndSection
where
Identifier
should be your display controller. Now you just need restart your X server and back to work. For details about this solution, see this discussion and comments are really appreciated.


Using the 'radeon' driver with an 'ATI Radeon Mobility X1400', the issue could be fixed by setting option 'EXAPixmaps' to 'false'. For example:

Section "Device"
        Identifier "Device0"
        Driver "radeon"
        Option "EXAPixmaps" "false"
EndSection

Another alternative is add a new property for JDK:

-Dsun.java2d.pmoffscreen=false

This should fix it too.

Happy coding!

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo