• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

Scheduled Pinned Locked Moved Utilities
602 Posts 67 Posters 1.6m Views 68 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    evroom @bill22
    last edited by Jul 10, 2019, 8:12 PM

    @bill22

    MMM-RTSPStream modification for AVM DVB-C stream.

    $ vi ~/MagicMirror/config/config.js
    
            frameRate: "25",
            protocol: "tcp",
    
    
    	url: 'rtsp://192.168.178.1:554/?avm=1&freq=394&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=0&pids=0,16,17,18,20,266,593,594,595,598,1801,1802,1803'
    
    
    $ cd /home/pi/MagicMirror/modules/MMM-RTSPStream
    
    $ cp -p node_helper.js node_helper.js.original 
    
    $ nano node_helper.js
    

    Use [control]- (control minus) and enter 101 to go to line 101

               var args = ["--live", "--video_queue", "4", "--fps", "30",
    

    Change the line to:

              var args = ["--live", "--video_queue", "4", "--audio_queue", "4", "--fps", "25",
    

    Use [control]x and then Y to save the file.

    $ pm2 restart mm
    
    $ pm2 logs mm
    
    $ ps -eaf | grep omxplayer | grep -v grep
    
    $ pm2 status
    

    MagicMirror version: 2.30.0
    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
    Raspbian GNU/Linux 12 (bookworm)

    Test environment:
    MagicMirror version: v2.30.0
    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
    Raspbian GNU/Linux 12 (bookworm)

    1 Reply Last reply Reply Quote 0
    • B Offline
      bill22
      last edited by Jul 11, 2019, 9:45 PM

      @evroom

      it shows the following status after the modification:

      pi@raspberrypi:~ $ pm2 restart mm
      Use --update-env to update environment variables
      [PM2] Applying action restartProcessId on app [mm](ids: 1)
      [PM2] [mm](1) ✓
      ┌─────────────┬────┬──────┬─────────┬────┬─────┬──────────┐
      │ Name        │ id │ mode │ status  │ ↺  │ cpu │ memory   │
      ├─────────────┼────┼──────┼─────────┼────┼─────┼──────────┤
      │ avm_stream  │ 2  │ fork │ stopped │ 1  │ 0%  │ 0 B      │
      │ mm          │ 1  │ fork │ online  │ 1  │ 0%  │ 2.5 MB   │
      │ omx_stream1 │ 0  │ fork │ stopped │ 31 │ 0%  │ 0 B      │
      └─────────────┴────┴──────┴─────────┴────┴─────┴──────────┘
       Use `pm2 show <id|name>` to get more details about an app
      
      pi@raspberrypi:~ $ pm2 logs mm
      [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
      /home/pi/.pm2/logs/mm-error.log last 15 lines:
      1|mm       | npm ERR!     /home/pi/.npm/_logs/2019-07-09T20_38_42_696Z-debug.log
      1|mm       | 
      1|mm       | (electron:1742): Gtk-WARNING **: cannot open display: :0
      1|mm       | npm ERR! code ELIFECYCLE
      1|mm       | npm ERR! errno 1
      1|mm       | npm ERR! magicmirror@2.7.1 start: `sh run-start.sh`
      1|mm       | npm ERR! Exit status 1
      1|mm       | npm ERR! 
      1|mm       | npm ERR! Failed at the magicmirror@2.7.1 start script.
      1|mm       | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      1|mm       | 
      1|mm       | npm ERR! A complete log of this run can be found in:
      1|mm       | npm ERR!     /home/pi/.npm/_logs/2019-07-09T20_38_45_348Z-debug.log
      1|mm       | ATTENTION: default value of option force_s3tc_enable overridden by environment.
      1|mm       | ATTENTION: default value of option force_s3tc_enable overridden by environment.
      
      /home/pi/.pm2/logs/mm-out.log last 15 lines:
      1|mm       |     "--avdict",
      1|mm       |     "rtsp_transport:tcp",
      1|mm       |     "--win",
      1|mm       |     "666, 393, 1018, 635",
      1|mm       |     "--live",
      1|mm       |     "--video_queue",
      1|mm       |     "4",
      1|mm       |     "--audio_queue",
      1|mm       |     "4",
      1|mm       |     "--fps",
      1|mm       |     "25",
      1|mm       |     "rtsp://192.168.178.1:554/?avm=1&freq=394&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=0&pids=0,16,17,18,20,266,593,594,595,598,1801,1802,1803"
      1|mm       | ]
      1|mm       | Starting PM2 for omx_stream1
      1|mm       | PM2 started for omx_stream1
      
      pi@raspberrypi:~ $ ps -eaf | grep omxplayer | grep -v grep
      pi        6325   813  0 23:17 ?        00:00:00 bash /usr/bin/omxplayer --avdict rtsp_transport:tcp --win 666, 393, 1018, 635 --live --video_queue 4 --audio_queue 4 --fps 25 rtsp://192.168.178.1:554/?avm=1&freq=394&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=0&pids=0,16,17,18,20,266,593,594,595,598,1801,1802,1803
      pi        6327  6325  0 23:17 ?        00:00:00 bash /usr/bin/omxplayer --avdict rtsp_transport:tcp --win 666, 393, 1018, 635 --live --video_queue 4 --audio_queue 4 --fps 25 rtsp://192.168.178.1:554/?avm=1&freq=394&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=0&pids=0,16,17,18,20,266,593,594,595,598,1801,1802,1803
      
      pi@raspberrypi:~ $ pm2 status
      ┌─────────────┬────┬──────┬─────────┬─────┬─────┬──────────┐
      │ Name        │ id │ mode │ status  │ ↺   │ cpu │ memory   │
      ├─────────────┼────┼──────┼─────────┼─────┼─────┼──────────┤
      │ avm_stream  │ 2  │ fork │ stopped │ 1   │ 0%  │ 0 B      │
      │ mm                   │ 1  │ fork │ online  │ 1   │ 0%  │ 2.5 MB   │
      │ omx_stream1 │ 0  │ fork │ online  │ 117 │ 0%  │ 2.6 MB   │
      └─────────────┴────┴──────┴─────────┴─────┴─────┴──────────┘
       Use `pm2 show <id|name>` to get more details about an app
      
      E 1 Reply Last reply Jul 12, 2019, 7:40 PM Reply Quote 0
      • E Offline
        evroom @bill22
        last edited by evroom Jul 12, 2019, 7:52 PM Jul 12, 2019, 7:40 PM

        @bill22

        Hi,

        Overall it looks good I would say.
        The ERR are a concern, but I do not see a connection with RTSP.
        Give the /home/pi/.npm/_logs/2019-07-09T20_38_42_696Z-debug.log and /home/pi/.npm/_logs/2019-07-09T20_38_45_348Z-debug.loga clue ?
        Or when you restart mm, the newly generated log files ?

        With $ ps -eaf | grep omxplayer | grep -v grepand pm2 status, are the PIDs for omxplayer and omx_stream1 stable, or do they change ?

        Could you do ?

        $ pstree -ap `pgrep omxplayer | head -1`; pstree -ap `pm2 status | grep omx_stream1 | awk '{print $10}'`
        

        MagicMirror version: 2.30.0
        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        Test environment:
        MagicMirror version: v2.30.0
        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        1 Reply Last reply Reply Quote 0
        • E Offline
          evroom
          last edited by evroom Jul 12, 2019, 9:10 PM Jul 12, 2019, 8:44 PM

          The pstree command might not work when the width of your terminal is not enough.
          Make it wide enough to have pm2 status show the PID column.

          MagicMirror version: 2.30.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.30.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          1 Reply Last reply Reply Quote 0
          • B Offline
            bill22
            last edited by bill22 Jul 13, 2019, 4:31 PM Jul 13, 2019, 4:29 PM

            @evroom

            Hi,

            i couldnt find something in the log so far…

            I may overlook something here in genera. Looks like the avm_stream is still starting on rebooting the RPI…I tried with stop and save within pm2 already…So if I reboot, the avm_stream is online again…

            pi@raspberrypi:~ $ pm2 status
            ┌─────────────┬────┬──────┬─────────┬────┬─────┬──────────┐
            │ Name        │ id │ mode │ status  │ ↺  │ cpu │ memory   │
            ├─────────────┼────┼──────┼─────────┼────┼─────┼──────────┤
            │ avm_stream  │ 2  │ fork │ stopped │ 0  │ 0%  │ 0 B      │
            │ mm          │ 1  │ fork │ online  │ 0  │ 0%  │ 2.6 MB   │
            │ omx_stream1 │ 0  │ fork │ stopped │ 15 │ 0%  │ 0 B      │
            └─────────────┴────┴──────┴─────────┴────┴─────┴──────────┘
             
            
            pi@raspberrypi:~ $ pstree -ap `pgrep omxplayer | head -1`; pstree -ap `pm2 status | grep omx_stream1 | awk '{print $10}'`
            systemd,1 splash
              ├─PM2 v3.5.1: God,813      
              │   ├─bash,923 /home/pi/mm.sh
              │   │   └─npm,929                    
              │   │       ├─sh,1047 -c sh run-start.sh
              │   │       │   └─sh,1048 run-start.sh
              │   │       │       └─node,1049 /home/pi/MagicMirror/node_modules/.bin/electron js/electron.js
              │   │       │           ├─electron,1064
              │   │       │           │   ├─electron,1126
              │   │       │           │   │   └─electron,1467
              │   │       │           │   │       ├─{Chrome_ChildIOT},1473
              │   │       │           │   │       ├─{CompositorTileW},1496
              │   │       │           │   │       ├─{CompositorTileW},1501
              │   │       │           │   │       ├─{CompositorTileW},1503
              │   │       │           │   │       ├─{Compositor},1495
              │   │       │           │   │       ├─{File thread},1479
              │   │       │           │   │       ├─{GpuMemoryThread},1474
              │   │       │           │   │       ├─{ScriptStreamer },1539
              │   │       │           │   │       ├─{TaskSchedulerBa},1469
              │   │       │           │   │       ├─{TaskSchedulerBa},1470
              │   │       │           │   │       ├─{TaskSchedulerFo},1472
              │   │       │           │   │       ├─{TaskSchedulerFo},1737
              │   │       │           │   │       ├─{TaskSchedulerSe},1468
              │   │       │           │   │       └─{electron},1524
              │   │       │           │   ├─electron,1454
              │   │       │           │   │   ├─{Chrome_ChildIOT},1511
              │   │       │           │   │   ├─{TaskSchedulerBa},1507
              │   │       │           │   │   ├─{TaskSchedulerBa},1508
              │   │       │           │   │   ├─{TaskSchedulerFo},1509
              │   │       │           │   │   ├─{TaskSchedulerFo},1510
              │   │       │           │   │   ├─{TaskSchedulerSe},1506
              │   │       │           │   │   ├─{Watchdog},1505
              │   │       │           │   │   ├─{llvmpipe-0},1487
              │   │       │           │   │   ├─{llvmpipe-1},1488
              │   │       │           │   │   ├─{llvmpipe-2},1489
              │   │       │           │   │   └─{llvmpipe-3},1490
              │   │       │           │   ├─{AudioThread},1444
              │   │       │           │   ├─{CacheThread_Blo},1466
              │   │       │           │   ├─{Chrome_IOThread},1428
              │   │       │           │   ├─{CompositorTileW},1443
              │   │       │           │   ├─{CrShutdownDetec},1432
              │   │       │           │   ├─{D-Bus thread},1431
              │   │       │           │   ├─{NetworkChangeNo},1429
              │   │       │           │   ├─{TaskSchedulerBa},1434
              │   │       │           │   ├─{TaskSchedulerBa},1462
              │   │       │           │   ├─{TaskSchedulerFo},1436
              │   │       │           │   ├─{TaskSchedulerFo},1439
              │   │       │           │   ├─{TaskSchedulerSe},1433
              │   │       │           │   ├─{TaskSchedulerSi},1441
              │   │       │           │   ├─{TaskSchedulerSi},1442
              │   │       │           │   ├─{TaskSchedulerSi},1573
              │   │       │           │   ├─{electron},1191
              │   │       │           │   ├─{electron},1192
              │   │       │           │   ├─{electron},1193
              │   │       │           │   ├─{electron},1221
              │   │       │           │   ├─{electron},1414
              │   │       │           │   ├─{electron},1415
              │   │       │           │   ├─{electron},1416
              │   │       │           │   ├─{electron},1417
              │   │       │           │   ├─{electron},1453
              │   │       │           │   ├─{gdbus},1179
              │   │       │           │   ├─{gmain},1178
              │   │       │           │   ├─{inotify_reader},1430
              │   │       │           │   ├─{llvmpipe-0},1167
              │   │       │           │   ├─{llvmpipe-1},1168
              │   │       │           │   ├─{llvmpipe-2},1169
              │   │       │           │   ├─{llvmpipe-3},1170
              │   │       │           │   └─{sandbox_ipc_thr},1125
              │   │       │           ├─{node},1050
              │   │       │           ├─{node},1051
              │   │       │           ├─{node},1052
              │   │       │           ├─{node},1053
              │   │       │           ├─{node},1054
              │   │       │           └─{node},1057
              │   │       ├─{node},934
              │   │       ├─{node},935
              │   │       ├─{node},936
              │   │       ├─{node},937
              │   │       ├─{node},938
              │   │       ├─{node},945
              │   │       ├─{npm},1013
              │   │       ├─{npm},1014
              │   │       ├─{npm},1015
              │   │       └─{npm},1016
              │   ├─{PM2 v3.5.1: God},915
              │   ├─{PM2 v3.5.1: God},916
              │   ├─{PM2 v3.5.1: God},917
              │   ├─{PM2 v3.5.1: God},918
              │   ├─{node},814
              │   ├─{node},815
              │   ├─{node},816
              │   ├─{node},817
              │   ├─{node},818
              │   └─{node},819
              ├─agetty,509 --noclear tty1 linux
              ├─avahi-daemon,333
              │   └─avahi-daemon,370
              ├─bluealsa,455
              │   ├─{bactl},463
              │   ├─{gdbus},479
              │   └─{gmain},478
              ├─bluetoothd,454
              ├─cron,340 -f
              ├─dbus-daemon,323 --system --address=systemd: --nofork --nopidfile --systemd-activation
              ├─dbus-daemon,951 --fork --print-address 5 --print-pid 6 --session
              ├─dhcpcd,372 -q -b
              ├─hciattach,446 /dev/serial1 bcm43xx 921600 noflow - b8:27:eb:fc:c6:fc
              ├─lightdm,506
              │   ├─Xorg,517 :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
              │   │   ├─{InputThread},631
              │   │   ├─{llvmpipe-0},623
              │   │   ├─{llvmpipe-1},624
              │   │   ├─{llvmpipe-2},625
              │   │   └─{llvmpipe-3},626
              │   ├─lightdm,634 --session-child 14 17
              │   │   ├─lxsession,650 -s LXDE-pi -e LXDE
              │   │   │   ├─lxpanel,785 --profile LXDE-pi
              │   │   │   │   ├─chromium-browse,1766
              │   │   │   │   │   ├─chromium-browse,1792
              │   │   │   │   │   │   └─chromium-browse,1794
              │   │   │   │   │   │       ├─chromium-browse,1989
              │   │   │   │   │   │       │   ├─{Chrome_ChildIOT},2001
              │   │   │   │   │   │       │   ├─{CompositorTileW},2020
              │   │   │   │   │   │       │   ├─{CompositorTileW},2021
              │   │   │   │   │   │       │   ├─{CompositorTileW},2022
              │   │   │   │   │   │       │   ├─{Compositor},2013
              │   │   │   │   │   │       │   ├─{Font_Proxy_Thre},2003
              │   │   │   │   │   │       │   ├─{GpuMemoryThread},2002
              │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2000
              │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2114
              │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2255
              │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2256
              │   │   │   │   │   │       │   └─{TaskSchedulerSe},1997
              │   │   │   │   │   │       └─chromium-browse,2035
              │   │   │   │   │   │           ├─{Chrome_ChildIOT},2039
              │   │   │   │   │   │           ├─{CompositorTileW},2043
              │   │   │   │   │   │           ├─{CompositorTileW},2044
              │   │   │   │   │   │           ├─{CompositorTileW},2045
              │   │   │   │   │   │           ├─{Compositor},2042
              │   │   │   │   │   │           ├─{Font_Proxy_Thre},2041
              │   │   │   │   │   │           ├─{GpuMemoryThread},2040
              │   │   │   │   │   │           ├─{MemoryInfra},2091
              │   │   │   │   │   │           ├─{ScriptStreamer },2049
              │   │   │   │   │   │           ├─{TaskSchedulerFo},2038
              │   │   │   │   │   │           ├─{TaskSchedulerFo},2046
              │   │   │   │   │   │           ├─{TaskSchedulerFo},2254
              │   │   │   │   │   │           └─{TaskSchedulerSe},2036
              │   │   │   │   │   ├─chromium-browse,1824
              │   │   │   │   │   │   ├─{Chrome_ChildIOT},1886
              │   │   │   │   │   │   ├─{TaskSchedulerFo},1884
              │   │   │   │   │   │   ├─{TaskSchedulerFo},1885
              │   │   │   │   │   │   ├─{TaskSchedulerSe},1883
              │   │   │   │   │   │   ├─{Watchdog},1882
              │   │   │   │   │   │   ├─{llvmpipe-0},1877
              │   │   │   │   │   │   ├─{llvmpipe-1},1878
              │   │   │   │   │   │   ├─{llvmpipe-2},1879
              │   │   │   │   │   │   └─{llvmpipe-3},1880
              │   │   │   │   │   ├─{AudioThread},1818
              │   │   │   │   │   ├─{Bluez D-Bus thr},1809
              │   │   │   │   │   ├─{BrowserWatchdog},1825
              │   │   │   │   │   ├─{CacheThread_Blo},1821
              │   │   │   │   │   ├─{Chrome_HistoryT},1876
              │   │   │   │   │   ├─{Chrome_IOThread},1802
              │   │   │   │   │   ├─{CompositorTileW},1817
              │   │   │   │   │   ├─{CrShutdownDetec},1810
              │   │   │   │   │   ├─{NetworkChangeNo},1808
              │   │   │   │   │   ├─{TaskSchedulerFo},1816
              │   │   │   │   │   ├─{TaskSchedulerFo},2032
              │   │   │   │   │   ├─{TaskSchedulerFo},2053
              │   │   │   │   │   ├─{TaskSchedulerFo},2208
              │   │   │   │   │   ├─{TaskSchedulerSe},1797
              │   │   │   │   │   ├─{TaskSchedulerSi},1820
              │   │   │   │   │   ├─{TaskSchedulerSi},1822
              │   │   │   │   │   ├─{TaskSchedulerSi},1875
              │   │   │   │   │   ├─{TaskSchedulerSi},1881
              │   │   │   │   │   ├─{chromium-browse},1795
              │   │   │   │   │   ├─{extension_crash},1986
              │   │   │   │   │   ├─{gdbus},1807
              │   │   │   │   │   ├─{gmain},1806
              │   │   │   │   │   ├─{gpu-process_cra},1823
              │   │   │   │   │   ├─{inotify_reader},1801
              │   │   │   │   │   ├─{renderer_crash_},1894
              │   │   │   │   │   ├─{sandbox_ipc_thr},1790
              │   │   │   │   │   └─{utility_crash_u},2061
              │   │   │   │   ├─lxterminal,2148
              │   │   │   │   │   ├─bash,2150
              │   │   │   │   │   │   └─pstree,2260 -ap
              │   │   │   │   │   ├─gnome-pty-helpe,2149
              │   │   │   │   │   ├─{gdbus},2159
              │   │   │   │   │   └─{gmain},2151
              │   │   │   │   ├─oosplash,2177 --writer
              │   │   │   │   │   ├─soffice.bin,2195 --writer --splash-pipe=5
              │   │   │   │   │   │   ├─{PipeIPC},2204
              │   │   │   │   │   │   ├─{SelectionManage},2209
              │   │   │   │   │   │   ├─{gdbus},2206
              │   │   │   │   │   │   ├─{gmain},2205
              │   │   │   │   │   │   ├─{rtl_cache_wsupd},2198
              │   │   │   │   │   │   ├─{soffice.bin},2233
              │   │   │   │   │   │   ├─{soffice.bin},2234
              │   │   │   │   │   │   ├─{soffice.bin},2235
              │   │   │   │   │   │   ├─{soffice.bin},2236
              │   │   │   │   │   │   ├─{soffice.bin},2237
              │   │   │   │   │   │   ├─{soffice.bin},2238
              │   │   │   │   │   │   ├─{soffice.bin},2239
              │   │   │   │   │   │   └─{soffice.bin},2240
              │   │   │   │   │   ├─{osl_executeProc},2194
              │   │   │   │   │   └─{rtl_cache_wsupd},2190
              │   │   │   │   ├─(sh,847)
              │   │   │   │   ├─{gdbus},825
              │   │   │   │   ├─{gmain},824
              │   │   │   │   └─{menu-cache-io},895
              │   │   │   ├─lxpolkit,780
              │   │   │   │   ├─{gdbus},801
              │   │   │   │   └─{gmain},799
              │   │   │   ├─openbox,773 --config-file /home/pi/.config/openbox/lxde-pi-rc.xml
              │   │   │   ├─pcmanfm,791 --desktop --profile LXDE-pi
              │   │   │   │   ├─{gdbus},821
              │   │   │   │   └─{gmain},820
              │   │   │   ├─ssh-agent,756 x-session-manager
              │   │   │   ├─{gdbus},762
              │   │   │   └─{gmain},761
              │   │   ├─{gdbus},638
              │   │   └─{gmain},637
              │   ├─{gdbus},515
              │   └─{gmain},513
              ├─menu-cached,831 /run/user/1000/menu-cached-:0
              │   ├─{gdbus},834
              │   └─{gmain},833
              ├─polkitd,804 --no-debug
              │   ├─{gdbus},811
              │   └─{gmain},809
              ├─rngd,361 -r /dev/hwrng
              │   ├─{rngd},362
              │   ├─{rngd},363
              │   └─{rngd},364
              ├─rsyslogd,331 -n
              │   ├─{in:imklog},377
              │   ├─{in:imuxsock},376
              │   └─{rs:main Q:Reg},378
              ├─ssh-agent,803 -s
              ├─systemd,642 --user
              │   ├─(sd-pam),645         
              │   ├─dbus-daemon,659 --session --address=systemd: --nofork --nopidfile --systemd-activation
              │   ├─gvfs-afc-volume,866
              │   │   ├─{gdbus},870
              │   │   ├─{gmain},868
              │   │   └─{gvfs-afc-volume},867
              │   ├─gvfs-goa-volume,858
              │   │   ├─{gdbus},860
              │   │   └─{gmain},859
              │   ├─gvfs-gphoto2-vo,854
              │   │   ├─{gdbus},857
              │   │   └─{gmain},855
              │   ├─gvfs-mtp-volume,862
              │   │   ├─{gdbus},865
              │   │   └─{gmain},863
              │   ├─gvfs-udisks2-vo,835
              │   │   ├─{gdbus},837
              │   │   └─{gmain},836
              │   ├─gvfsd,763
              │   │   ├─{gdbus},765
              │   │   └─{gmain},764
              │   ├─gvfsd-fuse,768 /run/user/1000/gvfs -f -o big_writes
              │   │   ├─{gdbus},787
              │   │   ├─{gmain},786
              │   │   ├─{gvfs-fuse-sub},792
              │   │   ├─{gvfsd-fuse},782
              │   │   └─{gvfsd-fuse},783
              │   └─gvfsd-trash,904 --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
              │       ├─{gdbus},906
              │       └─{gmain},905
              ├─systemd-journal,107
              ├─systemd-logind,334
              ├─systemd-timesyn,305
              │   └─{sd-resolve},320
              ├─systemd-udevd,139
              ├─thd,322 --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
              ├─udisksd,838 --no-debug
              │   ├─{cleanup},852
              │   ├─{gdbus},841
              │   ├─{gmain},839
              │   └─{probing-thread},842
              ├─wpa_supplicant,327 -u -s -O /run/wpa_supplicant
              └─wpa_supplicant,422 -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
            ?,
             ├─(kthreadd,2)
             │   ├─(DWC Notificatio,62)
             │   ├─(SMIO,67)
             │   ├─(SMIO,189)
             │   ├─(brcmf_wdog/mmc1,239)
             │   ├─(brcmf_wq/mmc1:0,237)
             │   ├─(cfg80211,231)
             │   ├─(cpuhp/0,13)
             │   ├─(cpuhp/1,14)
             │   ├─(cpuhp/2,19)
             │   ├─(cpuhp/3,24)
             │   ├─(crypto,38)
             │   ├─(dwc_otg,61)
             │   ├─(ext4-rsv-conver,78)
             │   ├─(ext4-rsv-conver,914)
             │   ├─(ipv6_addrconf,79)
             │   ├─(irq/86-mmc1,69)
             │   ├─(iscsi_eh,60)
             │   ├─(jbd2/mmcblk0p5-,913)
             │   ├─(jbd2/mmcblk0p7-,77)
             │   ├─(kblockd,39)
             │   ├─(kcompactd0,37)
             │   ├─(kdevtmpfs,29)
             │   ├─(khungtaskd,34)
             │   ├─(krfcommd,489)
             │   ├─(ksoftirqd/0,9)
             │   ├─(ksoftirqd/1,16)
             │   ├─(ksoftirqd/2,21)
             │   ├─(ksoftirqd/3,26)
             │   ├─(kswapd0,46)
             │   ├─(kthrotld,58)
             │   ├─(kworker/0:0-event,1796)
             │   ├─(kworker/0:0H-kblo,1789)
             │   ├─(kworker/0:1-event,31)
             │   ├─(kworker/0:1H-mmc_,74)
             │   ├─(kworker/0:2-event,2231)
             │   ├─(kworker/0:2H,2147)
             │   ├─(kworker/1:0-mm_pe,1741)
             │   ├─(kworker/1:0H-kblo,1785)
             │   ├─(kworker/1:1-event,2213)
             │   ├─(kworker/1:1H-kblo,75)
             │   ├─(kworker/1:2-mm_pe,2048)
             │   ├─(kworker/1:2H-kblo,2176)
             │   ├─(kworker/2:0-event,1783)
             │   ├─(kworker/2:0H-kblo,23)
             │   ├─(kworker/2:1-event,33)
             │   ├─(kworker/2:1H-kblo,1784)
             │   ├─(kworker/2:2-event,2223)
             │   ├─(kworker/2:2H,2196)
             │   ├─(kworker/3:0-event,1742)
             │   ├─(kworker/3:0H-kblo,1772)
             │   ├─(kworker/3:1-mm_pe,2034)
             │   ├─(kworker/3:1H-kblo,73)
             │   ├─(kworker/3:2-event,68)
             │   ├─(kworker/3:2H,2189)
             │   ├─(kworker/3:3,2248)
             │   ├─(kworker/u8:0-even,7)
             │   ├─(kworker/u8:2-flus,100)
             │   ├─(kworker/u9:0-hci0,42)
             │   ├─(kworker/u9:1-hci0,448)
             │   ├─(migration/0,12)
             │   ├─(migration/1,15)
             │   ├─(migration/2,20)
             │   ├─(migration/3,25)
             │   ├─(mm_percpu_wq,8)
             │   ├─(mmal-vchiq,215)
             │   ├─(mmal-vchiq,217)
             │   ├─(mmal-vchiq,219)
             │   ├─(mmc_complete,72)
             │   ├─(netns,30)
             │   ├─(nfsiod,47)
             │   ├─(oom_reaper,35)
             │   ├─(rcu_bh,11)
             │   ├─(rcu_gp,3)
             │   ├─(rcu_par_gp,4)
             │   ├─(rcu_sched,10)
             │   ├─(rpciod,41)
             │   ├─(vchiq-keep/0,66)
             │   ├─(vchiq-recy/0,64)
             │   ├─(vchiq-slot/0,63)
             │   ├─(vchiq-sync/0,65)
             │   ├─(watchdogd,40)
             │   ├─(writeback,36)
             │   └─(xprtiod,43)
             └─systemd,1 splash
                 ├─PM2 v3.5.1: God,813      
                 │   ├─bash,923 /home/pi/mm.sh
                 │   │   └─npm,929                    
                 │   │       ├─sh,1047 -c sh run-start.sh
                 │   │       │   └─sh,1048 run-start.sh
                 │   │       │       └─node,1049 /home/pi/MagicMirror/node_modules/.bin/electron js/electron.js
                 │   │       │           ├─electron,1064
                 │   │       │           │   ├─electron,1126
                 │   │       │           │   │   └─electron,1467
                 │   │       │           │   │       ├─{Chrome_ChildIOT},1473
                 │   │       │           │   │       ├─{CompositorTileW},1496
                 │   │       │           │   │       ├─{CompositorTileW},1501
                 │   │       │           │   │       ├─{CompositorTileW},1503
                 │   │       │           │   │       ├─{Compositor},1495
                 │   │       │           │   │       ├─{File thread},1479
                 │   │       │           │   │       ├─{GpuMemoryThread},1474
                 │   │       │           │   │       ├─{ScriptStreamer },1539
                 │   │       │           │   │       ├─{TaskSchedulerBa},1469
                 │   │       │           │   │       ├─{TaskSchedulerBa},1470
                 │   │       │           │   │       ├─{TaskSchedulerFo},1472
                 │   │       │           │   │       ├─{TaskSchedulerFo},1737
                 │   │       │           │   │       ├─{TaskSchedulerSe},1468
                 │   │       │           │   │       └─{electron},1524
                 │   │       │           │   ├─electron,1454
                 │   │       │           │   │   ├─{Chrome_ChildIOT},1511
                 │   │       │           │   │   ├─{TaskSchedulerBa},1507
                 │   │       │           │   │   ├─{TaskSchedulerBa},1508
                 │   │       │           │   │   ├─{TaskSchedulerFo},1509
                 │   │       │           │   │   ├─{TaskSchedulerFo},1510
                 │   │       │           │   │   ├─{TaskSchedulerSe},1506
                 │   │       │           │   │   ├─{Watchdog},1505
                 │   │       │           │   │   ├─{llvmpipe-0},1487
                 │   │       │           │   │   ├─{llvmpipe-1},1488
                 │   │       │           │   │   ├─{llvmpipe-2},1489
                 │   │       │           │   │   └─{llvmpipe-3},1490
                 │   │       │           │   ├─{AudioThread},1444
                 │   │       │           │   ├─{CacheThread_Blo},1466
                 │   │       │           │   ├─{Chrome_IOThread},1428
                 │   │       │           │   ├─{CompositorTileW},1443
                 │   │       │           │   ├─{CrShutdownDetec},1432
                 │   │       │           │   ├─{D-Bus thread},1431
                 │   │       │           │   ├─{NetworkChangeNo},1429
                 │   │       │           │   ├─{TaskSchedulerBa},1434
                 │   │       │           │   ├─{TaskSchedulerBa},1462
                 │   │       │           │   ├─{TaskSchedulerFo},1436
                 │   │       │           │   ├─{TaskSchedulerFo},1439
                 │   │       │           │   ├─{TaskSchedulerSe},1433
                 │   │       │           │   ├─{TaskSchedulerSi},1441
                 │   │       │           │   ├─{TaskSchedulerSi},1442
                 │   │       │           │   ├─{TaskSchedulerSi},1573
                 │   │       │           │   ├─{electron},1191
                 │   │       │           │   ├─{electron},1192
                 │   │       │           │   ├─{electron},1193
                 │   │       │           │   ├─{electron},1221
                 │   │       │           │   ├─{electron},1414
                 │   │       │           │   ├─{electron},1415
                 │   │       │           │   ├─{electron},1416
                 │   │       │           │   ├─{electron},1417
                 │   │       │           │   ├─{electron},1453
                 │   │       │           │   ├─{gdbus},1179
                 │   │       │           │   ├─{gmain},1178
                 │   │       │           │   ├─{inotify_reader},1430
                 │   │       │           │   ├─{llvmpipe-0},1167
                 │   │       │           │   ├─{llvmpipe-1},1168
                 │   │       │           │   ├─{llvmpipe-2},1169
                 │   │       │           │   ├─{llvmpipe-3},1170
                 │   │       │           │   └─{sandbox_ipc_thr},1125
                 │   │       │           ├─{node},1050
                 │   │       │           ├─{node},1051
                 │   │       │           ├─{node},1052
                 │   │       │           ├─{node},1053
                 │   │       │           ├─{node},1054
                 │   │       │           └─{node},1057
                 │   │       ├─{node},934
                 │   │       ├─{node},935
                 │   │       ├─{node},936
                 │   │       ├─{node},937
                 │   │       ├─{node},938
                 │   │       ├─{node},945
                 │   │       ├─{npm},1013
                 │   │       ├─{npm},1014
                 │   │       ├─{npm},1015
                 │   │       └─{npm},1016
                 │   ├─{PM2 v3.5.1: God},915
                 │   ├─{PM2 v3.5.1: God},916
                 │   ├─{PM2 v3.5.1: God},917
                 │   ├─{PM2 v3.5.1: God},918
                 │   ├─{node},814
                 │   ├─{node},815
                 │   ├─{node},816
                 │   ├─{node},817
                 │   ├─{node},818
                 │   └─{node},819
                 ├─agetty,509 --noclear tty1 linux
                 ├─avahi-daemon,333
                 │   └─avahi-daemon,370
                 ├─bluealsa,455
                 │   ├─{bactl},463
                 │   ├─{gdbus},479
                 │   └─{gmain},478
                 ├─bluetoothd,454
                 ├─cron,340 -f
                 ├─dbus-daemon,323 --system --address=systemd: --nofork --nopidfile --systemd-activation
                 ├─dbus-daemon,951 --fork --print-address 5 --print-pid 6 --session
                 ├─dhcpcd,372 -q -b
                 ├─hciattach,446 /dev/serial1 bcm43xx 921600 noflow - b8:27:eb:fc:c6:fc
                 ├─lightdm,506
                 │   ├─Xorg,517 :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
                 │   │   ├─{InputThread},631
                 │   │   ├─{llvmpipe-0},623
                 │   │   ├─{llvmpipe-1},624
                 │   │   ├─{llvmpipe-2},625
                 │   │   └─{llvmpipe-3},626
                 │   ├─lightdm,634 --session-child 14 17
                 │   │   ├─lxsession,650 -s LXDE-pi -e LXDE
                 │   │   │   ├─lxpanel,785 --profile LXDE-pi
                 │   │   │   │   ├─chromium-browse,1766
                 │   │   │   │   │   ├─chromium-browse,1792
                 │   │   │   │   │   │   └─chromium-browse,1794
                 │   │   │   │   │   │       ├─chromium-browse,1989
                 │   │   │   │   │   │       │   ├─{Chrome_ChildIOT},2001
                 │   │   │   │   │   │       │   ├─{CompositorTileW},2020
                 │   │   │   │   │   │       │   ├─{CompositorTileW},2021
                 │   │   │   │   │   │       │   ├─{CompositorTileW},2022
                 │   │   │   │   │   │       │   ├─{Compositor},2013
                 │   │   │   │   │   │       │   ├─{Font_Proxy_Thre},2003
                 │   │   │   │   │   │       │   ├─{GpuMemoryThread},2002
                 │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2000
                 │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2114
                 │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2255
                 │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2256
                 │   │   │   │   │   │       │   └─{TaskSchedulerSe},1997
                 │   │   │   │   │   │       └─chromium-browse,2035
                 │   │   │   │   │   │           ├─{Chrome_ChildIOT},2039
                 │   │   │   │   │   │           ├─{CompositorTileW},2043
                 │   │   │   │   │   │           ├─{CompositorTileW},2044
                 │   │   │   │   │   │           ├─{CompositorTileW},2045
                 │   │   │   │   │   │           ├─{Compositor},2042
                 │   │   │   │   │   │           ├─{Font_Proxy_Thre},2041
                 │   │   │   │   │   │           ├─{GpuMemoryThread},2040
                 │   │   │   │   │   │           ├─{MemoryInfra},2091
                 │   │   │   │   │   │           ├─{ScriptStreamer },2049
                 │   │   │   │   │   │           ├─{TaskSchedulerFo},2038
                 │   │   │   │   │   │           ├─{TaskSchedulerFo},2046
                 │   │   │   │   │   │           ├─{TaskSchedulerFo},2254
                 │   │   │   │   │   │           └─{TaskSchedulerSe},2036
                 │   │   │   │   │   ├─chromium-browse,1824
                 │   │   │   │   │   │   ├─{Chrome_ChildIOT},1886
                 │   │   │   │   │   │   ├─{TaskSchedulerFo},1884
                 │   │   │   │   │   │   ├─{TaskSchedulerFo},1885
                 │   │   │   │   │   │   ├─{TaskSchedulerSe},1883
                 │   │   │   │   │   │   ├─{Watchdog},1882
                 │   │   │   │   │   │   ├─{llvmpipe-0},1877
                 │   │   │   │   │   │   ├─{llvmpipe-1},1878
                 │   │   │   │   │   │   ├─{llvmpipe-2},1879
                 │   │   │   │   │   │   └─{llvmpipe-3},1880
                 │   │   │   │   │   ├─{AudioThread},1818
                 │   │   │   │   │   ├─{Bluez D-Bus thr},1809
                 │   │   │   │   │   ├─{BrowserWatchdog},1825
                 │   │   │   │   │   ├─{CacheThread_Blo},1821
                 │   │   │   │   │   ├─{Chrome_HistoryT},1876
                 │   │   │   │   │   ├─{Chrome_IOThread},1802
                 │   │   │   │   │   ├─{CompositorTileW},1817
                 │   │   │   │   │   ├─{CrShutdownDetec},1810
                 │   │   │   │   │   ├─{NetworkChangeNo},1808
                 │   │   │   │   │   ├─{TaskSchedulerFo},1816
                 │   │   │   │   │   ├─{TaskSchedulerFo},2032
                 │   │   │   │   │   ├─{TaskSchedulerFo},2053
                 │   │   │   │   │   ├─{TaskSchedulerFo},2208
                 │   │   │   │   │   ├─{TaskSchedulerSe},1797
                 │   │   │   │   │   ├─{TaskSchedulerSi},1820
                 │   │   │   │   │   ├─{TaskSchedulerSi},1822
                 │   │   │   │   │   ├─{TaskSchedulerSi},1875
                 │   │   │   │   │   ├─{TaskSchedulerSi},1881
                 │   │   │   │   │   ├─{chromium-browse},1795
                 │   │   │   │   │   ├─{extension_crash},1986
                 │   │   │   │   │   ├─{gdbus},1807
                 │   │   │   │   │   ├─{gmain},1806
                 │   │   │   │   │   ├─{gpu-process_cra},1823
                 │   │   │   │   │   ├─{inotify_reader},1801
                 │   │   │   │   │   ├─{renderer_crash_},1894
                 │   │   │   │   │   ├─{sandbox_ipc_thr},1790
                 │   │   │   │   │   └─{utility_crash_u},2061
                 │   │   │   │   ├─lxterminal,2148
                 │   │   │   │   │   ├─bash,2150
                 │   │   │   │   │   │   └─pstree,2271 -ap 0
                 │   │   │   │   │   ├─gnome-pty-helpe,2149
                 │   │   │   │   │   ├─{gdbus},2159
                 │   │   │   │   │   └─{gmain},2151
                 │   │   │   │   ├─oosplash,2177 --writer
                 │   │   │   │   │   ├─soffice.bin,2195 --writer --splash-pipe=5
                 │   │   │   │   │   │   ├─{PipeIPC},2204
                 │   │   │   │   │   │   ├─{SelectionManage},2209
                 │   │   │   │   │   │   ├─{gdbus},2206
                 │   │   │   │   │   │   ├─{gmain},2205
                 │   │   │   │   │   │   ├─{rtl_cache_wsupd},2198
                 │   │   │   │   │   │   ├─{soffice.bin},2233
                 │   │   │   │   │   │   ├─{soffice.bin},2234
                 │   │   │   │   │   │   ├─{soffice.bin},2235
                 │   │   │   │   │   │   ├─{soffice.bin},2236
                 │   │   │   │   │   │   ├─{soffice.bin},2237
                 │   │   │   │   │   │   ├─{soffice.bin},2238
                 │   │   │   │   │   │   ├─{soffice.bin},2239
                 │   │   │   │   │   │   └─{soffice.bin},2240
                 │   │   │   │   │   ├─{osl_executeProc},2194
                 │   │   │   │   │   └─{rtl_cache_wsupd},2190
                 │   │   │   │   ├─(sh,847)
                 │   │   │   │   ├─{gdbus},825
                 │   │   │   │   ├─{gmain},824
                 │   │   │   │   └─{menu-cache-io},895
                 │   │   │   ├─lxpolkit,780
                 │   │   │   │   ├─{gdbus},801
                 │   │   │   │   └─{gmain},799
                 │   │   │   ├─openbox,773 --config-file /home/pi/.config/openbox/lxde-pi-rc.xml
                 │   │   │   ├─pcmanfm,791 --desktop --profile LXDE-pi
                 │   │   │   │   ├─{gdbus},821
                 │   │   │   │   └─{gmain},820
                 │   │   │   ├─ssh-agent,756 x-session-manager
                 │   │   │   ├─{gdbus},762
                 │   │   │   └─{gmain},761
                 │   │   ├─{gdbus},638
                 │   │   └─{gmain},637
                 │   ├─{gdbus},515
                 │   └─{gmain},513
                 ├─menu-cached,831 /run/user/1000/menu-cached-:0
                 │   ├─{gdbus},834
                 │   └─{gmain},833
                 ├─polkitd,804 --no-debug
                 │   ├─{gdbus},811
                 │   └─{gmain},809
                 ├─rngd,361 -r /dev/hwrng
                 │   ├─{rngd},362
                 │   ├─{rngd},363
                 │   └─{rngd},364
                 ├─rsyslogd,331 -n
                 │   ├─{in:imklog},377
                 │   ├─{in:imuxsock},376
                 │   └─{rs:main Q:Reg},378
                 ├─ssh-agent,803 -s
                 ├─systemd,642 --user
                 │   ├─(sd-pam),645         
                 │   ├─dbus-daemon,659 --session --address=systemd: --nofork --nopidfile --systemd-activation
                 │   ├─gvfs-afc-volume,866
                 │   │   ├─{gdbus},870
                 │   │   ├─{gmain},868
                 │   │   └─{gvfs-afc-volume},867
                 │   ├─gvfs-goa-volume,858
                 │   │   ├─{gdbus},860
                 │   │   └─{gmain},859
                 │   ├─gvfs-gphoto2-vo,854
                 │   │   ├─{gdbus},857
                 │   │   └─{gmain},855
                 │   ├─gvfs-mtp-volume,862
                 │   │   ├─{gdbus},865
                 │   │   └─{gmain},863
                 │   ├─gvfs-udisks2-vo,835
                 │   │   ├─{gdbus},837
                 │   │   └─{gmain},836
                 │   ├─gvfsd,763
                 │   │   ├─{gdbus},765
                 │   │   └─{gmain},764
                 │   ├─gvfsd-fuse,768 /run/user/1000/gvfs -f -o big_writes
                 │   │   ├─{gdbus},787
                 │   │   ├─{gmain},786
                 │   │   ├─{gvfs-fuse-sub},792
                 │   │   ├─{gvfsd-fuse},782
                 │   │   └─{gvfsd-fuse},783
                 │   └─gvfsd-trash,904 --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
                 │       ├─{gdbus},906
                 │       └─{gmain},905
                 ├─systemd-journal,107
                 ├─systemd-logind,334
                 ├─systemd-timesyn,305
                 │   └─{sd-resolve},320
                 ├─systemd-udevd,139
                 ├─thd,322 --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
                 ├─udisksd,838 --no-debug
                 │   ├─{cleanup},852
                 │   ├─{gdbus},841
                 │   ├─{gmain},839
                 │   └─{probing-thread},842
                 ├─wpa_supplicant,327 -u -s -O /run/wpa_supplicant
                 └─wpa_supplicant,422 -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
            pi@raspberrypi:~ $
            
            E 1 Reply Last reply Jul 13, 2019, 4:46 PM Reply Quote 0
            • E Offline
              evroom @bill22
              last edited by Jul 13, 2019, 4:46 PM

              @bill22

              In order to remove avm_stream from pm2; I think you have to do:

              pm2 stop avm_stream
              pm2 delete avm_stream
              pm2 save
              
              pm2 status
              

              If pm2 status does not show the pid column, my command does not make sense.
              First stretch out the ssh window so that it shows.

              This is not good:

              pi@MagicPi:~/MagicMirror/css $ pm2 status
              ┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
              │ Name │ id │ mode │ status │ ↺ │ cpu │ memory   │
              ├──────┼────┼──────┼────────┼───┼─────┼──────────┤
              │ axis │ 1  │ fork │ online │ 0 │ 0%  │ 2.5 MB   │
              │ mm   │ 0  │ fork │ online │ 0 │ 0%  │ 2.5 MB   │
              └──────┴────┴──────┴────────┴───┴─────┴──────────┘
              

              This is better:

              pi@MagicPi:~/MagicMirror/css $ pm2 status
              ┌──────────┬────┬─────────┬──────┬───────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
              │ App name │ id │ version │ mode │ pid   │ status │ restart │ uptime │ cpu │ mem      │ user │ watching │
              ├──────────┼────┼─────────┼──────┼───────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
              │ axis     │ 1  │ 2.5.0   │ fork │ 14186 │ online │ 0       │ 20h    │ 0%  │ 2.5 MB   │ pi   │ disabled │
              │ mm       │ 0  │ 2.5.0   │ fork │ 14180 │ online │ 0       │ 20h    │ 0%  │ 2.5 MB   │ pi   │ disabled │
              └──────────┴────┴─────────┴──────┴───────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
              

              MagicMirror version: 2.30.0
              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Test environment:
              MagicMirror version: v2.30.0
              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              1 Reply Last reply Reply Quote 0
              • B Offline
                bill22
                last edited by bill22 Jul 13, 2019, 5:06 PM Jul 13, 2019, 4:59 PM

                thanks, i removed the avm_stream.

                Below the status including the PID. Missed that before…

                pi@raspberrypi:~ $ pm2 status
                
                
                │ App name        │ id │ version │ mode │ pid │ status  │ restart │ uptime │ cpu │ mem      │ user │ watching │
                
                │ mm                   │ 1  │ N/A│ fork │ 940 │ online  │ 0             │ 37m    │ 0%  │ 2.3 MB   │ pi   │ disabled │
                │ omx_stream1 │ 0  │ N/A         │ fork │ 0   │ stopped │ 17          │ 0          │ 0%  │ 0 B          │ pi   │ disabled │
                
                 Use `pm2 show <id|name>` to get more details about an app
                
                

                PIDs remain the same when I run pm2 status again

                E 1 Reply Last reply Jul 13, 2019, 5:16 PM Reply Quote 0
                • E Offline
                  evroom @bill22
                  last edited by evroom Jul 13, 2019, 5:17 PM Jul 13, 2019, 5:16 PM

                  @bill22

                  pm2 status will show the current status; will not restart mm & omx_stream1.
                  You can try pm2 restart mm and see what happens.
                  Repeat

                  $ pstree -ap `pgrep omxplayer | head -1`; pstree -ap `pm2 status | grep omx_stream1 | awk '{print $10}'`
                  

                  a few times.
                  I guess that you will see different PIDs and then status stopped (with pm2 status).
                  But perhaps it will remain stable.

                  MagicMirror version: 2.30.0
                  Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

                  Test environment:
                  MagicMirror version: v2.30.0
                  Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bill22
                    last edited by Jul 13, 2019, 5:50 PM

                    @evroom

                    the PIDs of omx_stream1 is changing:

                    pi@raspberrypi:~ $ pm2 restart mm
                    Use --update-env to update environment variables
                    [PM2] Applying action restartProcessId on app [mm](ids: 1)
                    [PM2] [mm](1) ✓
                    ┌─────────────┬────┬─────────┬──────┬──────┬─────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
                    │ App name    │ id │ version │ mode │ pid  │ status  │ restart │ uptime │ cpu │ mem      │ user │ watching │
                    ├─────────────┼────┼─────────┼──────┼──────┼─────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
                    │ mm          │ 1  │ N/A     │ fork │ 2976 │ online  │ 1       │ 0s     │ 0%  │ 2.3 MB   │ pi   │ disabled │
                    │ omx_stream1 │ 0  │ N/A     │ fork │ 0    │ stopped │ 17      │ 0      │ 0%  │ 0 B      │ pi   │ disabled │
                    └─────────────┴────┴─────────┴──────┴──────┴─────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
                     Use `pm2 show <id|name>` to get more details about an app
                    pi@raspberrypi:~ $ pm2 status
                    ┌─────────────┬────┬─────────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
                    │ App name    │ id │ version │ mode │ pid  │ status │ restart │ uptime │ cpu │ mem      │ user │ watching │
                    ├─────────────┼────┼─────────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
                    │ mm          │ 1  │ N/A     │ fork │ 2976 │ online │ 1       │ 2m     │ 0%  │ 2.3 MB   │ pi   │ disabled │
                    │ omx_stream1 │ 0  │ N/A     │ fork │ 4609 │ online │ 58      │ 2s     │ 0%  │ 2.4 MB   │ pi   │ disabled │
                    
                    E 1 Reply Last reply Jul 13, 2019, 5:57 PM Reply Quote 0
                    • B Offline
                      bill22
                      last edited by Jul 13, 2019, 5:56 PM

                      @evroom

                      pi@raspberrypi:~ $ pm2 status
                      ┌─────────────┬────┬─────────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
                      │ App name    │ id │ version │ mode │ pid  │ status │ restart │ uptime │ cpu │ mem      │ user │ watching │
                      ├─────────────┼────┼─────────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
                      │ mm          │ 1  │ N/A     │ fork │ 2976 │ online │ 1       │ 2m     │ 0%  │ 2.3 MB   │ pi   │ disabled │
                      │ omx_stream1 │ 0  │ N/A     │ fork │ 5123 │ online │ 71      │ 1s     │ 0%  │ 2.6 MB   │ pi   │ disabled │
                      └─────────────┴────┴─────────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
                       Use `pm2 show <id|name>` to get more details about an app
                      pi@raspberrypi:~ $ pm2 status
                      ┌─────────────┬────┬─────────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
                      │ App name    │ id │ version │ mode │ pid  │ status │ restart │ uptime │ cpu │ mem      │ user │ watching │
                      ├─────────────┼────┼─────────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
                      │ mm          │ 1  │ N/A     │ fork │ 2976 │ online │ 1       │ 4m     │ 0%  │ 2.3 MB   │ pi   │ disabled │
                      │ omx_stream1 │ 0  │ N/A     │ fork │ 7749 │ online │ 141     │ 1s     │ 0%  │ 2.5 MB   │ pi   │ disabled │
                      └─────────────┴────┴─────────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
                       Use `pm2 show <id|name>` to get more details about an app
                      pi@raspberrypi:~ $ pm2 status
                      ┌─────────────┬────┬─────────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
                      │ App name    │ id │ version │ mode │ pid  │ status │ restart │ uptime │ cpu │ mem      │ user │ watching │
                      ├─────────────┼────┼─────────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
                      │ mm          │ 1  │ N/A     │ fork │ 2976 │ online │ 1       │ 4m     │ 0%  │ 2.3 MB   │ pi   │ disabled │
                      │ omx_stream1 │ 0  │ N/A     │ fork │ 7831 │ online │ 143     │ 1s     │ 0%  │ 2.5 MB   │ pi   │ disabled │
                      └─────────────┴────┴─────────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
                      
                      pi@raspberrypi:~ $ pstree -ap `pgrep omxplayer | head -1`; pstree -ap `pm2 status | grep omx_stream1 | awk '{print $10}'`
                      systemd,1 splash
                        ├─PM2 v3.5.1: God,781      
                        │   ├─bash,2976 /home/pi/mm.sh
                        │   │   └─npm,2977                    
                        │   │       ├─sh,2991 -c sh run-start.sh
                        │   │       │   └─sh,2992 run-start.sh
                        │   │       │       └─node,2993 /home/pi/MagicMirror/node_modules/.bin/electron js/electron.js
                        │   │       │           ├─electron,3000
                        │   │       │           │   ├─electron,3002
                        │   │       │           │   │   └─electron,3039
                        │   │       │           │   │       ├─{Chrome_ChildIOT},3045
                        │   │       │           │   │       ├─{CompositorTileW},3049
                        │   │       │           │   │       ├─{CompositorTileW},3050
                        │   │       │           │   │       ├─{CompositorTileW},3051
                        │   │       │           │   │       ├─{Compositor},3048
                        │   │       │           │   │       ├─{File thread},3047
                        │   │       │           │   │       ├─{GpuMemoryThread},3046
                        │   │       │           │   │       ├─{ScriptStreamer },3071
                        │   │       │           │   │       ├─{TaskSchedulerBa},3041
                        │   │       │           │   │       ├─{TaskSchedulerBa},3042
                        │   │       │           │   │       ├─{TaskSchedulerFo},3043
                        │   │       │           │   │       ├─{TaskSchedulerFo},3044
                        │   │       │           │   │       ├─{TaskSchedulerFo},7868
                        │   │       │           │   │       ├─{TaskSchedulerSe},3040
                        │   │       │           │   │       └─{electron},3065
                        │   │       │           │   ├─electron,3036
                        │   │       │           │   │   ├─{Chrome_ChildIOT},3063
                        │   │       │           │   │   ├─{TaskSchedulerBa},3059
                        │   │       │           │   │   ├─{TaskSchedulerBa},3060
                        │   │       │           │   │   ├─{TaskSchedulerFo},3061
                        │   │       │           │   │   ├─{TaskSchedulerFo},3062
                        │   │       │           │   │   ├─{TaskSchedulerSe},3058
                        │   │       │           │   │   ├─{Watchdog},3057
                        │   │       │           │   │   ├─{llvmpipe-0},3053
                        │   │       │           │   │   ├─{llvmpipe-1},3054
                        │   │       │           │   │   ├─{llvmpipe-2},3055
                        │   │       │           │   │   └─{llvmpipe-3},3056
                        │   │       │           │   ├─{AudioThread},3033
                        │   │       │           │   ├─{CacheThread_Blo},3038
                        │   │       │           │   ├─{Chrome_IOThread},3017
                        │   │       │           │   ├─{CompositorTileW},3032
                        │   │       │           │   ├─{CrShutdownDetec},3021
                        │   │       │           │   ├─{D-Bus thread},3019
                        │   │       │           │   ├─{NetworkChangeNo},3018
                        │   │       │           │   ├─{TaskSchedulerBa},3023
                        │   │       │           │   ├─{TaskSchedulerBa},3024
                        │   │       │           │   ├─{TaskSchedulerFo},3025
                        │   │       │           │   ├─{TaskSchedulerFo},3067
                        │   │       │           │   ├─{TaskSchedulerFo},8081
                        │   │       │           │   ├─{TaskSchedulerSe},3022
                        │   │       │           │   ├─{TaskSchedulerSi},3030
                        │   │       │           │   ├─{TaskSchedulerSi},3031
                        │   │       │           │   ├─{TaskSchedulerSi},3073
                        │   │       │           │   ├─{electron},3008
                        │   │       │           │   ├─{electron},3009
                        │   │       │           │   ├─{electron},3010
                        │   │       │           │   ├─{electron},3011
                        │   │       │           │   ├─{electron},3013
                        │   │       │           │   ├─{electron},3014
                        │   │       │           │   ├─{electron},3015
                        │   │       │           │   ├─{electron},3016
                        │   │       │           │   ├─{electron},3034
                        │   │       │           │   ├─{gdbus},3007
                        │   │       │           │   ├─{gmain},3006
                        │   │       │           │   ├─{inotify_reader},3020
                        │   │       │           │   └─{sandbox_ipc_thr},3001
                        │   │       │           ├─{node},2994
                        │   │       │           ├─{node},2995
                        │   │       │           ├─{node},2996
                        │   │       │           ├─{node},2997
                        │   │       │           ├─{node},2998
                        │   │       │           └─{node},2999
                        │   │       ├─{node},2978
                        │   │       ├─{node},2979
                        │   │       ├─{node},2980
                        │   │       ├─{node},2981
                        │   │       ├─{node},2982
                        │   │       ├─{node},2983
                        │   │       ├─{npm},2986
                        │   │       ├─{npm},2987
                        │   │       ├─{npm},2988
                        │   │       └─{npm},2989
                        │   ├─bash,8279 /usr/bin/omxplayer --avdict rtsp_transport:tcp --win 666, 361, 1018, 603 --live --video_queue 4 --audio_queue 4 --fps 25...
                        │   ├─{PM2 v3.5.1: God},916
                        │   ├─{PM2 v3.5.1: God},917
                        │   ├─{PM2 v3.5.1: God},918
                        │   ├─{PM2 v3.5.1: God},919
                        │   ├─{node},784
                        │   ├─{node},785
                        │   ├─{node},786
                        │   ├─{node},787
                        │   ├─{node},788
                        │   └─{node},789
                        ├─agetty,502 --noclear tty1 linux
                        ├─avahi-daemon,364
                        │   └─avahi-daemon,386
                        ├─bluealsa,607
                        │   ├─{bactl},633
                        │   ├─{gdbus},635
                        │   └─{gmain},634
                        ├─bluetoothd,558
                        ├─cron,358 -f
                        ├─dbus-daemon,365 --system --address=systemd: --nofork --nopidfile --systemd-activation
                        ├─dbus-daemon,968 --fork --print-address 5 --print-pid 6 --session
                        ├─dhcpcd,413 -q -b
                        ├─hciattach,539 /dev/serial1 bcm43xx 921600 noflow - b8:27:eb:fc:c6:fc
                        ├─lightdm,449
                        │   ├─Xorg,511 :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
                        │   │   ├─{InputThread},653
                        │   │   ├─{llvmpipe-0},645
                        │   │   ├─{llvmpipe-1},646
                        │   │   ├─{llvmpipe-2},647
                        │   │   └─{llvmpipe-3},648
                        │   ├─lightdm,656 --session-child 14 17
                        │   │   ├─lxsession,672 -s LXDE-pi -e LXDE
                        │   │   │   ├─lxpanel,817 --profile LXDE-pi
                        │   │   │   │   ├─chromium-browse,1784
                        │   │   │   │   │   ├─chromium-browse,1805
                        │   │   │   │   │   │   └─chromium-browse,1808
                        │   │   │   │   │   │       ├─chromium-browse,1967
                        │   │   │   │   │   │       │   ├─{Chrome_ChildIOT},1980
                        │   │   │   │   │   │       │   ├─{CompositorTileW},2029
                        │   │   │   │   │   │       │   ├─{CompositorTileW},2030
                        │   │   │   │   │   │       │   ├─{CompositorTileW},2031
                        │   │   │   │   │   │       │   ├─{Compositor},2024
                        │   │   │   │   │   │       │   ├─{Font_Proxy_Thre},1984
                        │   │   │   │   │   │       │   ├─{GpuMemoryThread},1983
                        │   │   │   │   │   │       │   ├─{TaskSchedulerFo},1979
                        │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2830
                        │   │   │   │   │   │       │   └─{TaskSchedulerSe},1976
                        │   │   │   │   │   │       └─chromium-browse,2050
                        │   │   │   │   │   │           ├─{Chrome_ChildIOT},2054
                        │   │   │   │   │   │           ├─{CompositorTileW},2058
                        │   │   │   │   │   │           ├─{CompositorTileW},2059
                        │   │   │   │   │   │           ├─{CompositorTileW},2060
                        │   │   │   │   │   │           ├─{Compositor},2057
                        │   │   │   │   │   │           ├─{Font_Proxy_Thre},2056
                        │   │   │   │   │   │           ├─{GpuMemoryThread},2055
                        │   │   │   │   │   │           ├─{Media},2463
                        │   │   │   │   │   │           ├─{MemoryInfra},2104
                        │   │   │   │   │   │           ├─{ScriptStreamer },2088
                        │   │   │   │   │   │           ├─{TaskSchedulerFo},2053
                        │   │   │   │   │   │           ├─{TaskSchedulerFo},2958
                        │   │   │   │   │   │           ├─{TaskSchedulerFo},6650
                        │   │   │   │   │   │           ├─{TaskSchedulerFo},7786
                        │   │   │   │   │   │           └─{TaskSchedulerSe},2051
                        │   │   │   │   │   ├─chromium-browse,1837
                        │   │   │   │   │   │   ├─{Chrome_ChildIOT},1899
                        │   │   │   │   │   │   ├─{TaskSchedulerFo},1897
                        │   │   │   │   │   │   ├─{TaskSchedulerFo},1898
                        │   │   │   │   │   │   ├─{TaskSchedulerSe},1896
                        │   │   │   │   │   │   ├─{Watchdog},1895
                        │   │   │   │   │   │   ├─{llvmpipe-0},1890
                        │   │   │   │   │   │   ├─{llvmpipe-1},1891
                        │   │   │   │   │   │   ├─{llvmpipe-2},1892
                        │   │   │   │   │   │   └─{llvmpipe-3},1893
                        │   │   │   │   │   ├─{AudioThread},1831
                        │   │   │   │   │   ├─{Bluez D-Bus thr},1822
                        │   │   │   │   │   ├─{BrowserWatchdog},1838
                        │   │   │   │   │   ├─{CacheThread_Blo},1834
                        │   │   │   │   │   ├─{Chrome_HistoryT},1889
                        │   │   │   │   │   ├─{Chrome_IOThread},1815
                        │   │   │   │   │   ├─{CompositorTileW},1830
                        │   │   │   │   │   ├─{CrShutdownDetec},1823
                        │   │   │   │   │   ├─{LevelDBEnv},2146
                        │   │   │   │   │   ├─{NetworkChangeNo},1821
                        │   │   │   │   │   ├─{TaskSchedulerFo},2044
                        │   │   │   │   │   ├─{TaskSchedulerFo},2671
                        │   │   │   │   │   ├─{TaskSchedulerFo},2832
                        │   │   │   │   │   ├─{TaskSchedulerFo},7990
                        │   │   │   │   │   ├─{TaskSchedulerSe},1810
                        │   │   │   │   │   ├─{TaskSchedulerSi},1833
                        │   │   │   │   │   ├─{TaskSchedulerSi},1835
                        │   │   │   │   │   ├─{TaskSchedulerSi},1888
                        │   │   │   │   │   ├─{TaskSchedulerSi},1894
                        │   │   │   │   │   ├─{chromium-browse},1809
                        │   │   │   │   │   ├─{extension_crash},1966
                        │   │   │   │   │   ├─{gdbus},1820
                        │   │   │   │   │   ├─{gmain},1819
                        │   │   │   │   │   ├─{gpu-process_cra},1836
                        │   │   │   │   │   ├─{inotify_reader},1814
                        │   │   │   │   │   ├─{renderer_crash_},1904
                        │   │   │   │   │   └─{sandbox_ipc_thr},1803
                        │   │   │   │   ├─lxterminal,2945
                        │   │   │   │   │   ├─bash,2947
                        │   │   │   │   │   │   └─pstree,8300 -ap
                        │   │   │   │   │   ├─gnome-pty-helpe,2946
                        │   │   │   │   │   ├─{gdbus},2955
                        │   │   │   │   │   └─{gmain},2948
                        │   │   │   │   ├─oosplash,2160 --writer
                        │   │   │   │   │   ├─soffice.bin,2178 --writer --splash-pipe=5
                        │   │   │   │   │   │   ├─{PipeIPC},2188
                        │   │   │   │   │   │   ├─{SelectionManage},2193
                        │   │   │   │   │   │   ├─{gdbus},2191
                        │   │   │   │   │   │   ├─{gmain},2190
                        │   │   │   │   │   │   ├─{rtl_cache_wsupd},2182
                        │   │   │   │   │   │   ├─{soffice.bin},2197
                        │   │   │   │   │   │   ├─{soffice.bin},2198
                        │   │   │   │   │   │   ├─{soffice.bin},2199
                        │   │   │   │   │   │   ├─{soffice.bin},2200
                        │   │   │   │   │   │   ├─{soffice.bin},2201
                        │   │   │   │   │   │   ├─{soffice.bin},2202
                        │   │   │   │   │   │   ├─{soffice.bin},2203
                        │   │   │   │   │   │   └─{soffice.bin},2204
                        │   │   │   │   │   ├─{osl_executeProc},2177
                        │   │   │   │   │   └─{rtl_cache_wsupd},2172
                        │   │   │   │   ├─(sh,864)
                        │   │   │   │   ├─{gdbus},844
                        │   │   │   │   ├─{gmain},843
                        │   │   │   │   └─{menu-cache-io},921
                        │   │   │   ├─lxpolkit,809
                        │   │   │   │   ├─{gdbus},832
                        │   │   │   │   └─{gmain},831
                        │   │   │   ├─openbox,807 --config-file /home/pi/.config/openbox/lxde-pi-rc.xml
                        │   │   │   ├─pcmanfm,820 --desktop --profile LXDE-pi
                        │   │   │   │   ├─leafpad,1770 /home/pi/omxplayer.log
                        │   │   │   │   │   ├─{gdbus},1772
                        │   │   │   │   │   └─{gmain},1771
                        │   │   │   │   ├─leafpad,2133 /home/pi/.npm/_logs/2019-07-11T21_30_10_606Z-debug.log
                        │   │   │   │   │   ├─{gdbus},2135
                        │   │   │   │   │   └─{gmain},2134
                        │   │   │   │   ├─{gdbus},846
                        │   │   │   │   └─{gmain},845
                        │   │   │   ├─ssh-agent,778 x-session-manager
                        │   │   │   ├─{gdbus},791
                        │   │   │   └─{gmain},790
                        │   │   ├─{gdbus},660
                        │   │   └─{gmain},659
                        │   ├─{gdbus},453
                        │   └─{gmain},451
                        ├─menu-cached,853 /run/user/1000/menu-cached-:0
                        │   ├─{gdbus},856
                        │   └─{gmain},855
                        ├─polkitd,835 --no-debug
                        │   ├─{gdbus},840
                        │   └─{gmain},838
                        ├─rngd,409 -r /dev/hwrng
                        │   ├─{rngd},410
                        │   ├─{rngd},411
                        │   └─{rngd},412
                        ├─rsyslogd,359 -n
                        │   ├─{in:imklog},389
                        │   ├─{in:imuxsock},388
                        │   └─{rs:main Q:Reg},390
                        ├─ssh-agent,830 -s
                        ├─systemd,664 --user
                        │   ├─(sd-pam),667         
                        │   ├─dbus-daemon,681 --session --address=systemd: --nofork --nopidfile --systemd-activation
                        │   ├─gvfs-afc-volume,888
                        │   │   ├─{gdbus},892
                        │   │   ├─{gmain},890
                        │   │   └─{gvfs-afc-volume},889
                        │   ├─gvfs-goa-volume,880
                        │   │   ├─{gdbus},882
                        │   │   └─{gmain},881
                        │   ├─gvfs-gphoto2-vo,876
                        │   │   ├─{gdbus},879
                        │   │   └─{gmain},877
                        │   ├─gvfs-mtp-volume,884
                        │   │   ├─{gdbus},887
                        │   │   └─{gmain},885
                        │   ├─gvfs-udisks2-vo,857
                        │   │   ├─{gdbus},863
                        │   │   └─{gmain},862
                        │   ├─gvfsd,792
                        │   │   ├─{gdbus},794
                        │   │   └─{gmain},793
                        │   ├─gvfsd-fuse,797 /run/user/1000/gvfs -f -o big_writes
                        │   │   ├─{gdbus},814
                        │   │   ├─{gmain},813
                        │   │   ├─{gvfs-fuse-sub},821
                        │   │   ├─{gvfsd-fuse},811
                        │   │   └─{gvfsd-fuse},812
                        │   └─gvfsd-trash,930 --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
                        │       ├─{gdbus},933
                        │       └─{gmain},932
                        ├─systemd-journal,103
                        ├─systemd-logind,361
                        ├─systemd-timesyn,324
                        │   └─{sd-resolve},360
                        ├─systemd-udevd,137
                        ├─thd,395 --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
                        ├─udisksd,869 --no-debug
                        │   ├─{cleanup},874
                        │   ├─{gdbus},872
                        │   ├─{gmain},870
                        │   └─{probing-thread},873
                        ├─wpa_supplicant,400 -u -s -O /run/wpa_supplicant
                        └─wpa_supplicant,457 -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
                      bash,8330 /usr/bin/omxplayer --avdict rtsp_transport:tcp --win 666, 361, 1018, 603 --live --video_queue 4 --audio_queue 4 --fps 25...
                        └─bash,8340 /usr/bin/omxplayer --avdict rtsp_transport:tcp --win 666, 361, 1018, 603 --live --video_queue 4 --audio_queue 4 --fps 25...
                            └─node,8341 /home/pi/MagicMirror/node_modules/.bin/which xset
                                ├─{node},8342
                                ├─{node},8343
                                ├─{node},8344
                                ├─{node},8345
                                ├─{node},8346
                                └─{node},8347
                      
                      
                      
                      pi@raspberrypi:~ $ pstree -ap `pgrep omxplayer | head -1`; pstree -ap `pm2 status | grep omx_stream1 | awk '{print $10}'`
                      systemd,1 splash
                        ├─PM2 v3.5.1: God,781      
                        │   ├─bash,2976 /home/pi/mm.sh
                        │   │   └─npm,2977                    
                        │   │       ├─sh,2991 -c sh run-start.sh
                        │   │       │   └─sh,2992 run-start.sh
                        │   │       │       └─node,2993 /home/pi/MagicMirror/node_modules/.bin/electron js/electron.js
                        │   │       │           ├─electron,3000
                        │   │       │           │   ├─electron,3002
                        │   │       │           │   │   └─electron,3039
                        │   │       │           │   │       ├─{Chrome_ChildIOT},3045
                        │   │       │           │   │       ├─{CompositorTileW},3049
                        │   │       │           │   │       ├─{CompositorTileW},3050
                        │   │       │           │   │       ├─{CompositorTileW},3051
                        │   │       │           │   │       ├─{Compositor},3048
                        │   │       │           │   │       ├─{File thread},3047
                        │   │       │           │   │       ├─{GpuMemoryThread},3046
                        │   │       │           │   │       ├─{ScriptStreamer },3071
                        │   │       │           │   │       ├─{TaskSchedulerBa},3041
                        │   │       │           │   │       ├─{TaskSchedulerBa},3042
                        │   │       │           │   │       ├─{TaskSchedulerFo},3044
                        │   │       │           │   │       ├─{TaskSchedulerFo},8553
                        │   │       │           │   │       ├─{TaskSchedulerSe},3040
                        │   │       │           │   │       └─{electron},3065
                        │   │       │           │   ├─electron,3036
                        │   │       │           │   │   ├─{Chrome_ChildIOT},3063
                        │   │       │           │   │   ├─{TaskSchedulerBa},3059
                        │   │       │           │   │   ├─{TaskSchedulerBa},3060
                        │   │       │           │   │   ├─{TaskSchedulerFo},3061
                        │   │       │           │   │   ├─{TaskSchedulerFo},3062
                        │   │       │           │   │   ├─{TaskSchedulerSe},3058
                        │   │       │           │   │   ├─{Watchdog},3057
                        │   │       │           │   │   ├─{llvmpipe-0},3053
                        │   │       │           │   │   ├─{llvmpipe-1},3054
                        │   │       │           │   │   ├─{llvmpipe-2},3055
                        │   │       │           │   │   └─{llvmpipe-3},3056
                        │   │       │           │   ├─{AudioThread},3033
                        │   │       │           │   ├─{CacheThread_Blo},3038
                        │   │       │           │   ├─{Chrome_IOThread},3017
                        │   │       │           │   ├─{CompositorTileW},3032
                        │   │       │           │   ├─{CrShutdownDetec},3021
                        │   │       │           │   ├─{D-Bus thread},3019
                        │   │       │           │   ├─{NetworkChangeNo},3018
                        │   │       │           │   ├─{TaskSchedulerBa},3023
                        │   │       │           │   ├─{TaskSchedulerBa},3024
                        │   │       │           │   ├─{TaskSchedulerFo},3025
                        │   │       │           │   ├─{TaskSchedulerFo},3067
                        │   │       │           │   ├─{TaskSchedulerSe},3022
                        │   │       │           │   ├─{TaskSchedulerSi},3030
                        │   │       │           │   ├─{TaskSchedulerSi},3031
                        │   │       │           │   ├─{TaskSchedulerSi},3073
                        │   │       │           │   ├─{electron},3008
                        │   │       │           │   ├─{electron},3009
                        │   │       │           │   ├─{electron},3010
                        │   │       │           │   ├─{electron},3011
                        │   │       │           │   ├─{electron},3013
                        │   │       │           │   ├─{electron},3014
                        │   │       │           │   ├─{electron},3015
                        │   │       │           │   ├─{electron},3016
                        │   │       │           │   ├─{electron},3034
                        │   │       │           │   ├─{gdbus},3007
                        │   │       │           │   ├─{gmain},3006
                        │   │       │           │   ├─{inotify_reader},3020
                        │   │       │           │   └─{sandbox_ipc_thr},3001
                        │   │       │           ├─{node},2994
                        │   │       │           ├─{node},2995
                        │   │       │           ├─{node},2996
                        │   │       │           ├─{node},2997
                        │   │       │           ├─{node},2998
                        │   │       │           └─{node},2999
                        │   │       ├─{node},2978
                        │   │       ├─{node},2979
                        │   │       ├─{node},2980
                        │   │       ├─{node},2981
                        │   │       ├─{node},2982
                        │   │       ├─{node},2983
                        │   │       ├─{npm},2986
                        │   │       ├─{npm},2987
                        │   │       ├─{npm},2988
                        │   │       └─{npm},2989
                        │   ├─bash,10219 /usr/bin/omxplayer --avdict rtsp_transport:tcp --win 666, 361, 1018, 603 --live --video_queue 4 --audio_queue 4 --fps 25...
                        │   │   └─bash,10221 /usr/bin/omxplayer --avdict rtsp_transport:tcp --win 666, 361, 1018, 603 --live --video_queue 4 --audio_queue 4 --fps 25...
                        │   │       └─node,10222 /home/pi/MagicMirror/node_modules/.bin/which fbset
                        │   │           ├─{node},10223
                        │   │           ├─{node},10224
                        │   │           ├─{node},10225
                        │   │           ├─{node},10226
                        │   │           ├─{node},10227
                        │   │           └─{node},10231
                        │   ├─{PM2 v3.5.1: God},916
                        │   ├─{PM2 v3.5.1: God},917
                        │   ├─{PM2 v3.5.1: God},918
                        │   ├─{PM2 v3.5.1: God},919
                        │   ├─{node},784
                        │   ├─{node},785
                        │   ├─{node},786
                        │   ├─{node},787
                        │   ├─{node},788
                        │   └─{node},789
                        ├─agetty,502 --noclear tty1 linux
                        ├─avahi-daemon,364
                        │   └─avahi-daemon,386
                        ├─bluealsa,607
                        │   ├─{bactl},633
                        │   ├─{gdbus},635
                        │   └─{gmain},634
                        ├─bluetoothd,558
                        ├─cron,358 -f
                        ├─dbus-daemon,365 --system --address=systemd: --nofork --nopidfile --systemd-activation
                        ├─dbus-daemon,968 --fork --print-address 5 --print-pid 6 --session
                        ├─dhcpcd,413 -q -b
                        ├─hciattach,539 /dev/serial1 bcm43xx 921600 noflow - b8:27:eb:fc:c6:fc
                        ├─lightdm,449
                        │   ├─Xorg,511 :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
                        │   │   ├─{InputThread},653
                        │   │   ├─{llvmpipe-0},645
                        │   │   ├─{llvmpipe-1},646
                        │   │   ├─{llvmpipe-2},647
                        │   │   └─{llvmpipe-3},648
                        │   ├─lightdm,656 --session-child 14 17
                        │   │   ├─lxsession,672 -s LXDE-pi -e LXDE
                        │   │   │   ├─lxpanel,817 --profile LXDE-pi
                        │   │   │   │   ├─chromium-browse,1784
                        │   │   │   │   │   ├─chromium-browse,1805
                        │   │   │   │   │   │   └─chromium-browse,1808
                        │   │   │   │   │   │       ├─chromium-browse,1967
                        │   │   │   │   │   │       │   ├─{Chrome_ChildIOT},1980
                        │   │   │   │   │   │       │   ├─{CompositorTileW},2029
                        │   │   │   │   │   │       │   ├─{CompositorTileW},2030
                        │   │   │   │   │   │       │   ├─{CompositorTileW},2031
                        │   │   │   │   │   │       │   ├─{Compositor},2024
                        │   │   │   │   │   │       │   ├─{Font_Proxy_Thre},1984
                        │   │   │   │   │   │       │   ├─{GpuMemoryThread},1983
                        │   │   │   │   │   │       │   ├─{TaskSchedulerFo},1979
                        │   │   │   │   │   │       │   ├─{TaskSchedulerFo},2830
                        │   │   │   │   │   │       │   └─{TaskSchedulerSe},1976
                        │   │   │   │   │   │       └─chromium-browse,2050
                        │   │   │   │   │   │           ├─{Chrome_ChildIOT},2054
                        │   │   │   │   │   │           ├─{CompositorTileW},2058
                        │   │   │   │   │   │           ├─{CompositorTileW},2059
                        │   │   │   │   │   │           ├─{CompositorTileW},2060
                        │   │   │   │   │   │           ├─{Compositor},2057
                        │   │   │   │   │   │           ├─{Font_Proxy_Thre},2056
                        │   │   │   │   │   │           ├─{GpuMemoryThread},2055
                        │   │   │   │   │   │           ├─{Media},2463
                        │   │   │   │   │   │           ├─{MemoryInfra},2104
                        │   │   │   │   │   │           ├─{ScriptStreamer },2088
                        │   │   │   │   │   │           ├─{TaskSchedulerFo},2053
                        │   │   │   │   │   │           ├─{TaskSchedulerFo},2958
                        │   │   │   │   │   │           ├─{TaskSchedulerFo},6650
                        │   │   │   │   │   │           └─{TaskSchedulerSe},2051
                        │   │   │   │   │   ├─chromium-browse,1837
                        │   │   │   │   │   │   ├─{Chrome_ChildIOT},1899
                        │   │   │   │   │   │   ├─{TaskSchedulerFo},1897
                        │   │   │   │   │   │   ├─{TaskSchedulerFo},1898
                        │   │   │   │   │   │   ├─{TaskSchedulerSe},1896
                        │   │   │   │   │   │   ├─{Watchdog},1895
                        │   │   │   │   │   │   ├─{llvmpipe-0},1890
                        │   │   │   │   │   │   ├─{llvmpipe-1},1891
                        │   │   │   │   │   │   ├─{llvmpipe-2},1892
                        │   │   │   │   │   │   └─{llvmpipe-3},1893
                        │   │   │   │   │   ├─{AudioThread},1831
                        │   │   │   │   │   ├─{Bluez D-Bus thr},1822
                        │   │   │   │   │   ├─{BrowserWatchdog},1838
                        │   │   │   │   │   ├─{CacheThread_Blo},1834
                        │   │   │   │   │   ├─{Chrome_HistoryT},1889
                        │   │   │   │   │   ├─{Chrome_IOThread},1815
                        │   │   │   │   │   ├─{CompositorTileW},1830
                        │   │   │   │   │   ├─{CrShutdownDetec},1823
                        │   │   │   │   │   ├─{LevelDBEnv},2146
                        │   │   │   │   │   ├─{NetworkChangeNo},1821
                        │   │   │   │   │   ├─{TaskSchedulerFo},2044
                        │   │   │   │   │   ├─{TaskSchedulerFo},2671
                        │   │   │   │   │   ├─{TaskSchedulerFo},2832
                        │   │   │   │   │   ├─{TaskSchedulerSe},1810
                        │   │   │   │   │   ├─{TaskSchedulerSi},1833
                        │   │   │   │   │   ├─{TaskSchedulerSi},1835
                        │   │   │   │   │   ├─{TaskSchedulerSi},1888
                        │   │   │   │   │   ├─{TaskSchedulerSi},1894
                        │   │   │   │   │   ├─{chromium-browse},1809
                        │   │   │   │   │   ├─{extension_crash},1966
                        │   │   │   │   │   ├─{gdbus},1820
                        │   │   │   │   │   ├─{gmain},1819
                        │   │   │   │   │   ├─{gpu-process_cra},1836
                        │   │   │   │   │   ├─{inotify_reader},1814
                        │   │   │   │   │   ├─{renderer_crash_},1904
                        │   │   │   │   │   └─{sandbox_ipc_thr},1803
                        │   │   │   │   ├─lxterminal,2945
                        │   │   │   │   │   ├─bash,2947
                        │   │   │   │   │   │   └─pstree,10232 -ap
                        │   │   │   │   │   ├─gnome-pty-helpe,2946
                        │   │   │   │   │   ├─{gdbus},2955
                        │   │   │   │   │   └─{gmain},2948
                        │   │   │   │   ├─oosplash,2160 --writer
                        │   │   │   │   │   ├─soffice.bin,2178 --writer --splash-pipe=5
                        │   │   │   │   │   │   ├─{PipeIPC},2188
                        │   │   │   │   │   │   ├─{SelectionManage},2193
                        │   │   │   │   │   │   ├─{gdbus},2191
                        │   │   │   │   │   │   ├─{gmain},2190
                        │   │   │   │   │   │   ├─{rtl_cache_wsupd},2182
                        │   │   │   │   │   │   ├─{soffice.bin},2197
                        │   │   │   │   │   │   ├─{soffice.bin},2198
                        │   │   │   │   │   │   ├─{soffice.bin},2199
                        │   │   │   │   │   │   ├─{soffice.bin},2200
                        │   │   │   │   │   │   ├─{soffice.bin},2201
                        │   │   │   │   │   │   ├─{soffice.bin},2202
                        │   │   │   │   │   │   ├─{soffice.bin},2203
                        │   │   │   │   │   │   └─{soffice.bin},2204
                        │   │   │   │   │   ├─{osl_executeProc},2177
                        │   │   │   │   │   └─{rtl_cache_wsupd},2172
                        │   │   │   │   ├─(sh,864)
                        │   │   │   │   ├─{gdbus},844
                        │   │   │   │   ├─{gmain},843
                        │   │   │   │   └─{menu-cache-io},921
                        │   │   │   ├─lxpolkit,809
                        │   │   │   │   ├─{gdbus},832
                        │   │   │   │   └─{gmain},831
                        │   │   │   ├─openbox,807 --config-file /home/pi/.config/openbox/lxde-pi-rc.xml
                        │   │   │   ├─pcmanfm,820 --desktop --profile LXDE-pi
                        │   │   │   │   ├─leafpad,1770 /home/pi/omxplayer.log
                        │   │   │   │   │   ├─{gdbus},1772
                        │   │   │   │   │   └─{gmain},1771
                        │   │   │   │   ├─leafpad,2133 /home/pi/.npm/_logs/2019-07-11T21_30_10_606Z-debug.log
                        │   │   │   │   │   ├─{gdbus},2135
                        │   │   │   │   │   └─{gmain},2134
                        │   │   │   │   ├─{gdbus},846
                        │   │   │   │   └─{gmain},845
                        │   │   │   ├─ssh-agent,778 x-session-manager
                        │   │   │   ├─{gdbus},791
                        │   │   │   └─{gmain},790
                        │   │   ├─{gdbus},660
                        │   │   └─{gmain},659
                        │   ├─{gdbus},453
                        │   └─{gmain},451
                        ├─menu-cached,853 /run/user/1000/menu-cached-:0
                        │   ├─{gdbus},856
                        │   └─{gmain},855
                        ├─polkitd,835 --no-debug
                        │   ├─{gdbus},840
                        │   └─{gmain},838
                        ├─rngd,409 -r /dev/hwrng
                        │   ├─{rngd},410
                        │   ├─{rngd},411
                        │   └─{rngd},412
                        ├─rsyslogd,359 -n
                        │   ├─{in:imklog},389
                        │   ├─{in:imuxsock},388
                        │   └─{rs:main Q:Reg},390
                        ├─ssh-agent,830 -s
                        ├─systemd,664 --user
                        │   ├─(sd-pam),667         
                        │   ├─dbus-daemon,681 --session --address=systemd: --nofork --nopidfile --systemd-activation
                        │   ├─gvfs-afc-volume,888
                        │   │   ├─{gdbus},892
                        │   │   ├─{gmain},890
                        │   │   └─{gvfs-afc-volume},889
                        │   ├─gvfs-goa-volume,880
                        │   │   ├─{gdbus},882
                        │   │   └─{gmain},881
                        │   ├─gvfs-gphoto2-vo,876
                        │   │   ├─{gdbus},879
                        │   │   └─{gmain},877
                        │   ├─gvfs-mtp-volume,884
                        │   │   ├─{gdbus},887
                        │   │   └─{gmain},885
                        │   ├─gvfs-udisks2-vo,857
                        │   │   ├─{gdbus},863
                        │   │   └─{gmain},862
                        │   ├─gvfsd,792
                        │   │   ├─{gdbus},794
                        │   │   └─{gmain},793
                        │   ├─gvfsd-fuse,797 /run/user/1000/gvfs -f -o big_writes
                        │   │   ├─{gdbus},814
                        │   │   ├─{gmain},813
                        │   │   ├─{gvfs-fuse-sub},821
                        │   │   ├─{gvfsd-fuse},811
                        │   │   └─{gvfsd-fuse},812
                        │   └─gvfsd-trash,930 --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
                        │       ├─{gdbus},933
                        │       └─{gmain},932
                        ├─systemd-journal,103
                        ├─systemd-logind,361
                        ├─systemd-timesyn,324
                        │   └─{sd-resolve},360
                        ├─systemd-udevd,137
                        ├─thd,395 --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
                        ├─udisksd,869 --no-debug
                        │   ├─{cleanup},874
                        │   ├─{gdbus},872
                        │   ├─{gmain},870
                        │   └─{probing-thread},873
                        ├─wpa_supplicant,400 -u -s -O /run/wpa_supplicant
                        └─wpa_supplicant,457 -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
                      
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 32
                      • 33
                      • 34
                      • 35
                      • 36
                      • 60
                      • 61
                      • 34 / 61
                      34 / 61
                      • First post
                        338/602
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy