The config for 712 hp boxes
Hi all,
Here is the config file we use to compile a new kernel from the test10
sources. We have the console with the STI and an extra term on the serial port.
Also, in this mail, you have the diff between our hp_keyb.c and the official one but it gives you the ~ and the ' and others scancodes.
All this works for the 712 boxes. We were forced to reboot our box to test the new kernel but before the uptime was 3 days and 4 hours during which we ran dselect and did some compiling.
All the files inclosed are downloadable at
http://www.esiee.fr/~puffin/code/dl.html
Bye,
ESIEE Team
drivers/char/hp_keyb.c +20 -21
@@ -70,12 +70,12 @@#define K_F8 0x42#define K_F9 0x43#define K_F10 0x44 -#define K_F11 87 -#define K_F12 88 +#define K_F11 0x57 +#define K_F12 0x58#define K_PRNT 0x54 -#define K_SCRL 70 -#define K_BRK 119 -#define K_AGR K_NONE +#define K_SCRL 0x46 +#define K_BRK 0x77 +#define K_AGR 0x29#define K_1 0x02#define K_2 0x03#define K_3 0x04
@@ -89,10 +89,10 @@#define K_MINS 0x0c#define K_EQLS 0x0d#define K_BKSP 0x0e -#define K_INS 110 -#define K_HOME 102 -#define K_PGUP 104 -#define K_NUML 69 +#define K_INS 0x6e +#define K_HOME 0x66 +#define K_PGUP 0x68 +#define K_NUML 0x45#define KP_SLH 0x62#define KP_STR 0x37#define KP_MNS 0x4a
@@ -111,13 +111,13 @@#define K_RSBK 0x1b#define K_ENTR 0x1c#define K_DEL 111 -#define K_END 107 -#define K_PGDN 109 +#define K_END 0x6b +#define K_PGDN 0x6d#define KP_7 0x47#define KP_8 0x48#define KP_9 0x49 -#define KP_PLS 118 -#define K_CAPS 58 +#define KP_PLS 0x4e +#define K_CAPS 0x3a#define K_A 0x1e#define K_S 0x1f#define K_D 0x20
@@ -146,7 +146,7 @@#define K_DOT 0x34#define K_FSLH 0x35#define K_RSFT 0x36 -#define K_UP 103 +#define K_UP 0x67#define KP_1 0x4f#define KP_2 0x50#define KP_3 0x51
@@ -156,11 +156,11 @@#define K_SPCE 0x39#define K_RALT 0x64#define K_RCTL 0x61 -#define K_LEFT 105 -#define K_DOWN 108 -#define K_RGHT 106 -#define KP_0 82 -#define KP_DOT 83 +#define K_LEFT 0x69 +#define K_DOWN 0x6c +#define K_RGHT 0x6a +#define KP_0 0x52 +#define KP_DOT 0x53static unsigned char keycode_translate[256 ] = {
@@ -198,7 +198,7 @@/* ----- the following code stolen from pc_keyb.c */ -#ifdef CONFIG_MAGIC_SYSRQ +unsigned char pckbd_sysrq_xlate[128 ] ="\000\0331234567890-=\177\t" /* 0x00 - 0x0f */ "qwertyuiop[]\r\000as" /* 0x10 - 0x1f */
@@ -207,7 +207,6 @@"\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */ "230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */ "\r\000/" ;/* 0x60 - 0x6f */ -#endif /* * Translation of escaped scancodes to keycodes.
Quoted 5 lines · Thomas Marteau
Hi all,
Here is the config file we use to compile a new kernel from the test10
sources. We have the console with the STI and an extra term on the serial port.
Thomas - excellent - thanks!
Quoted 2 lines
Also, in this mail, you have the diff between our
hp_keyb.cand the official one but it gives you the ~ and the ' and others scancodes.
I noticed this mail was directed to me - but I can't take ownership of this code. I have too many other things going on.
Helge - can you commit this fix too?
thanks,
grant
Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253
Quoted 10 lines · Grant Grundler
Quoted 5 lines · Thomas Marteau
Hi all,
Here is the config file we use to compile a new kernel from the test10
sources. We have the console with the STI and an extra term on the serial port.Thomas - excellent - thanks!
Quoted 1 line
Also, in this mail, you have the diff between our
hp_keyb.cand the
official
Quoted 6 lines
Quoted 1 line
one but it gives you the ~ and the ' and others scancodes.
I noticed this mail was directed to me - but I can't take ownership of this code. I have too many other things going on.
Helge - can you commit this fix too?
Ok. I will test & evtl. commit it today.
Quoted 11 lines
thanks,
grantGrant Grundler
Unix Systems Enablement Lab
+1.408.447.7253---------------------------------------------------------------------------
To unsubscribe: send e-mail to [email protected] with `unsubscribe' as the subject.
Quoted 6 lines · Thomas Marteau
Hi all,
[....]
Also, in this mail, you have the diff between ourhp_keyb.cand the official one but it gives you the ~ and the ' and others scancodes. [....]
Hi ESIEE-Team !
Thanks for your patch !
I committed your patch into CVS and just tweaked it a little for CONFIG_MAGIC_SYSRQ. I hope this is ok for you ?
If your time permits, I would like to ask, if you maybe also want to look at getting the CAPS-Lock-, Scroll-Lock- & Num-Lock-LED's working ?
Furthermore you mention in your project-history on your homepage something about "keyboard and soundchip problems" (Oct. 24). I'm asking just out of
curiousity: Did you thought about programming the on-board sound-chips (which I believe would be a hard job.) ?
Quoted 2 lines
Bye,
ESIEE Team
Best regards,
Helge Deller.
[CC'ed the list, so maybe someone else can comment too....]
Quoted 1 line · Thomas Marteau
Hi Helge,
Hi,
Quoted 19 lines
----- Original Message -----
From: Helge Deller <[email protected]>
To: Thomas Marteau <[email protected]>
Cc: <[email protected]>
Sent: Thursday, November 16, 2000 10:28 PM
Subject: Re: [parisc-linux] The config for 712 hp boxesQuoted 5 lines · Thomas Marteau
Quoted 4 lines
Hi all,
[....]
Also, in this mail, you have the diff between ourhp_keyb.cand theofficial
Quoted 3 lines
Quoted 2 lines
one but it gives you the ~ and the ' and others scancodes. [....]
Quoted 8 lines
Quoted 6 lines
Hi ESIEE-Team !
Thanks for your patch !
I committed your patch into CVS and just tweaked it a little for
CONFIG_MAGIC_SYSRQ. I hope this is ok for you ?We didn't really understand why
pckbd_sysrq_xlatewas here for. If you can explain to us, it will be fine.
The best documentation you can find is in linux/Documentation/sysrq.txt. The copy of pckbd_sysrq_xlate[] is a simple implementation of keyboard-scancodes to chars, which is used by drivers/char/keyboard.c to call handle_sysrq() from /drivers/char/sysrq.c.
This means, that you can press Alt-PrintScr (=> SysRQ) and a char at the keyboard simultaniously and your machine for example syncs the disks, mounts all discs read-only or reboots your machine immediately.
Quoted 6 lines
Quoted 1 line
If your time permits, I would like to ask, if you maybe also want to look
at
Quoted 1 line
getting the CAPS-Lock-, Scroll-Lock- & Num-Lock-LED's working ?
Normally, you can see yours leds switching on/off but we did not init them. So they are like boot admin switch them...
^^^^^^^ ^^^^^ ^^^
Sorry ?
Quoted 2 lines
But we would like to know how and where we have to init them because we know how to. We have made test and it was working...
I'm not sure, but I think you should check the code in lasikbd_leds() in hp_psaux.c.
The initialization should maybe be done in the same file in the function lasi_ps2_register() before calling register_kbd_ops().
Quoted 10 lines
Quoted 4 lines
Furthermore you mention in your project-history on your homepage something about "keyboard and soundchip problems" (Oct. 24). I'm asking just out of
curiousity: Did you thought about programming the on-board sound-chips(which
Quoted 1 line
I believe would be a hard job.) ?
Yes, it is in our internal todo list, if we have time to. Because we look at it with Thierry, we saw that, for LASI,
you have an interface and then the chip to configure. But it is very interesting...
Yes it is, and it would be great if you worked on that too !
Quoted 5 lines
Also, we want to rule the power leds but they are different if the box is 712 or B132 or ... So our question is how to implement
this kind of initialsation and deinitialisation in a linux kernel and in a second time, how to do for differents kind of boxes.
As far as I know / have heard, there are only two types of LED's (but I may be wrong here !). One is where the LED's are organized in a row on the front panel (as my local machines here), and the other one, where you have (LED/)LCD-Numbers on your front panel ?
They differ how to be accessed and where the controlling registers are located. One method to distiguish them is maybe to place the special initialisation code into drivers/gsc/lasi.c and asp.c, depending on the machine and which method needs to be used.
Since I don't have any real documentation or knowledge of the programming of the LEDs (beside of the PDC-calls I placed into setup.c), maybe someone else can better comment on that or give some documentation ?
Quoted 4 lines
Thanks for your answers, Helge
Bye,
ESIEE Team
Best regards,
Helge Deller.