{"id":429,"date":"2013-10-31T00:01:50","date_gmt":"2013-10-30T20:01:50","guid":{"rendered":"http:\/\/irenica.com\/?p=429"},"modified":"2013-10-31T00:06:42","modified_gmt":"2013-10-30T20:06:42","slug":"uvelichenie-vremeni-raboty-linux-ot-batare","status":"publish","type":"post","link":"https:\/\/irenica.com\/?p=429","title":{"rendered":"\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b linux \u043e\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u0438"},"content":{"rendered":"<p>\u041a\u0443\u043f\u0438\u043b\u0430 \u0441\u0435\u0431\u0435 \u043d\u043e\u0432\u044b\u0439 \u043b\u0430\u043f\u0442\u043e\u043f ThinkPad T-430. \u041e\u0431\u0435\u0449\u0430\u043b\u0438 16\u0447 \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u0438, \u043d\u043e \u0434\u0435\u0440\u0436\u0430\u043b \u043e\u043d \u0442\u043e\u043b\u044c\u043a\u043e 4 \u0438 \u0442\u043e, \u0435\u0441\u043b\u0438 \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u043d\u0430 \u043c\u0438\u043d\u0438\u043c\u0443\u043c. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0441 \u0431\u044b\u043b\u0430 Ubuntu 12.04. \u0411\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0430 \u0432 \u043d\u0435\u043c \u043d\u0430 7700 \u043c\u0410\u0447, \u0438 \u043e\u043d\u0430 \u044f\u0432\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c 4 \u0447\u0430\u0441\u0430&#8230;<br \/>\n\u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0431\u044b\u043b\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 <a href=\"http:\/\/linrunner.de\/en\/tlp\/docs\/tlp-faq.html\">tlp<\/a>. \u0412\u043a\u0440\u0430\u0442\u0446\u0435, \u044d\u0442\u043e \u0442\u0430\u043a\u0430\u044f \u0448\u0442\u0443\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0443\u043b\u0438\u0442 \u0436\u0435\u043b\u0435\u0437\u043e\u043c \u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u0438.<br \/>\n\u041f\u043e\u0441\u043b\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u0441\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c 9 \u0447\u0430\u0441\u043e\u0432, \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u044f\u0440\u043a\u043e\u0441\u0442\u0438. \u0412 \u043d\u043e\u043b\u044c \u0440\u0430\u0437\u0440\u044f\u0434\u0438\u0442\u044c \u043d\u0435 \u0443\u0441\u043f\u0435\u043b\u0430. \u041f\u043e\u0441\u043b\u0435 3 \u0447\u0430\u0441\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u044f\u0440\u043a\u043e\u0441\u0442\u0438, \u0441 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u043e\u0439 \u0438 wifi \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c ~70% \u0438 \u0432\u0430\u043d\u0433\u0430\u043c\u043e\u0434 \u0432\u0435\u0449\u0430\u043b, \u0447\u0442\u043e \u0435\u0449\u0435 6.5 \u0447\u0430\u0441\u043e\u0432 \u043c\u043e\u0436\u0435\u043c \u0436\u0438\u0442\u044c \u043d\u0438 \u043e \u0447\u0435\u043c \u043d\u0435 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u044f\u0441\u044c. \u041d\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043d\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0430.<br \/>\n\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c sudo tlp start<br \/>\n\u041c\u043e\u0436\u043d\u043e \u0435\u0449\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c tlp &#8212;help \u0438 man tlp<br \/>\n \u0412\u043e\u0442 \u043c\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 <\/p>\n<p><code>root@irenica-ThinkPad-T430:\/home\/irenica# cat \/etc\/default\/tlp<br \/>\n# ------------------------------------------------------------------------------<br \/>\n# tlp - Parameters for power save<br \/>\n# Hint: some features are disabled by default, remove the leading # to enable them<br \/>\n# Set to 0 to disable\/1 to enable TLP<br \/>\nTLP_ENABLE=1<br \/>\n# Seconds laptop mode has to to wait after the disk goes idle before doing a sync.<br \/>\n# Non-zero value enables, zero disables laptop mode.<br \/>\nDISK_IDLE_SECS_ON_AC=0<br \/>\nDISK_IDLE_SECS_ON_BAT=2<br \/>\n# Dirty page values (timeouts in secs).<br \/>\nMAX_LOST_WORK_SECS_ON_AC=15<br \/>\nMAX_LOST_WORK_SECS_ON_BAT=60<br \/>\n# Select a cpu frequency scaling governor: ondemand\/powersave\/performance\/conservative<br \/>\n# Important:<br \/>\n# - You *must* disable your distribution's governor settings or conflicts will occur<br \/>\n# - ondemand is sufficient for *almost all* workloads, you should know what you're doing!<br \/>\nCPU_SCALING_GOVERNOR_ON_AC=ondemand<br \/>\nCPU_SCALING_GOVERNOR_ON_BAT=powersave<br \/>\n# Set the min\/max frequency available for the scaling governor.<br \/>\n# Possible values strongly depend on your cpu. For available frequencies see<br \/>\n# tlp-stat output, Section \"+++ Processor\".<br \/>\n# Hint: Parameters are disabled by default, remove the leading # to enable them,<br \/>\n#       otherwise kernel default values are used.<br \/>\n#CPU_SCALING_MIN_FREQ_ON_AC=0<br \/>\n#CPU_SCALING_MAX_FREQ_ON_AC=0<br \/>\n#CPU_SCALING_MIN_FREQ_ON_BAT=0<br \/>\n#CPU_SCALING_MAX_FREQ_ON_BAT=0<br \/>\n# Set the cpu \"turbo boost\" feature: 0=disable \/ 1=allow<br \/>\n# Requires an Intel Core i processor and kernel 3.7 or later.<br \/>\n# Important:<br \/>\n# - This may conflict with your distribution's governor settings<br \/>\n# - A value of 1 does *not* activate boosting, it just allows it<br \/>\nCPU_BOOST_ON_AC=1<br \/>\nCPU_BOOST_ON_BAT=0<br \/>\n# Minimize number of used cpu cores\/hyper-threads under light load conditions<br \/>\nSCHED_POWERSAVE_ON_AC=0<br \/>\nSCHED_POWERSAVE_ON_BAT=1<br \/>\n# Kernel NMI Watchdog<br \/>\n# 0=disable (default, saves power) \/ 1=enable (for kernel debugging only)<br \/>\nNMI_WATCHDOG=0<br \/>\n# Change CPU voltages aka \"undervolting\" - Kernel with PHC patch required<br \/>\n# Freq:voltage pairs are written to \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/phc_controls<br \/>\n# CAUTION: only use this, if you thoroughly understand what you are doing!<br \/>\n#PHC_CONTROLS=\"F:V F:V F:V F:V\"<br \/>\n# Hard disk devices, separate multiple devices with spaces (default: sda).<br \/>\n# Devices can be specified by disk id too (lookup with: tlp diskid).<br \/>\nDISK_DEVICES=\"sda sdb\"<br \/>\n# Hard disk advanced power management level: 1(max saving)..254(off)<br \/>\n# Levels 1..127 may spin down the disk.<br \/>\n# Separate values for multiple devices with spaces.<br \/>\nDISK_APM_LEVEL_ON_AC=\"254 254\"<br \/>\nDISK_APM_LEVEL_ON_BAT=\"128 128\"<br \/>\n# Hard disk spin down timeout:<br \/>\n# 0:        spin down disabled<br \/>\n# 1..240:   timeouts from 5s to 20min (in units of 5s)<br \/>\n# 241..251: timeouts from 30min to 5.5 hours (in units of 30min)<br \/>\n# (see 'man hdparm' for details)<br \/>\n#DISK_SPINDOWN_TIMEOUT_ON_AC=\"0 0\"<br \/>\n#DISK_SPINDOWN_TIMEOUT_ON_BAT=\"0 0\"<br \/>\n# Select io scheduler for the disk devices: noop\/deadline\/cfq (Default: cfq)<br \/>\n# Separate values for multiple devices with spaces.<br \/>\n#DISK_IOSCHED=\"cfq cfq\"<br \/>\n# SATA aggressive link power management (ALPM):<br \/>\n# min_power\/medium_power\/max_performance<br \/>\nSATA_LINKPWR_ON_AC=max_performance<br \/>\nSATA_LINKPWR_ON_BAT=min_power<br \/>\n# PCI Express Active State Power Management (PCIe ASPM):<br \/>\n# default\/performance\/powersave<br \/>\n# Hint: needs kernel boot option pcie_aspm=force on some machines<br \/>\nPCIE_ASPM_ON_AC=performance<br \/>\nPCIE_ASPM_ON_BAT=powersave<br \/>\n# Radeon graphics clock speed (profile method): low\/mid\/high\/auto\/default<br \/>\n# auto = mid on BAT, high on AC; default = use hardware defaults<br \/>\n# (Kernel >= 2.6.35 only, not with fglrx driver!)<br \/>\nRADEON_POWER_PROFILE_ON_AC=high<br \/>\nRADEON_POWER_PROFILE_ON_BAT=low<br \/>\n# New radeon dynamic power management method (dpm): battery\/performance<br \/>\n# (Kernel >= 3.11 only, requires boot option radeon.dpm=1)<br \/>\nRADEON_DPM_STATE_ON_AC=performance<br \/>\nRADEON_DPM_STATE_ON_BAT=battery<br \/>\n# New radeon dpm performance level: auto\/low\/high (auto is recommended)<br \/>\nRADEON_DPM_PERF_LEVEL_ON_AC=auto<br \/>\nRADEON_DPM_PERF_LEVEL_ON_BAT=auto<br \/>\n# WiFi power saving mode: 1=disable\/5=enable<br \/>\n# (Linux 2.6.32 and later, some adapters only!)<br \/>\nWIFI_PWR_ON_AC=1<br \/>\nWIFI_PWR_ON_BAT=5<br \/>\n# Disable wake on lan: Y\/N<br \/>\nWOL_DISABLE=Y<br \/>\n# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).<br \/>\n# A value of 0 disables \/ >=1 enables power save.<br \/>\nSOUND_POWER_SAVE=1<br \/>\n# Disable controller too (HDA only): Y\/N<br \/>\nSOUND_POWER_SAVE_CONTROLLER=Y<br \/>\n# Set to 1 to power off optical drive in UltraBay (ThinkPads only)<br \/>\n# when running on battery. A value of 0 disables this Feature (Default).<br \/>\n# Drive can be powered on again by releasing (and reinserting) the<br \/>\n# eject lever or by pressing the disc eject button on newer models.<br \/>\n# Note: an UltraBay hard disk is never powered off.<br \/>\nBAY_POWEROFF_ON_BAT=1<br \/>\n# Optical drive device to power off (default sr0)<br \/>\nBAY_DEVICE=\"sr0\"<br \/>\n# Runtime Power Management for pci(e) bus devices<br \/>\n# (Kernel >= 2.6.35 only): on=disable\/auto=enable<br \/>\nRUNTIME_PM_ON_AC=on<br \/>\nRUNTIME_PM_ON_BAT=auto<br \/>\n# Runtime PM for *all* pci(e) bus devices, expect backlisted ones:<br \/>\n# 0=disable \/ 1=enable<br \/>\n# Warning: experimental option, could cause system instabilities<br \/>\nRUNTIME_PM_ALL=0<br \/>\n# Exclude pci(e) device adresses the following list from Runtime PM<br \/>\n# (separate with spaces). Use lspci to get the adresses (1st column).<br \/>\n#RUNTIME_PM_BLACKLIST=\"bb:dd.f 11:22.3 44:55.6\"<br \/>\n# Set to 0 to disable\/1 to enable usb autosuspend feature<br \/>\nUSB_AUTOSUSPEND=1<br \/>\n# Devices from the following list are excluded from usb autosuspend<br \/>\n# (separate with spaces). Use lsusb to get the ids.<br \/>\n# Note: input devices (usbhid) are excluded automatically<br \/>\n#USB_BLACKLIST=\"1111:2222 3333:4444\"<br \/>\n# WWAN devices are excluded from usb autosuspend:<br \/>\n# 0=do not exclude \/ 1=exclude<br \/>\n# Note: works for ids 05c6:* 0bdb:* 1199:* only<br \/>\nUSB_BLACKLIST_WWAN=1<br \/>\n# Set to 1 to disable autosuspend before shutdown\/0 to do nothing<br \/>\n# (workaround for usb devices that cause shutdown problems)<br \/>\n#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1<br \/>\n# Restore radio device state (bluetooth, wifi, wwan) from previous shutdown<br \/>\n# on system startup: 0=disable\/1=enable<br \/>\n# Hint: the parameters DEVICES_TO_DISABLE\/ENABLE_ON_STARTUP\/SHUTDOWN below<br \/>\n#       are ignored when this is enabled!<br \/>\nRESTORE_DEVICE_STATE_ON_STARTUP=0<br \/>\n# Radio devices to disable on startup: bluetooth wifi wwan<br \/>\nDEVICES_TO_DISABLE_ON_STARTUP=\"bluetooth\"<br \/>\n# Radio devices to enable on startup: bluetooth wifi wwan<br \/>\n#DEVICES_TO_ENABLE_ON_STARTUP=\"wifi\"<br \/>\n# Radio devices to disable on shutdown: bluetooth wifi wwan<br \/>\n# (workaround for devices that are blocking shutdown)<br \/>\n#DEVICES_TO_DISABLE_ON_SHUTDOWN=\"bluetooth wifi wwan\"<br \/>\n# Radio devices to enable on shutdown: bluetooth wifi wwan<br \/>\n# (to prevent other operating systems from missing radios)<br \/>\n#DEVICES_TO_ENABLE_ON_SHUTDOWN=\"wwan\"<br \/>\n# Radio devices to enable when wireless radio switch is turned on:<br \/>\n# bluetooth wifi wwan (Ubuntu + ThinkPad only)<br \/>\nDEVICES_TO_ENABLE_ON_RADIOSW=\"wifi wwan\"<br \/>\n# Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module required)<br \/>\n# Charging starts when the remaining capacity falls below the START_CHARGE_TRESH<br \/>\n# value and stops when exceeding the STOP_CHARGE_TRESH value.<br \/>\n# Main battery (values in %)<br \/>\nSTART_CHARGE_THRESH_BAT0=75<br \/>\nSTOP_CHARGE_THRESH_BAT0=80<br \/>\n# Ultrabay or slice battery (values in %)<br \/>\n#START_CHARGE_THRESH_BAT1=75<br \/>\n#STOP_CHARGE_THRESH_BAT1=80<br \/>\n# Set to 1 to disable use of tpacpi-bat on Sandy Bridge or newer Thinkpads<br \/>\n# and force usage of tp-smapi instead<br \/>\nDISABLE_TPACPIBAT=1<br \/>\n# ------------------------------------------------------------------------------<br \/>\n# tlp-rdw - Parameters for the radio device wizard<br \/>\n# Possible devices: bluetooth\/wifi\/wwan<br \/>\n# Hint: parameters are disabled by default, remove the leading # to enable them<br \/>\n# Radio devices to disable on connect<br \/>\n#DEVICES_TO_DISABLE_ON_LAN_CONNECT=\"wifi wwan\"<br \/>\n#DEVICES_TO_DISABLE_ON_WIFI_CONNECT=\"wwan\"<br \/>\n#DEVICES_TO_DISABLE_ON_WWAN_CONNECT=\"wifi\"<br \/>\n# Radio devices to enable on disconnect<br \/>\n#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT=\"wifi wwan\"<br \/>\n#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=\"\"<br \/>\n#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=\"\"<br \/>\n# Radio devices to enable\/disable when docked<br \/>\n#DEVICES_TO_ENABLE_ON_DOCK=\"\"<br \/>\n#DEVICES_TO_DISABLE_ON_DOCK=\"\"<br \/>\n# Radio devices to enable\/disable when undocked<br \/>\n#DEVICES_TO_ENABLE_ON_UNDOCK=\"wifi\"<br \/>\n#DEVICES_TO_DISABLE_ON_UNDOCK=\"\"<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0443\u043f\u0438\u043b\u0430 \u0441\u0435\u0431\u0435 \u043d\u043e\u0432\u044b\u0439 \u043b\u0430\u043f\u0442\u043e\u043f ThinkPad T-430. \u041e\u0431\u0435\u0449\u0430\u043b\u0438 16\u0447 \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0442 \u0431\u0430\u0442\u0430\u0440\u0435\u0438, \u043d\u043e \u0434\u0435\u0440\u0436\u0430\u043b \u043e\u043d \u0442\u043e\u043b\u044c\u043a\u043e 4 \u0438 \u0442\u043e, \u0435\u0441\u043b\u0438 \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u043d\u0430 \u043c\u0438\u043d\u0438\u043c\u0443\u043c. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0441 \u0431\u044b\u043b\u0430 Ubuntu 12.04.\u2026<\/p>\n","protected":false},"author":1,"featured_media":430,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[15,128,127,126],"class_list":["post-429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-2","tag-t-430","tag-thinkpad","tag-tlp"],"_links":{"self":[{"href":"https:\/\/irenica.com\/index.php?rest_route=\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irenica.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irenica.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irenica.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/irenica.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=429"}],"version-history":[{"count":2,"href":"https:\/\/irenica.com\/index.php?rest_route=\/wp\/v2\/posts\/429\/revisions"}],"predecessor-version":[{"id":432,"href":"https:\/\/irenica.com\/index.php?rest_route=\/wp\/v2\/posts\/429\/revisions\/432"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/irenica.com\/index.php?rest_route=\/wp\/v2\/media\/430"}],"wp:attachment":[{"href":"https:\/\/irenica.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irenica.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irenica.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}