linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Pcmcia interrupts & power key scancode on pismo powerbook
@ 2001-01-02 17:43 Viljo Viitanen
  2001-01-02 18:25 ` Catherine
  0 siblings, 1 reply; 2+ messages in thread
From: Viljo Viitanen @ 2001-01-02 17:43 UTC (permalink / raw)
  To: linuxppc-dev


First, the power key in a pismo (stock 2.2.18 kernel) produces a kernel
message:
keyboard: unknown scancode e0 5e

this diff fixes it and allows one to bind the power key to shutdown via
init's keyboard request:

--- linux/drivers/macintosh/mac_hid.c_orig      Mon Dec 11 02:49:42 2000
+++ linux/drivers/macintosh/mac_hid.c   Tue Jan  2 19:08:15 2001
@@ -207,7 +207,7 @@
        0, 0, 0, 0, 0, 0, 0, KEY_HOME,                          /* 0x40-0x47
*/
        KEY_UP, KEY_PAGEUP, 0, KEY_LEFT, 0, KEY_RIGHT, 0, KEY_END, /*
0x48-0x4f */
        KEY_DOWN, KEY_PAGEDOWN, KEY_INSERT, KEY_DELETE, 0, 0, 0, 0, /*
0x50-0x57 */
-       0, 0, 0, KEY_LEFTMETA, KEY_RIGHTMETA, KEY_COMPOSE, 0, 0, /*
0x58-0x5f */
+       0, 0, 0, KEY_LEFTMETA, KEY_RIGHTMETA, KEY_COMPOSE, KEY_POWER, 0, /*
0x58-0x5f */
        0, 0, 0, 0, 0, 0, 0, 0,                                 /* 0x60-0x67
*/
        0, 0, 0, 0, 0, 0, 0, KEY_MACRO,                         /* 0x68-0x6f
*/
        0, 0, 0, 0, 0, 0, 0, 0,                                 /* 0x70-0x77
*/

Then, after trying to get pcmcia working (pcmcia 3.1.23+stock 2.2.18 says
"*NO* card interrupts"), I finally came across this (long url, should be one
line but outlook probably cuts it):

http://www.google.com/search?q=cache:pcmcia.sourceforge.org/cgi-bin/HyperNew
s/get/pcmcia/ports/10/1.html%3Fnogifs++site:pcmcia.sourceforge.org+pismo+pow
erbook+success+pcmcia&hl=en

But even with that patch, I get a kernel panic if I remove the card 'on
fly', without cardctl eject (I'm fiddling with a lucent wavelan silver
card).

I can live with that even if it's a bit annoying, but what I'm curious about
is why I could not find that patch in no other place than google's cache :)

--
Viljo Viitanen


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-02 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-02 17:43 Pcmcia interrupts & power key scancode on pismo powerbook Viljo Viitanen
2001-01-02 18:25 ` Catherine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).