Power button working on iPAQs, using KEY_POWER kernel keycode

Giorgio Padrin <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel,gmane.linux.ports.h2200
Message-ID <[email protected]>
Hi,

I got Power button working on h2200.
I think this interests all iPAQs with kernel 2.6 and no working Power button 
till now.

KEY_POWER as kernel keycode.
I use kernel_keymap.patch to Qte, likewise Zauri, for a clean passage of 
keycodes up to Qt level and comfortable definitions of keycodes->key symbol 
mappings.
Mapped to key symbol Hardkey_Suspend (defined as Qt::Key_F34 in odevice.h).
Then in odevice_ipaq.cpp, iPAQ::filter, I intercepted the key and rely on the 
logic already there for Key_SysReq.
So I tested h2200 suspends on short press of Power button; and presumably 
would power off backlight on longer press, if I had appropriate backlight 
code for the machine.

I'll submit pacthes for Opie and OE.

Giorgio   
_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.