Skip to contentSkip to conversation

double power button events on presario 900 - apparently a timing issue?

DISCUSSION Fedor Karpelevitch 2 participants 5 messages Sep 24, 2003 – Sep 25, 2003 4 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

as I previously mentioned I am seeing an annoying problem on my presario 900 - when power button (works as FF here) is pressed it generates two events every time. I was experimentin with debugging output and noticed an interesting thing - if I do
echo 0xffffffff > /proc/acpi/debug_level
to get verbose debug output the problem goes away - I only get one event every time button is pressed. Looks like the problem is caused by some kind timing issue which goes away when debugging slows it down. Does this sound like a reasonable guess? Would anyone suggest how this can be debugged further?

Thanks

Fedor

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 10 lines · Fedor Karpelevitch

as I previously mentioned I am seeing an annoying problem on my presario 900 - when power button (works as FF here) is pressed it generates two events every time. I was experimentin with debugging output and noticed an interesting thing - if I do
echo 0xffffffff > /proc/acpi/debug_level
to get verbose debug output the problem goes away - I only get one event every time button is pressed. Looks like the problem is caused by some kind timing issue which goes away when debugging slows it down. Does this sound like a reasonable guess? Would anyone suggest how this can be debugged further?

It means you need to debounce the event.

-Nate

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 12 lines · Nate Lawson
Quoted 10 lines · Fedor Karpelevitch

as I previously mentioned I am seeing an annoying problem on my presario 900 - when power button (works as FF here) is pressed it generates two events every time. I was experimentin with debugging output and noticed an interesting thing - if I do echo 0xffffffff > /proc/acpi/debug_level
to get verbose debug output the problem goes away - I only get one event every time button is pressed. Looks like the problem is caused by some kind timing issue which goes away when debugging slows it down. Does this sound like a reasonable guess? Would anyone suggest how this can be debugged further?

Quoted 1 line

It means you need to debounce the event.

do you mean debouncing on the receiving end? or would that be some way to avoid that in the kernel code?

Fedor.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 13 lines · Fedor Karpelevitch
Quoted 12 lines · Nate Lawson
Quoted 10 lines · Fedor Karpelevitch

as I previously mentioned I am seeing an annoying problem on my presario 900 - when power button (works as FF here) is pressed it generates two events every time. I was experimentin with debugging output and noticed an interesting thing - if I do echo 0xffffffff > /proc/acpi/debug_level
to get verbose debug output the problem goes away - I only get one event every time button is pressed. Looks like the problem is caused by some kind timing issue which goes away when debugging slows it down. Does this sound like a reasonable guess? Would anyone suggest how this can be debugged further?

Quoted 5 lines
Quoted 1 line

It means you need to debounce the event.

do you mean debouncing on the receiving end? or would that be some way to avoid that in the kernel code?

by the way, I found that it is sufficient to do

echo 0x0800000f > /proc/acpi/debug_level and problem disappears. That bit is ACPI_DB_INTERRUPTS which is only referenced it two places...

Fedor.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 16 lines · Fedor Karpelevitch
Quoted 15 lines · Fedor Karpelevitch
Quoted 13 lines · Nate Lawson
Quoted 10 lines · Fedor Karpelevitch

as I previously mentioned I am seeing an annoying problem on my presario 900 - when power button (works as FF here) is pressed it generates two events every time. I was experimentin with debugging output and noticed an interesting thing - if I do echo 0xffffffff > /proc/acpi/debug_level
to get verbose debug output the problem goes away - I only get one event every time button is pressed. Looks like the problem is caused by some kind timing issue which goes away when debugging slows it down. Does this sound like a reasonable guess? Would anyone suggest how this can be debugged further?

It means you need to debounce the event.

Quoted 7 lines
Quoted 3 lines

do you mean debouncing on the receiving end? or would that be some way to avoid that in the kernel code?

by the way, I found that it is sufficient to do

echo 0x0800000f > /proc/acpi/debug_level and problem disappears. That bit is ACPI_DB_INTERRUPTS which is only referenced it two places...

The kernel should debounce the button events after receiving them from ACPICA. Your debugging level change merely increases the latency between handling events so that the second event is missed.

-Nate

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf