-
[라즈베리파이] 프로젝트 세팅 정리이전 포스팅/라즈베리파이 2018. 4. 4. 21:28
라즈베리파이
OS : Raspbian GNU/Linux 9 (stretch), 2018-03-13
Display : 10.1 inch(waveshare), 1024 x 600
부팅 로그 없애기
sudo vi /etc/rc.local 에 스크립트 추가dmesg --console-off산딸기 4개 없애기
sudo vi /boot/cmdline.txt
맨 끝 줄에 logo.nologo
마우스 커서없애기
1. sudo vi /boot/cmdline.txt
추가 vt.global_cursor_default=0
(안됨)2. sudo vi /etc/X11/xinit/xserverrc
exec /usr/bin/X -nolisten (추가) -nocursor (추가끝) tcp "$@"
(안됨)
3. sudo vi /etc/lightdm/lightdm.conf
xserver-command=x
뒤에 옵션 추가 -nocursor
xserver-command=x -nocursor
부팅 이미지 바꾸기
부팅 이미지 바꾸기
/usr/share/plymouth/themes/pix/splash.png경로에 있는 이미지 변경size 1024 x 768화면 회전 600 x 1024
sudo vi /boot/config.txt터치보정
1. xinput 설치sudo apt-get install xinput2. 디바이스 확인DISPLAY=:0 xinput --list3. 터치 x,y 축 교체
DISPLAY=:0 xinput --set-prop 'waveshare HDMI/VGA/AV RTD2660H Viedo Board' 'Evdev Axes Swap' 14. x축 반전90도DISPLAY=:0 xinput --set-prop 'waveshare HDMI/VGA/AV RTD2660H Viedo Board' 'Evdev Axis Inversion Swap' 0 1orDISPLAY=:0.0 xinput --set-prop 'waveshare HDMI/VGA/AV RTD2660H Viedo Board' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1270도DISPLAY=:0 xinput --set-prop 'waveshare HDMI/VGA/AV RTD2660H Viedo Board' 'Evdev Axis Inversion Swap' 1 0orDISPLAY=:0.0 xinput --set-prop 'waveshare HDMI/VGA/AV RTD2660H Viedo Board' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 15. 스크립트 등록sudo vi /etc/rc.local 에 90 또는 270 스크립트 추가or/etc/xdg/lxsession/LXDE-pi/autostart/etc/profile.d 에 xxx.sh 등록 후sudo vi /etc/rc.local 에 90 또는 270 스크립트 추가응용프로그램 자동 실행 (바로실행)
/etc/profile.d/xxx.sh 추가xxx.h에 절대경로f.g/home/pi/app/app(실행파일) &**& 안하면 다른 sh은 적용 안됨sudo vi /etc/profile맨 아래에 추가. /etc/profile.d/xxx.sh응용프로그램 자동 실행 2
/etc/xdg/autostart에 있는 xxxx.desktop 참고하여 추가하기바탕화면 보인 후 실행f.g[Desktop Entry]Type=ApplicationName=ppromptComment=Prompt to change default password if ssh enabledNoDisplay=trueExec= /home/pi/xxxxxNotShowIn=GNOME;KDE;XFCE;'이전 포스팅 > 라즈베리파이' 카테고리의 다른 글
[라즈베리파이] 시리얼 세팅 (0) 2018.05.18 댓글