You don’t need sudo in rc.local. I recommend:
- try to find the setting on your TV that stops overscan. It may be called 1:1 or such.
- instead of
sudo loadkeys fr
, writeloadkeys fr-x11
- reboot
And if you type ls -l /etc/rc.local you should see this:
osmc@osmc:~$ ls -l /etc/rc.local
-rwxr-xr-x 1 root root 497 Aug 12 2017 /etc/rc.local
If you don’t see those x’s, type:
sudo chmod +x /etc/rc.local