User Tools

Site Tools


fluidcanvas_r2pi:tft_boot_splash_and_status_display_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
fluidcanvas_r2pi:tft_boot_splash_and_status_display_guide [2026/03/21 23:28] hyjeongfluidcanvas_r2pi:tft_boot_splash_and_status_display_guide [2026/03/27 21:40] (current) – [9. 문제 해결] hyjeong
Line 4: Line 4:
 ## 개요 ## 개요
  
-이 문서는 Raspberry Pi에서 SPI TFT (/dev/fb1)에 다음 기능을 구현하는 방법을 설명합니다.+이 문서는 Raspberry Pi에서 부팅 과정에서 다음의 정보를 SPI TFT-LCD(/dev/fb1)에 순차적으로 표시하는 방법을 설명합니다. 다음의 두 기능을 수행하는 홈 영역의 스크립트를 systemd에서 순차적으로 실행하는 것에 해당합니다.
  
-1. 부팅 시 splash 이미지 표시 +1. 부팅 시 splash 이미지 표시 - /home/pi/scripts/tft-splash.sh 
-2. 부팅 완료 후 shell에서 fluidardule_status.py를 실행하여 시스템 정보(시간, IP address, CPU 등)을 화면에 표시+2. 부팅 완료 후 시스템 정보(시간, IP address, CPU 등)를 화면에 표시 - /home/pi/scripts/fluidardule_status.py
  
 --- ---
Line 13: Line 13:
 ## 1. 필요한 패키지 설치 ## 1. 필요한 패키지 설치
  
 +fbi는 이미 설치되어 있다고 가정한다.
  
 ```bash ```bash
Line 21: Line 22:
 --- ---
  
-## 2. Splash 이미지 준비+## 2. Splash 이미지 
 + 
 +[480x320p Splash 이미지]( 
 +https://genoglobe.com/dokuwiki/_media/fluidcanvas_r2pi/custom_boot_splash_for_fluid_ardule.png?w=400&tok=2212af)
  
 ```bash ```bash
-ls -l /home/pi/sf2/Fluidardule.png+ls -l /home/pi/sf2/FluidArdule.png
 ``` ```
  
 --- ---
  
-## 3. Splash 스크립트+## 3. Splash 표시용 스크립트(~/scripts/tft-splash.sh)
  
 ```bash ```bash
-sudo nano /usr/local/bin/tft-splash.sh+nano 
 + ~/scripts/tft-splash.sh
 ``` ```
  
Line 43: Line 48:
  
 ```bash ```bash
-sudo chmod +x /usr/local/bin/tft-splash.sh+sudo chmod +x ~/scripts/tft-splash.sh
 ``` ```
  
Line 137: Line 142:
     main()     main()
 ```` ````
 +
 +```bash
 +sudo chmod +x ~/scripts/fluidardule_status.py
 +```
 --- ---
  
Line 153: Line 162:
 [Service] [Service]
 Type=oneshot Type=oneshot
-ExecStart=/usr/local/bin/tft-splash.sh+ExecStart=/home/pi/scripts/tft-splash.sh
 RemainAfterExit=yes RemainAfterExit=yes
  
Line 165: Line 174:
  
 ```bash ```bash
-sudo nano /etc/systemd/system/tft-status.service+sudo nano /etc/systemd/system/fluid_ardule.service
 ``` ```
  
Line 176: Line 185:
 [Service] [Service]
 Type=oneshot Type=oneshot
-ExecStart=/usr/local/bin/tft-status.sh+ExecStart=/home/pi/scripts/fluidardule_status.py
  
 [Install] [Install]
Line 189: Line 198:
 sudo systemctl daemon-reload sudo systemctl daemon-reload
 sudo systemctl enable tft-splash.service sudo systemctl enable tft-splash.service
 +sudo systemctl enable fluid_ardule.service
 ``` ```
  
Line 206: Line 216:
 systemctl status tft-splash.service systemctl status tft-splash.service
 journalctl -u tft-splash.service -b journalctl -u tft-splash.service -b
 +systemctl status fluid_ardule.service -b
 +journalctl -u fluid_ard
 +ule.service -b
 ``` ```
 +---
  
 +## 서비스를 아예 끄려면(재부팅 후에도 불활성화)
 +````
 +sudo systemctl stop tft-splash.service
 +sudo systemctl stop fluid_ardule.service
 +sudo systemctl disable tft-splash.service
 +sudo systemctl disable fluid_ardule.service
 +````
 --- ---
  
Line 221: Line 242:
 ## 핵심 요약 ## 핵심 요약
  
-* splash는 fbi로 빠르게 표시+* splash는 fbi로  
 +빠르게 표시
 * systemd로 자동 실행 * systemd로 자동 실행
 * fbi는 항상 덮어쓰기 방식 사용 * fbi는 항상 덮어쓰기 방식 사용
fluidcanvas_r2pi/tft_boot_splash_and_status_display_guide.1774103339.txt.gz · Last modified: by hyjeong