Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Pulse-Eight

    Troubleshooting
    2
    8
    2831
    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.
    • D
      Desertswing last edited by

      Hey all could someone help me with my Mirror,
      I installed the Pulse-Eight software on the pi but do i need to config these files ore is it working instand…?

      I want to have my tv on standby when my pir sensor shuts off the hdmi port and back on when it detects movements.

      i tried: Pulse-Eight/libcec
      from github but my tv does not do the trick…(Its a Smart-tv so i think it has the requirements.

      Here is my complete install:

      pi@MIRRORpie:~ $ git clone https://github.com/Pulse-Eight/platform.git
      Cloning into 'platform'...
      remote: Counting objects: 509, done.
      remote: Total 509 (delta 0), reused 0 (delta 0), pack-reused 509
      Receiving objects: 100% (509/509), 174.76 KiB | 0 bytes/s, done.
      Resolving deltas: 100% (292/292), done.
      Checking connectivity... done.
      pi@MIRRORpie:~ $ mkdir platform/build
      pi@MIRRORpie:~ $ cd platform/build
      pi@MIRRORpie:~/platform/build $ cmake ..
      -- The C compiler identification is GNU 4.9.2
      -- The CXX compiler identification is GNU 4.9.2
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Check for working CXX compiler: /usr/bin/c++
      -- Check for working CXX compiler: /usr/bin/c++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Looking for pthread_create
      -- Looking for pthread_create - not found
      -- Looking for pthread_create in pthreads
      -- Looking for pthread_create in pthreads - not found
      -- Looking for pthread_create in pthread
      -- Looking for pthread_create in pthread - found
      -- Found Threads: TRUE
      -- Looking for __atomic_fetch_add_4 in atomic
      -- Looking for __atomic_fetch_add_4 in atomic - found
      -- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH
      -- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH - Success
      -- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH
      -- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH - Success
      -- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP
      -- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP - Success
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /home/pi/platform/build
      pi@MIRRORpie:~/platform/build $ make
      Scanning dependencies of target p8-platform
      [ 50%] Building CXX object CMakeFiles/p8-platform.dir/src/util/StringUtils.cpp.o
      [100%] Linking CXX static library libp8-platform.a
      [100%] Built target p8-platform
      pi@MIRRORpie:~/platform/build $ sudo make install
      [100%] Built target p8-platform
      Install the project...
      -- Install configuration: ""
      -- Installing: /usr/local/lib/libp8-platform.a
      -- Installing: /usr/local/include/p8-platform/os.h
      -- Installing: /usr/local/include/p8-platform/posix/os-socket.h
      -- Installing: /usr/local/include/p8-platform/posix/os-threads.h
      -- Installing: /usr/local/include/p8-platform/posix/os-types.h
      -- Installing: /usr/local/include/p8-platform/sockets/cdevsocket.h
      -- Installing: /usr/local/include/p8-platform/sockets/socket.h
      -- Installing: /usr/local/include/p8-platform/sockets/tcp.h
      -- Installing: /usr/local/include/p8-platform/threads/atomics.h
      -- Installing: /usr/local/include/p8-platform/threads/mutex.h
      -- Installing: /usr/local/include/p8-platform/threads/threads.h
      -- Installing: /usr/local/include/p8-platform/util/atomic.h
      -- Installing: /usr/local/include/p8-platform/util/buffer.h
      -- Installing: /usr/local/include/p8-platform/util/StringUtils.h
      -- Installing: /usr/local/include/p8-platform/util/StdString.h
      -- Installing: /usr/local/include/p8-platform/util/timeutils.h
      -- Installing: /usr/local/include/p8-platform/util/util.h
      -- Installing: /usr/local/lib/pkgconfig/p8-platform.pc
      -- Installing: /usr/local/lib/p8-platform/p8-platform-config.cmake
      pi@MIRRORpie:~/platform/build $ cd
      pi@MIRRORpie:~ $ git clone https://github.com/Pulse-Eight/libcec.git
      Cloning into 'libcec'...
      remote: Counting objects: 14733, done.
      remote: Total 14733 (delta 0), reused 0 (delta 0), pack-reused 14733
      Receiving objects: 100% (14733/14733), 5.11 MiB | 1.66 MiB/s, done.
      Resolving deltas: 100% (11196/11196), done.
      Checking connectivity... done.
      pi@MIRRORpie:~ $ mkdir libcec/build
      pi@MIRRORpie:~ $ cd libcec/build
      pi@MIRRORpie:~/libcec/build $ cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_                                                                                       DIR=/opt/vc/lib ..
      -- The C compiler identification is GNU 4.9.2
      -- The CXX compiler identification is GNU 4.9.2
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Check for working CXX compiler: /usr/bin/c++
      -- Check for working CXX compiler: /usr/bin/c++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Performing Test SUPPORTS_CXX11
      -- Performing Test SUPPORTS_CXX11 - Success
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Looking for pthread_create
      -- Looking for pthread_create - not found
      -- Looking for pthread_create in pthreads
      -- Looking for pthread_create in pthreads - not found
      -- Looking for pthread_create in pthread
      -- Looking for pthread_create in pthread - found
      -- Found Threads: TRUE
      -- Looking for initscr in curses
      -- Looking for initscr in curses - not found
      -- Looking for dlopen in dl
      -- Looking for dlopen in dl - found
      -- Looking for clock_gettime in rt
      -- Looking for clock_gettime in rt - found
      -- Found PythonLibs: /usr/lib/arm-linux-gnueabihf/libpython3.4m.so (found versio                                                                                       n "3.4.2")
      -- git found: libcec-4.0.2+9-3953f8d
      -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
      -- Looking for include file sys/file.h
      -- Looking for include file sys/file.h - found
      -- Looking for flock
      -- Looking for flock - found
      -- Checking for module 'udev'
      --   Found udev, version 215
      -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h
      -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h - found
      -- Looking for XRRGetScreenResources in Xrandr
      -- Looking for XRRGetScreenResources in Xrandr - found
      -- Looking for bcm_host_init in bcm_host
      -- Looking for bcm_host_init in bcm_host - found
      -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_                                                                                       Types.h
      -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_                                                                                       Types.h - not found
      -- Found SWIG: /usr/bin/swig2.0 (found version "2.0.12")
      -- Configured features:
      -- Pulse-Eight CEC Adapter:                yes
      -- Pulse-Eight CEC Adapter detection:      yes
      -- xrandr support:                         yes
      -- Raspberry Pi support:                   yes
      -- TDA995x support:                        no
      -- Exynos support:                         no
      -- DRM support:                            yes
      -- AOCEC support:                          no
      -- Python support:                         version 3.4.2 (3.4)
      -- lib info: git revision: libcec-4.0.2+9-3953f8d, compiled on Wed 21 Jun 17:13:                                                                                       00 UTC 2017 by pi@MIRRORpie on Linux 4.9.28-v7+ (armv7l), features: P8_USB, DRM,                                                                                        P8_detect, randr, RPi
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /home/pi/libcec/build
      pi@MIRRORpie:~/libcec/build $ make -j4
      Scanning dependencies of target cec
      [  2%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECClient.cpp.o
      [  4%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECProcessor.cpp.o
      [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCEC.cpp.o
      [  9%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCECC.cpp.o
      [ 11%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/RPi/RPiCECAdapt                                                                                       erDetection.cpp.o
      [ 14%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/RPi/RPiCECAdapt                                                                                       erCommunication.cpp.o
      [ 16%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/RPi/RPiCECAdapt                                                                                       erMessageQueue.cpp.o
      [ 19%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/AdapterFactory.                                                                                       cpp.o
      [ 21%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USB                                                                                       CECAdapterMessage.cpp.o
      [ 23%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USB                                                                                       CECAdapterCommands.cpp.o
      [ 26%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USB                                                                                       CECAdapterMessageQueue.cpp.o
      [ 28%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USB                                                                                       CECAdapterCommunication.cpp.o
      [ 30%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USB                                                                                       CECAdapterDetection.cpp.o
      [ 33%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECAudioSystem.                                                                                       cpp.o
      [ 35%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECBusDevice.cp                                                                                       p.o
      [ 38%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECDeviceMap.cp                                                                                       p.o
      [ 40%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECPlaybackDevi                                                                                       ce.cpp.o
      [ 42%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECRecordingDev                                                                                       ice.cpp.o
      [ 45%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECTuner.cpp.o
      [ 47%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECTV.cpp.o
      [ 50%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/ANComma                                                                                       ndHandler.cpp.o
      [ 52%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/CECComm                                                                                       andHandler.cpp.o
      [ 54%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/SLComma                                                                                       ndHandler.cpp.o
      [ 57%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/VLComma                                                                                       ndHandler.cpp.o
      [ 59%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/RLComma                                                                                       ndHandler.cpp.o
      [ 61%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/PHComma                                                                                       ndHandler.cpp.o
      [ 64%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/RHComma                                                                                       ndHandler.cpp.o
      [ 66%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/AQComma                                                                                       ndHandler.cpp.o
      [ 69%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/adl/adl-edid.c                                                                                       pp.o
      [ 71%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/nvidia/nv-edid                                                                                       .cpp.o
      [ 73%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/drm/drm-edid.c                                                                                       pp.o
      [ 76%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/posix/os-edid.                                                                                       cpp.o
      [ 78%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/posix/serialpo                                                                                       rt.cpp.o
      [ 80%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/X11/randr-edid                                                                                       .cpp.o
      [ 83%] Linking CXX shared library libcec.so
      [ 83%] Built target cec
      Scanning dependencies of target cecc-client
      Scanning dependencies of target cec-client
      [ 85%] Swig source
      [ 88%] Building C object src/cecc-client/CMakeFiles/cecc-client.dir/cecc-client.                                                                                       c.o
      [ 90%] Building CXX object src/cec-client/CMakeFiles/cec-client.dir/cec-client.c                                                                                       pp.o
      [ 92%] Linking C executable cecc-client
      [ 92%] Built target cecc-client
      [ 95%] Linking CXX executable cec-client
      [ 95%] Built target cec-client
      Scanning dependencies of target _cec
      [ 97%] Building CXX object src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.                                                                                       o
      [100%] Linking CXX shared module _cec.so
      [100%] Built target _cec
      pi@MIRRORpie:~/libcec/build $ sudo make install
      [ 83%] Built target cec
      [ 88%] Built target cec-client
      [ 92%] Built target cecc-client
      [100%] Built target _cec
      Install the project...
      -- Install configuration: ""
      -- Installing: /usr/local/bin/./cec-client-4.0.2
      -- Installing: /usr/local/bin/./cec-client
      -- Installing: /usr/local/bin/./cecc-client-4.0.2
      -- Installing: /usr/local/bin/./cecc-client
      -- Installing: /usr/local/bin/./pyCecClient
      -- Installing: /usr/local/lib/python3.4/dist-packages/cec/_cec.so
      -- Set runtime path of "/usr/local/lib/python3.4/dist-packages/cec/_cec.so" to "                                                                                       "
      -- Installing: /usr/local/lib/python3.4/dist-packages/cec/__init__.py
      -- Installing: /usr/local/lib/pkgconfig/libcec.pc
      -- Installing: /usr/local/include/libcec/cec.h
      -- Installing: /usr/local/include/libcec/cecc.h
      -- Installing: /usr/local/include/libcec/cecloader.h
      -- Installing: /usr/local/include/libcec/cectypes.h
      -- Installing: /usr/local/include/libcec/version.h
      -- Installing: /usr/local/lib/libcec.so.4.0.2
      -- Installing: /usr/local/lib/libcec.so.4
      -- Installing: /usr/local/lib/libcec.so
      -- Set runtime path of "/usr/local/lib/libcec.so.4.0.2" to ""
      pi@MIRRORpie:~/libcec/build $ sudo ldconfig
      
      

      Could someone help me, (If u are dutch its easier for me to understand)

      1 Reply Last reply Reply Quote 0
      • D
        Desertswing last edited by

        I got it working but only for turning the tv on with my pir sensor,
        But, standby command isen`t working…

        Any tips??

        yawns 1 Reply Last reply Reply Quote 0
        • yawns
          yawns Moderator @Desertswing last edited by

          @Desertswing

          What command are you sending?

          Display on: echo "on 0" | cec-client -s -d 1
          Display off: echo "standby 0" | cec-client -s -d 1
          Show status: echo "pow 0" | cec-client -s -d 1

          D 1 Reply Last reply Reply Quote 0
          • D
            Desertswing last edited by

            Second command u refer
            I used it with my pir sensor and seprate

            1 Reply Last reply Reply Quote 0
            • D
              Desertswing @yawns last edited by

              @yawns said in Pulse-Eight:

              @Desertswing

              What command are you sending?

              Display on: echo "on 0" | cec-client -s -d 1
              Display off: echo "standby 0" | cec-client -s -d 1
              Show status: echo "pow 0" | cec-client -s -d 1

              Do u got an solution?

              yawns 1 Reply Last reply Reply Quote 0
              • yawns
                yawns Moderator @Desertswing last edited by

                @Desertswing
                Oh sorry, I missed your reply 😕

                I use these 3 commands and they work perfectly fine for my TV.
                What happens if you run the “display off” command on command line?
                Try echo scan | cec-client -s -d 1 to see the hdmi devices, maybe it is not device 1 ?

                D 2 Replies Last reply Reply Quote 0
                • D
                  Desertswing @yawns last edited by

                  @yawns

                  But the: Display on: echo “on 0” | cec-client -s -d 1 command works fine.
                  only the off command isen`t working?

                  1 Reply Last reply Reply Quote 0
                  • D
                    Desertswing @yawns last edited by

                    @yawns
                    Disply off command does nothing

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy