diff --git a/Configuring-the-Raspberry-Pi.md b/Configuring-the-Raspberry-Pi.md index a9bb61f..06a22e0 100644 --- a/Configuring-the-Raspberry-Pi.md +++ b/Configuring-the-Raspberry-Pi.md @@ -1,3 +1,26 @@ +## Enable the Open GL driver to decrease Electron's CPU usage. + +The latest versions of electron use an extreme amount of CPU power when no Open GL driver is loaded. This will result in an overheating Raspberry Pi. To solve this issue, use the experimental desktop Open GL driver by adding the following line to _/boot/config.txt_: + +```` +sudo nano /boot/config.txt +```` +Add the following line: +```` +dtoverlay=vc4-kms-v3d +```` + +Unfortunately, as a result, the `display_rotate=1` (see below) won't have any effect on the display. If you want to rotate the display when the Open GL driver is in use, we need to use the `xrandr` tool which allows us to rotate the display when in desktop mode. To do so, edit the autostart file: +```` +nano ~/.config/lxsession/LXDE-pi/autostart +```` +And add the following line: +```` +@xrandr --output HDMI-1 --rotate right +```` + +After the desktop has finished booting, the display will rotate. + ## Rotating the screen and hide Rainbow colored cube edit _/boot/config.txt_: ````