So, which method of powersaving do You prefer?

I just got a new laptop and I'm currently looking into my powersaving script again to see how much battery life I can squeeze out. I'm reading up on alot of things and just came across three different methods to achieve the same, e.g. enable powersaving:
1. You can pass the options through modprobe at boot;
2. You can pass the options directly to the kernel at boot;
3. You can set them at runtime
For example, USB autosave can be enabled in either of the following methods:
1. /etc/modprobe.d/usbcore.conf
options usbcore autosuspend=1
2. Kernel boot options (ie. in grub's menu.lst):
usbcore.autosuspend=1
3. At runtime, per device, with:
for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $i; done
for i in /sys/bus/usb/devices/*/power/level; do echo auto > $i; done
Now I'm curious, which way do you prefer and why? I think I would prefer setting them all at runtime, just so I have all the different options (including those that can not be set by modprobe or directly at the kernel) grouped together in a script - but perhaps you can convince me of the better way!
EDIT: Oh, and of course there also are udev rules! Of course, kernel parameters and modprobe values do not enable toggling, so these might be less favored.
Last edited by Unia (2013-09-23 19:21:35)

Honestly, I just did what powertop told me to do.  So, at the time, I just googled things one by one, but I have since found out that you can output an html file from powertop that will tell you what to write to which files in order to set them to to "good".
It highly depends on your system and what modules and hardware you have.  So it is rather pointless to simply copy and paste the numerous configurations here.  But in general, if the option/file shown by powertop is a in /sys/module typically there is a parameter that can be set when the module loads.  So in those cases, you can use /etc/modprobe.d.  For the others, you can typically just use udevadm to do an attribute walk and get a few parameters to individualize a given setting, and then of course set the actual file in question.
Here is an example of what I use to set the satalink power management:
ACTION=="add", KERNEL=="host*", SUBSYSTEM=="scsi_host", SUBSYSTEMS=="scsi", ATTR{link_power_management_policy}="min_power"
Module parameters should be fairly obvious how to set as well if you are willing to read the man page.  But here is an example of the snd_hda_intel module's powersave function:
% cat /etc/modprobe.d/snd_hda_intel.conf
options snd_hda_intel powersave=1
I guess the only other thing that I forgot to mention was a few sysctl.d (formerly sysctl.conf) settings that are recommended by powertop as well.  I know off the top of my head that it recommends you set /proc/sys/vm/laptop_mode to '5'.

Similar Messages

  • Which Journaling/Diary program do you prefer?

    -----
    I'd like to get some opinions on which Journeling or Diary programs for the Mac platform others like, and why. Thanks for any opinions I can get.
    I'm currently using the trial version of viJournal. Anybody using that?
    -----

    Do you have a toolbox? If i ask you to give me a better tool what would you do? I think the first question you would ask me is "what will you be using the tool for?" Not much point giving me hammer if I'm trying to cut something.
    So, if you can tell me what you want to use this app for, then we can suggest apps that might be appropriate.
    Regards
    TD
    ps. You do realise that your horizontal lines above and below the text actually make it harder to read you post, right?

  • Which method shall we prefer...LSMW, BDC .....

    Hi Experts,
    While doing database upload, which method shall we prefer...LSMW, BDC (Call Transaction or Session), BAPI, IDOc, Direct Input,
    Thanks
    -Sid
    "Max Points For Best Guidance"

    hi,
    use of methods depending upon amount:
    if you have run time validation while updating the data into SAP R/3 Transaction,then use BDC Call Transaction.
    example : when you load the data into Sales order then you need to load the into Header text of sales order.
    for this ,you have to use Update Mode 'S'.
    if it is online update and if you small amount of data ,then prefer this one
    2. If you have huge amount of data and then prefer Session Method.
    we have one more advantage in session method...
    suppose file has 1,00,000 records and the if you use all the records at time,then you will get short dump like system time exceed .
    then you can split the each 10,000 records into one session and will process.
    3. Direct Input method : we prefer this method only few Transaction ,
    this will not applicable to when system has customer fields .

  • Which one do you prefer for 2.1 Stereo Speak

    I am planning to buy a Creative Sound card for my Streo 2. Speakers but don't know which of Creative EXTERNAL solution will sound better and blast my bass when i connect it to my notebook to streo speaker.Which one do you prefer ? Thanks.

    If you have a spare PCMCIA slot, check out the Audigy 2 ZS Notebook. External solutions, there is the SBLi've 24-bit External.
    You might want to check out the Xmod though, it is a new product and seems to fit the bill if you're trying to improve the audio quality from your laptop.
    Cat

  • Display which method called the method (gives you a headache doesn't it)

    Hi,
    This question might sound a little weird, so maybe read it twice:
    I would like to see which method called the method.
    public void test1()
       test2();
    public void test2()
       System.out.println(....);
    The program output should be, test1 or classname.test1 or something like that. Is that possible?
    Thanx in advance, Yvo van Beek

    This should give you an idea:   public static void main (String args[]) {
          wereAreWe();
          caller2();
        public static void wereAreWe() {
          try {
            throw new RuntimeException("here we are");
          catch (Exception ex) {
            System.out.println("");       
            ex.printStackTrace(System.out);
        public static void caller1() {
          wereAreWe();
        public static void caller2() {
          caller1();
        }You can parse the result of printStackTrace() to get a more precise output.

  • Canon EOS-1D X vs. EOS-5D MK III - Which camera do you prefer ?

    Canon has two excellent full frame cameras occupying their higher end of the DSLR market. They are the EOS-1D X and the EOS-5D MK III. I have been using Canon equipment for about 25 years now and started with the EOS-1 series when it first came out in 1989 and the EOS-5 series when it first appeared on the market in 2005.
    I am a Wildlife and Travel photographer and have used both cameras extensively out in the field. The two questions I get asked the most are, which is a better camera and which one do you prefer? My answers are always the same two questions, what type of photography are you shooting and how much do you want to spend? This analysis will not have photos, charts and graphs and assumes the reader is already familiar with Canon equipment. It will get straight to the point on my opinion of the two cameras from the viewpoint of a photographer out on photo shoots.
    First, let us compare the major specs of the two cameras, EOS-1D X vs. EOS-5D MK III :
    Sensor Resolution :  18.1 MP  vs.  22.3 MP
    ISO Sensitivity :  100 - 204800  vs. 100 - 102400
    Processors :  Dual DIGIC 5+ and 1 DIGIC 4  vs.  One DIGIC 5+
    Recording Media :  Two CF slots  vs.  One CF and One SD slot
    Viewfinder :  0.76X  vs.  0.71X
    Burst Rate :  14 fps  vs.  6 fps
    Autofocus :  61-AF points  vs.  61-AF points
    Cycle Count :  400,000  vs.  150,000
    DxOMark Sensor Score :  Overall - 82  vs.  81
    Low Light Performance :  2786 ISO  vs.  2293 ISO
    Weight and Dimension :  6.2 x 6.4 x 3.3 @ 3.37 lbs  vs.  6.0 x 4.6 x 3.0 @ 2.1 lbs.
    List price :  $6,799  vs.  $3,499
    Both cameras are excellent performers out in the field. The 1D X is completely weather sealed and can stand up to most conditions. AF is lighting fast and high ISO performance are superb and as you can see from the specifications above, they are almost evenly matched in performance but the EOS-1D X edges out the EOS-5D MK III in Sensor Score, Low Light Performance, burst rate and cycle count, while the 5D MK III has an edge in pixel count. So, going back to the original questions posed to me :
    Q : Which is a better camera ?
    A : They are both great cameras in their own right. If you are primarily a Wildlife photographer, the obvious choice is the EOS-1D X. It comes through for me under extreme conditions with little fuss and stands up to harsh use but if you are into Portrait and Landscape photography, the higher megapixel count in the 5D MK III will allow a slightly more robust cropping and lends itself to very big photo prints.
    Q : Which camera do you prefer ?
    A : If I were strictly a Landscape or Portrait photographer, I will pick the EOS-5D MK III. A photographer shooting both Wildlife and Landscape/Travel will do better with the EOS-1D X.
    Q : Which camera is the better value (price dependent) ?
    A : Without a doubt, I have picked the EOS-5D MK III as the best value in full frame DSLR camera on the market today.
    Q : Which is a better camera, overall ?
    A : Without another doubt, the EOS-1D X excels in all categories but at a price some may not want to, or cannot afford. Good, used ones will appear on the market eventually.
    Q : Which camera would you buy (price dependent) ?
    A : The Canon EOS-1D X represents the pinnacle of Canon's camera technology. There is really no substitute to shoot with the latest 1D. The performance, feel and ruggedness of the camera exudes confidence. I have not bought the EOS-5D MK III because I still own the original 5D and I have the EOS-1Ds MK III as well. So, there is little room in my equipment bag for another full frame camera but the price of the 5D MK III is now down to $2,600 on eBay (limited quantity) and is tempting me by the day.
    For full details on each camera's specifications, visit the Canon USA website. For a detailed analysis on the EOS-1D X, visit this page. You can visit MichaelDanielHo.com to see photos taken with all the cameras.

    I went through the same drill - came down to $3300 extra for 14 vs 6 fps.  I bought the 5DIII.

  • Which approach do you prefer for upgrade

    When upgrade 9.2 to 10.1 or 10.1 upgrade 10.2, which approach do you prefer, DBUA, manual ipgrade, export/import or data copying? Oracle document suggests to use DBUA, but from your experience, does it convince and why?
    Thank you for sharing,

    For me, It depends of the database size and business constraints.
    If the DB is small I'd probably use export/import, because it gives me the opportunity to make a very clean move, and use new features like LMT, or ASM.
    If time is a constraint and the DB is big I'd run DBUA. but remember that DBUA also has limitation, for example you will net be able to upgrade an Oracle DB 7.X to 10G using DBUA.
    Hope this helps,

  • Do MAcbook Air need any Anti-virus? If yes then which one you prefer?, Do MAcbook Air need any Anti-virus? If yes then which one you prefer?, Do MAcbook Air need any Anti-virus? If yes then which one you prefer?

    Do MAcbook Air need any Anti-virus? If yes then which one you prefer?, Do MAcbook Air need any Anti-virus? If yes then which one you prefer?, Do MAcbook Air need any Anti-virus? If yes then which one you prefer?

    This question has been asked and answered countless times.
    See this thread for an answer.
    Hint:     The 'More Like This' box to the right of your post often has the answer to your problem.

  • Need feedback. updating old site, which do you prefer?

    Hi,
    Attached are two screenshots. Number 1, is my old site, Number 2 is what  I was designing as a replacement. Could you please comment on which you  prefer and why, IE what you like, don't like, etc.
    I unfortunately do not have a home page screencap of image one.jpg, so  it is a different page, but hopefully you can get the idea.
    Thanks!
    existing
    update

    Stan,
    So are you saying you don't like the cleaner simpler top?
    No: I like either, I find both of them powerful and lively.
    Do you mean to have some of the blueish green from the top, overlay onto the white mainbody? Do you mean that it should spill into the mainbody?
    Indeed, something to that effect; I just imagined it as showing through a partial transparency of the mainbody.

  • Which do you prefer -  Bootcamp or Parallels ?

    What is the major difference between these two and which do you prefer on your system ?
    Do you have to partition for both and how much do they recommend as a minimum for partition size ?

    Bootcamp and Parallels both have different values to me so its hard to judge.
    If youneed direct access to firewire devices (Firewire sound or video) Parallels ain't gonna do it for ya as there is no device interface level firewire support
    Parallels being just a virtual machine does not have its own native file system. Instead it emulates a filesystem on a hard disk. It does this by creating a big file on the hard disk in the Mac OS X filesystem and that big file is treated as the hard disk in the virtual machine. With that in mind you don't need to do any partitioning of your OSX system to install parallels. Parallels as a virtual machine application is not revolutuionary and in my opinion is no better or worse than Virtual PC or VMWare in their repective hosted environments. I lot of the giddy-up surrounding Parallels was pure hype. Don't get me wrong its a good product and I use it. I just don't it as the next coming of the antimicrosoft savior.
    BootCamp on the other side provides a capable fast Win-XP system. It does require a seperate partition but installing Bootcamp will allow you to configure that. MacDrive 6 allows you to access your HFS drives in windows XP so both O/Ses have read write access to both file systems. OSX natively only has read access to NTFS Partitions. You have to run Fat32 to allow OSX to read _and write_ to it. Win-XP will natively restrict you to 32GB size for FAT32 even though you can create larger prtitions in other applications. I have sucessfully done so as an act of futility, but if you want a simple setup environment then keep your XP partition under 32GB.
    I came from a PC environment and wound up setting up XP several times to get partitioning right. I will be resetting again in a week or two to reduce my XP partition in size as I find I use OSX more than XP. Without doubt my XP setup is the fastest laptop environment I have ever used run /seen and use it almost exclusively to run Traktor DJ software as it doesn't run well at all under Rosetta and universal binaries are 3-4 months off.
    Bootcamp gives you near full device level access to all the Mac hardware devices Built in sound and the camera being two that need work and apple note it in their release notes for bootcamp. Everything else including Firewire works great.
    At the end of the day I use both but thus far don't use Parallels too much at all. Both have their own advantages.
    Phil

  • Which do you prefer--Canon 75-300mm or 55-250mm lens????????

    I am getting the canon eos rebel xs in a month  and am planning on getting a 2nd lens but cant decide between the 75-300 or 55-250? are they the same or is there a complete difference? which one do you prefer?

    GreenGablesJes wrote:
    I am getting the canon eos rebel xs in a month  and am planning on getting a 2nd lens but cant decide between the 75-300 or 55-250? are they the same or is there a complete difference? which one do you prefer?
    Assuming they have the same aperture range, most likely the 55-250 will be a bit smaller/lighter.
    Other than that, the only real difference is that the 55-250 will start at a slightly wider angle and won't go to as great of an extreme telephoto range.
    There might be some image quality differences, but you'll need to look at some lens review sites for that kind of information.
    *disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.

  • If you  own an ipad and mac book air which one do you prefer

    I currently own an ipad and was wondering if i should perhaps buy a macbook Air to sort of "replace" my ipad. My question is, is the macbook Air better than the ipad?

    I'm going to be getting an iPad soon, which I will have in addition to my MBA. Why do I want an iPad when I've got an MBA? Because I love to read and an iPad is better for reading books and magazines. I'm sure I'll also find a lot of other apps doing things that I couldn't do on an MBA (the Air does not, after all, have a touch screen and a touchpad is not at all the same). My sister-in-law uses her iPad to fingerpaint. And the iPad is way more useful on a car ride for watching movies, listening to music, playing games, checking maps. It is very useful to not have to flip open a lid and balance two halves of a device on one's knee rather than one.
    BUT...I'm a writer. I type pretty much every day and for long hours during that day. As a touch typist, I need to feel those keys. I can't work on flat glass staring at the keyboard. An iPad is fine for short e-mails or notes, but for writing essays, blogs, novels? I think not. I could, of course, have gotten the keyboard that goes with the iPad. I know a writer who did that and uses only the iPad. But that doesn't work for me. I love my MBA for writing and web-creation. However, when I'm sitting at lunch, I don't like pulling out my computer to read. I like the idea of an iPad that takes up very little room, and can be adjusted to any angle, and which flips the page with a tap in the corner.
    Which is better? Which ever one does what you most need it to do. If I didn't write, if I was only a reader or an artist, I'd have only an iPad. But I do write, and so I have an MBA. What do you do and what do you most need your "computer" to do? That's the question you have to answer before we can advise you.

  • When restoring a mailbox, which command do you prefer to use?

    I was accustomed to using New-MailboxExportRequest, but just learned how to use Restore-Mailbox.
    Is there one command that you prefer to use instead of the other?  Just curious.
    Thanks,
    Robert

    Hi,
    I agree with Andy. We use the New-MailboxExportRequest cmdlet to export contents of a primary mailbox or archive to a .pst file. When the request encounters corruption in the mailbox, we can add the BadItemLimit parameter to specify the number of bad items
    to skip.
    And the Restore-Mailbox cmdlet is used to extract mailbox content from a restored database. The Restore-Mailbox cmdlet can only use disconnected mailboxes on a server as a source of data, and the cmdlet can only use connected mailboxes as a target for data.
    If you want to learn more about the Restore-Mailbox cmdlet, you can refer to
    Restore-Mailbox.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Which method ???

    Hi
    Planning a upgrade of a 4.6C system to 6.40, i have to decide which method to use concerning zero interactive CPW model 590. Which method are the most common or which method do you prefer?
    1:  Carry out the upgrade in the background as described in Note 86557
    2:  Use the Upgrade Assistant; both the upgrade in server mode and the UaServer can be started as background jobs. It is important that you correctly set the environment variables as they are set for the interactive operation and the CPYENVVAR(*YES) parameter for SBMJOB.
    3:  Start the upgrade from the Upgrade Assistant GUI.
    I'm not a big fan of JAVA performance on system i !!!!!  
    Mfg Mads Hammer

    Hi Mads,
    I always use option 1 )
    btw: I would never go for 6.40 but for 7.00 now !
    Regards
    Volker Gueldenpfennig, consolut.gmbh
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

  • Which method is better, the SELECT .. CURSOR(.. , or the Queries in loop

    I have a table t1, this table has 1 to many relation with
    tables t2,t3. t2,t3 do not have any direct relation with eachother.
    I have to read all data in all tables, what do you prefer
    from the following. I am using 10g release 2 but if there
    is some better way in 11g I can go for it also.
    Also generalize this for t2,t3,t4,t5,... etc.
    Method 1.
    FOR i in (SELECT * FROM T1) LOOP
    FOR j in (SELECT * FROM t2 WHERE t2.x=t1.x)LOOP
    ...process data...
    END LOOP
    FOR k in (SELECT * FROM t3 WHERE t3.x=t1.x)LOOP
    ...process data...
    END LOOP
    END LOOP;
    Method 2
    FOR i in
    (SELECT t1.*,
    CURSOR(select * from t2 where t2.x=t1.x),
    CURSOR(select * from t3 where t3.x=t1.x)
    FROM t1) LOOP
    ... process data...
    END LOOP
    Which one will be the faster and why.
    Thanks

    Your question is meaningless.
    Why? Because...
    > There is no way to join all these 3 tables correctly, because joining will
    produce reduandant rows.
    and...
    > its impossible to join all three tables here
    and then you show Method 1 and 2 as options.
    Guess what.
    You have coded a nested loop join in both!
    So just what makes your hack of a join in PL/SQL so much superior than an "impossible" nested loop join in SQL?
    Your problem is not joining.. it is conceptual and design fundamentals. Your approach says that the problem should be approached by discarding the fundamental concept of joining data in a RDBMS.. and thinking of row-by-row slow-by-slow serialised processing.
    Join. Use parallel processing. Either PQ or self-rolled via PL/SQL. There are loads of tools in the Oracle toolbox to address this type of problem.
    Message was edited by:
    Billy Verreynne

Maybe you are looking for

  • [SOLVED] screen brightness too low when switching tty

    I have autologin enabled in LightDM, so when I boot I am taken to my MATE desktop automatically. This happens in the default tty (tty1). Sometimes I want to switch to a different virtual terminal (e.g., by pressing Control+Alt+F2) without ending my s

  • Media Playback With Windows Media Player and Quicktime

    I just bought a mac book. Is there any way to have quicktime not the default player or to have it bring out the video from the safari window. because there are some sites that i go to and it just starts playing quicktime inside the browser video but

  • If i remove one of two phones from my plan will it require a new plan? If so, will I lose my unlimited data?

    I need to remove my son's phone from my family plan and I am worried that doing so will cause me to lose my unlimited data.  Does anyone know if my worries are legit?  The 2nd phone is costing me about 30 bucks a month would I be better off just keep

  • Using the Ariba adapter

    Can anyone tell me how to use the Ariba adapter, and where to find documentation?

  • Help! Netscape browser problems

    Hi, This is my first time using layers, and I'm finding that Netscape 8 shifts text downwards slightly. I've posted the "Cafe Townsend" tutorial to illustrate the problem I'm getting- http://www.juliespetportraits.com/Cafe_Townsend/index_css.html If