From b97ec9aa86b113445be5050527fb632dc74dbee6 Mon Sep 17 00:00:00 2001 From: alfrix Date: Sun, 3 Mar 2024 01:42:41 -0300 Subject: [PATCH] docs: update framebuffer troubleshooting add fbcp option --- docs/Troubleshooting/Framebuffer.md | 46 +++++++++++++++++++---------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/docs/Troubleshooting/Framebuffer.md b/docs/Troubleshooting/Framebuffer.md index 9dbe5629..819c621f 100644 --- a/docs/Troubleshooting/Framebuffer.md +++ b/docs/Troubleshooting/Framebuffer.md @@ -1,18 +1,5 @@ # Screen is using the wrong framebuffer - -## LCD-show - -when using [Waveshare-LCD-show](https://github.com/waveshare/LCD-show) to install screens add `lite` at the end -to properly install the screen on the lite version of the OS. this will typically change the framebuffer - -for example: -``` -sudo ./LCD35-show lite -``` - -## Manually change the framebuffer - If you have multiple framebuffers, you may need to fix the X11 configuration, list the available framebuffers and check the current one: @@ -28,6 +15,26 @@ ls /dev/fb* !!! failure "Critical" if you only see one, for example `/dev/fb0` then this is not the issue. Go to [Troubleshooting](../Troubleshooting.md) +## Use fbcp to copy from one framebuffer to the other + +```sh +cd +git clone https://github.com/tasanakorn/rpi-fbcp.git +cd rpi-fbcp +mkdir build +cd build +cmake .. +make +sudo install fbcp /usr/local/bin/fbcp +sudo wget -O /etc/init.d/fbcp https://gist.github.com/notro/eac0fec51cac67bb99c7/raw/4804a36459db10b17d35451d98d4573a045084be/fbcp +sudo chmod +x /etc/init.d/fbcp +sudo update-rc.d fbcp defaults +sudo reboot +``` + +## Manually change the framebuffer + + the file specifying the framebuffer could be: - 99-fbturbo.conf @@ -44,12 +51,19 @@ ls /usr/share/X11/xorg.conf.d/ ***DO NOT CREATE A FILE***, and only edit if there is more than 1 framebuffer !!! example - you found 99-fbturbo.conf: + you found 99-fbdev.conf: ```sh - sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf + sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf + ``` + ``` title="99-fbturbo.conf" + Section "Device" + Identifier "Allwinner A10/A13/A20 FBDEV" + Driver "fbdev" + Option "fbdev" "/dev/fb0" + Option "SwapbuffersWait" "true" + EndSection ``` - and the file specifies `/dev/fb0` since `ls /dev/fb*` returned `/dev/fb0 /dev/fb1` change it to `/dev/fb1`