Hi, i'm trying to write a function to calculate Total System non-Idle Time.
I think I have to play with %System.Uptime() and %nSystemIdleTime(), but I can't find a method to do this...
Do you guys have an idea ?
-
Here's a modified script for a G50VT-X5. It shows the model, time, CPU, and RAM all at the same time. Looks good and works great.
Attached Files:
-
-
Thanks for that, i tried it and it's very clear
I'm still looking for a way to do this :
-
-
Well I could be wrong, but we have : nSystemIdleTime, System.UpTime.
From this, I'm trying to calculate the Total Activity Time.
I mean : your laptop is powered on during 5 hours, but what is the real activity time during this time ?
'TotalIdleTime + TotalNonIdleTime = SystemUptime'
I'm trying to find the second one...
I'm sorry, but it's a little difficult to explain -
Little bump to explain a little more...
I mean, I need nSystemIdleTime to measure activity/idle. When it's 'idle' (nSystemIdleTime ! 0), I cannot calculate a total because nSystemIdleTime is growing (1+2+3+4+5+6+7+8+9=45 for 10 milliseconds of inactivity and a priority of 1). But when there's 'activity' (nSystemIdleTime = 0), then I have nothing to calculate my sum...
One idea was to execute this fonction every 500 ms : '%If(nSystemIdleTime = 0) then{ %inc(total,500) }'
But it wasn't accurate at all, returning negative values after a while
The second idea is this one :
Code:/// IDLE detection, with a 10s error margin, sometimes you're just thinking, but you're active ^^ /// %If(%UsePlugin('Battery\BatteryPlugin.dll',nSystemIdleTime) > 10000) Then { %If(%UsePlugin('Battery\BatteryPlugin.dll',nSystemIdleTime) > %tIdleTime() ) Then { %Assign(tIdleTime,%UsePlugin('Battery\BatteryPlugin.dll',nSystemIdleTime)) } } /// ACTIVITY detection, with a 100ms error margin to force detection /// %If(%UsePlugin('Battery\BatteryPlugin.dll',nSystemIdleTime) < 100) Then { %Assign(TotalIdleTime,%Inc( %TotalIdleTime(),%tIdleTime() ) ) %Assign(tIdleTime,0 ) } /// Total of ACTIVITY time /// %DefFunc(TotalNonIdleTime,Global=%Dec(%System.Uptime(),%TotalIdleTime()))
Seems a little more accurate, but with the 100ms error margin, it's very difficult to verify...
Maybe I'm a complete idiot and there's a very simple method to do this, but for the moment I'm stuck with that... Am I a so complete idiot ? -
/System Uptime/
'Uptime: '%Format.Time(%System.Uptime(),'h:mm:ss ')
/ System IdleTime /
'Idle: '%Format.Time(%UsePlugin('Battery\BatteryPlugin.dll',nSystemIdleTime),'h:mm:ss ') -
Hi riinki, thanks, but I know how to format Uptime and IdleTime, it's not the point
If you try your own code, you'll see that SystemIdleTime backs to zero when you exit idle mode...
My goal is to sum every idle time to make a total... Try my code right up there and you'll see what I want to achieve... -
Predator, is there any news about driver of G50V's led????
-
Hi ! For those who wanna try or only take a look to my megascript, here's the link to the video on you tube. Into the comments on the right of the video, you'll see the download link
Note that it's in french at the moment, but as soon as it's translated, I'll share it in english. I'll try to translate the tutorial, but it may become hardly understandable... So if someone here speaks both english and french correctly, it'd be nice to help
http://www.youtube.com/watch?v=k3J3b4pzzZQ&fmt=18 -
Sanka, I can help! So i can translate the script in english and in italian too! Let me know!
-
Hi ! Here's a quote with the links to the concerned files
The tutorial will be harder to translate, but it would really need to be... Thanks for your help, whatever you do -
i have already translated the script fully in italian!! ^_^
if you want i can translate the script in english very fast!
I can post it in the italian Official Thread of the G50V-Vt, HERE.
For the tutorial no problem! -
Wow your made great job on your thead for G50 ! Our french forum is a mess^^
Your are welcomed to translate anything you want, but I'd like to have news from Delta CT before asking you for the english version of the comments of the script. If he already started the work, I wouldn't like get is time wasted for nothing...
And I'll add the links to your forum on you tube and lcdhype forum tomarrow or saturday, thanks ! -
Actually, obliviux can go ahead and do the translation into English. My friend has his MSc defense in less than a week, so he's been freaking out and studying for the last couple of weeks. Sorry about that guys, I should have let you know earlier.
-
In the same idea, would you permit me to download your italian version to re-up it on lcdhype forum ? -
@dtd00d
Would it be possible for you to zip up th scripts you posted back on page 22? There really nice, I jst can't get them to work properly atm.
Thanks -
-
I was wondering whether anyone found a iTunes plugin. I would highly appreciate it since I couldn't really run winamp without it crashing on my computer.
-
Hi, I'm currently trying to make a Teamspeak "plugin", and I succeed in a way.
Before going further, could you please test this sample script I wrote ? Everything needed is included in the archive, you just have to adapt 'ScriptPath' variable according to your situation.
I agree this is not really a plugin, but it doesn't seem to consume too much ressources, so are you okay with the method ?
I let every source in it, so if you're better in programming than I am, feel free to improve it. (ts.ahk/exe is coded in autohotkey language, the only one I know enough ^^)
On a side note, please consider this is my first try to write something like this...
http://www.megaupload.com/?d=TCFDIA2Q -
-
It's in my sig, but you can also find my PipBoy script on my forums. It's in French, but if you're interested, localized versions could be done...
Feel free to ask in my forums -
First of all, congratulations Predator and community, this is very very nice!
I have a problem using the LCDHype tool and the scripts. The stuff like CPU, RAM and CLOCK doesn't update om my OLED. What am i doing wrong here?
(using ASUS G50)
For example, i put this code at the LCDHype:
#Header
%Common.SetPriority(1000)
%Graph.SetTextArea(0,0,256,32)
%Param.RenderMode(Simple)
%DefVar(CPUusage)
#EndHeader
#GfxMode
%Assign(CPUusage, %System.CPU(Usage))
'CPU ' %CPUusage() '%'
%Format.Bar(Horizontal,50,8,0,100,%CPUusage(),1,1,61,3)
#EndGfxMode
And then I run the code, an i all get is a picture of the current CPU load, the value doesn't update.
Can anyone help? -
Try adding %Param.OverlayMode() or change the RenderMode to Full.
-
Did it. Both together and not. the problem persists
-
Well the only thing strange for me is the CPUusage declaration.
I would write it
%DefVar(CPUusage, Local= %System.CPU(Usage) )
in the header, and no 'assign' in GfxMode...
And I agree with the %Param.RenderMode to be set to 'full' advice (I always need it for my script to refresh the display)
Edit : sounds weird, but did you start your script, and not just double click on the page title (and then it runs only once) ? -
OMG!!!!!!!
you were right... i wasn't starting the script... so lame....
really sorry for that folks... -
by the way, whats the philosophy behind the use of screensaver and burning OLED pixels?
If the same screen is showed on the OLED for a long time (like what?) will it be damaged? -
No problem ^^
long time : a few weeks or a few days, depending how often your laptop is turned on. But burning comes very fast, and is difficult to 'delete', when it's possible.
So, my advice would be to always use a screensaver, and a rotating script (2 pages or more) -
-
With OLEDs, isn't the "burning" more of the pixels fading away due to oxidative bleaching?
-
So any updates on the driver control for the lights?
I would like to be able to kill the touchpad light without killing the touchpad and also turn off the darn lights on the lid without have to open direct console first than closing it and open lcdhype.
I love the program but these two things would just make it soo much better... I would never have to look at direct console again! -
same here + i have to overclock @directconsole when useing lcdhype.. or is that still possible?
-
Here you go for the Touchpad LEDS, use these 2 fonctions :
-
I have not been home to try it but do I need something special installed for it to actually work?
I dont have everest or any third party appls/plugins installed. Just the standard asus stuff and lcdhype.
My goal is to get rid of DirectConsole all together. Also, would be nice to get some control of the touchpad much like the factory where whne I press the button its disabled. The thing is I got that keyboard lag problema and want to uninstall the touchpad drivers but thats when I lose function like the touchpad light and the on/off of the touchpad via the hotkey. -
You need the lcdhype GLED plugin made by Predator_MF (look at his sig)
-
Now will this let me control the back panel LED at all?
I like them off but right now have to start direct console which is set with them off, than close it and than start my LCDhype.
I may want to use them for the "cool" look sometime in the future but right now dont care for them.
I like the touchpad lights off because it gets much warmer when they are on so just assume keep it off.
If asus would fix the dang keyboard lag I would care, because when I disable the touchpad with the hot key it turns the light off, but due to having to have the drivers loaded to do that, it still lags. lol
Its sad when users have to come up with ways around OEM stuff because they cant fix their issues.
But hey, the LCDhype and all these peoples hard work is 100x better than any OEM stuff... I like as little stuff installed as possible, thus why I dont even have everest installed. I like to be greedy with my RAM, and LCDhype uses just over 50mb on its own, I hate to need to have everest running eating a few hundred more again, lol.
all these cool things are going to make me spend $500 and get that 8gb RAM... grr.. -
As you can see,
LCDHype + my PipBoy = 13Mo
Everest = 21Mo
Fraps = 6Mo
Total = 40Mo max on RAM, not hundreds...
It's very worth using LCDHype, even with plugins and third party apps...
Ok, I'm under XP32...
Edit : a basic question to everyone using LCDHype :
How are you configuring keyboard shortcuts ? I have to change my SP2 combo each time lcdhype starts, it's very annoying. The weird thing is that the advanced options control keeps my settings but it doesn't work if I don't change it and click 'change'...
G1S.ini is ok, I don't understand. -
Strange
In Vista Ult x64 my :LCDhype alone after being on for a few hours peaks at 55,xxxMB This has done it even after reinstalls and formats (caused by other issues).
I wonder if just because im running x64 OS it has to use more RAM. I wish mine was only 13MB... I wouldnt care as much than. -
is there a way to turn off the touchpad led light around the touchpad without totally disabling the touchpad?
btw, got the g50vt-x1 at best buy open box for 800$! -
You have to go download a plug in for LCDhype.
I tested it last night and it worked. With and without the touchpad enabled. -
Nobody for my keyboard shortcuts ? it's very weird and annoying.
The question is in the first post of this present page.
Thanks -
redguardsoldier Notebook Consultant
To stouf: I have downloaded your script. I'm currently waiting for my first laptop (G50Vt-X3) arrives. Can you (or anybody) translate the manual to English? I can't speak French.
And some guy can give me a full and easy instruction? 35 pages with lot of small questions make me can't understand which is my best way to use the OLED. I need a step-to-step instruction such as disable something, and then install and configure something... Thanks. -
-
-
The localized version is on the roadmap, but the script is so big now, that it will take some time to traduct...
For the user manual, the actual dev version of my script uses a third party app to configure the script (and other things of the G50), so it won't be a problem, it's very simpler now
Please be patient
@Predator_MF : No app is using the combination, and as soon as I 'rebind' it in lcdhype (meaning putting the same combo than before), it is working... So, the combo is not used by any app.
Really, I don't understant how to properly bind this hotkey to work on startup... -
Is there a script that I can use that resonates the OLED display (turns it on and off as fast as it can?) The "Republic of Gamers" logo has been there so long that there is noticable burn-in.
Also, the "CPU 100%" thing is also burnt in. -
-
Also, how do I navigate in Sanka's script?
G50V - Anyone find a use for the OLED display?
Discussion in 'ASUS Gaming Notebook Forum' started by berardi1111, Oct 15, 2008.