Remove little black rectangle on screen - raspberry pi

To rid yourself of the annoying little black rectangle do the following, its only a work around but it does work.


Create a script, mine starts my kiosk as well so is called /home/pi/screen.sh

this script should look like:
#!/bin/bash
startx –help
while true; do chromium –kiosk –incognito –enable-plugins http://your web addresshere.html;sleep 180s;done


The 2nd line is my kiosk – you probably wont need it but I put it there anyway.

Then add the following line
 @/home/pi/screen.sh

to the file:

/etc/xdg/lxsession/LXDE-pi/autostart

Reboot and watch the splash screen followed by a brief black flash and then your screenly, kiosk, or whatever your running without the black rectangle.

Comments

Popular posts from this blog

How to clean DB from old logs in Magento 1.x

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Apache 2.4 + mod_wsgi + Python 3.7 + Django installation on Centos 7.10