mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Information about loading the GL driver.
parent
1d325d9cea
commit
72dcb2af66
@ -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_:
|
||||
````
|
||||
|
Loading…
x
Reference in New Issue
Block a user