精华内容
下载资源
问答
  • WWW Power Save和Legacy Power Save的一些资料
  • 1. Ubuntu 16.04 cpu 工作为powersave 并且更改了重启之后会恢复powersave 刚安装完有时候CPU频率设置得非常低(powersave模式),用cpufrequtils更改为performance之后重启恢复,使用sysftutils更改启动参数为...

    1. Ubuntu 16.04 cpu 工作为powersave 并且更改了重启之后会恢复powersave

    刚安装完有时候CPU频率设置得非常低(powersave模式),用cpufrequtils更改为performance之后重启恢复,使用sysftutils更改启动参数为performance之后仍然会变为powersave

    2. 常用命令

    2.1. 查看cpu当前工作的频率模式

    cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    

    2.2. 查看cpu支持的频率模式

    cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
    

    2.3. 查看cpu当前频率

    cat /proc/cpuinfo | grep MHz
    

    3. CPU默认powersave的原因分析

    本方法只支持用intel_pstate驱动调节的intel cpu

    其实是由于ondemand这个服务的原因

    ondemand, userspace, performance 分别是linux系统中三种CPU频率调节方式。

    ondemand指的是平时以低速方式运行,当系统负载提高时候自动提高频率。以这种模式运行不会因为降频造成性能降低,同时也能节约电能和降低温度。

    以下为ondemand服务启动执行的动作:

    cat /etc/init.d/ondemand
    
    #! /bin/sh
    ### BEGIN INIT INFO
    # Provides:          ondemand
    # Required-Start:    $remote_fs $all
    # Required-Stop:
    # Default-Start:     2 3 4 5
    # Default-Stop:
    # Short-Description: Set the CPU Frequency Scaling governor to "ondemand"
    ### END INIT INFO
    
    # Don't run if we're going to start an Android LXC container:
    [ ! -f /etc/init/lxc-android-config.conf ] || exit 0
    
    PATH=/sbin:/usr/sbin:/bin:/usr/bin
    
    . /lib/init/vars.sh
    . /lib/lsb/init-functions
    
    AVAILABLE="/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors"
    DOWN_FACTOR="/sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor"
    
    case "$1" in
        start)
        	start-stop-daemon --start --background --exec /etc/init.d/ondemand -- background
            ;;
        background)
    	sleep 60 # probably enough time for desktop login
    
    	[ -f $AVAILABLE ] || exit 0
    	read governors < $AVAILABLE
    	case $governors in
    		*interactive*)
    			GOVERNOR="interactive"
    			break
    			;;
    		*ondemand*)
    			GOVERNOR="ondemand"
    			case $(uname -m) in
    				ppc64*)
    					SAMPLING=100
    				;;
    			esac
    			break
    			;;
    		*powersave*)
    			GOVERNOR="powersave"
    			break
    			;;
    		*)
    			exit 0
    			;;
    	esac
    
    	for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
    	do
    		[ -f $CPUFREQ ] || continue
    		echo -n $GOVERNOR > $CPUFREQ
    	done
    	if [ -n "$SAMPLING" ] && [ -f $DOWN_FACTOR ]; then
    		echo -n $SAMPLING > $DOWN_FACTOR
    	fi
    	;;
        restart|reload|force-reload)
            echo "Error: argument '$1' not supported" >&2
            exit 3
            ;;
        stop)
            ;;
        *)
            echo "Usage: $0 start|stop" >&2
            exit 3
            ;;
    esac
    
    

    sleep 60这里可以看出 ondemand是在服务启动60s之后再执行动作的,执行的动作从case $governors里面可以看出有三种结果:

    • 如果AVAILABLE包含inactive,那么GOVERNOR置为inactive
    • 如果AVAILABLE包含ondemand,那么GOVERNOR置为ondemand
    • 如果AVAILABLE包含powersave,那么GOVERNOR置为powersave

    然而现在intel cpu用的频率调节驱动都为intel_pstate,支持的频率调节模式只有两个,为performance和powersave,那么按照ondemand的工作模式服务启动60s之后就会直接将GOVERNOR置为powersave。

    这就是为什么我们用了cpufrequtils调节了之后,并且用systfutils加入了启动调节之后,过了一会仍然恢复powersave的原因

    4. 更改策略

    4.1. 首先需要将ondemand取消掉

    systemctl stop ondemand
    systemctl disable ondemand
    

    4.2. 然后更改sysfutils启动文件/etc/sysfs.conf

    有多少个逻辑cpu就添加多少行

    vim /etc/sysfs.conf
    
    devices/system/cpu/cpu0/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu1/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu2/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu3/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu4/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu5/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu6/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu7/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu8/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu9/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu10/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu11/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu12/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu13/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu14/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu15/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu16/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu17/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu18/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu19/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu20/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu21/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu22/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu23/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu24/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu25/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu26/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu27/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu28/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu29/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu30/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu31/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu32/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu33/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu34/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu35/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu36/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu37/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu38/cpufreq/scaling_governor = performance
    devices/system/cpu/cpu39/cpufreq/scaling_governor = performance
    

    4.3. 重启

    reboot
    
    展开全文
  • Powersave Applet-开源

    2021-05-13 23:26:27
    Powersave Applet由一个脚本组成,该脚本执行了Intel PowerTop和lesswatts.org提供的各种技巧,从而可以在笔记本计算机靠电池供电时降低功耗。 还有一个小程序,在Gnome或KDE中提供了一个不错的状态图标。
  • Android wifi powersave

    2018-09-18 10:40:00
    使用高通平台的查看power save的功能。 一般是控制WCNSS_qcom_cfg.ini文件的两个参数gEnableBmps,gEnableImps。 BMPS: Beacon mode power save,连接wifi时,控制wifi功耗 IMPS : Idle mode power save,没连接...

    使用高通平台的查看power save的功能。

    一般是控制WCNSS_qcom_cfg.ini文件的两个参数gEnableBmps,gEnableImps。
    
    BMPS: Beacon mode power save,连接wifi时,控制wifi功耗
    
    IMPS :  Idle mode power save,没连接wifi时,控制wifi功耗
    
    使用工具测量电池电流大小。
    
    gEnableBmps=1,亮屏电流在0.18A左右,最小0.17A,最大0.19.瞬间会有0.21的电流,0.26A。
    
    gEnableBmps=0, 亮屏电流,0.21-0.22A。
    
    gEnableImps=0,0.20-0.22A ,瞬间会有0.23,0.28A电流。
    
    gEnableImps=1,0.15-0.16 , 瞬间电流最大,0.18,0.22A。
    
    没加载wlan模块, 0.16-0.17A。
    展开全文
  • modprobe.d / powersave.conf 为snd_hda_intel启用power_save=1 sysctl.d / powersave.conf 禁用NMI看门狗 设置笔记本电脑模式 增加脏写回时间 rules.d / 50-network-powersave.rules 在必须由第三方命令启用的...
  • idea power save mode

    万次阅读 2018-01-16 14:12:12
    power save mode 开启后代码不提示, 省电模式(经典模式:适用低配版电脑)
    power save mode 开启后代码不提示,   省电模式(经典模式:适用低配版电脑)
    
    展开全文
  • 无线power save

    千次阅读 2015-05-06 14:58:51
    对于无线客户端,节电非常重要,除了传统的节电,还有WMM节电,对于802.11n的推出,还有一种特殊的控制空间流的节电方式,具体大家看看下面吧: ... Power Save mode:客户端在两个信标帧之间进入休眠状态
    对于无线客户端,节电非常重要,除了传统的节电,还有WMM节电,对于802.11n的推出,还有一种特殊的控制空间流的节电方式,具体大家看看下面吧: 
    
     
    (1)Legacy 802.11 Power Save
                 Active mode:客户端总处于上电状态,默认模式。
                  Power Save mode:客户端在两个信标帧之间进入休眠状态以节电,可选模式。

    (2)WMM Power Save、
                 客户端和AP都要通过Wi-Fi CERTIFIED WMM-PS认证。
                  实时性要求高的业务必须支持WMM-PS,这是因为WMM-PS的设计目的之一就是减小实时性要求高的业务在电源管理过程中的延迟。

    (3)802.11n Power Save
               SMPS
               PSMP
     
    原文如下:

    1. Legacy Power Save Mode (Pre 802.11e, now rolled into 802.11-2007)There are only two power save modes.
    • Active mode
    o This is when the STA is awake and the AP isn’t
    buffering data for the STA. This can be referred to
    as Constant Aware Mode. In this state the STA
    device saves no battery power.

    • Power save mode
    o When in power save mode, it doesn’t mean that the
    STA is asleep. It just means that it is in a mode to
    conserve battery life.

    Awake State
    • The STA can send and receive frames.
    Doze state
    • The STA radio cannot send or receive frames.

    注意:关于传统节电方式legacy Power Save Mode
    • The Power Management bit(电源 管理比特位), found in the header of every
    Wi-Fi frame is used to notify the AP of the STA’s power
    management state. If the bit is set to 1, the STA is in
    Power Save Mode and the AP will buffer data. If the bit is
    set to 0, the STA is not in Power Save Mode.
    • The More Data bit(更多 数据比特位), found in the header of every Wi-Fi
    frame, is used only by the AP (it’s always 0 when sent by a
    STA). When the AP is delivering buffered data to a STA,
    the AP sets the More Data bit to 1 until the buffer is empty.
    When the buffer is empty, the More Data bit is set to 0.
    • Inside of every Becon is a Traffic Indication Map (TIM)(流量指示图).
    The TIM is a list of STA’s that have data buffered. Each
    STA is referred to not by MAC address in the Beacon, but
    by Association Identifier (AID). This is because MAC
    addresses are too large and would make for large Beacon
    frames. AID’s are much smaller and more efficient.
    • ATIMs are TIMs for an Ad Hoc network.(用于adhoc的特殊TIM,ATIM)
    • Power Save Poll (PS-Poll) – Used in legacy power save
    mode. When a STA sees its AID in a Beacon frame, it will
    Tx a PS-Poll frame to the AP, indicating it is ready to
    receive frame(s).

    2. 802.11e (802.11-2007) Power Save Mode (WMM-PS)
    Automatic Power Save Delivery (APSD)
    • STAs do not use PS-Poll frames to retrieve buffered data
    • STAs switch from Power Save Mode to Active Mode when
    they want to retrieve buffered data. This is done by
    sending a frame (Any data frame or Null Data frame) to flip
    the Power Management bit. When the STA is awake, the
    AP sends all data in the buffer.

    3. HT Power Save Modes

    Spatial Multiplexing Power Save (SMPS)
    • 802.11n (HT-OFDM) uses multiple data streams to
    increase throughput. One form of 11n power save, SMPS,
    can selectively shut down all but one radio. This conserves
    battery life so that 11n STAs can mimic the battery
    performance of legacy single radio devices in active mode.

    Power Save Multi Poll (PSMP)
    • Similar to 802.11-2007’s APSD

    展开全文
  • WIFI power save

    千次阅读 2013-01-24 20:26:35
    如果将某个访问类别的此属性值设置为“Legacy Power Save”(传统节能),则可根据 IEEE 802.11 规范实现该访问类别的节能操作。 这是默认行为。 如果将某个访问类别的此属性值设置为“WMM Power Save (UAPSD)”...
  • 使用高通平台的查看power save的功能。 一般是控制WCNSS_qcom_cfg.ini文件的两个参数gEnableBmps,gEnableImps。 BMPS: Beacon mode power save,连接wifi时,控制wifi功耗 IMPS : Idle mode power save,没连接...
  • 查看当前governor cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave或者performance 在某些centos上没有cpufreq文件夹。可以尝试使用如下命令: cpupower frequency-info
  • 1.安装好phpstorm之后 发现代码高亮和函数自动提示都失效了 网上有人说可能是Power save mode的原因开始没找到这个设置在哪 后来在底部面板的信息提示处发现有一条系统消息: 17:04:38 Power save mode is on ...
  • Powersave-开源

    2021-05-13 22:51:31
    提供电池,温度,交流电,cpufreq(SpeedStep,Powernow!)控制和监视。 通过易于扩展的外壳钩子正确悬挂到磁盘/内存并待机。 平等地支持APM和ACPI机器。 适用于笔记本电脑和工作站。
  • disable powersave需要修改WCNSS_qcom_cfg.ini中的以下参数: gEnableImps=0 gEnableBmps=0 如果不行,再增加下面俩个参数: gEnablePowerSaveOffload=0 gAutoBmpsTimerValue =0 步骤: #1、adb root;adb remount ...
  • Android Studio:Power Save Mode

    千次阅读 2016-05-24 09:40:19
    Android Studio:power save mode是 Android studio 省电模式,开启之后,代码不会自动提示,无法直观的看出那个类和方法被引用,代码自检查也不会生效。
  • powersave/performance governor study

    千次阅读 2013-11-27 15:44:56
    这个governor是最省电模式,即cpu中所有的core都处在最低频率运行。如果是存在cpu hotplug driver的话,那么还可以更加的省电,即只... 1、static int __init cpufreq_gov_powersave_init(void) static int __init c
  • powersave tool-开源

    2021-05-03 09:56:46
    图形界面可配置笔记本电脑的节能功能。 只需单击几下,您就可以配置CPU频率并打开或关闭无线和蓝牙板。 bash + zenity的原型,如果被接受,它将用另一种语言重写
  • 80211 power save

    2020-03-26 18:24:57
    https://wireless.wiki.kernel.org/en/developers/documentation/ieee80211/power-savings Power Savings on IEEE-802.11...IEEE-802.11 was designed with power saving in mind for stations. This section tri...
  • file—power save model 如果不行的话,重启几次。
  • Entering power save mode。是进入省电模式的意思。 问题很小:cpu供电电源自我保护了。把机箱内电源插头拔下再插上就行了,开机箱,是插在主板上的插头,一个4口的,一个是20口的。都拔下,再插上。也可以试着将...
  • BTHF Power Save

    2013-03-14 10:05:21
    实现蓝牙接听,蓝牙节能,蓝牙省电,自动关闭蓝牙等功能
  • WMMTM (including WMMTM Power Save) Specification Wi-Fi Alliance Version 1.1
  • pycharm updating indices ingdexing paused during power save model并且无法run问题很奇怪,当天电脑卡成类似这种颜色的,,很奇怪,居然不是蓝屏之后pycharm 出现问题,百度了,Google了,解决方法均为重装...
  • Screen2Powersave-开源

    2021-05-03 11:48:53
    立即保存屏幕/显示器电源的工具。 让我们为地球的环境做点事。

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 36,822
精华内容 14,728
关键字:

powersave