DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Software Design and Architecture
  3. Performance
  4. Tip: How to Solve Garbled Text Problems Under Linux?

Tip: How to Solve Garbled Text Problems Under Linux?

Michel Graciano user avatar by
Michel Graciano
·
Apr. 19, 10 · Interview
Like (0)
Save
Tweet
Share
7.96K Views

Join the DZone community and get the full member experience.

Join For Free

Wondering how to solve NetBeans IDE and, generally, Java editor problems when scrolling down large files under Linux? Sometimes, under those conditions, the text becomes garbled, distorted, or scrambled. I am sure one image will say more than a thousand words, so here... we... go:

If you are experiencing this kind of behavior, in your application, IDE, or any kind of editor, don't worry! It is a misconfiguration of your video device and you can come across it in several Java applications.

Just to track the problem, some issues were filed against NetBeans Issuezilla, at which point it was 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 currently using Ubuntu 8.10, with a 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 using. To get it, I used the "lspci" command line tool, where the Display controller property shows you the info you need. Now, you just need to edit your "/etc/X11/xorg.conf" file with the code that follows... and don't forget to backup your current "xorg.conf" file first:

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 then get back to work. For details about this solution, see this discussion and comments are really appreciated.

Another alternative is to add a new property for the JDK:

-Dsun.java2d.pmoffscreen=false

This should fix it too. Happy coding!

From http://www.michelgraciano.com

Linux (operating system)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Chaos Engineering Tutorial: Comprehensive Guide With Best Practices
  • Demystifying the Infrastructure as Code Landscape
  • A First Look at Neon
  • Use AWS Controllers for Kubernetes To Deploy a Serverless Data Processing Solution With SQS, Lambda, and DynamoDB

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: