LEDcontroller: control your LED's & HTPCmonitor: keep an eye on your PC (1 Viewer)

D4bFz3awSRYHKjr3

MP Donator
  • Premium Supporter
  • August 14, 2006
    253
    16
    Home Country
    Aruba Aruba
    This should work yes, but only the events for MP Server, the other events are just for the computer on wich it is installed.
     

    meq123

    Portal Pro
    February 1, 2008
    51
    1
    Home Country
    United States of America United States of America
    I've notice a couple of problems - maybe related. These were with COMswitch, so I updated to your LEDcontroller version and - at least the first issue still remains (not had time to see the second since)...

    First, the resource use of COMswitch (and now LEDcontroller) seems very high, especially the CPU usage. See the attached Task Manager snapshot - in my case CPU continually hovers around 2-4% all the time! Is this because it's continually polling for state changes? If so, is it possible to maybe add a config value to extend the polling interval? I don't mind if the LED takes an extra 5 secs to turn on/off :) [As a side note, the memory usage seems high too, but not so important IMO]

    Second, I get .NET error popups occasionally. From the details (see second snapshot), it looks like COMswitch was polling something and the net link was down. This tends to happen on wake from standby (maybe a race condition?), but I'm thinking a reduce poll might improve or cure this too. Note: this is ugly more than anything else, if I click "Continue" on the popup, most times everything seems to work fine.

    Thanks!
     

    Attachments

    • LED_CPU.gif
      LED_CPU.gif
      19.1 KB
    • NET_Error.gif
      NET_Error.gif
      34.2 KB

    D4bFz3awSRYHKjr3

    MP Donator
  • Premium Supporter
  • August 14, 2006
    253
    16
    Home Country
    Aruba Aruba
    The CPU usage is probably because it indeed checks every second, I will make an update so that it would be configurable, will also fix the error ASAP

    Wich are the vents you are using?

    I've notice a couple of problems - maybe related. These were with COMswitch, so I updated to your LEDcontroller version and - at least the first issue still remains (not had time to see the second since)...

    First, the resource use of COMswitch (and now LEDcontroller) seems very high, especially the CPU usage. See the attached Task Manager snapshot - in my case CPU continually hovers around 2-4% all the time! Is this because it's continually polling for state changes? If so, is it possible to maybe add a config value to extend the polling interval? I don't mind if the LED takes an extra 5 secs to turn on/off :) [As a side note, the memory usage seems high too, but not so important IMO]

    Second, I get .NET error popups occasionally. From the details (see second snapshot), it looks like COMswitch was polling something and the net link was down. This tends to happen on wake from standby (maybe a race condition?), but I'm thinking a reduce poll might improve or cure this too. Note: this is ugly more than anything else, if I click "Continue" on the popup, most times everything seems to work fine.

    Thanks!


    I've fixe the bug and added your request.

    The actual CPU usage isn't something I can reduce, but I have it running quite some time and never experienced nasty side affects so....
     

    meq123

    Portal Pro
    February 1, 2008
    51
    1
    Home Country
    United States of America United States of America
    The CPU usage is probably because it indeed checks every second, I will make an update so that it would be configurable, will also fix the error ASAP

    Wich are the vents you are using?

    I've fixe the bug and added your request.

    The actual CPU usage isn't something I can reduce, but I have it running quite some time and never experienced nasty side affects so....

    Wow! Thanks for the quick response!

    I just tried the new version - unfortunately it made the CPU usage worse (ooops!). With this version CPU hovers between 6 and 8% - went back to the old version and the usage went back down to 2-4% :confused:

    Changing the poll rate doesn't seem to affect the CPU either. I tried the default 1sec, also 5secs, and even 1/2 a sec. Cpu util stayed about the same in each case. It does depend on the event type though... for the "Power on" event (this is a single box system) CPU is 0%. But for *single* MediaPortal events (e.g. recording or timeshifting) its the 6-8% figure.

    What's worse though, is that with multiple events the CPU rises even more. The snapshot below is with the latest version, polling set at 5 secs and three MP events: Grabbing EPG, Timeshift & Recording (I know these are all on one LED for example purposes, but it's the same if they are spread across three LEDs). As you can see the LEDcontroller CPU util is over 30%!! But also note that the TVServer is now also hovering in the 10-12% range as well! Thus nearly 50% CPU usage with *nothing* else going on - not even MP client is started. And this is on a Core2 Duo CPU. I think something else is going on here - it can't possibly need that much CPU to do three polls every 5 secs.

    Sorry to harp on, this is a VERY useful tool! Thanks for the help.
     

    Attachments

    • LED2_CPU.gif
      LED2_CPU.gif
      53.6 KB

    D4bFz3awSRYHKjr3

    MP Donator
  • Premium Supporter
  • August 14, 2006
    253
    16
    Home Country
    Aruba Aruba
    I'll look into it, the added CPU usage is probably because the extra check that happens because of your bug when no network was avalable.


    But with the time setting, if you set it to 5 sec, isn't the CPU usage high every 5 sec or still continiously?
     

    meq123

    Portal Pro
    February 1, 2008
    51
    1
    Home Country
    United States of America United States of America
    I'll look into it, the added CPU usage is probably because the extra check that happens because of your bug when no network was avalable.


    But with the time setting, if you set it to 5 sec, isn't the CPU usage high every 5 sec or still continiously?

    Usage stays high continuously - hovering around 6-8% for one event. Similarly, for 3 events it stays around 31% (plus or minus ~2%) all the time. Key thing is that the usage of the TVserver also goes up and stays up in the same circumstances - leading me to think that the polling is actually much higher than the configured 5 secs.

    One other datapoint (though I can't see that it's relevant) is that I also have For the Record installed.

    <EDIT> I snapshot the process monitor graph for a period of time (attached). The first three horizontal graph-segments (about 5 secs each) are with 3 events configured, the next 6-7 are with just 2 events config'd, and the last 3 segments are with just 1 event. The left hand core history shows there's a pretty consistent usage within these diff configured periods (one vertical segment = 20% utilisation of a single core).
     

    Attachments

    • LED3_CPU.gif
      LED3_CPU.gif
      42.2 KB

    sloty32

    MP Donator
  • Premium Supporter
  • September 21, 2006
    345
    25
    Home Country
    Germany Germany
    hi,


    would love to use your plugin, but my only com port is used for my momolight.

    so, is there a chance that you add the use of the lpt port? Just select the port you want in the config.
     

    D4bFz3awSRYHKjr3

    MP Donator
  • Premium Supporter
  • August 14, 2006
    253
    16
    Home Country
    Aruba Aruba
    I'll look into it, the added CPU usage is probably because the extra check that happens because of your bug when no network was avalable.


    But with the time setting, if you set it to 5 sec, isn't the CPU usage high every 5 sec or still continiously?

    Usage stays high continuously - hovering around 6-8% for one event. Similarly, for 3 events it stays around 31% (plus or minus ~2%) all the time. Key thing is that the usage of the TVserver also goes up and stays up in the same circumstances - leading me to think that the polling is actually much higher than the configured 5 secs.

    One other datapoint (though I can't see that it's relevant) is that I also have For the Record installed.

    <EDIT> I snapshot the process monitor graph for a period of time (attached). The first three horizontal graph-segments (about 5 secs each) are with 3 events configured, the next 6-7 are with just 2 events config'd, and the last 3 segments are with just 1 event. The left hand core history shows there's a pretty consistent usage within these diff configured periods (one vertical segment = 20% utilisation of a single core).

    Look at first page, this should solve your problems

    hi,


    would love to use your plugin, but my only com port is used for my momolight.

    so, is there a chance that you add the use of the lpt port? Just select the port you want in the config.

    I have no plans in the immediate future to add this.
     

    meq123

    Portal Pro
    February 1, 2008
    51
    1
    Home Country
    United States of America United States of America
    Look at first page, this should solve your problems

    Man, you RULE! Yep, this has fixed it and it's now working great!

    Attached is a graph of (just) one event at a poll rate of 3secs... CPU util is in the noise. THANK YOU!
     

    Attachments

    • LED4_CPU.gif
      LED4_CPU.gif
      41.9 KB

    fmulders

    MP Donator
  • Premium Supporter
  • June 3, 2009
    99
    14
    52
    Home Country
    Netherlands Netherlands
    Yes,...

    I had the same problems, but did not know it was related to Ledcontroller.
    The last update fixed it indeed. (the same two problems as meq123)
    Thanx a lot this is very usefull extension, appreciate the good work.

    There is just one extra thing that I would like.
    This version only can show there is a recording going on. (TvServer active)
    But I have a dual tuner card installed so I would like to see if there are one or two tuners in use.

    Can you add this extra functionallity?

    (just saw the light after 4 year MCE/VMC use. Mediaportal is way better, but you all knew that offcourse) :)
     

    Users who are viewing this thread

    Similar threads

    Nevermind, I think. I found them in the forum. I had only checked the main webiste for MP2 plugins. https://www.team-mediaportal.com/extensions/mp2-plugins I hope these work: Featured Plugins
    Nevermind, I think. I found them in the forum. I had only checked the main webiste for MP2 plugins...
    I've been an MP1 user for a long time. I'm interested in switching to MP2. However, I rely heavily on the features provided by...
    Replies
    1
    Views
    2K
    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    This thread is intended for skin authors, plus those advanced users who have learnt skin programming and have customised the skins...
    Replies
    1
    Views
    2K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    782
    Nvm. I can't find any viable hardware for an ARM htpc...
    Nvm. I can't find any viable hardware for an ARM htpc...
    I am about to to upgrade my htpc where I use MP1. I wonder if it will run on an ARM based CPU with Win11 or just x64 and x86?
    Replies
    2
    Views
    2K
    MP1 MP2 1.34 STB blasting for IPTV DE
    I'm downsizing my big honkin' HTPC case to a mini PC, which means the tried and true Hauppauge Colossus card that bridges the set top box into Mediaportal needs replaced with a different solution. I currently have HDMI from the STB to the colossus. Mediaportal is controlling the STB through a USBUIRT blaster and the blaster is...
    I'm downsizing my big honkin' HTPC case to a mini PC, which means the tried and true Hauppauge Colossus card that bridges the set...
    I'm downsizing my big honkin' HTPC case to a mini PC, which means the tried and true Hauppauge Colossus card that bridges the set...
    Replies
    0
    Views
    2K
    Top Bottom