docs: update framebuffer troubleshooting add fbcp option

This commit is contained in:
alfrix 2024-03-03 01:42:41 -03:00
parent 5d5cfb5189
commit b97ec9aa86

View File

@ -1,18 +1,5 @@
# Screen is using the wrong framebuffer # 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, If you have multiple framebuffers, you may need to fix the X11 configuration,
list the available framebuffers and check the current one: list the available framebuffers and check the current one:
@ -28,6 +15,26 @@ ls /dev/fb*
!!! failure "Critical" !!! failure "Critical"
if you only see one, for example `/dev/fb0` then this is not the issue. Go to [Troubleshooting](../Troubleshooting.md) 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: the file specifying the framebuffer could be:
- 99-fbturbo.conf - 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 ***DO NOT CREATE A FILE***, and only edit if there is more than 1 framebuffer
!!! example !!! example
you found 99-fbturbo.conf: you found 99-fbdev.conf:
```sh ```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` since `ls /dev/fb*` returned `/dev/fb0 /dev/fb1` change it to `/dev/fb1`