New Ambient Lighting system - no knowledge (1 Viewer)

The_Stig

Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Could be network related, do you have the rPI wired to a gigabit network?
    HTPC and Pi wired gigabit.
    best to set the logging to debug in the Mediaportal configuration
    Will do!
    and maybe rPI just in case
    How do I check this?
    CPU load on the Windows machine
    Windows machine is bored...its an i5 with more than enough ooomph...
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    How do I check this?

    In Raspian by default it has a program called "top" which is very basic so would install a better one like this:

    - Open SSH session to rPi
    - Execute command: "sudo apt-get install htop"
    - Once installed execute command: "htop"
    - Press Q to exit it

    Should get a nice overview of every process and at the top a load average (current / history of machine load) and current cpu / mem usage, normally the load average should be below 2.0 with the rPi2.
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Just tested from away: starting TV leads to around 20% CPU-Load for the Pi on one core...so no problem at all. Will check if the lagging is there again...thanks @Rick164 (what would I do without you)
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Had the problem yesterday again but unfortunately no chance to check the CPU load. It was after the ambilight had been running for aprox 1 hour. Logs attached, it happened at 20.01.2016 at around 21.40. I see many PS-messages in the log, but nothing more. @Rick164, do you see more?

    What happened was after a while: LEDs getting out of sync and somewhen they didn't react anymore. Stopping the video didn't let the LEDs go off.

    Could it be an overheating issue of the Pi? Its directly attached between wall and TV. Has it got a temperature sensor?
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Ok, now I know why:
    IMG_1838.PNG
    Hyperion is maxing out one CPU-Core after a while.

    But: what to do now?
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Hrm, what would be typically to see in such a trace? I mean, its clear that its hyperion which is causing it. In other words: what additional info are you expecting there?
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Tested strace now (as its not yet maxing out the CPU). I get wildly running messages which do not stop. Is this supposed to be? When I cancel it, it seems that repeating always something like

    Code:
    ioctl(9, FIONREAD, [12317])             = 0
    read(9, "\0\0000\31\10\2Z\224`\0102\20@\30@\"\200`\247\244\245\250\245\246\250\2                     43\244\246\243\244\250\243"..., 12317) = 12317
    gettimeofday({1453450833, 623517}, NULL) = 0
    gettimeofday({1453450833, 624041}, NULL) = 0
    write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
    write(9, "\0\0\0\2\10\1", 6)            = 6
    write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
    clock_gettime(CLOCK_MONOTONIC, {47988, 692066031}) = 0
    poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd                     =9, events=POLLIN}], 4, 8) = 2 ([{fd=3, revents=POLLIN}, {fd=9, revents=POLLIN}]                     )
     

    edsche

    Community Plugin Dev
    January 7, 2007
    606
    360
    35
    Ulm
    Home Country
    Germany Germany
    Tested strace now (as its not yet maxing out the CPU). I get wildly running messages which do not stop. Is this supposed to be? When I cancel it, it seems that repeating always something like

    Code:
    ioctl(9, FIONREAD, [12317])             = 0
    read(9, "\0\0000\31\10\2Z\224`\0102\20@\30@\"\200`\247\244\245\250\245\246\250\2                     43\244\246\243\244\250\243"..., 12317) = 12317
    gettimeofday({1453450833, 623517}, NULL) = 0
    gettimeofday({1453450833, 624041}, NULL) = 0
    write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
    write(9, "\0\0\0\2\10\1", 6)            = 6
    write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
    clock_gettime(CLOCK_MONOTONIC, {47988, 692066031}) = 0
    poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd                     =9, events=POLLIN}], 4, 8) = 2 ([{fd=3, revents=POLLIN}, {fd=9, revents=POLLIN}]                     )
    Yes that's expected, but you need to run it when hyperion is constantly at 100% CPU load. You can exit with strg + c.

    The widely running messages is a good sign. It means the process is running. Else the process would hang.

    Maybe we can find then a hint what's going on when the process is at 100% CPU load.
     
    Last edited:

    Users who are viewing this thread

    Similar threads

    Very awesome, thank you for this!
    Very awesome, thank you for this!
    This may have limited interest to most, as usually you will setup your ardiuino for the light system you wish to use then forget...
    Replies
    4
    Views
    11K
    The "Windows 8 is better" part is specific to AtmoWins performance in gathering the screen captures. However with AtmoLight, AtmoWin does not have to do this task, but AtmoLight gets these captures directly from MediaPortal. So there should be no problem. Only when you want to use your Ambilight without MediaPortal, Win8 will give you...
    The "Windows 8 is better" part is specific to AtmoWins performance in gathering the screen captures. However with AtmoLight...
    So a few years ago, I helped a friend research and complete an Ambilight system for his theater. Unfortunately, at that time...
    Replies
    1
    Views
    2K
    OK, I'll try that. This is off topic anyway, so I will continue in another thread if I have further questions. Thanks.
    OK, I'll try that. This is off topic anyway, so I will continue in another thread if I have further questions. Thanks.
    Hi, I stumbled on these atmolight projects, saw some videos on youtube how cool it looks and thought I need my abilight too! Went...
    Replies
    8
    Views
    2K
    • Locked
    • Sticky
    |- Hardware : Leds Protection : IP20/65/67/68 IP20(nonwaterproof) IP65 Waterproof(glue on top) IP67 Waterproof(in silicone tube) IP68 Waterproof(underwater) The Protection also has effect on transmiting light. IP20/30 | IP65 | IP67 : Credits to Sinonlea for leds captures
    |- Hardware : Leds Protection : IP20/65/67/68 IP20(nonwaterproof) IP65 Waterproof(glue on top) IP67 Waterproof(in silicone tube)...
    This Thread is marked as bloqued, because have the goal of map user to good system. and explain a bit how work the Lighning system...
    Replies
    1
    Views
    4K
    DC12V is the correct power. The LC8808 is a 3-channel constant current LED drive with resumable data transfers and internal display patterns. There are three open-drain constant current outputs, with a build-in PWM of gray scale. The range of input power is from +9V to +15V, and voltage-endurance of LED port is +12V. There is a...
    DC12V is the correct power. The LC8808 is a 3-channel constant current LED drive with resumable data transfers and internal...
    Introduction Over time there have been many Windows alternatives to Atmowin and under Linux there is Bobilight however there is...
    Replies
    352
    Views
    194K
    Top Bottom