Skip to content

Instantly share code, notes, and snippets.

View matoken's full-sized avatar

KenichiroMATOHARA matoken

View GitHub Profile
[May30 13:37] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ +0.000000] Linux version 5.4.42-v8+ (dom@buildbot) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020
[ +0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[ +0.000000] efi: Getting EFI parameters from FDT:
[ +0.000000] efi: UEFI not found.
[ +0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[ +0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ +0.000000] On node 0 totalpages: 242688
[ +0.000000] DMA zone: 3792 pages used for memmap
[ +0.000000] DMA zone: 0 pages reserved
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================-===================================-============-===============================================================================
ii adduser 3.118 all add and remove users and groups
ii adwaita-icon-theme 3.30.1-1 all default icon theme of GNOME
ii agnostics 0.4 arm64 Raspberry Pi Diagnostics
ii alacarte 3.11.91-4+rpt1 all easy GNOME menu editing tool
ii alsa-utils 1.1.8-2 arm64 Utilitie
$ qtqr
QPixmap::scaled: Pixmap is a null pixmap
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
WARNING: no compatible input to output format
...trying again with output disabled
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="/home/matoken/.vscode-oss/extensions/flobilosaurus.vscode-asciidoc-slides-1.2.0/libs/reveal.js/css/reset.css">
<link rel="stylesheet" href="/home/matoken/.vscode-oss/extensions/flobilosaurus.vscode-asciidoc-slides-1.2.0/libs/reveal.js/css/reveal.css">
<link rel="stylesheet" href="/home/matoken/.vscode-oss/extensions/flobilosaurus.vscode-asciidoc-slides-1.2.0/libs/league-gothic-font/webfonts/stylesheet.css">
linux-vdso.so.1 (0x00007ffd4b178000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f61dfe96000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f61dfe91000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f61dfd4f000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f61dfd44000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f61dfd1a000)
libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f61dfb08000)
libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f61dfafc000)
libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f61dfaf7000)
libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f61dfaf2000)
@matoken
matoken / config.js.diff
Created March 14, 2020 17:43
$ diff -u config/config.js.sample config/config.js|sed -e 's/appid: ".*"/appid: "YOUR_OPENWEATHER_API_KEY"/'
--- config/config.js.sample 2020-03-15 02:21:57.735194126 +0900
+++ config/config.js 2020-03-14 06:30:35.782576195 +0900
@@ -21,7 +21,7 @@
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
- language: "en",
+ language: "ja",
timeFormat: 24,
units: "metric",
#!/bin/bash
# PH-1
VID='2e17'
PID='c032'
# MAX BATTERY LEVEL (%)
MAXBATTERYLEVEL=80
# Raspberry Pi 3 B left down port
#!/bin/bash
while :
do
BATTERYLEVEL=$(adb shell dumpsys battery|grep level:|awk {'print $2'})
if [ 80 -le ${BATTERYLEVEL} ]; then
echo 'Turn off USB because Android battery charging is completed(${BATTERYLEVEL}%)' | tee -a /dev/tty | xargs logger -i
./hub-ctrl -b 1 -d 2 -P 2 -p 0
break
fi
System Information
------------------
Raspberry Pi Model B Plus Rev 1.2
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
Raspberry Pi reference 2019-09-26
diff --git a/host_applications/linux/apps/raspicam/libgps_loader.h b/host_applications/linux/apps/raspicam/libgps_loader.h
index 5ad886e..2f467c3 100644
--- a/host_applications/linux/apps/raspicam/libgps_loader.h
+++ b/host_applications/linux/apps/raspicam/libgps_loader.h
@@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "gps.h"
// IMPORTANT: Remember to copy gps.h from gpsd when upgrading libgps version.
-#define LIBGPS_SO_VERSION "libgps.so.22"
+#define LIBGPS_SO_VERSION "libgps.so.23"