1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Reduce highest brightness levels without touching lowest one...

Discussion in 'Hyperion General' started by propergol, 2 December 2016.

  1. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    well..it did work the first time I did tried (when I was using your version) since my first log doesnt shows this error.
    But for some reason it doesnt anymore :(

    Also inside my /opt I have an other /opt that give :
    /opt/opt/vc
    is this normal?

    Also my password has never been asked to me.

    Sorry for this noobish things.
     
  2. redPanther

    redPanther Moderator Developer

    Messages:
    198
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    Move /opt/opt/vc directory to /opt ....
     
    • Like Like x 1
  3. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    Thanks it did th trick and its compiling right now.

    But I wonder how this bad directory structure (opt/opt/) did appear since I did essentialy copy and paste the commands given in the wiki.
     
  4. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    Sorry to bug you again but for some reasons, the install command given in the wiki doesnt seems to work here without sudo :

    osmc@osmc9:~/hyperion/build$ make install/strip
    Built target ws281x
    Built target hidapi-libusb
    Built target tinkerforge
    Built target protobuf
    Built target protobuf-lite
    Built target protoc_lib
    Built target protoc_compiler
    Built target hyperion-utils
    Built target blackborder
    Built target leddevice
    Built target hyperion
    Built target commandline
    Built target jsonserver
    Built target protoserver
    Built target bonjour
    Built target boblightserver
    Built target udplistener
    Built target kodivideochecker
    Built target effectengine
    Built target dispmanx-grabber
    Built target framebuffer-grabber
    Built target v4l2-grabber
    Built target webconfig
    Built target hyperiond
    Built target hyperion-remote
    Built target hyperion-v4l2
    Built target hyperion-dispmanx
    Built target hyperion-framebuffer
    Installing the project stripped...
    -- Install configuration: "Release"
    -- Up-to-date: /home/osmc/hyperion/build/proto/libprotobuf.a
    CMake Error at dependencies/external/protobuf/src/cmake_install.cmake:44 (file):
    file INSTALL cannot set permissions on
    "/home/osmc/hyperion/build/proto/libprotobuf.a"
    Call Stack (most recent call first):
    dependencies/external/protobuf/cmake_install.cmake:37 (include)
    dependencies/cmake_install.cmake:39 (include)
    cmake_install.cmake:37 (include)


    Makefile:88: recipe for target 'install/strip' failed
    make: *** [install/strip] Error 1



    With sudo :

    osmc@osmc9:~/hyperion/build$ sudo make install/strip
    [ 2%] Built target ws281x
    [ 3%] Built target hidapi-libusb
    [ 4%] Built target tinkerforge
    [ 15%] Built target protobuf
    [ 20%] Built target protobuf-lite
    [ 31%] Built target protoc_lib
    [ 31%] Built target protoc_compiler
    [ 37%] Built target hyperion-utils
    [ 37%] Built target blackborder
    [ 55%] Built target leddevice
    [ 63%] Built target hyperion
    [ 67%] Built target commandline
    [ 70%] Built target jsonserver
    [ 75%] Built target protoserver
    [ 76%] Built target bonjour
    [ 78%] Built target boblightserver
    [ 79%] Built target udplistener
    [ 80%] Built target kodivideochecker
    [ 83%] Built target effectengine
    [ 84%] Built target dispmanx-grabber
    [ 85%] Built target framebuffer-grabber
    [ 87%] Built target v4l2-grabber
    [ 95%] Built target webconfig
    [ 96%] Built target hyperiond
    [ 97%] Built target hyperion-remote
    [ 98%] Built target hyperion-v4l2
    [ 99%] Built target hyperion-dispmanx
    [100%] Built target hyperion-framebuffer
    Installing the project stripped...
    -- Install configuration: "Release"
    -- Up-to-date: /home/osmc/hyperion/build/proto/libprotobuf.a
    -- Up-to-date: /home/osmc/hyperion/build/proto/libprotobuf-lite.a
    -- Up-to-date: /home/osmc/hyperion/build/proto/libprotoc.a
    -- Installing: /home/osmc/hyperion/build/proto/protoc
    -- Removed runtime path from "/home/osmc/hyperion/build/proto/protoc"
    -- Installing: /usr/local/include/google
    -- Installing: /usr/local/include/google/protobuf
    -- Up-to-date: /usr/local/include/google/protobuf/message_lite.h
    -- Up-to-date: /usr/local/include/google/protobuf/unknown_field_set.h
    -- Up-to-date: /usr/local/include/google/protobuf/dynamic_message.h
    -- Up-to-date: /usr/local/include/google/protobuf/descriptor.pb.h
    -- Up-to-date: /usr/local/include/google/protobuf/extension_set.h
    -- Up-to-date: /usr/local/include/google/protobuf/descriptor_database.h
    -- Installing: /usr/local/include/google/protobuf/io
    -- Up-to-date: /usr/local/include/google/protobuf/io/tokenizer.h
    -- Up-to-date: /usr/local/include/google/protobuf/io/coded_stream.h
    -- Up-to-date: /usr/local/include/google/protobuf/io/zero_copy_stream.h
    -- Up-to-date: /usr/local/include/google/protobuf/io/package_info.h
    -- Up-to-date: /usr/local/include/google/protobuf/io/coded_stream_inl.h
    -- Up-to-date: /usr/local/include/google/protobuf/io/gzip_stream.h
    -- Up-to-date: /usr/local/include/google/protobuf/io/zero_copy_stream_impl.h
    -- Up-to-date: /usr/local/include/google/protobuf/io/printer.h
    -- Up-to-date: /usr/local/include/google/protobuf/io/zero_copy_stream_impl_lite.h
    -- Installing: /usr/local/include/google/protobuf/testing
    -- Up-to-date: /usr/local/include/google/protobuf/testing/googletest.h
    -- Up-to-date: /usr/local/include/google/protobuf/package_info.h
    -- Up-to-date: /usr/local/include/google/protobuf/descriptor.h
    -- Up-to-date: /usr/local/include/google/protobuf/generated_message_util.h
    -- Up-to-date: /usr/local/include/google/protobuf/wire_format_lite_inl.h
    -- Up-to-date: /usr/local/include/google/protobuf/test_util_lite.h
    -- Up-to-date: /usr/local/include/google/protobuf/service.h
    -- Up-to-date: /usr/local/include/google/protobuf/repeated_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/text_format.h
    -- Up-to-date: /usr/local/include/google/protobuf/reflection_ops.h
    -- Up-to-date: /usr/local/include/google/protobuf/message.h
    -- Installing: /usr/local/include/google/protobuf/compiler
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/parser.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/subprocess.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/command_line_interface.h
    -- Installing: /usr/local/include/google/protobuf/compiler/python
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/python/python_generator.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/mock_code_generator.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/plugin.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/package_info.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/zip_writer.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/code_generator.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/plugin.pb.h
    -- Installing: /usr/local/include/google/protobuf/compiler/java
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_file.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_message.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_helpers.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_message_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_primitive_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_generator.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_service.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_doc_comment.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_enum_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_extension.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_enum.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/java/java_string_field.h
    -- Installing: /usr/local/include/google/protobuf/compiler/cpp
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_generator.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_enum_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_file.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_string_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_unittest.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_enum.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_message.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_message_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_service.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_helpers.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_primitive_field.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_options.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/cpp/cpp_extension.h
    -- Up-to-date: /usr/local/include/google/protobuf/compiler/importer.h
    -- Up-to-date: /usr/local/include/google/protobuf/generated_enum_reflection.h
    -- Installing: /usr/local/include/google/protobuf/stubs
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_macosx.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/stl_util-inl.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/once.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/strutil.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/substitute.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/map-util.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_arm_gcc.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_arm_qnx.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_mips_gcc.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/type_traits.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_arm64_gcc.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_atomicword_compat.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_x86_msvc.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/platform_macros.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/stl_util.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/stringprintf.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/common.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/hash.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/atomicops_internals_pnacl.h
    -- Up-to-date: /usr/local/include/google/protobuf/stubs/template_util.h
    -- Up-to-date: /usr/local/include/google/protobuf/wire_format_lite.h
    -- Up-to-date: /usr/local/include/google/protobuf/wire_format.h
    -- Up-to-date: /usr/local/include/google/protobuf/generated_message_reflection.h
    -- Up-to-date: /usr/local/include/google/protobuf/test_util.h
    -- Installing: /usr/local/share/hyperion/bin/hyperiond
    -- Removed runtime path from "/usr/local/share/hyperion/bin/hyperiond"
    -- Installing: /usr/local/share/hyperion//service
    -- Up-to-date: /usr/local/share/hyperion//service/hyperion.init.sh
    -- Up-to-date: /usr/local/share/hyperion//service/hyperion.initctl.sh
    -- Up-to-date: /usr/local/share/hyperion//service/hyperion.systemd.OE.LE.sh
    -- Up-to-date: /usr/local/share/hyperion//service/hyperion.systemd.sh
    -- Up-to-date: /usr/local/share/hyperion/effects/readme.txt
    -- Up-to-date: /usr/local/bin/hyperiond
    -- Installing: /usr/local/share/hyperion/bin/hyperion-remote
    -- Up-to-date: /usr/local/bin/hyperion-remote
    -- Installing: /usr/local/share/hyperion/bin/hyperion-v4l2
    -- Up-to-date: /usr/local/bin/hyperion-v4l2
    -- Installing: /usr/local/share/hyperion/bin/hyperion-dispmanx
    -- Removed runtime path from "/usr/local/share/hyperion/bin/hyperion-dispmanx"
    -- Up-to-date: /usr/local/bin/hyperion-dispmanx
    -- Installing: /usr/local/share/hyperion/bin/hyperion-framebuffer
    -- Up-to-date: /usr/local/bin/hyperion-framebuffer



    Then I reboot the PI, OSMC (17 latest) loads, everything is working exept my LED :crying:

    I have discovered that Hyperion NG had a web interface (I wasn't aware of that), so I did try to open it in Chrome on my PC = connection refused :sickxx:
    Is 8099 the right port to access to it?

    EDIT : I forget to say that I have also uninstalled Hyperion "standard" version using Hypercon before issuing the above commands
     
    Last edited: 7 January 2017
  5. redPanther

    redPanther Moderator Developer

    Messages:
    198
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    do not use webinterface ... you can have a look, but do not expect that it works (atm saving config didn't work good). do your changes manualy in your config. you can take the information from your old config and adapt to new one.
    try to start manualy

    hyperiond --debug /your/config/file.json

    if all works correctly you can/should remove --debug

    if hyperiond is not found (because your linux hadn't /usr/local/bin/ in search path), do:
    cd /usr/local/bin/hyperiond
    ./hyperiond --debug /your/config/file.json
     
  6. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    Hi thanks.
    Looks like hyperiond is found, but it doesnt like my old config.json file :

    sudo hyperiond --debug /home/osmc/hyperion.config.json
    [HYPERIOND MAIN] <INFO> Selected configuration file: /home/osmc/hyperion.config.json
    [root].general: missing member
    [HYPERIOND MAIN] <ERROR> Hyperion Daemon aborted:
    ERROR: Json validation failed
    [HYPERIOND MAIN] <ERROR> Hyperion aborted:
    Hyperion::getInstance used without call of Hyperion::initInstance before
    [HYPERIOND MAIN] <DEBUG> <Logger.cpp:115:~Logger()> logger 'MAIN' destroyed
     
  7. redPanther

    redPanther Moderator Developer

    Messages:
    198
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    the config is completly changed! you have to make your own.
    1. create your default config:
    hyperiond --export-config /home/osmc/hyperion.ng.config.json
    2. then edit it. you can take the led section from your old config. then edit config to your needs (-> device section)
     
    • Like Like x 1
  8. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    it work!
    I was a litle worried since my led config is a litle special with only one lenght of led at the tv's top.

    But I don't catch how I can now start it at OSMC boot.
     
  9. redPanther

    redPanther Moderator Developer

    Messages:
    198
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    cool. btw you can use the remote control in wubui (port 8099) this should work and is nice for testing
     
  10. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    great! I did tested the web interface and now it works too :D
    That is realy promising peace of software you have here guys!

    By the way web interface is telling me that I am running 2.0 version and reports an existing 2.1 version.
    Should I recompile from source?

    Thanks again for your help!
     
  11. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    610
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    no, the version is only to test if it works... as redpanther said...dont use the webUI, there are many known bugs or uncompleted elements...everything is in the making :thumbsup:
     
  12. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    oki :)

    Sorry to ask again but is this version of Hyperion supposed to start at boot like the old one?
     
  13. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    610
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    should yes, if not may you start with the wrong config file
     
  14. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    what should be its default place?
    Mine is in /home/osmc/ , wich works if I issue sudo hyperiond --debug /home/osmc/hyperion.ng.config.json but doesnt work if I reboot.
     
  15. redPanther

    redPanther Moderator Developer

    Messages:
    198
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    you have to edit the start scripts, it's the same thing as with stable hyperion (but there hypercon does this for you). investigate the systemd start scripts .... samples for those scripts are in /usr/share/hyperion
     
  16. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    I have no trace of hyperion inside /usr/share/ :roflmao:
     
  17. redPanther

    redPanther Moderator Developer

    Messages:
    198
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    I mean usr local share. When you do make install (you did it already) then all files locations are shown.
    Btw this is written in the compile howto ...
    The best help how a command can be executed during boot you get at an osmc forum. This is not an hyperion issue.
     
    • Informative Informative x 1
  18. propergol

    propergol New Member

    Messages:
    27
    Hardware:
    RPi3
    Ok I think I will wait before tying to make the new version to work.
    For now I will revert to the actual version.