Home › Forums › Forums › Technical Support for PiScreen › Moving Console back to HDMI.
- This topic has 14 replies, 3 voices, and was last updated 8 years, 2 months ago by Mark Williams.
- AuthorPosts
- February 23, 2015 at 12:44 pm #3563gjgsmithParticipant
I deleted the line of text in the boot cmdline.txt as per the instructions but on rebooting it has made no difference; it’s still boots to the PiScreen as normal.
I’m sure this worked for me before so maybe my boot cmd file is corrupted. Could this also be affecting my Wi-Pi auto recognise issue as well??? (as a guess!)
My Karma just ran over your Dogma.
February 23, 2015 at 3:32 pm #3564Mark WilliamsKeymasterNot sure about the Wi-Pi issue, this would be a first.
What does your cmdline.txt file look like?
You can also try this.
Move console to HDMI;
con2fbmap 1 0Move console to PiScreen
con2fbmap 1 1Mark --OzzMaker.com --
February 23, 2015 at 8:34 pm #3566gjgsmithParticipantThis is the cmdline.txt file text:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
I entered this into the terminal and then rebooted but still no change.
con2fbmap 10My Karma just ran over your Dogma.
February 25, 2015 at 4:18 pm #3574gjgsmithParticipantAfter re-imaging, the PiScreen is working normally again except that I still can’t shift the Console back to HDMI after deleting the respective text.
Interestingly, on reboot I see the font has changed to a bigger size on the HDMI monitor for a few moments, but then the focus changes to the PiScreen which then loads normally. It’s like thee is some other setting that is directing output to the piscreen instead of the HDMI monitor.
When I enter
con2fbmap10
into the terminal, I get the message – bash: con2fbmap10: command not foundMy Karma just ran over your Dogma.
February 25, 2015 at 5:58 pm #3576Mark WilliamsKeymasterwhen you enter con2fbmap10.. there is a space on either side of the “1”?
con2fbmap 1 0
If you dont have it, then you would need to install it
sudo apt-get install con2fbmap
When using con2fbmap, the change is instant and there is no need to reboot.
Just to be sure… do you see anything out the HDMI port? E.g. colors as the Pi boots?
Mark --OzzMaker.com --
February 25, 2015 at 8:16 pm #3579gjgsmithParticipantThanks Mark,
I re-entered command as you said with spaces:
con2fbmap 1 0
no success.Tried installing:
sudo apt-get install con2fbmap
– message returned said: could not find package. I then ran – sudo apt-get update – and tried installing again but with same result. Also tried – sudo pip install con2fbmap – with same result, could not find package.FWIW I did successfully install wiringpi2 using:
sudo pip install wiringpi2
– no problem there…Lastly, when the Pi boots yes, I can see a big ‘rainbow’ coloured square at the start and all the boot messages show on the HDMI monitor. At the end of the boot process the PiScreen loads the desktop and HDMI go blank. If anything, I have proved you don’t need that addition text in the cmdline.txt to get PiScreen working, (on mine anyway!)
Everything seems to be working fine except for this issue. I’m keen to get the touch buttons working to control the GPIO but would love to be able to use the HDMI monitor to work on it.
Cheers
GeoffMy Karma just ran over your Dogma.
February 26, 2015 at 2:34 pm #3580Mark WilliamsKeymasterI am at a loss… i am not sure what is wrong.
When you have time, can you show me the output of these two commands;
uname -a
cat /boot/config.txt
Mark --OzzMaker.com --
February 26, 2015 at 3:09 pm #3583gjgsmithParticipantThanks Mark, hope this helps.
See attachment.Attachments:
My Karma just ran over your Dogma.
February 26, 2015 at 4:17 pm #3585gjgsmithParticipantMark, I don’t have any expertise at all in this area but, using some reverse logic, it seems the pi is getting the configuration on boot from somewhere, obviously not the cmdline.txt file. Could it have been cached somewhere else in another file, driver or module perhaps?
I noticed that the font size of the boot messages is smaller than the normal std Raspbian boot messages, so could it be that the output config settings like font, framebuffer etc… are being picked up somewhere and used early in the boot process? I realised this suggestion is probably ‘rubbish’ but then something odd seems to be happening here.
Is there some work-around that I could try in an attempt to isolate the issue like, re-directing FB output to HDMI prior to startx??
My Karma just ran over your Dogma.
March 5, 2015 at 12:20 pm #3630yanunixParticipantI can’t switch back to HDMI too.
The content of cmdline.txt:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwaitI tried con2fbmap 1 0 but it’s not work.
—
edit:
I cannot upload pictures, contents of unname -a and config.txt is below:
March 5, 2015 at 1:55 pm #3633Mark WilliamsKeymasterSorry for the late reply.
If you have a spare SD Card, please try this image;
https://ozzmaker.com/piscreen/PiScreenImage-SDCard-1.7.zipIt is running the latest Raspbian, which means it runs on Pi 2.
I tested changing the console from cmdline.txt and it works.Mark --OzzMaker.com --
March 5, 2015 at 3:09 pm #3641gjgsmithParticipantThanks Mark,
I’m assuming the new updated image is compatible with Pi B+ too???
My Karma just ran over your Dogma.
March 5, 2015 at 3:14 pm #3643Mark WilliamsKeymasteryes, I have tested in on A, A+, B , B+ and Pi 2
Mark --OzzMaker.com --
March 10, 2015 at 11:47 am #3688gjgsmithParticipantSorry for the late reply.
If you have a spare SD Card, please try this image;
https://ozzmaker.com/piscreen/PiScreenImage-SDCard-1.7.zip
It is running the latest Raspbian, which means it runs on Pi 2.
I tested changing the console from cmdline.txt and it works.Hi Mark,
I re-imaged with your Ver1.7 without any problems, the new X desktop looks good btw, and opened up the cmdline.txt file but found the ‘fbcon=map:10 fbcon=rotate:2 fbcon=font:ProFont6x11’ was not present. I haven’t made any changes or edits to anything, but I thought that this line was needed to direct output to the PiScreen? I tried entering ‘con2fbmap 1 0’ into the terminal (from X desktop) but still can’t move the console back to hdmi.I also tried the v1.7 image on a brand new straight out of the box Pi2 with exactly the same result.
When you say that – “I tested changing the console from cmdline.txt and it works.” – would you mind describing exactly what you did? Thanks Mark, Cheers.
Geoff
My Karma just ran over your Dogma.
March 11, 2015 at 12:26 am #3693Mark WilliamsKeymasterGeoff, we have updated the image, as a few people were saying that 1.7 was having random lockups.
https://ozzmaker.com/piscreen/PiScreenImage-SDCard-1.8.zip
I test moving the console on this image and it also works.
Right after the first boot I entered;
sudo nano /boot/cmdline.txt
deleted ‘fbcon=map:10 fbcon=rotate:0 fbcon=font:ProFont6x11’ from the end, and rebooted.Console is now on HDMI
BTW:
Try testing with X not running.
To stop X from automatically starting on each boot.
edit rc.local
sudo nano /etc/rc.local
And add a hash ‘#’ in front of ‘su -l pi -c “env FRAMEBUFFER=/dev/fb1 startx &’Mark --OzzMaker.com --
- AuthorPosts
- You must be logged in to reply to this topic.