TLP na desktop.

Dotazy nebo názory k distribuci Linux Mint obecně
Odpovědět
Zpráva
Autor
Uživatelský avatar
Ventero1
Vezír Mintu
Příspěvky: 739
Registrován: 31 říj 2016, 14:17
Bydliště: Sokolov

TLP na desktop.

#1 Příspěvek od Ventero1 » 02 zář 2019, 18:43

Ma to smysl? Nebo to ma vyznam jen u ntb?
Zvuky jsou mantrami a myšlenky moudrostí, prostě proto, že se mohou objevovat ...

Uživatelský avatar
redhawk
Guru Mintu
Příspěvky: 3005
Registrován: 12 led 2016, 19:14
Bydliště: ako kedy

Re: TLP na desktop.

#2 Příspěvek od redhawk » 02 zář 2019, 19:37

Ventero1 píše:
02 zář 2019, 18:43
Ma to smysl? Nebo to ma vyznam jen u ntb?
na desktope jedine ak je to nejake htpc alebo mini pc ktore ide 24/7
inak je to primarne kvoli napajaniu zo siete / baterie.
ale daju sa tym lahsie upravit nastavenia napajania (antix a mx linux to ma by default instalovane)
Pravděpodobně kecám.

Uživatelský avatar
Ventero1
Vezír Mintu
Příspěvky: 739
Registrován: 31 říj 2016, 14:17
Bydliště: Sokolov

Re: TLP na desktop.

#3 Příspěvek od Ventero1 » 02 zář 2019, 21:16

Tedy, ze v techto distrech to uz nemusim instalovat a pripadne jen konfigurovat? Je nekde nejaky pruvodce konfigurace tlp, popr. nejaka gui nadstavba?
Zvuky jsou mantrami a myšlenky moudrostí, prostě proto, že se mohou objevovat ...

Uživatelský avatar
redhawk
Guru Mintu
Příspěvky: 3005
Registrován: 12 led 2016, 19:14
Bydliště: ako kedy

Re: TLP na desktop.

#4 Příspěvek od redhawk » 02 zář 2019, 22:44

Ventero1 píše:
02 zář 2019, 21:16
Tedy, ze v techto distrech to uz nemusim instalovat a pripadne jen konfigurovat? Je nekde nejaky pruvodce konfigurace tlp, popr. nejaka gui nadstavba?
ne, v antixe a v mx su standardne spustene ako ac power (napajanie zo siete)
overenie v terminali:

Kód: Vybrat vše

sudo tlp-stat
ak nie je nainstalovany:

Kód: Vybrat vše

acer@galliumos:~$ sudo tlp-stat
[sudo] password for acer: 
sudo: tlp: command not found
acer@galliumos:~$ 
ak existuje vypise stav

Kód: Vybrat vše

acer@galliumos:~$ sudo tlp-stat
--- TLP 1.2.2 --------------------------------------------

+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
CPU_HWP_ON_AC=balance_performance
CPU_HWP_ON_BAT=balance_power
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=power
DISK_DEVICES="nvme0n1 sda"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
AHCI_RUNTIME_PM_TIMEOUT=15
RADEON_POWER_PROFILE_ON_AC=default
RADEON_POWER_PROFILE_ON_BAT=default
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto
WIFI_PWR_ON_AC=off
WIFI_PWR_ON_BAT=on
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_AC=0
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
USB_AUTOSUSPEND=1
USB_BLACKLIST_BTUSB=0
USB_BLACKLIST_PHONE=0
USB_BLACKLIST_PRINTER=1
USB_BLACKLIST_WWAN=0
RESTORE_DEVICE_STATE_ON_STARTUP=0
NATACPI_ENABLE=1
TPACPI_ENABLE=1
TPSMAPI_ENABLE=1

+++ System Info
System         = GOOGLE 1.0 Gnawty
BIOS           = MrChromebox
Release        = Ubuntu 18.04.3 LTS
Kernel         = 4.16.18-galliumos #1 SMP PREEMPT Sun Jun 23 04:14:45 UTC 2019 x86_64
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-4.16.18-galliumos root=UUID=37009adb-5f60-4ea1-b306-be78d0e95ff5 ro quiet splash tpm_tis.interrupts=0 acpi_osi=Linux gpiolib.acpi_lookup_can_try_crs=1 vt.handoff=1
Init system    = systemd v237
Boot mode      = UEFI

+++ TLP Status
State          = enabled
RDW state      = enabled
Last run       = 22:42:10,     20 sec(s) ago
Mode           = battery
Power source   = battery

+++ Processor
CPU model      = Intel(R) Celeron(R) CPU  N2840  @ 2.16GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq  =   499800 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq  =  2582300 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq  =   499800 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq  =  2582300 [kHz]

/sys/devices/system/cpu/intel_pstate/min_perf_pct      =  19 [%]
/sys/devices/system/cpu/intel_pstate/max_perf_pct      = 100 [%]
/sys/devices/system/cpu/intel_pstate/no_turbo          =   0
/sys/devices/system/cpu/intel_pstate/turbo_pct         =  20 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates       =  26

x86_energy_perf_policy: program not installed.

/sys/module/workqueue/parameters/power_efficient       = Y
/proc/sys/kernel/nmi_watchdog                          = 0

+++ Undervolting
PHC kernel not available.

+++ Temperatures
CPU temp               =    59 [°C]
Fan speed              = (not available)

+++ File System
/proc/sys/vm/laptop_mode               =     2
/proc/sys/vm/dirty_writeback_centisecs =  6000
/proc/sys/vm/dirty_expire_centisecs    =  6000
/proc/sys/vm/dirty_ratio               =    20
/proc/sys/vm/dirty_background_ratio    =    10

+++ Storage Devices
Devices = nvme0n1 sda

/dev/nvme0n1: not present.

/dev/sda: not present.

+++ AHCI Link Power Management (ALPM)
No AHCI-enabled host controller detected.

+++ Intel Graphics
/sys/module/i915/parameters/enable_dc        = -1 (use per-chip default)
/sys/module/i915/parameters/enable_fbc       =  0 (disabled)
/sys/module/i915/parameters/enable_psr       =  0 (disabled)
/sys/module/i915/parameters/modeset          = -1 (use per-chip default)

/sys/class/drm/card0/gt_min_freq_mhz         =   187 [MHz]
/sys/class/drm/card0/gt_max_freq_mhz         =   792 [MHz]
/sys/class/drm/card0/gt_boost_freq_mhz       =   792 [MHz]

+++ Wireless
bluetooth = on
wifi      = on
wwan      = none (no device)

hci0(btusb)                   : bluetooth, not connected
wlp1s0(iwlwifi)               : wifi, connected, power management = on

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save            = 1
/sys/module/snd_hda_intel/parameters/power_save_controller = Y

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default

+++ Runtime Power Management
Device blacklist = (not configured)
Driver blacklist = amdgpu mei_me nouveau nvidia pcieport radeon (default)

/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, iosf_mbi_pci)
/sys/bus/pci/devices/0000:00:02.0/power/control = auto (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:00:1b.0/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1c.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1f.0/power/control = auto (0x060100, ISA bridge, lpc_ich)
/sys/bus/pci/devices/0000:01:00.0/power/control = auto (0x028000, Network controller, iwlwifi)

+++ USB
Autosuspend         = enabled
Device whitelist    = (not configured)
Device blacklist    = (not configured)
Bluetooth blacklist = disabled
Phone blacklist     = disabled
WWAN blacklist      = disabled

Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 003 ID 8087:0a2a control = auto, autosuspend_delay_ms = 2000 -- Intel Corp.  (btusb)
Bus 001 Device 002 ID 1bcf:2c67 control = auto, autosuspend_delay_ms = 2000 -- Sunplus Innovation Technology Inc.  (uvcvideo)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)

+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = inactive (no kernel support)
tpacpi-bat = inactive (laptop not supported)
tp-smapi   = inactive (laptop not supported)

+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer                   = LGC
/sys/class/power_supply/BAT0/model_name                     = AC14B18
/sys/class/power_supply/BAT0/cycle_count                    =    159
/sys/class/power_supply/BAT0/charge_full_design             =   3220 [mAh]
/sys/class/power_supply/BAT0/charge_full                    =   2637 [mAh]
/sys/class/power_supply/BAT0/charge_now                     =   2784 [mAh]
/sys/class/power_supply/BAT0/current_now                    =    419 [mA]
/sys/class/power_supply/BAT0/status                         = Discharging


Charge                                                      =  105.6 [%]
Capacity                                                    =   81.9 [%]

+++ Recommendations
* Install smartmontools for disk drive health info
___________

https://www.linux-mint-czech.cz/2019/08 ... notebooky/
graficka nadstavba je :D

popis konfiguracie je u autorov
https://linrunner.de/en/tlp/docs/tlp-configuration.html
Pravděpodobně kecám.

Uživatelský avatar
redhawk
Guru Mintu
Příspěvky: 3005
Registrován: 12 led 2016, 19:14
Bydliště: ako kedy

Re: TLP na desktop.

#5 Příspěvek od redhawk » 02 zář 2019, 23:32

Ventero1 píše:
02 zář 2019, 21:16
Tedy, ze v techto distrech to uz nemusim instalovat a pripadne jen konfigurovat? Je nekde nejaky pruvodce konfigurace tlp, popr. nejaka gui nadstavba?
nedalo mi to.
mx 18.3 vyhodi stat:

Kód: Vybrat vše

mx@g3240:~
$ sudo tlp-stat
[sudo] heslo pre používateľa mx: 
--- TLP 1.1 --------------------------------------------

+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
CPU_HWP_ON_AC=balance_performance
CPU_HWP_ON_BAT=balance_power
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=power
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
AHCI_RUNTIME_PM_TIMEOUT=15
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto
WIFI_PWR_ON_AC=off
WIFI_PWR_ON_BAT=on
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_AC=0
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
USB_AUTOSUSPEND=1
USB_BLACKLIST_BTUSB=1
USB_BLACKLIST_PHONE=0
USB_BLACKLIST_PRINTER=1
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=1

+++ System Info
System         = 
BIOS           = P2.30
Release        = MX 18.3 Continuum
Kernel         = 4.19.0-1-amd64 #1 SMP Debian 4.19.5-2~mx17+1 (2018-12-12) x86_64
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-4.19.0-1-amd64 root=UUID=b7c620d3-8eb3-4e0f-899c-4c91e0304b8f ro quiet splash
Init system    = sysvinit
Boot mode      = BIOS (CSM, Legacy)

+++ TLP Status
State          = enabled
Last run       = 23:29:33,    135 sec(s) ago
Mode           = AC
Power source   = unknown

+++ Processor
CPU model      = Intel(R) Pentium(R) CPU G3240 @ 3.10GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq  =  3100000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq  =  3100000 [kHz]

/sys/devices/system/cpu/intel_pstate/min_perf_pct      =  25 [%]
/sys/devices/system/cpu/intel_pstate/max_perf_pct      = 100 [%]
/sys/devices/system/cpu/intel_pstate/no_turbo          =   1
/sys/devices/system/cpu/intel_pstate/turbo_pct         =   0 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates       =  24

x86_energy_perf_policy: program not installed.

/sys/module/workqueue/parameters/power_efficient       = N
/proc/sys/kernel/nmi_watchdog                          = 0

+++ Undervolting
PHC kernel not available.

+++ Temperatures
CPU temp               =    35 [°C]
Fan speed              = (not available)

+++ File System
/proc/sys/vm/laptop_mode               =     0
/proc/sys/vm/dirty_writeback_centisecs =  1500
/proc/sys/vm/dirty_expire_centisecs    =  1500
/proc/sys/vm/dirty_ratio               =    20
/proc/sys/vm/dirty_background_ratio    =    10

+++ Storage Devices
/dev/sda:
  Model     = KINGSTON SV300S37A120G                  
  Firmware  = 521ABBF0
  APM Level = 254
  Status    = active/idle
  TRIM      = supported
  Scheduler = mq-deadline

  Runtime PM: control = on, autosuspend_delay = (not available)

  SMART info:
      9 Power_On_Hours_and_Msec   =    14050 [h]
     12 Power_Cycle_Count         =     1310 
    189 Airflow_Temperature_Cel   =       28 [°C]
    194 Temperature_Celsius       =       28 (Min/Max 18/48)  [°C]

/dev/sdb:
  Model     = TOSHIBA MK7575GSX                       
  Firmware  = GT001C  
  APM Level = 254
  Status    = active/idle
  Scheduler = mq-deadline

  Runtime PM: control = on, autosuspend_delay = (not available)

  SMART info:
      4 Start_Stop_Count          =     4116 
      5 Reallocated_Sector_Ct     =      168 
      9 Power_On_Hours            =    16400 [h]
     12 Power_Cycle_Count         =     2132 
    190 Airflow_Temperature_Cel   =       30 [°C]
    191 G-Sense_Error_Rate        =       13 
    193 Load_Cycle_Count          =   146711 


+++ AHCI Link Power Management (ALPM)
/sys/class/scsi_host/host0/link_power_management_policy  = med_power_with_dipm
/sys/class/scsi_host/host1/link_power_management_policy  = med_power_with_dipm
/sys/class/scsi_host/host2/link_power_management_policy  = med_power_with_dipm
/sys/class/scsi_host/host3/link_power_management_policy  = med_power_with_dipm
/sys/class/scsi_host/host4/link_power_management_policy  = med_power_with_dipm

+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:00:1f.2/ata1/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata2/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata3/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata4/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata5/power/control = on

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = performance

+++ Wireless
bluetooth = none (no device)
wifi      = none (no device)
wwan      = none (no device)

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save            = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N

+++ Runtime Power Management
Device blacklist = (not configured)
Driver blacklist = amdgpu nouveau nvidia radeon (default)

/sys/bus/pci/devices/0000:00:00.0/power/control = on   (0x060000, Host bridge, hsw_uncore)
/sys/bus/pci/devices/0000:00:01.0/power/control = on   (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = on   (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:00:16.0/power/control = on   (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:1a.0/power/control = on   (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1b.0/power/control = on   (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1c.0/power/control = on   (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.2/power/control = on   (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1d.0/power/control = on   (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on   (0x060100, ISA bridge, lpc_ich)
/sys/bus/pci/devices/0000:00:1f.2/power/control = on   (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:1f.3/power/control = on   (0x0c0500, SMBus, i801_smbus)
/sys/bus/pci/devices/0000:01:00.0/power/control = on   (0x030000, VGA compatible controller, nvidia)
/sys/bus/pci/devices/0000:01:00.1/power/control = on   (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:03:00.0/power/control = on   (0x020000, Ethernet controller, alx)

+++ USB
Autosuspend         = enabled
Device whitelist    = (not configured)
Device blacklist    = (not configured)
Bluetooth blacklist = enabled
Phone blacklist     = disabled
WWAN blacklist      = enabled

Bus 004 Device 002 ID 8087:8000 control = auto, autosuspend_delay_ms =     0 -- Intel Corp.  (hub)
Bus 004 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =     0 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 002 ID 8087:8008 control = auto, autosuspend_delay_ms =     0 -- Intel Corp.  (hub)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =     0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =     0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 003 ID 1a40:0101 control = auto, autosuspend_delay_ms =     0 -- Terminus Technology Inc. Hub (hub)
Bus 001 Device 002 ID 046d:c050 control = on,   autosuspend_delay_ms =  2000 -- Logitech, Inc. RX 250 Optical Mouse (usbhid)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =     0 -- Linux Foundation 2.0 root hub (hub)

+++ Battery Status
No batteries detected.

mx@g3240:~
$ 
Pravděpodobně kecám.

Odpovědět