Announcement

Collapse
No announcement yet.

Fedora 21 vs. Ubuntu 14.10 Power Consumption On An ASUS Zenbook

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    @mistvieh:
    It`s about live images
    AND
    default installations...

    Comment


    • #12
      Originally posted by blackiwid View Post
      And nothing with gnome-shell speed or video-vdpau stuff?
      If you mean s3tc no and no ... either of the above two uses it.

      Comment


      • #13
        Originally posted by opensource View Post
        I know about powertop but is it enough? Maybe M. could make like tutorial/article on how he reduced the power consumption.
        I'm on a Compaq 615 and it's fan is loud. Not much you can do about that but I'm trying to keep the CPU/GPU as cool as possible. This is what Powertop has to say: If I change all of them to "good...


        i am planing for years now to make a script to do it
        should be easy, just too lazy

        just don't turn on power management for your usb mouse and keyboard
        the "Autosuspend for USB device USB OPTICAL MOUSE [6-1]" and such
        although the "Autosuspend for USB device OHCI PCI host controller [usb6]" usb controller power management seems to be fine

        Comment


        • #14
          Originally posted by gens View Post
          ...
          edit: seems that the html output puts the usb things as optional, so just do as it is explained in the link and it shouldn't cause problems

          so, as root or sudo:

          Code:
          powertop --html
          # makes a powertop.html, in current dir for me
          echo "#/bin/sh" > PM_script.sh
          grep 'echo ' powertop.html | sed 's/.*\(echo.*\);.*/\1/g' >> PM_script.sh
          then cp it somewhere and add to rc.local or whatever you have

          Comment


          • #15
            Originally posted by gens View Post
            edit: seems that the html output puts the usb things as optional, so just do as it is explained in the link and it shouldn't cause problems

            so, as root or sudo:

            Code:
            powertop --html
            # makes a powertop.html, in current dir for me
            echo "#/bin/sh" > PM_script.sh
            grep 'echo ' powertop.html | sed 's/.*\(echo.*\);.*/\1/g' >> PM_script.sh
            then cp it somewhere and add to rc.local or whatever you have
            bla
            grep 'echo ' powertop.html | sed 's/.*\(echo.*\);.*/\1/g' >> PM_script.sh
            should be
            grep 'echo ' powertop.html | sed -e 's/.*\(echo.*\);.*/\1/g' -e 's/\&gt\;/\>/g' >> PM_script.sh
            (for powertop 2.4 at least)

            ttttriple post~!


            edit: actually it still counts USB devices so just edit them out manually from the resulting script
            they are, for example; "echo 'auto' > '/sys/bus/usb/devices/6-1/power/control'"
            Last edited by gens; 12 January 2015, 02:50 PM.

            Comment


            • #16
              Originally posted by gens View Post
              http://askubuntu.com/questions/11270...nges-permanent

              i am planing for years now to make a script to do it
              should be easy, just too lazy

              just don't turn on power management for your usb mouse and keyboard
              the "Autosuspend for USB device USB OPTICAL MOUSE [6-1]" and such
              although the "Autosuspend for USB device OHCI PCI host controller [usb6]" usb controller power management seems to be fine
              You should do the script if it doesn't take too much time. This would help many people and you would do something good.

              Comment


              • #17
                Originally posted by opensource View Post
                You should do the script if it doesn't take too much time. This would help many people and you would do something good.
                just did it for slackware, as that is what i use
                to fit it for another distro one wound need to change where the script goes to be executed at boot

                it requires root priviledges
                Code:
                #/bin/sh
                
                echo "This script will create /etc/rc.d/rc.powersave and add it to boot"
                echo "It uses powertop's html output to make a script that will turn on powersaving mode for some devices"
                echo "Make sure to run it only once per computer, as powertop will output only for devices not currently in powersave mode"
                
                if [[ ! -x /usr/sbin/powertop ]]
                then
                echo
                echo "powertop binary not found"
                exit 1
                fi
                
                if [[ `powertop --version | grep -c versionv2.4` -eq 0 ]]
                then
                echo
                echo "script is currently only for powertop version 2.4"
                echo "installed version is" `powertop --version`
                exit 1
                fi
                
                cd /tmp
                powertop --html
                
                # make a script from the .html that powertop made
                echo "#/bin/sh" > /etc/rc.d/rc.powersaving
                grep 'echo ' powertop.html | sed -e 's/.*\(echo.*\);.*/\1/g' -e 's/\&gt\;/\>/g' | grep -v "/sys/bus/usb/devices" >> /etc/rc.d/rc.powersaving
                chmod +x /etc/rc.d/rc.powersaving
                
                # add the script to rc.local
                if [[ $(grep -c rc.powersaving /etc/rc.d/rc.local) -eq 0 ]]
                then
                cat >> /etc/rc.d/rc.local <<EOL
                
                if [ -x /etc/rc.d/rc.powersaving ]; then
                    /etc/rc.d/rc.powersaving
                fi
                
                EOL
                fi
                
                rm powertop.html
                Last edited by gens; 12 January 2015, 04:35 PM.

                Comment


                • #18
                  Thanks

                  Comment


                  • #19
                    Originally posted by drago01 View Post
                    If you mean s3tc no and no ... either of the above two uses it.
                    yes you did understand me right, thanks

                    Comment


                    • #20
                      Originally posted by gens View Post
                      just did it for slackware, as that is what i use
                      to fit it for another distro one wound need to change where the script goes to be executed at boot

                      it requires root priviledges
                      Code:
                      #/bin/sh
                      
                      echo "This script will create /etc/rc.d/rc.powersave and add it to boot"
                      echo "It uses powertop's html output to make a script that will turn on powersaving mode for some devices"
                      echo "Make sure to run it only once per computer, as powertop will output only for devices not currently in powersave mode"
                      
                      if [[ ! -x /usr/sbin/powertop ]]
                      then
                      echo
                      echo "powertop binary not found"
                      exit 1
                      fi
                      
                      if [[ `powertop --version | grep -c versionv2.4` -eq 0 ]]
                      then
                      echo
                      echo "script is currently only for powertop version 2.4"
                      echo "installed version is" `powertop --version`
                      exit 1
                      fi
                      
                      cd /tmp
                      powertop --html
                      
                      # make a script from the .html that powertop made
                      echo "#/bin/sh" > /etc/rc.d/rc.powersaving
                      grep 'echo ' powertop.html | sed -e 's/.*\(echo.*\);.*/\1/g' -e 's/\&gt\;/\>/g' | grep -v "/sys/bus/usb/devices" >> /etc/rc.d/rc.powersaving
                      chmod +x /etc/rc.d/rc.powersaving
                      
                      # add the script to rc.local
                      if [[ $(grep -c rc.powersaving /etc/rc.d/rc.local) -eq 0 ]]
                      then
                      cat >> /etc/rc.d/rc.local <<EOL
                      
                      if [ -x /etc/rc.d/rc.powersaving ]; then
                          /etc/rc.d/rc.powersaving
                      fi
                      
                      EOL
                      fi
                      
                      rm powertop.html
                      Just keep in mind that powertop2tuned is a tool that does the same thing as your script, but easily installable through the Fedora repositories, and integrated into tuned. tuned is what you use in Fedora instead of tlp, in every other distro you must use tlp, or your script, to achieve best results.

                      Comment

                      Working...
                      X