Khadas 절전 상태 해제”

ssh연결로 사용해서 계속 절전모드 진입으로 오래 켜놓을 수 없었음. 절전 모드 해제를 위해 아래와 같이 상태 확인 후 상태 변경함.

$ systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
 sleep.target - Sleep
     Loaded: loaded (/lib/systemd/system/sleep.target; static; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:systemd.special(7)
 
 suspend.target - Suspend
     Loaded: loaded (/lib/systemd/system/suspend.target; static; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:systemd.special(7)
 
 hibernate.target - Hibernate
     Loaded: loaded (/lib/systemd/system/hibernate.target; static; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:systemd.special(7)
 
 hybrid-sleep.target - Hybrid Suspend+Hibernate
     Loaded: loaded (/lib/systemd/system/hybrid-sleep.target; static; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:systemd.special(7)
khadas@Khadas:~$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
[sudo] password for khadas: 
Created symlink /etc/systemd/system/sleep.target /dev/null.
Created symlink /etc/systemd/system/suspend.target /dev/null.
Created symlink /etc/systemd/system/hibernate.target /dev/null.
Created symlink /etc/systemd/system/hybrid-sleep.target /dev/null.
khadas@Khadas:~$ systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
 sleep.target
     Loaded: masked (Reason: Unit sleep.target is masked.)
     Active: inactive (dead)
 
 suspend.target
     Loaded: masked (Reason: Unit suspend.target is masked.)
     Active: inactive (dead)
 
 hibernate.target
     Loaded: masked (Reason: Unit hibernate.target is masked.)
     Active: inactive (dead)
 
 hybrid-sleep.target
     Loaded: masked (Reason: Unit hybrid-sleep.target is masked.)
     Active: inactive (dead)
 

Ref


Video Streaming in QGC

https://docs.px4.io/main/en/companion_computer/video_streaming.html

gstreamer 설치 중 아래와 같은 에러 발생

The following packages have unmet dependencies: gstreamer1.0-python3-dbg-plugin-loader : Conflicts: gstreamer1.0-python3-plugin-loader but 1.16.2-2 is to be installed gstreamer1.0-python3-plugin-loader : Conflicts: gstreamer1.0-python3-dbg-plugin-loader but 1.16.2-2 is to be installed E: Unable to correct problems, you have held broken packages.

Github Issues에서 같은 문제를 겪는 사람이 충돌 나는 부분을 제외하고 설치하는 명령어를 올려줘서 해결.

 sudo apt-get install $(apt-cache --names-only search ^gstreamer1.0-* | awk '{print $1}' | grep -v gstreamer1.0-hybris | grep -v gstreamer1.0-python3-dbg-plugin-loader)

Ref