{"id":157323,"date":"2012-11-04T10:07:06","date_gmt":"2012-11-04T06:07:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=157323"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=157323","title":{"rendered":"<span class=\"post_title\">\u041a\u0430\u043a \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c AC adapter events \u0432 KDE 4.9.2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 kubuntu 12.10 \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0435 HP Pavilion DV6 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435<br \/>   \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u043e\u0441\u044c \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb. \u041e\u0434\u043d\u0430 \u0432\u0430\u0436\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u2014 \u044d\u043d\u0435\u0440\u0433\u043e\u0441\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e KDE \u043d\u0435 \u043c\u043e\u0433\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043a \u0441\u0435\u0442\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0438\u043b\u0438 \u043d\u0435\u0442.<br \/>   \u0413\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e, \u043d\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u043e \u043a\u0443\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043f\u0430\u0442\u044c \u2014 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u2014 \/etc\/acpi\/power.sh, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u00ab\u0434\u0435\u0440\u0433\u0430\u0435\u0442\u0441\u044f\u00bb \u043f\u043e \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u043d\u0430\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u044e. <br \/>   \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0435:  <\/p>\n<pre><code class=\"bash\">#!\/bin\/sh  on_ac_power  test -f \/usr\/share\/acpi-support\/key-constants || exit 0  . \/usr\/share\/acpi-support\/policy-funcs  if [ -z &quot;$*&quot; ] && ( [ `CheckPolicy` = 0 ] || CheckUPowerPolicy ); then     exit; fi  pm-powersave $*  <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \/etc\/acpi\/power.sh \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 on_ac_power.<br \/>  \u0412\u044b\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437 man on_ac_power:  <\/p>\n<pre><code class=\"bash\">NAME        on_ac_power - test whether computer is running on AC power <\/code><\/pre>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442.    \t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/157323\/\"> http:\/\/habrahabr.ru\/post\/157323\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 kubuntu 12.10 \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0435 HP Pavilion DV6 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435<br \/>   \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u043e\u0441\u044c \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb. \u041e\u0434\u043d\u0430 \u0432\u0430\u0436\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u2014 \u044d\u043d\u0435\u0440\u0433\u043e\u0441\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e KDE \u043d\u0435 \u043c\u043e\u0433\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043a \u0441\u0435\u0442\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0438\u043b\u0438 \u043d\u0435\u0442.<br \/>   \u0413\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e, \u043d\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b\u043e \u043a\u0443\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043f\u0430\u0442\u044c \u2014 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u2014 \/etc\/acpi\/power.sh, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u00ab\u0434\u0435\u0440\u0433\u0430\u0435\u0442\u0441\u044f\u00bb \u043f\u043e \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u043d\u0430\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u044e. <br \/>   \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0435:  <\/p>\n<pre><code class=\"bash\">#!\/bin\/sh  on_ac_power  test -f \/usr\/share\/acpi-support\/key-constants || exit 0  . \/usr\/share\/acpi-support\/policy-funcs  if [ -z &quot;$*&quot; ] &#038;& ( [ `CheckPolicy` = 0 ] || CheckUPowerPolicy ); then     exit; fi  pm-powersave $*  <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \/etc\/acpi\/power.sh \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 on_ac_power.<br \/>  \u0412\u044b\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437 man on_ac_power:  <\/p>\n<pre><code class=\"bash\">NAME        on_ac_power - test whether computer is running on AC power <\/code><\/pre>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442.    \t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/157323\/\"> http:\/\/habrahabr.ru\/post\/157323\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-157323","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=157323"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157323\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}