ラズパイでchromiumをkiosk化したいと思っています。
うまく行っているように見えたのですが、たまに、
クロームが2つ起動されていることが分かりました。
全面表示で、想定しているアクセス先が表示されずに、googoleホームのようなものが表示されます。(真ん中に〇で最近アクセスしたページが並ぶ感じです)
それを、リモートで入りctlr+f4で閉じたら、その下(後ろのレイヤー)から、想定したアクセス先のページが出てきました。
そこで、これは2重にクロミウムが開かれている、と気づきました。
これを一つだけ、にしたいです。
設定内容
systemd
1sudo nano /etc/systemd/system/chromium-autorun.service
内容は下記です
service
1[Unit] 2Description=Chromium Autorun 3 4[Service] 5Environment=DISPLAY=:0.0 6Environment=XAUTHORITY=/home/pi/.Xauthority 7background-mode --kiosk --disable-pinch --app=http://192.168.8.20:5000/ 8ExecStart=/usr/bin/chromium-browser --noerrdialogs --disable-infobars --disable-background-mode --kiosk --disable-pinch --app=http://127.0.0.1:10001/backTop 9Restart=on-abort 10User=pi 11Group=pi 12 13[Install] 14WantedBy=user@.service
sudo systemctl status chromium-autorun.service の結果です
status
1● chromium-autorun.service - Chromium Autorun 2 Loaded: loaded (/etc/systemd/system/chromium-autorun.service; enabled; vendor preset: enabled) 3 Active: active (running) since Thu 2021-10-07 12:34:48 JST; 12min ago 4 Main PID: 580 (chromium-browse) 5 Tasks: 96 (limit: 4915) 6 CGroup: /system.slice/chromium-autorun.service 7 tq 580 /usr/lib/chromium-browser/chromium-browser-v7 --force-renderer-accessibility --disable-quic --enable-tcp-fast-open --enable-pinch --noerrdialogs --disable-infobars --disable-background-mode --k 8 tq 700 /usr/lib/chromium-browser/crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler --database=/home/pi/.config/chromium/Crash Reports --metrics-dir=/home/pi/.config/chro 9 tq 722 /usr/lib/chromium-browser/crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler --database=/home/pi/.config/chromium/Crash Reports --annotation=channel=Built on 10 tq 734 /usr/lib/chromium-browser/chromium-browser-v7 --type=zygote --no-zygote-sandbox --enable-crashpad --crashpad-handler-pid=0 --enable-crash-reporter=,Built on Raspbian , running on Raspbian 10 -- 11 tq 736 /usr/lib/chromium-browser/chromium-browser-v7 --type=zygote --enable-crashpad --crashpad-handler-pid=0 --enable-crash-reporter=,Built on Raspbian , running on Raspbian 10 --noerrdialogs --enabl 12 tq 788 /usr/lib/chromium-browser/chromium-browser-v7 --type=zygote --enable-crashpad --crashpad-handler-pid=0 --enable-crash-reporter=,Built on Raspbian , running on Raspbian 10 --noerrdialogs --enabl 13 tq1005 /usr/lib/chromium-browser/chromium-browser-v7 --type=gpu-process --field-trial-handle=15010004260492300944,17453170378820745428,131072 --enable-crashpad --crashpad-handler-pid=0 --enable-crash- 14 tq1009 /usr/lib/chromium-browser/chromium-browser-v7 --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=15010004260492300944,17453170378820745428,131072 --lang=ja --se 15 tq1017 /usr/lib/chromium-browser/chromium-browser-v7 --type=utility --utility-sub-type=storage.mojom.StorageService --field-trial-handle=15010004260492300944,17453170378820745428,131072 --lang=ja --se 16 tq1023 /usr/lib/chromium-browser/chromium-browser-v7 --type=broker 17 tq1046 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer --field-trial-handle=15010004260492300944,17453170378820745428,131072 --lang=ja --enable-crashpad --crashpad-handler-pid=0 --enable 18 tq1047 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer --field-trial-handle=15010004260492300944,17453170378820745428,131072 --lang=ja --enable-crashpad --crashpad-handler-pid=0 --enable 19 tq1068 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer --field-trial-handle=15010004260492300944,17453170378820745428,131072 --lang=ja --enable-crashpad --crashpad-handler-pid=0 --enable 20 mq1079 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer --field-trial-handle=15010004260492300944,17453170378820745428,131072 --lang=ja --enable-crashpad --crashpad-handler-pid=0 --enable 21 2210月 07 12:34:55 raspberrypi chromium-browser[580]: [1005:1005:1007/123455.185352:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is egl 2310月 07 12:34:55 raspberrypi chromium-browser[580]: [580:1016:1007/123455.488000:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are 2410月 07 12:34:55 raspberrypi chromium-browser[580]: [580:1016:1007/123455.488099:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are 2510月 07 12:34:56 raspberrypi chromium-browser[580]: [580:1090:1007/123456.479692:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org. 2610月 07 12:34:56 raspberrypi chromium-browser[580]: [580:1090:1007/123456.481905:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: 2710月 07 12:34:56 raspberrypi chromium-browser[580]: [580:1090:1007/123456.482903:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: 2810月 07 12:34:56 raspberrypi chromium-browser[580]: [1005:1005:1007/123456.722472:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! 2910月 07 12:34:56 raspberrypi chromium-browser[580]: [1005:1005:1007/123456.730350:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times! 3010月 07 12:35:00 raspberrypi chromium-browser[580]: [1005:1005:1007/123500.902592:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times! 3110月 07 12:47:33 raspberrypi chromium-browser[580]: [1005:1005:1007/124733.324794:ERROR:sync_control_vsync_provider.cc(140)] Calculated bogus refresh interval=7.49862 s, last_timebase_=51278909 bogo-microseconds 32~
もしかしたら、前回のクロームが残っていて立ち上がろうとしてるのか、とも思いました。
どなたかお知恵をお借りできれば幸いです。
あなたの回答
tips
プレビュー