<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Advogato blog for kirjanov</title>
    <link>http://www.advogato.org/person/kirjanov/</link>
    <description>Advogato blog for kirjanov</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Mon, 8 Sep 2008 05:17:19 GMT</pubDate>
    <item>
      <pubDate>Thu, 17 May 2007 09:17:21 GMT</pubDate>
      <title>17 May 2007</title>
      <link>http://www.advogato.org/person/kirjanov/diary.html?start=0</link>
      <guid>http://www.advogato.org/person/kirjanov/diary.html?start=0</guid>
      <description>Shutting down the computer when you press the power button&#xD;
&lt;pre&gt;&#xD;
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c&#xD;
index 5ef885e..859b235 100644&#xD;
--- a/drivers/acpi/button.c&#xD;
+++ b/drivers/acpi/button.c&#xD;
@@ -263,6 +263,8 @@ static void&#xD;
acpi_button_notify(acpi_handle handle, u32 event, void *data)&#xD;
case ACPI_BUTTON_NOTIFY_STATUS:&#xD;
acpi_bus_generate_event(button-&amp;gt;device, event,&#xD;
++button-&amp;gt;pushed);&#xD;
+ printk(KERN_DEBUG "ACPI_EVENT_POWER_BUTTON has occured\n");&#xD;
+ kill_proc(1,SIGWINCH,1);&#xD;
break;&#xD;
default:&#xD;
ACPI_DEBUG_PRINT((ACPI_DB_INFO,&#xD;
@@ -348,6 +350,7 @@ static int acpi_button_add(struct&#xD;
acpi_device *device)&#xD;
&#xD;
&lt;p&gt; switch (button-&amp;gt;type) {&#xD;
case ACPI_BUTTON_TYPE_POWERF:&#xD;
+ case ACPI_BUTTON_TYPE_POWER:&#xD;
status =&#xD;
acpi_install_fixed_event_handler(ACPI_EVENT_POWER_BUTTON,&#xD;
acpi_button_notify_fixed,&#xD;
&#xD;
&lt;p&gt; &lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
