restart to blank screen
Forums:
Hi, It was all going so well...
We installed everything up to the ps3 controller which was working well, then restarted the pi3 and after initial normal boot sequence we got a black screen with a blinking curser top left.
Tried turning off /on and the same, I don't really know where it went wrong, everything we installed seemed to be good, just up to the crontab -e line
Any suggestions?
thanks H
piborg
Thu, 12/22/2016 - 18:51
Permalink
Very strange
That is very strange, editing crontab should not cause that kind of problem.
Does the Raspberry Pi show anything booting up at all, or does it immediately show the blank screen?
Hexf
Thu, 12/22/2016 - 19:02
Permalink
Hi, boot up looks fine
Hi, boot up looks fine raspberry image in middle of screen . various notifications on bottom left, I think last one is starting rsylog (or something similar). Has definitely loaded raspbian
piborg
Thu, 12/22/2016 - 19:07
Permalink
script problem
In that case my best guess is that the script you added to crontab is the culprit.
Do you get a login prompt if you press CTRL + ALT + F2?
Hexf
Thu, 12/22/2016 - 19:10
Permalink
Lush. Yes!
Lush. Yes!
piborg
Thu, 12/22/2016 - 19:21
Permalink
Great :)
That is good, it means everything is working fine.
The problem will be the script you added with crontab stealling the screen.
If you are using one of our
diddyJoy.py
or similar scripts I think i might know what the trouble is.There is a bit of a bug with pygame unfortunately with how it handles not having a graphical display.
In this case I think it might be creating a blank GUI screen, this also affects use over SSH logins.
What you can try is editing the
.py
script you are trying to run.Look for the line:
and delete the
#
so it looks like:It is a bit confusing, on some installs making this change stops things working correctly.
This is a bug relating to pygame itself sadly.
If that does not work on its own you should be able to run the script in a VNC session.
This will allow access to the graphical system and make pygame happy.
Hexf
Thu, 12/22/2016 - 19:13
Permalink
Do you have any suggestions
Do you have any suggestions what I should do to fix it ?
Hexf
Fri, 12/23/2016 - 10:38
Permalink
Hi, could you lead me through
Hi, could you lead me through how to get to that bit of code to change, it thought I could do so through startx but that doesn't work. Please and Thanks !
piborg
Fri, 12/23/2016 - 10:53
Permalink
Editing the script
The easiest thing to try would be forcing the script to stop, then try switching back to the graphical display:
sudo killall python
If that does not work then I would suggest editing the script in the terminal using nano like this:
cd ~/diddyborg
nano diddyJoy.py