[Topic DIscussion] 电源管理内核配置
Tofloor
poster avatar
jiutian123
deepin
2022-06-01 03:14
Author

Linux 内核配置

启用电源管理的最小化内核设置

要在 Linux 内核中启用适当的电源管理功能,请启用以下设置:

KERNEL Minimum kernel setup for Power Management

Power management and ACPI options --->
  -*- Device power management core functionality
  [*] ACPI (Advanced Configuration and Power Interface) Support --->
    <*> AC Adapter
    <*> Battery
    -*- Button
    -*- Video
    <*> Fan
    <*> Processor
    <*> Thermal Zone
  
  [*] CPU Frequency scaling --->
        Default CPUFreq governor (ondemand)  --->
    -*- 'performance' governor
    <*> 'powersave' governor
    <*> 'userspace' governor for userspace frequency scaling
    -*- 'ondemand' cpufreq policy governor
    <*> 'conservative' cpufreq governor
    <*> ACPI Processor P-States driver

Do not forget to enable the CPU frequency scaling driver for the CPU. For the SandyBridge and higher Intel core series of processors, userspace , ondemand , and conservative governors are unnecessary; performance should be selected as the default, and Intel P state control should be selected instead of ACPI Processor P-States driver . ^[1]^

In this case, the userspace , ondemand , and conservative governors are unnecessary. The performance governor should be selected as the default. ^[2]^

KERNEL 英特尔 Sandy Bridge 架构和更新的处理器的内核设置

Power management and ACPI options --->
  -*- Device power management core functionality
  [*] ACPI (Advanced Configuration and Power Interface) Support --->
    <*> AC Adapter
    <*> Battery
    -*- Button
    -*- Video
    <*> Fan
    <*> Processor
    <*> Thermal Zone
  
  [*] CPU Frequency scaling --->
        Default CPUFreq governor (performance)  --->
    -*- 'performance' governor
    <*> Intel P state control

Enabling additional drivers

For Intel processors used in laptops since 2011 you may want to enable additional advanced features - Thermal and powercap sysfs.

Thermal sysfs driver

KERNEL Generic Thermal sysfs driver

Device Drivers --->
  -*- Generic Thermal sysfs driver --->
    (0)   Emergency poweroff delay in milli-seconds                                                                            
    [*]   Expose thermal sensors as hwmon device                                                                              
    -*-   Enable writable trip points                                                                                        
          Default Thermal governor (step_wise)  --->                                                                         
    [*]   Fair-share thermal governor                                                                                         
    -*-   Step_wise thermal governor                                                                                          
    -*-   Bang Bang thermal governor                                                                                          
    -*-   User_space thermal governor                                                                                         
    [ ]   Thermal emulation mode support
    [*]   Power allocator thermal governor   
       Intel PowerClamp idle injection driver
       X86 package temperature thermal driver
    < >   Intel SoCs DTS thermal driver                                                                                        
          ACPI INT340X thermal drivers  --->                                                                                   
              ACPI INT340X thermal drivers
       Intel PCH Thermal Reporting Driver

powercap sysfs driver

Additionally, you can enable Running Average Power Limit – RAPL technology. Both PowerTOP and turbostat utilities are aware of RAPL. For RAPL enablement use:

KERNEL Generic powercap sysfs driver

Device Drivers --->
  [*] Generic powercap sysfs driver --->
       Intel RAPL Support

内核中帮助项有的找不到位置, 可能很久没更新了 里面的选项可以导出来么?怎么导出?知道的说一声,就是导出如上图树形结构的

Reply Favorite View the author
All Replies

No replies yet