Contribute
Register

Prt sc Disabling trackpad

Status
Not open for further replies.
Hi,

Is it possible to remap Prt Sc so pressing the key will make a screen shot?

In console I have this msg's:

ApplePS2Keyboard: sending key e037=0, 0=80 up
ApplePS2Keyboard: sending key e037=0, 0=80 down
 
Hi,

Is it possible to remap Prt Sc so pressing the key will make a screen shot?

In console I have this msg's:

ApplePS2Keyboard: sending key e037=0, 0=80 up
ApplePS2Keyboard: sending key e037=0, 0=80 down

I did it in my u430 repo. You can configure PS2 mapping/etc with ACPI.
Refer to the ACPI code in my Lenovo u430 repo on github.
 
I did it in my u430 repo. You can configure PS2 mapping/etc with ACPI.
Refer to the ACPI code in my Lenovo u430 repo on github.
Is there any way to do it by editing Keyboard plugin?
I tried to add e037=80 (Default>Custom PS2 Map) but nothing changed. And I'm not sure I did it right
 
Is there any way to do it by editing Keyboard plugin?
I tried to add e037=80 (Default>Custom PS2 Map) but nothing changed. And I'm not sure I did it right

Use ACPI.
Study the u430 code.

Hint: Your entry 'e037=80' in "Custom PS2 Map" is invalid. "Custom PS2 Map" maps PS2->PS2, not PS2->ADB.
 
As I see you have "e037=64", // PrtSc=F13 in that repo. So if my PrtSc is F14, and return 80, should I change only this line?
 
As I see you have "e037=64", // PrtSc=F13 in that repo. So if my PrtSc is F14, and return 80, should I change only this line?

Yes, it maps PS2 code e037 to PS2 code 64 (F13).
And then later, it is mapped to ADB for F13 by the default ADB table (the default table in the PS2 kext).
And then in my SysPrefs->Keyboard->Shortcuts, I assign F13 to the screen capture function of my choice.
 
Thank's for explanation, RehabMan.

DefinitionBlock ("", "SSDT", 2, "hack", "ps2", 0)
{
External(_SB.PCI0.LPCB.PS2K, DeviceObj)
Scope (_SB.PCI0.LPCB.PS2K)
{
// overrides for VoodooPS2 configuration...
Name(RMCF, Package()
{
"Custom PS2 Map", Package()
{
Package(){},
"e037=80", // PrtSc=F14
},
})
}
}

Is this a correct one?

And if I'll add e037=80 to Custom ADB Map would it be the same?
 
Thank's for explanation, RehabMan.

DefinitionBlock ("", "SSDT", 2, "hack", "ps2", 0)
{
External(_SB.PCI0.LPCB.PS2K, DeviceObj)
Scope (_SB.PCI0.LPCB.PS2K)
{
// overrides for VoodooPS2 configuration...
Name(RMCF, Package()
{
"Custom PS2 Map", Package()
{
Package(){},
"e037=80", // PrtSc=F14
},
})
}
}

Is this a correct one?

And if I'll add e037=80 to Custom ADB Map would it be the same?

It is wrong.
The PS2 code for F14 is 0x65.
Note from ApplePS2ToADBMap.h in the VoodooPS2Keyboard source:
Code:
    0x6b,   // 65  F14

The 0x6b is ADB for F14, which if you make PS2 e037 generate 0x65 (F14) instead is what the system will see (ADB for F14), which you can then assign in SysPrefs->Keyboard->Shortcuts.
 
ohh, I think I got it now... Thank you.

I've added e037=6b to Custom ADB Map, e037=65 to Custom PS2 Map and it works perfectly.
 
Status
Not open for further replies.
Back
Top