kirjanov is currently certified at Journeyer level.

Name: Denis Kirjanov
Member since: 2007-05-17 09:02:28
Last Login: 2007-05-19 07:03:33

FOAF RDF Share This


I am interested in the development of the Linux kernel

Recent blog entries by kirjanov

Syndication: RSS 2.0
17 May 2007 (updated 17 May 2007 at 09:18 UTC) »

Shutting down the computer when you press the power button

diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index 5ef885e..859b235 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -263,6 +263,8 @@ static void
acpi_button_notify(acpi_handle handle, u32 event, void *data)
acpi_bus_generate_event(button->device, event,
+ printk(KERN_DEBUG "ACPI_EVENT_POWER_BUTTON has occured\n");
+ kill_proc(1,SIGWINCH,1);
@@ -348,6 +350,7 @@ static int acpi_button_add(struct
acpi_device *device)

switch (button->type) { case ACPI_BUTTON_TYPE_POWERF: + case ACPI_BUTTON_TYPE_POWER: status = acpi_install_fixed_event_handler(ACPI_EVENT_POWER_BUTTON, acpi_button_notify_fixed,


kirjanov certified others as follows:

  • kirjanov certified dma as Journeyer

Others have certified kirjanov as follows:

  • dma certified kirjanov as Journeyer

[ Certification disabled because you're not logged in. ]

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!

Share this page