Linux Projektvorstellung: TLP – Linux Stromsparen

Linux Betriebssystem

linrunner

Ubuntuversteher
Themenstarter
Registriert
22 Juni 2007
Beiträge
13.276
Nachdem im Forum öfters nachgefragt wird, wie man Linux die Feinheiten des Stromsparens beibringt, habe ich mich vor einiger Zeit entschlossen, meine Skriptsammlung in eine allgemein benutzbare Form zu bringen. Das Ergebnis möchte ich Euch an dieser Stelle vorstellen.

Dokumentation ist auf der offiziellen Website https://linrunner.de/tlp/ zu finden (die Infos in unserem Wiki werden von mir nicht mehr gepflegt und sind veraltet).

Fragen und Probleme einfach hier im Thread posten.

Für die erste Analyse benötige ich bitte stets den kompletten Output von

Code:
sudo tlp-stat
Anmerkung: ich fordere oft in der weiteren Analyse Teilausgaben an - das sollt ihr jedoch nicht selbstständig tun! Immer zuerst die vollständige Ausgabe.

Bitte auch die FAQ beachten!

Rückmeldungen der Art "alles funktioniert" sind natürlich auch gern gesehen ... :cool:
 
Zuletzt bearbeitet:
logisch :) :
Code:
--- TLP 0.3.6 --------------------------------------------

+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
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_SCALING_GOVERNOR_ON_AC=ondemand
CPU_SCALING_GOVERNOR_ON_BAT=ondemand
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
WIFI_PWR_ON_AC=1
WIFI_PWR_ON_BAT=5
WOL_DISABLE=Y
SOUND_POWER_SAVE=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_BAT=1
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
USB_AUTOSUSPEND=1
RESTORE_DEVICE_STATE_ON_STARTUP=0
DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"
DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
START_CHARGE_THRESH_BAT0=86
STOP_CHARGE_THRESH_BAT0=93
START_CHARGE_THRESH_BAT1=86
STOP_CHARGE_THRESH_BAT1=93
DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT="wwan"
DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT="wifi"
DEVICES_TO_DISABLE_ON_DOCK="wifi wwan"
DEVICES_TO_ENABLE_ON_UNDOCK="wifi wwan"

+++ System Info
System = LENOVO ThinkPad T400 2765D2G
BIOS = 7UET91WW (3.21 )
Release = Ubuntu 12.04 LTS
Kernel = 3.2.0-25-generic x86_64
/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-3.2.0-25-generic root=UUID=33a221cd-4e42-4a86-bf14-4bc8bef97ebd ro quiet splash vt.handoff=7

+++ System Status
TLP power save = enabled
power source = ac

+++ Processor
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq =   800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq =  2401000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies =  2401000 2400000 1600000  800000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq =   800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq =  2401000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies =  2401000 2400000 1600000  800000 [kHz]

/sys/devices/system/cpu/sched_mc_power_savings = 0
/proc/sys/kernel/nmi_watchdog = 0

+++ Undervolting
PHC kernel not available.

+++ ThinkPad Temperatures
/proc/acpi/ibm/thermal = temperatures:    41 43 32 -1 50 -128 30 -128 36 44 36 -128 -128 -128 -128 -128
/proc/acpi/ibm/fan     = speed:         2955

+++ 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 = 60
/proc/sys/vm/dirty_background_ratio = 1
/proc/sys/fs/xfs/age_buffer_centisecs = (not available)
/proc/sys/fs/xfs/xfssyncd_centisecs = (not available)
/proc/sys/fs/xfs/xfsbufd_centisecs = (not available)

+++ Storage Devices
/dev/sda:
          Model     = SAMSUNG SSD 830 Series                  
          Firmware  = CXM03B1Q
          APM Level = none/disabled
          scheduler = cfq

        SMART info:
            5 Reallocated_Sector_Ct     =        0 
            9 Power_On_Hours            =      594 [h]
          177 Wear_Leveling_Count       =       99 [%]
          190 Airflow_Temperature_Cel   =       34 [°C]


+++ SATA Aggressive Link Power Management
/sys/class/scsi_host/host0/link_power_management_policy = max_performance
/sys/class/scsi_host/host1/link_power_management_policy = max_performance
/sys/class/scsi_host/host2/link_power_management_policy = max_performance
/sys/class/scsi_host/host3/link_power_management_policy = max_performance

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default (disabled by kernel)

+++ Intel Graphics
/sys/module/i915/parameters/powersave = 1
/sys/module/i915/parameters/i915_enable_rc6 = -1
/sys/module/i915/parameters/i915_enable_fbc = -1
/sys/module/i915/parameters/lvds_downclock = 0
/sys/module/i915/parameters/semaphores = -1

+++ Wireless
bluetooth = off (software)
wifi      = on
wwan      = off (software)

wlan0(iwlwifi): power management = off

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

+++ ThinkPad Battery (Main)
/sys/devices/platform/smapi/BAT0/manufacturer = Panasonic
/sys/devices/platform/smapi/BAT0/model = 42T5264
/sys/devices/platform/smapi/BAT0/manufacture_date = 2008-06-15
/sys/devices/platform/smapi/BAT0/first_use_date = 2008-09-16
/sys/devices/platform/smapi/BAT0/cycle_count = 139
/sys/devices/platform/smapi/BAT0/design_capacity = 56160 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity = 55430 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity = 55300 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent = 100 [%]
/sys/devices/platform/smapi/BAT0/remaining_running_time_now = not_discharging [min]
/sys/devices/platform/smapi/BAT0/remaining_charging_time = not_charging [min]
/sys/devices/platform/smapi/BAT0/force_discharge = 0
/sys/devices/platform/smapi/BAT0/power_now = 0 [mW]

/sys/devices/platform/smapi/BAT0/start_charge_thresh = 86 [%]
/sys/devices/platform/smapi/BAT0/stop_charge_thresh = 93 [%]

+++ Runtime Power Management
/sys/bus/pci/devices/0000:00:00.0/power/control = on [Host]
/sys/bus/pci/devices/0000:00:19.0/power/control = on [Ethernet]
/sys/bus/pci/devices/0000:00:1b.0/power/control = on [Audio]
/sys/bus/pci/devices/0000:03:00.0/power/control = on [Wireless]
/sys/bus/pci/devices/0000:15:00.1/power/control = on [Firewire]
/sys/bus/pci/devices/0000:15:00.2/power/control = on [SD]
/sys/bus/pci/devices/0000:15:00.4/power/control = on [Card]
/sys/bus/pci/devices/0000:15:00.5/power/control = on [Card]

+++ USB
tlp usb autosuspend = enabled
tlp usb blacklist = (not configured)

Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 1.1 root hub (hub)
Bus 004 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 1.1 root hub (hub)
Bus 005 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 1.1 root hub (hub)
Bus 006 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 1.1 root hub (hub)
Bus 007 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 1.1 root hub (hub)
Bus 008 Device 001 ID 1d6b:0001 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 1.1 root hub (hub)
Bus 001 Device 002 ID 04b3:4485 control = auto, autosuspend_delay_ms =  2000 -- IBM Corp. Serial Converter (hub)
Bus 001 Device 003 ID 17ef:1004 control = auto, autosuspend_delay_ms =  2000 -- Lenovo Integrated Webcam (uvcvideo)
Bus 001 Device 004 ID 046d:c05b control = on,   autosuspend_delay_ms =  2000 -- Logitech, Inc. M-U0004 810-001317 [B110 Optical USB Mouse] (usbhid)
 
TLP power save = enabled
TLP ist aktiv.

/sys/devices/platform/smapi/BAT0/remaining_percent = 100 [%]
/sys/devices/platform/smapi/BAT0/start_charge_thresh = 86 [%]
/sys/devices/platform/smapi/BAT0/stop_charge_thresh = 93 [%]
Die Ladeschwellen sind gesetzt. Allerdings gestatten sich manche ThinkPads bisweilen sie vorübergehend zu ignorieren – wie hier offensichtlich geschehen. Daran kann TLP nichts ändern. Es kann auch durch Rausnehmen des Akkus auftreten. Mehr dazu steht in der FAQ.
 
wie bekomme ich app-laptop/tlp-0.3.6-r1::tlp

dazu, nichtmehr unter "masked" zu stehen?

mit package.unmask Eintrag geht es nicht!

sieht so aus:

"=app-laptop/tlp-0.3.6-r1::tlp"

bitte um Hilfe!


hier ein weiterer ERROR zu TLP:

ERROR: app-laptop/tlp-0.3.3-r2 failed (depend phase):
* eutils.eclass could not be found by inherit()


System ist Sabayon9 mit Mate 1.2
 
Edit:

hier stand das von oben!

irgendwie macht mein FF gerade was er will, ich seh meine letzten Posts nichtmehr auch nach neuem Aufruf in anderem Tab. erst wenn ich im Tab f5 gedrückt hab sind sie da.

Bitte entschuldigt das doppelposting!
 
Zuletzt bearbeitet:
ist "=app-laptop/tlp-0.3.6-r1::tlp" eine neue syntax, die mir in der zeit meiner gentoo-abstinenz entgangen ist? ich benutz immer diese form: "=app-laptop/tlp-0.3.6-r1" und das hat bisher immer funktioniert. oder unterscheidet sich package.unmask von package.use?
 
Code:
x60s hannes # emerge tlp
Calculating dependencies / * ERROR: app-laptop/tlp-0.3.6-r1 failed (depend phase):
 *   eutils.eclass could not be found by inherit()
 * 
 * Call stack:
 *             ebuild.sh, line 541:  Called source '/var/lib/layman/tlp/app-laptop/tlp/tlp-0.3.6-r1.ebuild'
 *   tlp-0.3.6-r1.ebuild, line   7:  Called inherit 'eutils' 'bash-completion-r1'
 *             ebuild.sh, line 259:  Called die
 * The specific snippet of code:
 *           [ ! -e "$location" ] && die "${1}.eclass could not be found by inherit()"
 * 
 * If you need support, post the output of `emerge --info '=app-laptop/tlp-0.3.6-r1'`,
 * the complete build log and the output of `emerge -pqv '=app-laptop/tlp-0.3.6-r1'`.
 * This ebuild is from an overlay named 'tlp': '/var/lib/layman/tlp/'
 * Working directory: '/home/hannes'
 * S: '/var/tmp/portage/app-laptop/tlp-0.3.6-r1/work/tlp-0.3.6'
 * ERROR: app-laptop/tlp-0.3.4-r1 failed (depend phase):
 *   eutils.eclass could not be found by inherit()
 * 
 * Call stack:
 *             ebuild.sh, line 541:  Called source '/var/lib/layman/tlp/app-laptop/tlp/tlp-0.3.4-r1.ebuild'
 *   tlp-0.3.4-r1.ebuild, line   7:  Called inherit 'tlp'
 *             ebuild.sh, line 283:  Called qa_source '/var/lib/layman/tlp/eclass/tlp.eclass'
 *             ebuild.sh, line  72:  Called source '/var/lib/layman/tlp/eclass/tlp.eclass'
 *            tlp.eclass, line   9:  Called inherit 'eutils' 'bash-completion-r1'
 *             ebuild.sh, line 259:  Called die
 * The specific snippet of code:
 *           [ ! -e "$location" ] && die "${1}.eclass could not be found by inherit()"
 * 
 * If you need support, post the output of `emerge --info '=app-laptop/tlp-0.3.4-r1'`,
 * the complete build log and the output of `emerge -pqv '=app-laptop/tlp-0.3.4-r1'`.
 * This ebuild used the following eclasses from overlays:
 *   /var/lib/layman/tlp/eclass/tlp.eclass
 * This ebuild is from an overlay named 'tlp': '/var/lib/layman/tlp/'
 * Working directory: '/home/hannes'
 * S: '/var/tmp/portage/app-laptop/tlp-0.3.4-r1/work/tlp-0.3.4'
 * ERROR: app-laptop/tlp-0.3.3-r2 failed (depend phase):
 *   eutils.eclass could not be found by inherit()
 * 
 * Call stack:
 *             ebuild.sh, line 541:  Called source '/var/lib/layman/tlp/app-laptop/tlp/tlp-0.3.3-r2.ebuild'
 *   tlp-0.3.3-r2.ebuild, line   7:  Called inherit 'tlp'
 *             ebuild.sh, line 283:  Called qa_source '/var/lib/layman/tlp/eclass/tlp.eclass'
 *             ebuild.sh, line  72:  Called source '/var/lib/layman/tlp/eclass/tlp.eclass'
 *            tlp.eclass, line   9:  Called inherit 'eutils' 'bash-completion-r1'
 *             ebuild.sh, line 259:  Called die
 * The specific snippet of code:
 *           [ ! -e "$location" ] && die "${1}.eclass could not be found by inherit()"
 * 
 * If you need support, post the output of `emerge --info '=app-laptop/tlp-0.3.3-r2'`,
 * the complete build log and the output of `emerge -pqv '=app-laptop/tlp-0.3.3-r2'`.
 * This ebuild used the following eclasses from overlays:
 *   /var/lib/layman/tlp/eclass/tlp.eclass
 * This ebuild is from an overlay named 'tlp': '/var/lib/layman/tlp/'
 * Working directory: '/home/hannes'
 * S: '/var/tmp/portage/app-laptop/tlp-0.3.3-r2/work/tlp-0.3.3'
... done!

!!! All ebuilds that could satisfy "tlp" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-laptop/tlp-0.3.6-r1::tlp (masked by: corruption)
- app-laptop/tlp-0.3.4-r1::tlp (masked by: corruption)
- app-laptop/tlp-0.3.3-r2::tlp (masked by: corruption)

ich hab mal das ::tlp weggelassen, den rest in packages.default.use und packages.unmask eingetragen.

vllt kannst du mir bei den eutils wechseln, das overlay ist aus der offiziellen TLP wiki!
 
Hi,

wie bekomme ich app-laptop/tlp-0.3.6-r1::tlp

dazu, nichtmehr unter "masked" zu stehen?

mit package.unmask Eintrag geht es nicht!

Ist die falsche Datei/Verzeichnis. TLP ist (im gentoo overlay) Architektur-bezogen maskiert und nur für unstable (~amd64, ~x86) freigegeben. Der richtige Ort dafür ist /etc/portage/package.keywords (oder auch /etc/portage/package.accept_keywords - das ist egal) und der Eintrag sollte in etwa so aussehen:
Code:
# x86, nur Version 0.3.6-r1
=app-laptop/tlp-0.3.6-r1::tlp ~x86

## oder
# amd64, nur Version 0.3.6-r1
=app-laptop/tlp-0.3.6-r1::tlp ~amd64

## oder
# Architektur egal, Version egal - Hauptsache tlp kann installiert werden
app-laptop/tlp::tlp **

package.mask/unmask ist für andere Maskierungen zuständig ("removal in 30 days", "work in progress",...).


li8w8 schrieb:
hier ein weiterer ERROR zu TLP:

ERROR: app-laptop/tlp-0.3.3-r2 failed (depend phase):
* eutils.eclass could not be found by inherit()

Existiert denn bei dir der gewöhnliche Portage Tree (in funtoo/gentoo unter /usr/portage zu finden)? Der wird nämlich benötigt (insbesondere /usr/portage/eclass/eutils.eclass, /usr/portage/eclass/bashcompletion-r1.eclass), da tlp-portage "nur" ein Overlay ist.

li8w8 schrieb:
System ist Sabayon9 mit Mate 1.2

Zu Sabayon gibt es einen Entropy Package Request "bug", der dir evtl. in Form eines Ansprechpartners, Rechner-Tester, weiterhilft. Leider klappt der Link bei mir gerade nicht. In jedem Fall solltest du bei den USE-Flags aufpassen (/etc/portage/package.use, nicht 'packages.default.use'). "thinkpad" wird bspw. versuchen, tp-smapi zu bauen, was eine Installation (und ggf. Kompilierung) der Kernelquellen nach sich zieht - bei einer Binärdistribution definitv nicht gewünscht. Daher tp-smapi manuell (dafür sollte es ein Binärpaket geben) installieren.

yatpu schrieb:
ist "=app-laptop/tlp-0.3.6-r1::tlp" eine neue syntax,
Angaben in "<Präfix><Kategorie>/<Paketname>-<Version+Revision>::<Repo Name>"-Notation sind akzeptiert/gültig ("Extended Atom Syntax") und beschränken den Wirkungsbereich auf das angegebene Overlay (bzw Portage Tree).

vg,
dywi
 
Zuletzt bearbeitet:
oh, das ist mir offenbar entgangen. danke für die erklärung! :thumbup:
 
Existiert denn bei dir der gewöhnliche Portage Tree (in funtoo/gentoo unter /usr/portage zu finden)? Der wird nämlich benötigt (insbesondere /usr/portage/eclass/eutils.eclass, /usr/portage/eclass/bashcompletion-r1.eclass), da tlp-portage "nur" ein Overlay ist.

Für die Aufklärung über den Sinn der Dateien danke ich dir! Das bringt mich weiter =) So versteh ich mehr!

Die Lösung war, neben dem Eintrag in der richtigen Datei,

emerge --sync

gefolgt von layman -s tlp

Nochmals vielen Dank!
Mit freundlichen Grüßen

Hannes
 
Zuletzt bearbeitet:
Guten Abend,
ich muss zugeben, ich habe mir nun nicht den ganzen Thread durchgelesen - habe aber etwas gegoogelt und keine Lösung gefunden.

Ich habe seid heute mein X230 (i7-Version) mit Mint 13 am laufen. TLP funktioniert prinzipiell wie es soll, aber es tritt das Problem auf, dass (sobald TLP läuft) ich den Rechner nicht mehr herunterfahren kann, sondern sich das Laptop immer wieder neustartet.

Die Optionen "RUNTIME_PM_ON_AC=on" und "DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"" habe ich schon getestet (in der jeder Kombination) und es ändert sich nichts.

Ich hoffe mir kann jemand helfen - wenn noch weitere Infos benötigt werden stell ich die gerne zur Verfügung.

Anbei noch meine Settings
Code:
# ------------------------------------------------------------------------------# tlp - Parameters for power save
 
# Hint: some features are disabled by default, remove the leading # to enable them
 
# Set to 0 to disable/1 to enable TLP
TLP_ENABLE=1
 
# Seconds laptop mode has to to wait after the disk goes idle before doing a sync.
# Non-zero value enables, zero disables laptop mode.
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
 
# Dirty page values (timeouts in secs).
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60


# Select a cpu frequency scaling governor: ondemand/powersave/performance/conservative
# Important:  
# - You *must* disable your distribution's governor settings or conflicts will occur
# - ondemand is sufficient for *almost all* workloads, you should know what you're doing!
#CPU_SCALING_GOVERNOR_ON_AC=ondemand
#CPU_SCALING_GOVERNOR_ON_BAT=ondemand


# Set the min/max frequency available for the scaling governor.
# Possible values strongly depend on your cpu. For available frequencies see 
# tlp-stat output, Section "+++ Processor".
# Hint: Parameters are disabled by default, remove the leading # to enable them,
#       otherwise kernel default values are used.
#CPU_SCALING_MIN_FREQ_ON_AC=0
#CPU_SCALING_MAX_FREQ_ON_AC=0
#CPU_SCALING_MIN_FREQ_ON_BAT=0
#CPU_SCALING_MAX_FREQ_ON_BAT=0


# Minimize number of used cpu cores/hyper-threads under light load conditions
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1


# Kernel NMI Watchdog
# 0=disable (default, saves power) / 1=enable (for kernel debugging only)
NMI_WATCHDOG=0
        
# Change CPU voltages aka "undervolting" - Kernel with PHC patch required
# Freq:voltage pairs are written to /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
# CAUTION: only use this, if you thoroughly understand what you are doing!
#PHC_CONTROLS="F:V F:V F:V F:V"
 
# Hard disk devices, separate multiple devices with spaces (default: sda).
# Devices can be specified by disk id too (lookup with: tlp diskid).
DISK_DEVICES="sda sdb"


# Hard disk advanced power management level: 1(max saving)..254(off)
# Levels 1..127 spin down the disk.
# Separate values for multiple devices with spaces.
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"


# Hard disk spin down timeout:
# 0:        spin down disabled
# 1..240:   timeouts from 5s to 20min (in units of 5s)
# 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
# (see 'man hdparm' for details)
#DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
#DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"


# Select i/o scheduler for the disk devices - possible values are 
#   noop anticipatory deadline cfq (Default: cfq) 
# Separate values for multiple devices with spaces.
#DISK_IOSCHED="deadline cfq"
 
# SATA aggressive link power management (ALPM):
# min_power/medium_power/max_performance
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power


# PCI Express Active State Power Management (PCIe ASPM):
# default/performance/powersave
# Hint: needs kernel boot option pcie_aspm=force on some machines 
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave


# Radeon graphics clock speed (profile method): low/mid/high/auto/default
# auto = mid on BAT, high on AC; default = use hardware defaults
# (Kernel >= 2.6.35 only, not with fglrx driver!)
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
 
# WiFi power saving mode: 1=disable/5=enable
# (Kernel >= 2.6.32, some adapters only!)
WIFI_PWR_ON_AC=1
WIFI_PWR_ON_BAT=5
 
# Disable wake on lan: Y/N
WOL_DISABLE=Y
 
# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
# A value of 0 disables / >=1 enables power save.
SOUND_POWER_SAVE=1
# Disable controller too (HDA only): Y/N
SOUND_POWER_SAVE_CONTROLLER=Y


# Set to 1 to power off optical drive in UltraBay (ThinkPads only) 
# when running on battery. A value of 0 disables this Feature (Default).
# Drive can be powered on again by releasing (and reinserting) the
# eject lever or by pressing the disc eject button on newer models.
# Note: an UltraBay hard disk is never powered off.
BAY_POWEROFF_ON_BAT=0
# Optical drive device to power off (default sr0)
BAY_DEVICE="sr0"
 
# Runtime Power Management for pci(e) bus devices 
# (Kernel >= 2.6.35 only): on=disable/auto=enable
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto


# Set to 0 to disable/1 to enable usb autosuspend feature
USB_AUTOSUSPEND=1
 
# Devices from the following list are excluded from usb autosuspend
# (separate with spaces). Use lsusb to get the id's.
# Note: input devices (usbhid) are excluded automatically
#USB_BLACKLIST="1111:2222 3333:4444"


# Restore radio device state (bluetooth, wifi, wwan) from previous shutdown
# on system startup: 0=disable/1=enable
# Hint: the parameters DEVICES_TO_DISABLE_ON_STARTUP/SHUTDOWN below
#       are ignored when this is enabled!
RESTORE_DEVICE_STATE_ON_STARTUP=0
 
# Radio devices to disable on startup: bluetooth wifi wwan
DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wwan"
 
# Radio devices to disable on shutdown: bluetooth wifi wwan
# (workaround for devices that are blocking shutdown)
DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
 
# Battery charge thresholds (ThinkPad only, tp-smapi kernel module required)
# Charging starts when the remaining capacity falls below the START_CHARGE_TRESH
# value and stops when exceeding the STOP_CHARGE_TRESH value.
# Main battery (values in %)
#START_CHARGE_THRESH_BAT0=75
#STOP_CHARGE_THRESH_BAT0=80
# Ultrabay battery (values in %)
#START_CHARGE_THRESH_BAT1=75
#STOP_CHARGE_THRESH_BAT1=80


# ------------------------------------------------------------------------------
# tlp-rdw - Parameters for the radio device wizard
# Possible devices: bluetooth/wifi/wwan


# Hint: parameters are disabled by default, remove the leading # to enable them


# Radio devices to disable on connect 
#DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
#DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
#DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"


# Radio devices to enable on disconnect 
#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""


# Radio devices to enable/disable when docked
#DEVICES_TO_ENABLE_ON_DOCK=""
#DEVICES_TO_DISABLE_ON_DOCK=""


# Radio devices to enable/disable when undocked
#DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
#DEVICES_TO_DISABLE_ON_UNDOCK=""

Vielen Dank
Grüße
Thubo
 
Hi,

und willkommen im Forum!

Pioniere leben halt gefährlich, Du bist jetzt der Erste hier mit einem X230 ... :D

Passiert das am Netzteil und am Akku gleichermaßen?
 
Pioniere leben halt gefährlich, Du bist jetzt der Erste hier mit einem X230 ... :D

Passiert das am Netzteil und am Akku gleichermaßen?

Hi linrunner,
sorry, dass ich mich erst so spät melde, mein Kontrollzentrum wollte mir keine Info anzeigen ;)

Mit dem gefährlich leben habe ich eher weniger Probleme ;) Ich bastel recht gern und solang im großen und ganzen alles läuft bin ich recht zufrieden. Außerdem: wenn ich bei einer Lösung für den nächsten behilflich sein kann freut das immer :)

Es macht keinen Unterschied, ob ich vom Akku oder AC arbeite.
Mit "sudo tlp start" wird zwar AC/Bat korrekt erkannt - aber ebenfalls keine der Kombinationen aus den oben erwähnten Optionen ändert was. :(

Gibt es irgendwo ein Log-File, dass dir was nützen könnte?
 
Mach mal bitte alle deine Änderungen in der Konfiguration – außer DEVICES_TO_DISABLE_ON_STARTUP – rückgängig (Defaults) und deaktiviere den USB Autosuspend in der Config
Code:
USB_AUTOSUSPEND=0
EDITH: aus = 0

Einmal aktivieren per
Code:
sudo tlp start
Zeig deinen aktuellen Status
Code:
sudo tlp-stat
Und natürlich den Shutdown testen ...
 
Zuletzt bearbeitet:
Also, ich habe nun die defaults von dir eingefügt,
USB_AUTOSUSPEND auf USB_AUTOSUSPEND=0 gestellt.

Code:
[/COLOR][/LEFT]--- TLP 0.3.6 --------------------------------------------

+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
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
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
WIFI_PWR_ON_AC=1
WIFI_PWR_ON_BAT=5
WOL_DISABLE=Y
SOUND_POWER_SAVE=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
USB_AUTOSUSPEND=0
RESTORE_DEVICE_STATE_ON_STARTUP=0


+++ System Info
System = LENOVO ThinkPad X230 2325CN9
BIOS = G2ET31WW (1.11 )
Release = Linux Mint 13 Maya
Kernel = 3.2.0-26-generic x86_64
/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-3.2.0-26-generic root=UUID=4ffbe439-ea7b-4643-bb08-bd374a6f6d87 ro quiet splash vt.handoff=7


+++ System Status
TLP power save = enabled
power source = ac


+++ Processor
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq =  1200000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq =  2901000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies =  2901000 2900000 2800000 2700000 2500000 2400000 2300000 2200000 2000000 1900000 1800000 1700000 1600000 1400000 1300000 1200000 [kHz]


/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq =  1200000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq =  2901000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies =  2901000 2900000 2800000 2700000 2500000 2400000 2300000 2200000 2000000 1900000 1800000 1700000 1600000 1400000 1300000 1200000 [kHz]


/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq =  1200000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq =  2901000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies =  2901000 2900000 2800000 2700000 2500000 2400000 2300000 2200000 2000000 1900000 1800000 1700000 1600000 1400000 1300000 1200000 [kHz]


/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq =  1200000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq =  2901000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies =  2901000 2900000 2800000 2700000 2500000 2400000 2300000 2200000 2000000 1900000 1800000 1700000 1600000 1400000 1300000 1200000 [kHz]


/sys/devices/system/cpu/sched_mc_power_savings = 0
/sys/devices/system/cpu/sched_smt_power_savings = 0
/proc/sys/kernel/nmi_watchdog = 0


+++ Undervolting
PHC kernel not available.


+++ ThinkPad Temperatures
/proc/acpi/ibm/thermal = (not available)
/proc/acpi/ibm/fan     = speed:         3444


+++ 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 = 60
/proc/sys/vm/dirty_background_ratio = 1
/proc/sys/fs/xfs/age_buffer_centisecs = (not available)
/proc/sys/fs/xfs/xfssyncd_centisecs = (not available)
/proc/sys/fs/xfs/xfsbufd_centisecs = (not available)


+++ Storage Devices
/dev/sda:
          Model     = M4-CT256M4SSD1                          
          Firmware  = 000F    
          APM Level = 254
          scheduler = cfq


        SMART info:
            5 Reallocated_Sector_Ct     =        0 
            9 Power_On_Hours            =       15 [h]
          194 Temperature_Celsius       =        0    [°C]


/dev/sdb:
          Model     = INTEL SSDSC2MH250A2                     
          Firmware  = PWG4    
          APM Level = none/disabled
          scheduler = cfq


        SMART info:
            4 Start_Stop_Count          =        0 
            5 Reallocated_Sector_Ct     =        0 
            9 Power_On_Hours            =      465 [h]
          225 Host_Writes_32MiB         =    3.224 [TB]
          232 Available_Reservd_Space   =      100 [%]
          233 Media_Wearout_Indicator   =      100 [%]




+++ SATA Aggressive Link Power Management
/sys/class/scsi_host/host0/link_power_management_policy = max_performance
/sys/class/scsi_host/host1/link_power_management_policy = max_performance
/sys/class/scsi_host/host2/link_power_management_policy = max_performance
/sys/class/scsi_host/host3/link_power_management_policy = max_performance
/sys/class/scsi_host/host4/link_power_management_policy = max_performance
/sys/class/scsi_host/host5/link_power_management_policy = max_performance


+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default (disabled by kernel)


+++ Intel Graphics
/sys/module/i915/parameters/powersave = 1
/sys/module/i915/parameters/i915_enable_rc6 = -1
/sys/module/i915/parameters/i915_enable_fbc = -1
/sys/module/i915/parameters/lvds_downclock = 0
/sys/module/i915/parameters/semaphores = -1


+++ Wireless
bluetooth = on
wifi      = on
wwan      = on


wlan0(iwlwifi): power management = off


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


+++ Battery
ThinkPad extended battery info not available (missing tp_smapi kernel module).
/sys/class/power_supply/BAT0/manufacturer = SANYO
/sys/class/power_supply/BAT0/model_name = 45N1023
/sys/class/power_supply/BAT0/cycle_count = 0
/sys/class/power_supply/BAT0/energy_full_design = 62160 [mWh]
/sys/class/power_supply/BAT0/energy_full = 63770 [mWh]
/sys/class/power_supply/BAT0/energy_now = 63450 [mWh]
/sys/class/power_supply/BAT0/power_now = 3201 [mW]
/sys/class/power_supply/BAT0/status = Charging


+++ Runtime Power Management
/sys/bus/pci/devices/0000:00:00.0/power/control = on [Host]
/sys/bus/pci/devices/0000:00:19.0/power/control = on [Ethernet]
/sys/bus/pci/devices/0000:00:1b.0/power/control = on [Audio]
/sys/bus/pci/devices/0000:02:00.0/power/control = on [Card]
/sys/bus/pci/devices/0000:03:00.0/power/control = on [Wireless]


+++ USB
tlp usb autosuspend = not enabled
tlp usb blacklist = (not configured)


Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 2.0 root hub (hub)
Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =  2000 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms =  2000 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 002 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms =  2000 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 003 Device 003 ID 0bdb:1926 control = on,   autosuspend_delay_ms =  2000 -- Ericsson Business Mobile Networks BV  (cdc_acm, cdc_wdm, cdc_ncm)
Bus 004 Device 002 ID 174c:5106 control = on,   autosuspend_delay_ms =  2000 -- ASMedia Technology Inc. Transcend StoreJet 25M3 (usb-storage)
Bus 001 Device 003 ID 147e:2020 control = on,   autosuspend_delay_ms =  2000 -- Upek  (no driver)
Bus 001 Device 004 ID 0a5c:21e6 control = on,   autosuspend_delay_ms =  2000 -- Broadcom Corp.  (btusb)
Bus 001 Device 005 ID 04f2:b2ea control = auto, autosuspend_delay_ms =  2000 -- Chicony Electronics Co., Ltd  (uvcvideo)
Bus 002 Device 003 ID 17ef:100a control = auto, autosuspend_delay_ms =  2000 -- Lenovo ThinkPad Mini Dock Plus Series 3 (hub)
Bus 002 Device 004 ID 152e:2571 control = on,   autosuspend_delay_ms =  2000 -- LG (HLDS)  (usb-storage)
Bus 002 Device 005 ID 1a40:0101 control = auto, autosuspend_delay_ms =  2000 -- Terminus Technology Inc. 4-Port HUB (hub)
Bus 002 Device 006 ID 1532:000d control = on,   autosuspend_delay_ms =  2000 -- Razer USA, Ltd  (usbhid)
Bus 002 Device 007 ID 04b8:0856 control = on,   autosuspend_delay_ms =  2000 -- Seiko Epson Corp. Stylus SX515W (usb-storage)


[LEFT][COLOR=#000000]

Herunterfahren funktioniert auch - wobei ich leicht irritiert bin :P

LG
Thubo

P.S. ja, ich weiß ich hab ne Menge am Dock hängen - wenn das uU ein Problem ist (zumindest zum testen) musste mir nur sagen, dann klemm ich das ab.
 
OK. Dann hast Du jetzt die Fleißarbeit vor dir, herauszufinden welches USB-Gerät der Verursacher ist bzw. Autosuspend nicht mag.

Also USB_AUTOSUSPEND wieder an und aktivieren mit
Code:
sudo tlp usb

Dann entweder jedes Gerät (EDITH: relevant sind eigentlich nur die mit "control = on") einzeln abstecken oder alternativ die USB ID in
Code:
USB_BLACKLIST="XXXX:YYYY"
eintragen, Änderung per
Code:
sudo tlp usb
aktivieren und Shutdown testen.

Viel Erfolg! :D

ps. von der M4 würden mich mal die vollständigen SMART-Werte interessieren (um tlp-stat ggf. zu ergänzen):
Code:
sudo smartctl -A /dev/sda
 
Zuletzt bearbeitet:
Sooo :)
Der Dritte war's. Ich habe im Moment die "0bdb:1926" in der Blacklist drin stehen, damit ist das Herunterfahren kein Problem. Kann ich das einfach erst mal so lassen als work around ?

Code:
Bus 003 Device 002: ID 0bdb:1926 Ericsson Business Mobile Networks BV

Zur M4:

Code:
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-26-generic] (local build)Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net


=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   050    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   001    Old_age   Always       -       16
 12 Power_Cycle_Count       0x0032   100   100   001    Old_age   Always       -       44
170 Unknown_Attribute       0x0033   100   100   010    Pre-fail  Always       -       0
171 Unknown_Attribute       0x0032   100   100   001    Old_age   Always       -       0
172 Unknown_Attribute       0x0032   100   100   001    Old_age   Always       -       0
173 Unknown_Attribute       0x0033   100   100   010    Pre-fail  Always       -       0
174 Unknown_Attribute       0x0032   100   100   001    Old_age   Always       -       5
181 Program_Fail_Cnt_Total  0x0022   100   100   001    Old_age   Always       -       4294967297
183 Runtime_Bad_Block       0x0032   100   100   001    Old_age   Always       -       0
184 End-to-End_Error        0x0033   100   100   050    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   001    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   001    Old_age   Always       -       0
189 High_Fly_Writes         0x000e   100   100   001    Old_age   Always       -       89
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       0
195 Hardware_ECC_Recovered  0x003a   100   100   001    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   001    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   001    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   001    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   001    Old_age   Always       -       0
202 Data_Address_Mark_Errs  0x0018   100   100   001    Old_age   Offline      -       0
206 Flying_Height           0x000e   100   100   001    Old_age   Always       -       0

LG
Matthias
 
USB_BLACKLIST ist genau als Workaround für "störrische" HW gedacht. Daß nun ausgerechnet die UMTS-Karte kein Autosuspend mag, ist doof, weil das den Stromverbrauch deutlich in die Höhe treiben dürfte.
 
Mal sehen...vllt kann ich die UMTS Karte im BIOS ganz ausmachen - ich habe die eh nur drin für absolute Notfälle, dann kann ich Sie auch anmachen, wenn sie brauche.

Ich hätte noch eine kleine Verständnisfrage: Wenn ich im tlp die Ladeschwellen für den Akku einstelle werden die (lt. Manual) ins Hardwareregister geschrieben.
Zeigt mir dann meine Anzeige im OS weiterhin 100% an, wenn der Akku voll ist (=hardwareseitig 80%) oder sehe ich dann im OS auch 80%? Geht mir drum, dass ich überprüfen kann, ob die Einstellungen funktionieren. ;)

Vielen Dank nochmal für deine Mühen. Da nach der UMTS Karte zu suchen hätte bei mir lange gedauert ;)
LG
Thubo
 
  • ok1.de
  • ok2.de
  • thinkstore24.de
  • Preiswerte-IT - Gebrauchte Lenovo Notebooks kaufen

Werbung

Zurück
Oben