AngusRT
Posts: 4
Joined: Thu Sep 26, 2019 5:04 pm

Booting to a blank screen

Thu Sep 26, 2019 5:22 pm

OK, confession time, I’m a nooby and I’ve messed up.

I have created a python script for flashing some lights which I wanted to start on boot up, so I followed the instructions here:

https://www.raspberrypi-spy.co.uk/2015/ ... y-pi-boot/

I entered “sudo nano /etc/profile”, put my script at the end (“sudo python /home/pi/saucer.py”), saved, rebooted - and the Pi booted up, the script worked just fine but left me looking at a blank screen.

I think I should have added & at the end of my addition to allow my script to work in the background. For now, nothing I can think of will stop the script and allow me to get back to the raspbian GUI screen.

Any ideas?

fbe
Posts: 644
Joined: Thu Aug 17, 2017 9:08 pm

Re: Booting to a blank screen

Thu Sep 26, 2019 9:20 pm

Don't run endless programs from /etc/profile. This file is used for login. If you login twice, your script will run twice.

AngusRT
Posts: 4
Joined: Thu Sep 26, 2019 5:04 pm

Re: Booting to a blank screen

Thu Sep 26, 2019 10:48 pm

Great lesson learned, but how to I get back to a normal GUI screen?

klricks
Posts: 7209
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Booting to a blank screen

Fri Sep 27, 2019 3:54 am

AngusRT wrote:
Thu Sep 26, 2019 10:48 pm
Great lesson learned, but how to I get back to a normal GUI screen?
Try [Ctrl] [Alt] [F2]
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

AngusRT
Posts: 4
Joined: Thu Sep 26, 2019 5:04 pm

Re: Booting to a blank screen

Fri Sep 27, 2019 4:55 am

Sadly, not there yet. [Ctrl}[Alt][F2] gets me to a login page:

Raspbian GNU/Linux 7raspberrypi tty3
raspberrypi login:

I enter the username in my beginners book
pi [enter]

It asks for a password:
Password:

I think the password is ‘raspberry’ but the keyboard doesn’t respond and I can’t type anything in.

None of the following work either:
[Ctrl][[C]
[Ctrl][Z]
[Ctrl][Break]

I’m sure doing something so trivial hasn’t ‘bricked’ the Pi - I hope

klricks
Posts: 7209
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Booting to a blank screen

Fri Sep 27, 2019 5:28 am

AngusRT wrote:
Fri Sep 27, 2019 4:55 am
....

I think the password is ‘raspberry’ but the keyboard doesn’t respond and I can’t type anything in.

It is normal to not have any keyboard feedback when typing the password, not even ***.
Just type the password and press [Enter]
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

AngusRT
Posts: 4
Joined: Thu Sep 26, 2019 5:04 pm

Re: Booting to a blank screen

Fri Sep 27, 2019 7:33 am

Brilliant, that was the answer. I could edit the profile to add the & and I am now back to the GUI with the python script running.

Thank you so much for that. :-)

Return to “Beginners”