element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Raspberry Pi - Screen problems
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: GreenYamo
  • Date Created: 7 May 2012 6:39 PM Date Created
  • Views 337 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

Raspberry Pi - Screen problems

GreenYamo
GreenYamo
7 May 2012

Today was the first day i've really had to fiddle around with the Pi since its arrival.

 

I had been keeping aside an old (ish) 19" monitor to use with the pi and had briefly tried this the previous day, only to find that the screen was severely off to the left hand side, meaning I couldn't see the prompt properly and when running xwindows, the start button (for want of a better word) wasn't visible.

 

So, first thing to fix. I feel that I need to say that I ended up using a different monitor as I couldn't completely solve the problem to my satisfaction, but I hope that some of the steps I went through are helpful to other people (and also I couldn't really justify a fourth monitor on my desk)

 

There are a number of threads around on a file called config.txt. This file is used as part of the boot process of the Pi, which actually boots from its Graphics Processing Unit (GPU), the config.txt file is first read by the GPU before the ARM core is initialised. The Pi is supposed to negotiate with the screen to get the correct resolution, but if it doesn't then you can force screen settings (and other settings, although this are more risky, such as over volting).

 

If you are having screen problems it is always worth trying a different HDMI lead, many are of dubious parentage (one of mine cost 37p) so my feeling is that this is the first way to go. I tried this and still the same, so onto the config.txt file.

 

In my case, this file didn't already exist (it is optional) so I had to create it. There are two main way to achieve this, both of which I will detail:

 

1) This method is from the Pi itself and I am presuming that you have already started xwindows. If not and you find yourself at a rather unfriendly DOS type command prompt, and it is asking for a username and password, the details for debian are User: Pi and Password: Raspberry. Once you have logged on, type 'startx' to go into a windows type environment. Now, if you can't see a start type buttons as on windows, you may well be having resolution problems. From the keyboard, try hitting CTRL & ESC keys together and hopefully this should bring up a menu. Go to Accessories and then LXterminal.

This will bring up a DOS style window and a prompt that looks like this: pi@raspberrypi: at this prompt, type sudo nano /boot/config.txt - Sudo is a Linux term that means you are using admin rights (more possibly on this another time) Nano is a text editor and config.txt is a text file in the boot directory that we are going to edit (if it already exists) or create (if it doesn't)

 

Now, i'm not going to list all the different modes here, they are available at the Raspi wiki here: http://elinux.org/RPi_config.txt DO NOT be tempted to play around with the voltage settings, as this will invalidate your warranty.

 

Once in the text editor, add in commands that you think may help, each to one line like this: (# character means the line is a comment and will be ignored)

 

#Set HDMI mode to 19 (720p 50hz)

hdmi_mode=19

 

Now hit CTRL & o (writeout = save the file) this will prompt with the path of the file, just hit enter again. Now CTRL and X and you have exited Nano. Now type exit and you will close down the window opened.

 

2) To achieve the same on windows, take your SD card with Debian on it and insert into a card reader. Once it has been detected, then open the SD card. There will a a few strange looking files, if there is already a file there called config.txt, then click on it, if there isn't then right click, create new text docment and call it config.txt. Open it up and add in settings as per above. Eject from the PC and put into the PI

 

It should go without saying, but never remove the SD card, or insert the SD card into the Pi when it has power applied to it. Always make sure it is unplugged from the power supply.

 

Following a lot of experimenting, non booting after changing settings (if this happens to you, get the SD card to a windows PC and comment out the changes you have made, and the pi should boot normally) I discovered another thread, that suggested downloading a newer 'elf' file from this address: https://github.com/raspberrypi/firmware/raw/master/boot/start.elf This made a lot of difference, the task bar and buttons were more or less on screen. However, the more or less part troubled me and again it was going around with changing settings, booting, seeing what happened and trying again.

 

Eventually, I tried on another monitor and the Pi booted perfectly, first time and with nothing in the config.txt file, so I took the decision to cut my time losses and use the other monitor.

 

Chickened out ? Probably, but I only have a limited amount of time to play with stuff like this, and fine tuning monitor settings isn't my idea of fun :-)

 

Steve

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube