HDMI - Pink screen sometimes

So…I have added the line via ssh…saved it, does it look right?, may have done it twice because when I Cyberduck into it I have 3 versions…I rebooted and got the same blank screen…how do I delete the first two versions please?fullsizeoutput_352 fullsizeoutput_353

Thanks again…feel the light is at the end of the tunnel…
M

They generally will be ignored. But you can remove them with sudo rm rc.local.save and sudo rm rc.local.save.1

Looks tight based on the instructions. But maybe @grahamh made a mistake and it should be
echo 8bitnow > /sys/class/amhdmitx/amhdmitx0/attr

Ok…so this latest script isn’t working either…also I can’t delete the other files …eek…see picture below:fullsizeoutput_354

There should be no need for the now in rc.local but no harm either. And no harm to the rc.local.save.* files.

Please re-boot and post logs from ssh with grab-logs -A.

Thanks.

Just enabled de bugging, rebooted and blank screen now…so got logs and here they are:

https://paste.osmc.tv/gapufojucu

Cheers,

M

Run: cat /etc/rc.local | paste-log and post the URL

https://paste.osmc.tv/izuhaluvok

This is the problem:

Nov 26 13:41:16 osmc systemd[388]: rc-local.service: Failed to execute command: Exec format error
Nov 26 13:41:16 osmc systemd[388]: rc-local.service: Failed at step EXEC spawning /etc/rc.local: Exec format error
Nov 26 13:41:16 osmc systemd[1]: rc-local.service: Control process exited, code=exited, status=203/EXEC
Nov 26 13:41:16 osmc systemd[1]: rc-local.service: Failed with result 'exit-code'.
Nov 26 13:41:16 osmc systemd[1]: Failed to start /etc/rc.local Compatibility.

You need to remove that empty line you added before

#!/bin/sh -e

well…I’m in there but don’t know how to remove the empty line…any pointers please?!

M

I’ve got into the bit to edit file just can’t delete the first line…here is my photo of where I am.I can see my cursor, just can’t delete the line…:slight_smile:fullsizeoutput_355

to answer my post I managed to delete the file with a back space, saved it, rebooted and screen blank. Had to ssh into to see sudo nano /etc/rc.local and it had the first line back again…

M

On Windows,the delete key removes those blank lines.

Or backspace when you are on the line that starts #!

Right, I have 8 rc.local files, the last one save 6 has the correct structure…i.e no line at the beginning…if I could delete all the stuff before it I think this would work ad the others all have the space:fullsizeoutput_356

sudo rm /etc/rc.local
sudo mv /etc/rc.local.save.6 /etc/rc.local

Then please post output of
ls -l /etc/rc.local

I’ve done as requested and it says ‘no such file or directory’
fullsizeoutput_357

I didn’t ask you to rm rc.local after the mv !!

Now you’ve lost it.

What have you got left now?

ls -l /etc/rc.local*

sorry…whole new world this…this is what I have left…fullsizeoutput_358

cat /etc/rc.local

done that…here’s the piccy:

fullsizeoutput_359