Skip to contentSkip to conversation

Handling transition into suspend through keyboard driver

DISCUSSION Kristoffer Ericson 2 participants 2 messages Oct 8, 2007 – Oct 9, 2007 HID

lore
Share & tools
lore
#0 lore raw

Greetings,

Dmitry, Im implementing suspend for hp7xx currently. I've added EV_PWR to bitflags and linked so POWER_KEY gets reported correctly. Is this the correct approach?

I want to make use of the generic pm code that exists for sa1100.

I know this is abit of your speciality but had a hard time finding examples.

Best wishes
Kristoffer Ericson

#1 lore raw

Hi Kristoffer,

Quoted 5 lines · Kristoffer Ericson

Greetings,

Dmitry, Im implementing suspend for hp7xx currently. I've added EV_PWR to bitflags and linked so POWER_KEY gets reported correctly. Is this the correct approach?

Yes, it is. Keyboard drivers sghoudl just emit proper events and we expect userspace to react on those properly. Look at corgi and spitz drivers.

Signature · 1 line
Dmitry