HOW TO DISABLE CPU behavior when no battery inside macbookpro ?

I realized, when i do not have the abttery inside the macbook, what i do not fotne, to save chargecycles, that my cpu wil not go above 1ghz. i observed this with the use of the coreduotemp application, wich can be free downloaded and monitors temperature and cpu speed of your macbook. i wrote to the developper, and he confirms that observation, so it is not an software bug.
First, i invite you to test this on your macs and report, and secound i would like to have a solution, i bought this mac for power, not for slow power.
maybe someone knows how to disable this behavior, thx

If your MBP is consistently running at 80°C or higher, there is probably a problem with it... My machine idles around 54°C (when connected to an external monitor -- less without) and maxes around 75°C when the processor and GPU are being pushed (i.e. video intense gaming).
Additionally, the MBP's battery is not Lithium Ion -- it is Lithium Polymer -- and is designed to be used IN the laptop. You are worrying about nothing (or next to nothing); even if your theory is correct, you are perhaps talking about a 5% decrease in the overall lifespan of the battery...if you think that is worth the possibility of data loss, then I guess running without the battery is for you...
However, you will not be able to disable the down-throttle of the CPU speed.

Similar Messages

  • How to disabled mutli desktop when I using Full Screen?

    How to disabled mutli desktop when I using Full Screen?
    Some app have a preferences option to do this which like iTerm2
    In Lion-Style FullScreen windows, I can't use command + tab to  quickly switch between in the apps, I must switch to the  app own desktop which is using fullscreen, It's so trouble. I even think this is a flaw in Apple's design.
    So, How can I have use this  feature in others apps such as Google Chrome, Mail, Safari and so on.
    Please Help me!  Thanks! Thanks! Thanks!

    nobody can help me ?

  • How to disable autostart (application) when managed server restart ?

    Hi Ppl,
    How to disable autostart (application) when managed server restart ?
    I want some of the applications to remain not started. In WebSPhere, we have an option disable auto start for applications.
    I don't find in weblogic.
    Thanks

    Hi,
    I agree with Faisal. When you shutdown your WL server while the application is running, the thing is when you start your server again, it would automatically start the application with it. Now if the application was down when you shutdown the server, it _the application_ won't start with the server.
    So it depends on the application last state, when you start your server.
    Regards,
    Mohab

  • How to disable power off when the phone is locked with pass code.

    Can anyone teach me how to disable power off function when the phone is locked?  With this , user is able To trace the iPhone when it goes missing. Besides, users will have enough time to remote wiped.

    i also had my phone stolen ... the first thing they did was turn off the phone so i couldnt track them.. you should need to enter your passcode in order to turn off the phone. i dont care if you cant do a hard reset.. i would rather loose the ability to do a hard reset for the added security .. besides without hard reset if it jammed badly i would just wait ontill the battery died.

  • How to disable field validation when block is in query mode ?

    Hi,
    we use Jdev 11g TP3 and implemented a button to set a block of input fields in query mode.
    Some of this fields are mandatory.
    When performing an execute operation this mandatory fields are validated and the JS error message pops up.
    In query mode this fields must not be mandatory !
    How to disable the validation of those mandatory fields when the block are in query mode?
    BR
    Peter

    Hello Peter,
    A little correction to Chris' suggestion, it should be:
    <af:inputText value="#{bindings.<your field name>.inputValue}"
                        label="#{bindings.<your field name>.hints.label}"
                        required="#{!bindings.<your iterator name>Iterator.findMode && bindings.<your field name>.hints.mandatory}">
    ...etc...The only difference is the removal of the ? : operator since it isn't required and represents both an additional parsing and processing effort. Go micro-optimization!
    ~ Simon

  • How to disable some color when printing separations in Ai CS6-CC (JS)

    Hello Everyone!
    Configuration: Win 7 Pro x64, Illustrator CS6x64-CCx64, default printer PDF.
    When printing separations from Illustrator CS4 following script prints all colors except Cyan (as was intended).
    But when printing from CS6-SS disable the color is not possible - all colors are printed without exception.
    var adoc = activeDocument;
    var o = new PrintOptions();
    o.colorSeparationOptions = new PrintColorSeparationOptions();
    o.colorSeparationOptions.colorSeparationMode = PrintColorSeparationMode.HOSTBASEDSEPARATION;
    o.colorSeparationOptions.inkList = adoc.inkList;
    for (var i = 0; i < o.colorSeparationOptions.inkList.length; i++) {
    if (o.colorSeparationOptions.inkList[i].name == 'Process Cyan') {
      o.colorSeparationOptions.inkList[i].inkInfo.printingStatus = InkPrintStatus.DISABLEINK;
    adoc.print(o);
    If you check, you have inkInfo.printingStatus Cyan changed to "InkPrintStatus.DISABLEINK".
    Why it is printed and how to disable?
    Thanks!

    Hi saaiful,
    Thank you for posting your question. window. will print header and footer.
    Here are some solutions I found after researching your issue:
    *[http://forums.mozillazine.org/viewtopic.php?f=12&t=216810]
    *[http://stackoverflow.com/questions/8228088/remove-header-and-footer-from-window-print]
    *[http://www.dreamincode.net/forums/topic/22598-using-windowprint-without-printing-header-and-footer/]
    *take a screenshot and create a page that is printable [http://www.webdeveloper.com/forum/showthread.php?210947-Using-window-print-without-printing-header-and-footer]
    *Target to another window then print: [http://www.liferay.com/community/forums/-/message_boards/view_message/3401817]
    Hope this helps.

  • How to disable auto notification when Leads assigned

    Hi,
    Does anyone know how to disable or modify the automatic notification that gets sent to owner of Leads when rules assign Leads?
    I've found where to change the "from" email address but want to change/stop these altogether
    Thanks
    Example below:
    -----Original Message-----
    From: XXXXX
    Sent: Monday, November 17, 2008 10:09 PM
    To: XXXXX
    Subject: Lead(s) have been assigned to you in Oracle Siebel CRM On Demand
    192 Lead(s) have been assigned to you in Oracle Siebel CRM On Demand.
    Click the following URL to review your new Leads:
    https://secure-XXXXX.crmondemand.com/OnDemand/user/LeadsHomepage

    At this time there is no way to disable this email notification to the owner of the lead as a result of going thru the lead assignment rules.

  • How to disable 'Save' button when OAF and XML Publisher integrated...URGENT

    Hi,
    I am new to the OA Framework and XML publisher. I have been working on a requirement where I am designing a new page in Manager Self Service with few fields and a submit button. Also designed a RTF template in XML publisher to display the output in PDF format.
    When the details are entered on the page and click on 'Submit' button, the PDF will Open with the data populated. This is working perfectly... thanks to the forum.
    But my issue is: When the submit button is clicked, it displayes a dialog box with Open/Save/Cancel options and if I click the 'Open', the PDF will be opened. But my client is a retail client and they don't want store managers to save this PDF so either I have to skip this dialog box and directly open the PDF or I have to disable the 'Save' on the dialog box.
    Gurus -- Please help me how to achieve this. This is very urgent
    Below is the piece of code I am using in the controller to generate the PDF.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME,
    TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    Thanks in Advance,
    Naren

    Frank, thanks for the update.
    But do you want me to try ControllerContext.getInstance().getCurrentViewPort().isDataDirty(); in button disable property?
    I have written one method in my am like
    public boolean isTransactionDirty(){
    return getDBTransaction.isDity();
    and exposed that method to client side and i try to use this method in my button disable property as
    disable#{bindings.isTransactionDirty.execute} but this is not working.
    Thanks

  • How to disable confirmation message when submitting a pdf form

    How do I disable the confirmation mesage, so that the user does not get at message like " you form has been recieved"  each time data is submitted?
    The reason for my question, is that i have a pdf form that i'd like to fill out offline, store the settings (data) in an array and the when I get online again run a loop that populates the form with the values storen in my array and submits them one at the time to formscentral.
    I'm able to make the loop work just fine, however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok".
    Hope someone can provide me with some help here

    Hi,
    >>however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok". 
    Sorry, disabling the confirmation message is not possible.  The confirmation is always enabled.
    Thanks,
    Lucia

  • How to disable annoying thumbnails when searching in preview

    Open a PDF in Preview.
    Search for something.
    The annoying thumbnails appear, shrinking your page size or covering something else on your desktop.
    I want to compare pdfs side-by-side, and the stupid thumbnail trough makes the window too wide.
    How do you disable preview from popping out the thumbnail panel when searching?

    Yes, you can click "Content Only" in that menu and the thumbnails go away.  But they reappear immediately when you use Command-G to go to the next search result.
    I can find no way to just make them go away permanently.
    Also, in yet another departure from common GUI practice, there is no way to un-check those menu items by clicking on them.  You have to click one of the other items.  In other words, they behave like radio buttons in that they are mutually exclusive, yet they are displayed as if you could select more than one of them.

  • [SOLVED] Alsa: How to disable auto-mute when plugging in headphones?

    I have a set of headphones plugged into my workstation permanently (the headphone jack is hard to reach so I don't want to plug those headphones in and out) as well as some speakers. Jack sensing works perfectly - when I unplug the headphones, the speakers are unmuted and when I plug the headphones back in the speakers are muted. Now as I said, my headphones are plugged in permanently and occasionally I want to have sound on the speakers at the same time. So far I have not found a way to have both headphones and speakers unmuted simultaneously.
    I originally thought this was a problem with Pulseaudio (I am using Cinnamon as my desktop) but when I directly go to the Alsa hw device I get exactly the same behavior. The sound chip is a built-in VIA VT1818S and aplay displays the correct cards and devices:
    $ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: VT1818S Analog [VT1818S Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: SB [HDA ATI SB], device 1: VT1818S Digital [VT1818S Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: SB [HDA ATI SB], device 2: VT1818S HP [VT1818S HP]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    I verified with "mpg123 -a hw:0,0" that I get no sound on the speakers when the headphones are plugged in and vice versa. I tried a lot of different settings with alsamixer and amixer to no avail. These are my current settings:
    $ amixer -c 0 contents
    numid=42,iface=CARD,name='Front Headphone Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=on
    numid=44,iface=CARD,name='Front Mic Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=off
    numid=46,iface=CARD,name='HDMI Phantom Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=on
    numid=45,iface=CARD,name='Line Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=off
    numid=40,iface=CARD,name='Line Out CLFE Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=off
    numid=38,iface=CARD,name='Line Out Front Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=on
    numid=41,iface=CARD,name='Line Out Side Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=off
    numid=39,iface=CARD,name='Line Out Surround Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=off
    numid=43,iface=CARD,name='Rear Mic Jack'
    ; type=BOOLEAN,access=r-------,values=1
    : values=off
    numid=47,iface=CARD,name='SPDIF Phantom Jack',index=1
    ; type=BOOLEAN,access=r-------,values=1
    : values=on
    numid=37,iface=MIXER,name='Master Playback Switch'
    ; type=BOOLEAN,access=rw------,values=1
    : values=on
    numid=36,iface=MIXER,name='Master Playback Volume'
    ; type=INTEGER,access=rw---R--,values=1,min=0,max=42,step=0
    : values=23
    | dBscale-min=-63.00dB,step=1.50dB,mute=0
    numid=13,iface=MIXER,name='Headphone Playback Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=12,iface=MIXER,name='PCM Playback Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=11,iface=MIXER,name='PCM Playback Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
    : values=31,31
    | dBscale-min=-34.50dB,step=1.50dB,mute=0
    numid=28,iface=MIXER,name='Front Mic Boost Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
    : values=0,0
    | dBscale-min=0.00dB,step=10.25dB,mute=0
    numid=24,iface=MIXER,name='Front Mic Playback Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=23,iface=MIXER,name='Front Mic Playback Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
    : values=31,31
    | dBscale-min=-34.50dB,step=1.50dB,mute=0
    numid=2,iface=MIXER,name='Front Playback Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=1,iface=MIXER,name='Front Playback Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=42,step=0
    : values=42,42
    | dBscale-min=-63.00dB,step=1.50dB,mute=0
    numid=4,iface=MIXER,name='Surround Playback Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=3,iface=MIXER,name='Surround Playback Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=42,step=0
    : values=42,42
    | dBscale-min=-63.00dB,step=1.50dB,mute=0
    numid=6,iface=MIXER,name='Center Playback Switch'
    ; type=BOOLEAN,access=rw------,values=1
    : values=on
    numid=5,iface=MIXER,name='Center Playback Volume'
    ; type=INTEGER,access=rw---R--,values=1,min=0,max=42,step=0
    : values=42
    | dBscale-min=-63.00dB,step=1.50dB,mute=0
    numid=8,iface=MIXER,name='LFE Playback Switch'
    ; type=BOOLEAN,access=rw------,values=1
    : values=on
    numid=7,iface=MIXER,name='LFE Playback Volume'
    ; type=INTEGER,access=rw---R--,values=1,min=0,max=42,step=0
    : values=42
    | dBscale-min=-63.00dB,step=1.50dB,mute=0
    numid=26,iface=MIXER,name='Line Playback Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=25,iface=MIXER,name='Line Playback Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
    : values=31,31
    | dBscale-min=-34.50dB,step=1.50dB,mute=0
    numid=16,iface=MIXER,name='Capture Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=18,iface=MIXER,name='Capture Switch',index=1
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=15,iface=MIXER,name='Capture Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
    : values=0,0
    | dBscale-min=-16.50dB,step=1.50dB,mute=0
    numid=17,iface=MIXER,name='Capture Volume',index=1
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
    : values=0,0
    | dBscale-min=-16.50dB,step=1.50dB,mute=0
    numid=14,iface=MIXER,name='Loopback Mixing'
    ; type=ENUMERATED,access=rw------,values=1,items=2
    ; Item #0 'Disabled'
    ; Item #1 'Enabled'
    : values=0
    numid=35,iface=MIXER,name='IEC958 Default PCM Playback Switch'
    ; type=BOOLEAN,access=rw------,values=1
    : values=off
    numid=31,iface=MIXER,name='IEC958 Playback Con Mask'
    ; type=IEC958,access=r-------,values=1
    : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
    numid=32,iface=MIXER,name='IEC958 Playback Pro Mask'
    ; type=IEC958,access=r-------,values=1
    : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
    numid=33,iface=MIXER,name='IEC958 Playback Default'
    ; type=IEC958,access=rw------,values=1
    : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
    numid=34,iface=MIXER,name='IEC958 Playback Switch'
    ; type=BOOLEAN,access=rw------,values=1
    : values=off
    numid=30,iface=MIXER,name='Dynamic Power-Control'
    ; type=ENUMERATED,access=rw------,values=1,items=2
    ; Item #0 'Disabled'
    ; Item #1 'Enabled'
    : values=0
    numid=29,iface=MIXER,name='Independent HP'
    ; type=ENUMERATED,access=rw------,values=1,items=2
    ; Item #0 'OFF'
    ; Item #1 'ON'
    : values=0
    numid=19,iface=MIXER,name='Input Source'
    ; type=ENUMERATED,access=rw------,values=1,items=4
    ; Item #0 'Rear Mic'
    ; Item #1 'Front Mic'
    ; Item #2 'Line'
    ; Item #3 'Stereo Mixer'
    : values=1
    numid=20,iface=MIXER,name='Input Source',index=1
    ; type=ENUMERATED,access=rw------,values=1,items=4
    ; Item #0 'Rear Mic'
    ; Item #1 'Front Mic'
    ; Item #2 'Line'
    ; Item #3 'Stereo Mixer'
    : values=0
    numid=27,iface=MIXER,name='Rear Mic Boost Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
    : values=0,0
    | dBscale-min=0.00dB,step=10.25dB,mute=0
    numid=22,iface=MIXER,name='Rear Mic Playback Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=off,off
    numid=21,iface=MIXER,name='Rear Mic Playback Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
    : values=23,23
    | dBscale-min=-34.50dB,step=1.50dB,mute=0
    numid=10,iface=MIXER,name='Side Playback Switch'
    ; type=BOOLEAN,access=rw------,values=2
    : values=on,on
    numid=9,iface=MIXER,name='Side Playback Volume'
    ; type=INTEGER,access=rw---R--,values=2,min=0,max=42,step=0
    : values=42,42
    | dBscale-min=-63.00dB,step=1.50dB,mute=0
    numid=49,iface=PCM,name='Capture Channel Map'
    ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
    : values=0,0
    | | TLV size error (257, 8, 0)!
    numid=50,iface=PCM,name='Capture Channel Map',index=1
    ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
    : values=0,0
    | | TLV size error (257, 8, 0)!
    numid=48,iface=PCM,name='Playback Channel Map'
    ; type=INTEGER,access=r----R--,values=8,min=0,max=36,step=0
    : values=0,0,0,0,0,0,0,0
    | | TLV size error (257, 8, 0)!
    numid=51,iface=PCM,name='Playback Channel Map',device=1
    ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
    : values=0,0
    | | TLV size error (257, 8, 0)!
    numid=52,iface=PCM,name='Playback Channel Map',device=2
    ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
    : values=0,0
    | | TLV size error (257, 8, 0)!
    If I read the Alsa kernel docs right, the VIA driver simply does not provide any option to disable auto-muting: http://git.alsa-project.org/?p=alsa-ker … xt;hb=HEAD.
    I would be glad if I had misread/misunderstood something or there were any other means of achieving what I am after? All I found so far is lots of posts where auto-muting did not work but very few people seem to want the opposite. FWIW, my old installation of Ubuntu 11.10 was working fine in that regard, i.e. it probably did not support auto-muting for my hardware.
    Last edited by fax (2013-03-24 20:20:19)

    Solved, well, good enough for me anyway. In alsamixer, I enabled "Independent HP". Independent HP means that two of the six surround channels get diverted to the headphones. Alsa creates a second device, one for line out and the other one for the headphones. It is a very neat feature that is meant to allow you to e.g. do a voice call with your headphones while you play music through the speakers at the same time. I can now choose in PulseAudio whether I want output to my headphones or the speakers. It required that in /etc/pulse/default.pa, I added the line "load-module module-alsa-sink device=hw:0,2" after this paragraph:
    ### Automatically load driver modules depending on the hardware available
    .ifexists module-udev-detect.so
    load-module module-udev-detect
    .else
    ### Use the static hardware detection module (for systems that lack udev support)
    load-module module-detect
    .endif
    # Take Independent HP into use.
    load-module module-alsa-sink device=hw:0,2
    All this really is a work-around for two bugs:
    Call it a bug or a missing feature, but it does not look like the Alsa snd_hda_codec_via driver allows to disable auto-muting.
    Before the change to default.pa, PulseAudio already allows me to switch between two output devices - "analog output" and "analog headphones". "Analog headphones" however does the same thing as "analog output" and plays sound on the external speakers and not the headphones. I suspect that the PulseAudio module-udev-detect detects both Alsa devices but wires them wrongly.
    The above still doesn't give me what I originally asked, i.e. sound on both speakers and headphones at the same time, but I realized that I don't really need that. I just need a way to switch on speakers occasionally while my headphones are plugged in.
    Last edited by fax (2013-03-24 23:06:27)

  • How to disable confirm dialog when deleting messag...

    It is really annoying that each time I delete a message, I have to confirm. How can I disable that on the Lumia 920?
    Also, I spend a long time trying to figure out why my phone did not come with Nokia Music in denmak, after alomost 1 hour searching on the net, I found out that the service do not exist in Denmark... Why not just have the Nokia Music in the App store and just show a message when people try to install it, saying that its not availble in the user's country?

    You can't dsable the confirmation, but you can reduce the number of times you need to confirm to just once by marking the messages you wish to delete first. Shortcut for marking messages is to tap the left hand edge of the message you with to mark.  

  • How to disable asking password when session expires

    Hi,
    When the session is timed out, I want application should automatically turned on when I click on alert/message box.
    Please suggest me in what way I can do this.
    Thanks in Advance!!!
    Regards
    Madhu Kumar

    Hi,
    This is an expected behavior and you cannot let the user login again without entering the username/password.
    One possible solution would be increasing the session timeout.
    Note: 269884.1 - How To Fix The Forms Timeout Issue In Oracle Applications 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=269884.1
    Regards,
    Hussein

  • Portege Z930 - "System" process: high CPU usage when on battery

    I've got a Portg Z930.
    A process called "System" appears on the task manager when I unplug the PC from the AC.
    I'd like to know why is it using high CPU (from 9% to 18%) and keeping my temps above 70C.
    It's very annoying, not only because of the temperature that hits the PC itself, but also because of the battery life, that can't go above 1 hour and 30 min because of this process.
    It's not a virus, already CHECKED, don't ask.
    Also, I don't know when it started or why, so please don't ask.
    Thanks in advance,
    Nicols.

    > I'd like to know why is it using high CPU (from 9% to 18%) and keeping my temps above 70C.
    I dont know exactly what this system process does but usually the Windows system uses different power plans / modes while the notebook is connected to AC adaptor and while running on battery power.
    So possibly the power plant for battery mode is configured differently.
    I would recommend checking the power plant which is used while the AC adaptor is connected and compare the settings with the power plant used in battery mode.

  • How to decrease CPU usage when using multiple threads?

    I am using vb.net , .NetFramework 2.0 . 
    My application gets live stock prices from google and updates stocks in database each 10 seconds.
    I get this code for  multithreading. When application starts updating stocks in database(about 200 stocks) , the update takes up to 3 seconds but it increase CPU usage from 10 % to 70 % or 80 %.
    What is the best way to to update database without getting CPU increase to high level?
    I observed that all threads works at the same time. how to make each thread wait until the second ends?
    This is my code. The problem is in function updateThreaded2().
    Please I need quick help. Thanks
    Public Function Update2(ByVal l As SortableBindingList(Of NewStockList)) As Long
    res = 0
    UThread = New System.Threading.Thread(AddressOf UpdateThreaded2)
    If Me.URunning = True Then
    Else
    Try
    Me.URunning = True
    Interlocked.Exchange(Me.UCount, 0) 'threadsafe method of assigning static value
    Interlocked.Exchange(Me.UDone, 0) 'threadsafe method of assigning static value
    UThread.Priority = Threading.ThreadPriority.BelowNormal
    UThread.IsBackground = True
    UThread.Start(l)
    Return 0
    Catch ex As Exception
    End Try
    End If
    End Function
    Private Sub UpdateThreaded2(ByVal l As SortableBindingList(Of NewStockList))
    Dim i As Integer = 0
    Dim threadcount As Integer = Math.Min(Me.MaxThreads, Me.Stocks.Count)
    Dim threads(threadcount - 1) As SUTC
    Try
    While i < Me.Stocks.Count
    For j As Integer = 0 To threadcount - 1
    If threads(j) Is Nothing Then
    If i < Me.Stocks.Count Then
    threads(j) = New SUTC(Me.Stocks(i), Me.DefaultService, AdjustSplits, Use20Minutes, l)
    threads(j).Thread.Priority = Threading.ThreadPriority.BelowNormal
    threads(j).Thread.IsBackground = True
    threads(j).Thread.Start()
    i += 1
    End If
    ElseIf threads(j).UpdateState = 0 Then
    If i < Me.Stocks.Count Then
    SecUpd(j) = Me.Stocks(i).symbol
    threads(j) = New SUTC(Me.Stocks(i), Me.DefaultService, AdjustSplits, Use20Minutes, l)
    threads(j).Thread.Priority = Threading.ThreadPriority.BelowNormal
    threads(j).Thread.IsBackground = True
    threads(j).Thread.Start()
    i += 1
    End If
    End If
    Next
    Dim running As Boolean = True
    While running
    For j As Integer = 0 To threadcount - 1
    If threads(j).UpdateState = 0 Then
    Thread.Sleep(10)
    running = False
    SecUpd(j) = ""
    Interlocked.Increment(UDone) 'threadsafe method of incrementing a variable by 1
    Interlocked.Exchange(UCount, UCount + threads(j).UpdateCount) 'Threadsafe method for assigning a value
    End If
    Next
    End While
    End While
    Dim pending As Integer = threadcount
    Dim tempcount As Integer = 0
    Dim oldcount As Integer = UCount
    While pending > 0
    pending = threadcount
    tempcount = 0
    For i = 0 To threadcount - 1
    If threads(i).UpdateState = 0 Then
    SecUpd(i) = ""
    pending -= 1
    tempcount += threads(i).UpdateCount
    Thread.Sleep(10)
    End If
    Next
    Interlocked.Exchange(UDone, Me.Stocks.Count - pending) 'Threadsafe method for assigning a value
    Interlocked.Exchange(UCount, oldcount + tempcount) 'Threadsafe method for assigning a value
    End While
    Me.URunning = False
    Catch ex As System.Threading.ThreadAbortException 'handle abort correctly
    Dim pending As Integer = threadcount
    Dim tempcount As Integer = 0
    Dim oldcount As Integer = UCount
    While pending > 0
    pending = threadcount
    tempcount = 0
    For i = 0 To threadcount - 1
    If threads(i).UpdateState = 0 Then
    SecUpd(i) = ""
    pending -= 1
    tempcount += threads(i).UpdateCount
    End If
    Next
    Interlocked.Exchange(UDone, Me.Stocks.Count - pending) 'Threadsafe method for assigning a value
    Interlocked.Exchange(UCount, oldcount + tempcount) 'Threadsafe method for assigning a value
    End While
    End Try
    End Sub

    When the market is opened, stock prices changed every 500 ms . You can see this change on google finance.
    I figured as much, but my thoughts are that if you can somehow find a way to make your program more event driven, then it may be possible to reduce unnecessary looping...
    “If you want something you've never had, you need to do something you've never done.”
    Don't forget to mark
    helpful posts and answers
    ! Answer an interesting question? Write a
    new article
    about it! My Articles
    *This post does not reflect the opinion of Microsoft, or its employees.

Maybe you are looking for

  • Retrieving data from TCP/IP in xml and displaying values?

    Hey, I am using a program to retrieve data from a machine and outputting it in xml to the localhost.  On a seperate computer, I am trying to create a client application to read the xml data from that IP host and just output the important values inste

  • Problem writing external file to externally mounted disk in Windows

    Folks, I've got a puzzling problem with a simple OWB mapping where I'm dumping the contents of a table to an external file. Versions are OWB v 11.2.0.2 64-bits on Oracle RDBMS 11.2.0.2 Windows 2007 64-bits Enterprise Server. When the external files m

  • How to reference a Constants.as actionscript in another actionscript class

    Hi, How can I use constant variables from a Constatnst file (.as file) in another actionscript class? Thanks.

  • Storing xml in oracle 8i db

    Hi, I'm trying to store a XML string into a long coloumn in Oracle 8i database. I'm doing this thro a Stored Procedure. when the size of the XML statemene goes beyond 4000, i get the following error message on the command.execute statement "ORA-01460

  • Safari wont use chosen font

    Hello, I am trying to make a new website, using css. I have specified the font names in the style sheet but the fonts do not display in safari as they do in the font book - safari will just use the default font. I am unsure whether these are fonts th