概要
ラズベリーファイの初期設定では、デフォルトでスクリーンスリープモードが設定されています。
Windowsのように一定時間が経過すると自動的にScreensaverモードに入ります。
この部分を設定するパッケージがインストールされていないため、省電力モードオフにすることができない認識です。
もし特定の設定ファイルを変更すれば可能になるかもしれないですが、
今回はスクリーンセーバー関連パッケージをインストールして変更してみる方法を紹介いたします。
Screensaverパッケージのインストール
インストールするコマンドは次のとおりです。
sudo apt-get install xscreensaver
コマンドを実行した結果画面です。
次の画面のメッセージで[Y]を押してください
pi@RPI3B:~ $ sudo apt-get install xscreensaver
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libfuse2
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libauthen-sasl-perl libclone-perl libdata-dump-perl libencode-locale-perl
libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl
libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl
libio-html-perl libio-socket-ssl-perl libjpeg-turbo-progs liblwp-mediatypes-perl
liblwp-protocol-https-perl libmailtools-perl libnet-http-perl libnet-smtp-ssl-perl
libnet-ssleay-perl libtimedate-perl libtry-tiny-perl liburi-perl libwww-perl
libwww-robotrules-perl perl-openssl-defaults xscreensaver-data
Suggested packages:
libdigest-hmac-perl libgssapi-perl libcrypt-ssleay-perl libauthen-ntlm-perl fortune gdm3
| kdm-gdmcompat qcam | streamer xdaliclock xfishtank xscreensaver-data-extra xscreensaver-gl
xscreensaver-gl-extra
The following NEW packages will be installed:
libauthen-sasl-perl libclone-perl libdata-dump-perl libencode-locale-perl
libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl
libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl
libio-html-perl libio-socket-ssl-perl libjpeg-turbo-progs liblwp-mediatypes-perl
liblwp-protocol-https-perl libmailtools-perl libnet-http-perl libnet-smtp-ssl-perl
libnet-ssleay-perl libtimedate-perl libtry-tiny-perl liburi-perl libwww-perl
libwww-robotrules-perl perl-openssl-defaults xscreensaver xscreensaver-data
0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,755 kB of archives.
After this operation, 9,500 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libauthen-sasl-perl all 2.1600-1.1 [45.4 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libclone-perl armhf 0.45-1+b1 [14.8 kB]
Get:3 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libdata-dump-perl all 1.23-1.1 [27.6 kB]
Get:4 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libencode-locale-perl all 1.05-1.1 [13.2 kB]
Get:5 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libtimedate-perl all 2.3300-2 [39.3 kB]
Get:6 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libhttp-date-perl all 6.05-1 [10.4 kB]
Get:7 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libfile-listing-perl all 6.14-1 [12.4 kB]
Get:8 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libfont-afm-perl all 1.20-3 [14.0 kB]
Get:9 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libhtml-tagset-perl all 3.20-4 [13.0 kB]
Get:10 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf liburi-perl all 5.08-1 [90.6 kB]
Get:11 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libhtml-parser-perl armhf 3.75-1+b1 [102 kB]
Get:12 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libio-html-perl all 1.004-2 [16.1 kB]
Get:13 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf liblwp-mediatypes-perl all 6.04-1 [19.9 kB]
Get:14 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libhttp-message-perl all 6.28-1 [79.6 kB]
Get:15 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libhtml-form-perl all 6.07-1 [22.9 kB]
Get:16 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libhtml-tree-perl all 5.07-2 [213 kB]
Get:17 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libhtml-format-perl all 2.12-1.1 [43.8 kB]
Get:18 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libhttp-cookies-perl all 6.10-1 [19.6 kB]
Get:19 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libhttp-daemon-perl all 6.12-1+deb11u1 [23.4 kB]
Get:20 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libhttp-negotiate-perl all 6.01-1 [12.8 kB]
Get:21 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf perl-openssl-defaults armhf 5 [7,360 B]
Get:22 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libnet-ssleay-perl armhf 1.88-3+b1 [300 kB]
Get:23 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libio-socket-ssl-perl all 2.069-1 [215 kB]
Get:24 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libjpeg-turbo-progs armhf 1:2.0.6-4 [121 kB]
Get:25 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libnet-http-perl all 6.20-1 [25.1 kB]
Get:26 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libtry-tiny-perl all 0.30-1 [23.3 kB]
Get:27 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libwww-robotrules-perl all 6.02-1 [12.9 kB]
Get:28 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libwww-perl all 6.52-1 [192 kB]
Get:29 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf liblwp-protocol-https-perl all 6.10-1 [12.2 kB]
Get:30 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libnet-smtp-ssl-perl all 1.04-1 [6,184 B]
Get:31 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libmailtools-perl all 2.21-1 [95.5 kB]
Get:32 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf xscreensaver-data armhf 5.45+dfsg1-2 [309 kB]
Get:33 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf xscreensaver armhf 5.45+dfsg1-2 [601 kB]
Fetched 2,755 kB in 20s (135 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libauthen-sasl-perl.
(Reading database ... 173101 files and directories currently installed.)
Preparing to unpack .../00-libauthen-sasl-perl_2.1600-1.1_all.deb ...
Unpacking libauthen-sasl-perl (2.1600-1.1) ...
Selecting previously unselected package libclone-perl.
Preparing to unpack .../01-libclone-perl_0.45-1+b1_armhf.deb ...
Unpacking libclone-perl (0.45-1+b1) ...
Selecting previously unselected package libdata-dump-perl.
Preparing to unpack .../02-libdata-dump-perl_1.23-1.1_all.deb ...
Unpacking libdata-dump-perl (1.23-1.1) ...
Selecting previously unselected package libencode-locale-perl.
Preparing to unpack .../03-libencode-locale-perl_1.05-1.1_all.deb ...
Unpacking libencode-locale-perl (1.05-1.1) ...
Selecting previously unselected package libtimedate-perl.
Preparing to unpack .../04-libtimedate-perl_2.3300-2_all.deb ...
Unpacking libtimedate-perl (2.3300-2) ...
Selecting previously unselected package libhttp-date-perl.
Preparing to unpack .../05-libhttp-date-perl_6.05-1_all.deb ...
Unpacking libhttp-date-perl (6.05-1) ...
Selecting previously unselected package libfile-listing-perl.
Preparing to unpack .../06-libfile-listing-perl_6.14-1_all.deb ...
Unpacking libfile-listing-perl (6.14-1) ...
Selecting previously unselected package libfont-afm-perl.
Preparing to unpack .../07-libfont-afm-perl_1.20-3_all.deb ...
Unpacking libfont-afm-perl (1.20-3) ...
Selecting previously unselected package libhtml-tagset-perl.
Preparing to unpack .../08-libhtml-tagset-perl_3.20-4_all.deb ...
Unpacking libhtml-tagset-perl (3.20-4) ...
Selecting previously unselected package liburi-perl.
Preparing to unpack .../09-liburi-perl_5.08-1_all.deb ...
Unpacking liburi-perl (5.08-1) ...
Selecting previously unselected package libhtml-parser-perl.
Preparing to unpack .../10-libhtml-parser-perl_3.75-1+b1_armhf.deb ...
Unpacking libhtml-parser-perl (3.75-1+b1) ...
Selecting previously unselected package libio-html-perl.
Preparing to unpack .../11-libio-html-perl_1.004-2_all.deb ...
Unpacking libio-html-perl (1.004-2) ...
Selecting previously unselected package liblwp-mediatypes-perl.
Preparing to unpack .../12-liblwp-mediatypes-perl_6.04-1_all.deb ...
Unpacking liblwp-mediatypes-perl (6.04-1) ...
Selecting previously unselected package libhttp-message-perl.
Preparing to unpack .../13-libhttp-message-perl_6.28-1_all.deb ...
Unpacking libhttp-message-perl (6.28-1) ...
Selecting previously unselected package libhtml-form-perl.
Preparing to unpack .../14-libhtml-form-perl_6.07-1_all.deb ...
Unpacking libhtml-form-perl (6.07-1) ...
Selecting previously unselected package libhtml-tree-perl.
Preparing to unpack .../15-libhtml-tree-perl_5.07-2_all.deb ...
Unpacking libhtml-tree-perl (5.07-2) ...
Selecting previously unselected package libhtml-format-perl.
Preparing to unpack .../16-libhtml-format-perl_2.12-1.1_all.deb ...
Unpacking libhtml-format-perl (2.12-1.1) ...
Selecting previously unselected package libhttp-cookies-perl.
Preparing to unpack .../17-libhttp-cookies-perl_6.10-1_all.deb ...
Unpacking libhttp-cookies-perl (6.10-1) ...
Selecting previously unselected package libhttp-daemon-perl.
Preparing to unpack .../18-libhttp-daemon-perl_6.12-1+deb11u1_all.deb ...
Unpacking libhttp-daemon-perl (6.12-1+deb11u1) ...
Selecting previously unselected package libhttp-negotiate-perl.
Preparing to unpack .../19-libhttp-negotiate-perl_6.01-1_all.deb ...
Unpacking libhttp-negotiate-perl (6.01-1) ...
Selecting previously unselected package perl-openssl-defaults:armhf.
Preparing to unpack .../20-perl-openssl-defaults_5_armhf.deb ...
Unpacking perl-openssl-defaults:armhf (5) ...
Selecting previously unselected package libnet-ssleay-perl.
Preparing to unpack .../21-libnet-ssleay-perl_1.88-3+b1_armhf.deb ...
Unpacking libnet-ssleay-perl (1.88-3+b1) ...
Selecting previously unselected package libio-socket-ssl-perl.
Preparing to unpack .../22-libio-socket-ssl-perl_2.069-1_all.deb ...
Unpacking libio-socket-ssl-perl (2.069-1) ...
Selecting previously unselected package libjpeg-turbo-progs.
Preparing to unpack .../23-libjpeg-turbo-progs_1%3a2.0.6-4_armhf.deb ...
Unpacking libjpeg-turbo-progs (1:2.0.6-4) ...
Selecting previously unselected package libnet-http-perl.
Preparing to unpack .../24-libnet-http-perl_6.20-1_all.deb ...
Unpacking libnet-http-perl (6.20-1) ...
Selecting previously unselected package libtry-tiny-perl.
Preparing to unpack .../25-libtry-tiny-perl_0.30-1_all.deb ...
Unpacking libtry-tiny-perl (0.30-1) ...
Selecting previously unselected package libwww-robotrules-perl.
Preparing to unpack .../26-libwww-robotrules-perl_6.02-1_all.deb ...
Unpacking libwww-robotrules-perl (6.02-1) ...
Selecting previously unselected package libwww-perl.
Preparing to unpack .../27-libwww-perl_6.52-1_all.deb ...
Unpacking libwww-perl (6.52-1) ...
Selecting previously unselected package liblwp-protocol-https-perl.
Preparing to unpack .../28-liblwp-protocol-https-perl_6.10-1_all.deb ...
Unpacking liblwp-protocol-https-perl (6.10-1) ...
Selecting previously unselected package libnet-smtp-ssl-perl.
Preparing to unpack .../29-libnet-smtp-ssl-perl_1.04-1_all.deb ...
Unpacking libnet-smtp-ssl-perl (1.04-1) ...
Selecting previously unselected package libmailtools-perl.
Preparing to unpack .../30-libmailtools-perl_2.21-1_all.deb ...
Unpacking libmailtools-perl (2.21-1) ...
Selecting previously unselected package xscreensaver-data.
Preparing to unpack .../31-xscreensaver-data_5.45+dfsg1-2_armhf.deb ...
Unpacking xscreensaver-data (5.45+dfsg1-2) ...
Selecting previously unselected package xscreensaver.
Preparing to unpack .../32-xscreensaver_5.45+dfsg1-2_armhf.deb ...
Unpacking xscreensaver (5.45+dfsg1-2) ...
Setting up libfont-afm-perl (1.20-3) ...
Setting up libclone-perl (0.45-1+b1) ...
Setting up libhtml-tagset-perl (3.20-4) ...
Setting up libauthen-sasl-perl (2.1600-1.1) ...
Setting up liblwp-mediatypes-perl (6.04-1) ...
Setting up libtry-tiny-perl (0.30-1) ...
Setting up perl-openssl-defaults:armhf (5) ...
Setting up libjpeg-turbo-progs (1:2.0.6-4) ...
Setting up libencode-locale-perl (1.05-1.1) ...
Setting up libdata-dump-perl (1.23-1.1) ...
Setting up libio-html-perl (1.004-2) ...
Setting up libtimedate-perl (2.3300-2) ...
Setting up liburi-perl (5.08-1) ...
Setting up libnet-ssleay-perl (1.88-3+b1) ...
Setting up libhttp-date-perl (6.05-1) ...
Setting up libfile-listing-perl (6.14-1) ...
Setting up libnet-http-perl (6.20-1) ...
Setting up libwww-robotrules-perl (6.02-1) ...
Setting up libhtml-parser-perl (3.75-1+b1) ...
Setting up libio-socket-ssl-perl (2.069-1) ...
Setting up libhttp-message-perl (6.28-1) ...
Setting up libhtml-form-perl (6.07-1) ...
Setting up libhttp-negotiate-perl (6.01-1) ...
Setting up libhttp-cookies-perl (6.10-1) ...
Setting up libhtml-tree-perl (5.07-2) ...
Setting up libhtml-format-perl (2.12-1.1) ...
Setting up libnet-smtp-ssl-perl (1.04-1) ...
Setting up libmailtools-perl (2.21-1) ...
Setting up libhttp-daemon-perl (6.12-1+deb11u1) ...
Setting up liblwp-protocol-https-perl (6.10-1) ...
Setting up libwww-perl (6.52-1) ...
Setting up xscreensaver-data (5.45+dfsg1-2) ...
Setting up xscreensaver (5.45+dfsg1-2) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for man-db (2.9.4-2) ...
pi@RPI3B:~ $
インストールされたScreensaverアプリケーションの確認
以下の画面のようにScreensaverアプリケーションがインストールされました。
そのアプリケーションを実行すると、以下の画面のように表示されます。
Mode : Disable Screen Saverを選択する
これでScreensaverモードに設定された部分を解除しました。
終わりに
最近RPIのOSにはScreensaverがインストールされていないですので、手動でインストールが必要です。
多分OSのバージョンアップをしながらWindowsと同様の機能を入れ始めたようです。
今回の設定でScreensaverモードに実行せず、常にデスクトップ画面表示のまま待機モードになります。
一人でいるときは大丈夫ですが、複数の人がアクセスする可能性がある場合は、Screensaverの設定も
した方が良いかもしれません。
今日はここまでです!バイバイ!