2001-03-16 15:20:40

by J. Michael Kolbe

[permalink] [raw]
Subject: sysrq.txt

Hello,

I've found that the Sysrq Keys on Apple Computers
are 'Keypad+-F13-<command key>', maybe it would
be a good idea to include that in Documentation/sysrq.txt.

The Patch:

+++ sysrq.txt Tue Dec 12 20:46:38 2000
@@ -29,8 +29,6 @@
You send a BREAK, then within 5 seconds a command key. Sending
BREAK twice is interpreted as a normal BREAK.

-On Mac - Press 'Keypad+-F13-<command key>'
-
On other - If you know of the key combos for other architectures, please
let me know so I can add them to this section.


regards,
jmk


2001-03-19 07:22:01

by Pavel Machek

[permalink] [raw]
Subject: Re: sysrq.txt

Hi!

> I've found that the Sysrq Keys on Apple Computers
> are 'Keypad+-F13-<command key>', maybe it would
> be a good idea to include that in Documentation/sysrq.txt.
>
> The Patch:

This patch is reversed, but otherwise looks okay. Generate
non-reversed one and mail it to linus, possibly saying I agree.
Pavel

> +++ sysrq.txt Tue Dec 12 20:46:38 2000
> @@ -29,8 +29,6 @@
> You send a BREAK, then within 5 seconds a command key. Sending
> BREAK twice is interpreted as a normal BREAK.
>
> -On Mac - Press 'Keypad+-F13-<command key>'
> -
> On other - If you know of the key combos for other architectures, please
> let me know so I can add them to this section.
>
>
> regards,
> jmk
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]

2001-03-19 16:19:39

by Tom Rini

[permalink] [raw]
Subject: Re: sysrq.txt

On Sun, Mar 18, 2001 at 11:39:55PM +0100, Pavel Machek wrote:
> Hi!
>
> > I've found that the Sysrq Keys on Apple Computers
> > are 'Keypad+-F13-<command key>', maybe it would
> > be a good idea to include that in Documentation/sysrq.txt.
> >
> > The Patch:
>
> This patch is reversed, but otherwise looks okay. Generate
> non-reversed one and mail it to linus, possibly saying I agree.

Speaking of reversed, there's a slightly "nicer" one in 2.2.18+:
On PowerPC - You press 'ALT-Print Screen-<command key>'.

(And yes, all the apple keyboards I've seen w/ F13 have Print Screen
right below it). Tho I'm also rather sure this didn't get into
Linus' tree until after the 2.3 split..

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

2001-03-19 20:14:43

by Tom Rini

[permalink] [raw]
Subject: Re: sysrq.txt

On Mon, Mar 19, 2001 at 08:37:00PM +0100, J. Michael Kolbe wrote:
> On Mon, Mar 19, 2001 at 09:15:59AM -0700, Tom Rini wrote:
> > Speaking of reversed, there's a slightly "nicer" one in 2.2.18+:
> > On PowerPC - You press 'ALT-Print Screen-<command key>'.
> >
> > (And yes, all the apple keyboards I've seen w/ F13 have Print Screen
> > right below it). Tho I'm also rather sure this didn't get into
> > Linus' tree until after the 2.3 split..
> >
> Well, my Apple Keyboard doesn't. It's F13. And it doesn't work with 'ALT'.

Which? And it should indeed work with the "alt" key (ie the one for
changing VCs).

> I suppose that's why it didn't get into the mainstream tree.

Er, 2.2 is mainstream.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

2001-03-19 20:50:44

by Tom Rini

[permalink] [raw]
Subject: Re: sysrq.txt

On Mon, Mar 19, 2001 at 08:37:00PM +0100, J. Michael Kolbe wrote:
> On Mon, Mar 19, 2001 at 09:15:59AM -0700, Tom Rini wrote:
> > Speaking of reversed, there's a slightly "nicer" one in 2.2.18+:
> > On PowerPC - You press 'ALT-Print Screen-<command key>'.
> >
> > (And yes, all the apple keyboards I've seen w/ F13 have Print Screen
> > right below it). Tho I'm also rather sure this didn't get into
> > Linus' tree until after the 2.3 split..
> >
> Well, my Apple Keyboard doesn't. It's F13. And it doesn't work with 'ALT'.
> I suppose that's why it didn't get into the mainstream tree.

But anyways. My objects were it's not just "macs". And not all keyboards
have "F13" written on them as well as Print Screen. Which is why I think
what 2.2 has is what 2.4 should have. Or if yours doesn't say Print Screen:

On PowerPC - You press 'ALT-Print Screen (or F13)-<command key>

As to weather or not it's the key which says "ALT" on it or not, it is the
key which provides the ALT keycode in linux. Or it very well should be, for
consistencys sake.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

2001-03-19 23:16:09

by Tom Rini

[permalink] [raw]
Subject: Re: sysrq.txt

On Mon, Mar 19, 2001 at 11:56:19PM +0100, J. Michael Kolbe wrote:
> On Mon, Mar 19, 2001 at 01:46:53PM -0700, Tom Rini wrote:
> > On Mon, Mar 19, 2001 at 08:37:00PM +0100, J. Michael Kolbe wrote:
> > > On Mon, Mar 19, 2001 at 09:15:59AM -0700, Tom Rini wrote:
> > > > Speaking of reversed, there's a slightly "nicer" one in 2.2.18+:
> > > > On PowerPC - You press 'ALT-Print Screen-<command key>'.
> > > >
> > > > (And yes, all the apple keyboards I've seen w/ F13 have Print Screen
> > > > right below it). Tho I'm also rather sure this didn't get into
> > > > Linus' tree until after the 2.3 split..
> > > >
> > > Well, my Apple Keyboard doesn't. It's F13. And it doesn't work with 'ALT'.
> > > I suppose that's why it didn't get into the mainstream tree.
> >
> > But anyways. My objects were it's not just "macs". And not all keyboards
> > have "F13" written on them as well as Print Screen. Which is why I think
> > what 2.2 has is what 2.4 should have. Or if yours doesn't say Print Screen:
> >
> > On PowerPC - You press 'ALT-Print Screen (or F13)-<command key>
> >
> > As to weather or not it's the key which says "ALT" on it or not, it is the
> > key which provides the ALT keycode in linux. Or it very well should be, for
> > consistencys sake.
> >
> Keypad'+''s keycode is 69, while ALT's keycode is 58.

Err, so? The sysrq code is triggered by "ALT" (which on PPC can be any number
of things, depending on keyboard and other stuff) and the SYSRQ key. It's
either 0x69 or 0x54, which is "F13" in either translated keycodes or ADB
respectivly.

> Besides, I have never seen an Apple Keyboard without an F13 Key.

All of the USB keyboards, up until recently.

> So, it's "Keypad'+'-F13 (or Print Screen)-<command key>".
> Any objection?

Well, where does that work? My PReP works fine w/ ALT-printscrn-key
My old pmac is ALT-printscrn-key, and I don't have F13 on my other
keyboard. So yes, I object because I'm not sure where your sugjestion
works.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

2001-03-20 00:21:53

by Tom Rini

[permalink] [raw]
Subject: Re: sysrq.txt

On Tue, Mar 20, 2001 at 01:00:53AM +0100, J. Michael Kolbe wrote:
> Hi.
>
> On Mon, Mar 19, 2001 at 04:21:35PM -0700, Tom Rini wrote:
> > On Mon, Mar 19, 2001 at 11:14:03PM +0000, Andrew Morton wrote:
> >
> > > I included Mr Kolbe's one-liner in the SAK patch which I put
> > > out on Sunday. Now my head is spinning.
> > >
> > > What *should* the change to sysrq.txt say?
> >
> > Well, I think:
> >
> > On PowerPC - You press 'ALT-Print Screen (or F13)-<command key>
> >
> > Which is what 2.2 says, but mentions F13 directly (incase print screen isn't
> > on the key.). The above even makes sense for 2 of my machines which have
> > working sysrq and keyboards.
>
> Well, I've just found an old USB Keyboard, none of the mentioned
> Keyboard combos work, as there is neither F13 nor PrintScreen.

Yes, as SysRq quite possibly doesn't work on (since none of the keys on it
send the right keycode.)

>
> Btw, I'm using an old Newworld G3, the one with ADB.

The old one. :)

> I'd say sysrq.txt should say:
>
> On PowerPC - Press 'ALT - Print Screen (or F13) - <command key>
> On Newworld PPC - You press 'Keypad+ - Print Screen (or F13) - <command key>
>
> I'm still trying to figure out how to do it with the F13-less Keyboard..

Er, I thought you just said you did? What keycodes are you using? Most
"Newworld" only have the F13-less keyboard. Which sort of raises the question
of how 'Keypad +' worked instead of the "ALT" key (either option/alt or the
scroll key, whichever changes VC). Which sounds more like a fluke then
anything else. Which keyboard worked with 'Keypad +' ? The ADB one?
After some quick playing with my oldworld machine, Just F13 - <command key>
is sufficient. I'm not sure about PReP tho (so it's probably not worth
saying you don't need "ALT").

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

2001-03-20 01:19:18

by Tom Rini

[permalink] [raw]
Subject: Re: sysrq.txt

On Tue, Mar 20, 2001 at 02:07:13AM +0100, J. Michael Kolbe wrote:

[snip]
> Well, as there is no keyboard combo that works on every Mac, I think we should
> list every known to be working combo.
>
> Like:
>
> On PowerPC - Press 'ALT - Print Screen (or F13) - <command key>,
> Print Screen (or F13) - <command key> may suffice.

Sounds good.

> Maybe it's a good idea to include F13's keycode, which I don't know.

Nah. I think we should try and fix this sometime tho. Perhaps the round
powerbutton on the keyboard could do 'F13' (and add this to the list..)

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

2001-03-20 02:05:32

by Jonathan Lundell

[permalink] [raw]
Subject: Re: sysrq.txt

> > Well, as there is no keyboard combo that works on every Mac, I think we should
>> list every known to be working combo.
>>
>> Like:
>>
>> On PowerPC - Press 'ALT - Print Screen (or F13) - <command key>,
>> Print Screen (or F13) - <command key> may suffice.
>
>Sounds good.
>
>> Maybe it's a good idea to include F13's keycode, which I don't know.
>
>Nah. I think we should try and fix this sometime tho. Perhaps the round
>powerbutton on the keyboard could do 'F13' (and add this to the list..)

FWIW, the F9 key on a G3 PowerBook is labeled "prt screen", and you get that function with the "fn" key, not the "alt" key (which is a secondary label on the "opt" key).

--
/Jonathan Lundell.