Disabling Print Screen key

Hi,

My Print Screen key is too close to BackSpace, so I keep pressing it
by accident. I use KDE, and this makes "KSnapshoyt" pop up. (In
fluxbox, it sends the content of the terminal to the printer.)

I checked the key assignments of KDE, and I found no shortcut for the
PrtSc key, and even defining a different application for that key
would still make (only) KSnapshot pop up. (KSnapshot was assigned to
Crtl+PrtSc, and I disabled it too, just in case.)

My Google searchs did not help (even on this list).

So, I decided to disable the key.

Using "xev", I saw that the keycode was 111:

....
KeyRelease event, serial 31, synthetic NO, window 0x3600001,
root 0x91, subw 0x0, time 482199882, (485,527), root:(489,552),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
....

Indeed, "xmodmap -pk" gave:

...
111 0xff61 (Print) 0xff15 (Sys_Req)
...

So, I did "xmodmap -e "keysym Print = BackSpace"". Now, "xev" gives:

....
KeyRelease event, serial 31, synthetic NO, window 0x3400001,
root 0x91, subw 0x0, time 482660638, (-260,401), root:(838,426),
state 0x0, keycode 111 (keysym 0xff08, BackSpace), same_screen YES,
XKeysymToKeycode returns keycode: 22
XLookupString gives 1 bytes: (08) "
....

and "xmodmap -pk" gives:

...
111 0xff08 (BackSpace)
...

But still, KSnapshot pops up, and the backspace has no effect.

Any suggestions or ideas (other than remove the key physically)??

Thanks,

Luis

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Disabling Print Screen key

Hi,

First, thanks for the reply!

> My system (Debian 3.1, KDE 3.3.2) does not exhibit this behavior by
> default. I can enable (and disable) it by going into the KDE Control
> Center: K-> Control Center-> Regional & Accessibility-> Keyboard
> Shortcuts-> Command Shortcuts-> Graphics-> More Applications-> KSnapshot.
>
> Perhaps you inadvertently made Print a shortcut for ksnapshot. If so,
> you should be able to disable it by going through the above sequence.

No, I haven't... As I stated in the beginning, I checked it to make sure.

Now, I am at work using Fedora Core 5, and again the PrtSc key is NOT
set in KDE, but pressing starts KSnapshot (which I find quite funny).
On the other hand, here I can make it work as BackSpace with "xmodmap
-e "keysym Print = BackSpace"" (which did not work with Debian). So,
I assume it is a Debian-related problem...

By the way, I am using Etch, with the Debian kernel 2.6.18-k7.

Thanks!

Luis

--

Disabling Print Screen key

Luis Finotti ha scritto:
> Hi,
>
> First, thanks for the reply!
>
>> My system (Debian 3.1, KDE 3.3.2) does not exhibit this behavior by
>> default. I can enable (and disable) it by going into the KDE Control
>> Center: K-> Control Center-> Regional & Accessibility-> Keyboard
>> Shortcuts-> Command Shortcuts-> Graphics-> More Applications-> KSnapshot.
>>
>> Perhaps you inadvertently made Print a shortcut for ksnapshot. If so,
>> you should be able to disable it by going through the above sequence.
>
> No, I haven't... As I stated in the beginning, I checked it to make sure.
>
> Now, I am at work using Fedora Core 5, and again the PrtSc key is NOT
> set in KDE, but pressing starts KSnapshot (which I find quite funny).
> On the other hand, here I can make it work as BackSpace with "xmodmap
> -e "keysym Print = BackSpace"" (which did not work with Debian). So,
> I assume it is a Debian-related problem...
>
> By the way, I am using Etch, with the Debian kernel 2.6.18-k7.
>
> Thanks!
>
> Luis
>
>

Found it. It is in (err... sorry, non-English KDE) Regional &
Accessibility -> Input Actions (?) -> Preset Actions -> PrintScreen. If
you look for "gestures" in Control Center, it will pop up immediately.

Cheers,
Davide

--
A tautology is a thing which is tautological.
--
Time flies like an arrow. Fruit flies like a banana.

--

Disabling Print Screen key

Dear Davide (and all),

Thanks for the reply!

On 7/31/07, Davide Mancusi wrote:

> Found it. It is in (err... sorry, non-English KDE) Regional &
> Accessibility -> Input Actions (?) -> Preset Actions -> PrintScreen. If
> you look for "gestures" in Control Center, it will pop up immediately.

I found it in Fedora (but did not try it since I had already disabled
the button). I will try it with Debian when I get home. Thanks!!!

On the other hand, I still don't see why the key wasn't disabled by
the "xmodmap -e" command... Is that a bug??

Thanks again,

Luis

--

Disabling Print Screen key

Dear Luís,

I lost the beginning of this thread. :-( So, I may not know what you're
talking about here.

On Jul 31 2007, Luis Finotti wrote:
> First, thanks for the reply!
> > Perhaps you inadvertently made Print a shortcut for ksnapshot. If so,
> > you should be able to disable it by going through the above sequence.
>
> No, I haven't... As I stated in the beginning, I checked it to make
> sure.

This is really weird, but I'm using a plain window manager here in my
system (not using "a heavier" Desktop Environment, as the resources here
lack the horsepower). :-/

> Now, I am at work using Fedora Core 5, and again the PrtSc key is NOT
> set in KDE, but pressing starts KSnapshot (which I find quite funny).

Yes, I *think* that it would be problematic, especially regarding the
Magic Sysrq function of the kernel, which IMVHO, is essential as a
fallback to issues that may arise (especially when X stops responding).

> On the other hand, here I can make it work as BackSpace with "xmodmap
> -e "keysym Print = BackSpace"" (which did not work with Debian). So,
> I assume it is a Debian-related problem...

Now, this is funny. I'm using similar things here (but in a different
architecture, powerpc), but again, without a DE (and, in particular,
KDE).

Regards, Rogério Brito.

--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org

--

Syndicate content