Page 1 of 1

Pi 3 VGA

Posted: Sun Jul 17, 2016 12:01 pm
by api123
I have recently upgraded my B+ Raspberry Pi to a raspberry pi 3. The VGA/HDMI adapter and monitor that I used for my old Pi don't work with my Pi 3.
From what was done last time I understand that I need to access and edit the code. Unfortunately I don't know how to access or the code.
Classic example of done once and promptly forgotten.

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 1:37 pm
by DNPNWO
Put pi3 sdcard into a card reader/PC, and edit config.txt

something like:

Code: Select all

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

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 1:56 pm
by api123
Thanks when we made the edit, it wouldn't let us save the file. i.e. when we ok'd to let it overwrite the existing file it said it couldn't open it to write.

Any ideas?

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 2:17 pm
by DNPNWO
api123 wrote:Thanks when we made the edit, it wouldn't let us save the file. i.e. when we ok'd to let it overwrite the existing file it said it couldn't open it to write.

Any ideas?
Make it writable. Are you using an sdcard adapter? Make sure you have write protection off.

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 2:24 pm
by api123
No, we've hooked up the PI to the HDMI socket of the living room TV so there should(?) be no write protect

Thanks again

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 2:31 pm
by DNPNWO
api123 wrote:No, we've hooked up the PI to the HDMI socket of the living room TV so there should(?) be no write protect

Thanks again
Are you trying to edit the file though the OS (terminal), or file manager? Did you use sudo?

Terminal:

Code: Select all

sudo nano /boot/config.txt
File Manager (select "tools" and then "run command in current file"):

Code: Select all

gksudo pcmanfm

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 2:36 pm
by api123
We opened up the config.txt file through the boot folder. I remember using sudo in the past, is that our way in?
I don't know if the latest raspbian software is less accessible than previous versions.

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 2:42 pm
by DirkS
api123 wrote:We opened up the config.txt file through the boot folder. I remember using sudo in the past, is that our way in?
I don't know if the latest raspbian software is less accessible than previous versions.
The FAT partition (/boot directory on a running Raspbian system) always needs admin privileges.
So yes, you need to use sudo (and it always has been that way)

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 4:18 pm
by api123
Thanks, my pi is now up and working :D

Re: Pi 3 VGA

Posted: Sun Jul 17, 2016 4:31 pm
by W. H. Heydt
api123 wrote:Thanks when we made the edit, it wouldn't let us save the file. i.e. when we ok'd to let it overwrite the existing file it said it couldn't open it to write.

Any ideas?
Try using Open Office/Libre Office to edit the file from a PC. It will handle the newline/CR issue correctly. If you're logging in to the Pi using ssh, use your editor of choice, but run it as suod, e.g. "sudo vi /boot/config.txt".

Re: Pi 3 VGA

Posted: Mon Jul 18, 2016 5:31 am
by Zebu
Probably not usefull here but just as a side note. When editing config.txt Windows PC, Wordpad rather than Notepad will do a better job of keeping line breaks where they should be