0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Rasberry PIの設定TIPS

Posted at

概要

RaspberryPIの温度及び外部USBのHDDをマウントするための必要なパッケージをインストールとBOOTされているRaspberryPIにHDMIケーブルを繋げても表示されないなどなどメモです。

Raspberry PIのCPU温度確認

次のコマンドを入力すると現在のCPU温度が表示されます。
Raspberry4にはヒットシンクケースの上にダブルファンまで設定したんですけど、
Raspberry3の基本セットのファンと比べると温度は高いですね。

# Raspberry 4
pi@RPI4:~ $ vcgencmd measure_temp
temp=43.8'C
# Raspberry 3B
pi@RPI3:~ $ vcgencmd measure_temp
temp=35.4'C

NTFS HDDをマウントするため、必要なパッケージ

RaspberryPIに次のパッケージをインストールが必要です。

pi@RPI:~ $ sudo apt-get install ntfs-3g
Reading package lists... Done
Building dependency tree
Reading state information... Done
ntfs-3g is already the newest version (1:2017.3.23AR.3-3).
The following packages were automatically installed and are no longer required:
  alsa-base gstreamer0.10-alsa gstreamer0.10-plugins-base
  libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libllvm8 libmicrodns0
  libva-wayland2 libxfce4util-bin libxfce4util-common libxfce4util7
  libxfconf-0-2 pimixer point-rpi rpi-eeprom-images xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@RPI:~ $

※HDDマウントについては下記のサイトを参照
http://yurugadge-channel.com/article/185114382.html

ext HDDをマウントするため、必要なパッケージ

RaspberryPIに次のパッケージをインストールが必要です。

pi@RPI:~ $ sudo apt-get install exfat-utils exfat-fuse
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  alsa-base gstreamer0.10-alsa gstreamer0.10-plugins-base
  libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libllvm8 libmicrodns0
  libva-wayland2 libxfce4util-bin libxfce4util-common libxfce4util7
  libxfconf-0-2 pimixer point-rpi rpi-eeprom-images xfconf
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  exfat-fuse exfat-utils
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 67.7 kB of archives.
After this operation, 260 kB of additional disk space will be used.
Get:1 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian buster/main armhf ex                                                                                     fat-fuse armhf 1.3.0-1 [27.5 kB]
Get:2 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian buster/main armhf ex                                                                                     fat-utils armhf 1.3.0-1 [40.3 kB]
45% [2 exfat-utils 2,569 B/40.3 kB 6%]
Fetched 67.7 kB in 3s (20.7 kB/s)
Selecting previously unselected package exfat-fuse.
(Reading database ... 163140 files and directories currently installed.)
Preparing to unpack .../exfat-fuse_1.3.0-1_armhf.deb ...
Unpacking exfat-fuse (1.3.0-1) ...
Selecting previously unselected package exfat-utils.
Preparing to unpack .../exfat-utils_1.3.0-1_armhf.deb ...
Unpacking exfat-utils (1.3.0-1) ...
Setting up exfat-utils (1.3.0-1) ...
Setting up exfat-fuse (1.3.0-1) ...
Processing triggers for man-db (2.8.5-2) ...
pi@RPI:~ $

※HDDマウントについては下記のサイトを参照
http://eagle02b.blog55.fc2.com/blog-entry-120.html

HDMIのHot plugin設定

RaspberryPIにデフォルトでHDMIケーブルを接続いない場合、
起動された後、HDMIケーブルを繋げてもモニターが表示されないことがあります。
その場合、次のファイルから設定を変更します。
※RaspberyPI4では現象は無いですが、RP3以前のバージョンで良くあった記憶があります。

# 既存の設定
# Raspberry PI4
pi@RPI4:~ $ cat /boot/config.txt |grep hdmi_
# hdmi_safe=1
# hdmi_force_hotplug=1
# hdmi_group=1
# hdmi_mode=1
# hdmi_drive=2
# config_hdmi_boost=4

# Rasbperry PI3B
pi@RPI:~ $ cat /boot/config.txt |grep hdmi_
# hdmi_safe=1
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=35
# hdmi_drive=2
# config_hdmi_boost=4
pi@RPI:~ $

# 設定する内容
pi@RPI4:~ $ cat /boot/config.txt |grep hdmi_
# hdmi_safe=1
hdmi_force_hotplug=1
hdmi_group=1
hdmi_mode=1
hdmi_drive=2
# config_hdmi_boost=4

pi@RPI:~ $ cat /boot/config.txt |grep hdmi_
# hdmi_safe=1
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=35
hdmi_drive=2
# config_hdmi_boost=4

※config.txtのhdmi_modeについては下記のサイトを参照
https://ytyaru.hatenablog.com/entry/2019/12/01/111111

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?