PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Disabling Print Screen key
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Disabling Print Screen key

Réponse
 
LinkBack Outils de la discussion
Vieux 31/07/2007, 17h20   #1
Luis Finotti
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 (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), root489,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), root838,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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 31/07/2007, 21h30   #2
Mumia W..
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling Print Screen key

On 07/31/2007 10:09 AM, Luis Finotti wrote:
> 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 (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), root489,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), root838,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
>
>


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.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 31/07/2007, 21h30   #3
Mumia W..
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling Print Screen key

On 07/31/2007 10:09 AM, Luis Finotti wrote:
> 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 (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), root489,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), root838,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
>
>


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.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 31/07/2007, 22h40   #4
Luis Finotti
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 31/07/2007, 23h00   #5
Davide Mancusi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 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.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 31/07/2007, 23h20   #6
Luis Finotti
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling Print Screen key

Dear Davide (and all),

Thanks for the reply!

On 7/31/07, Davide Mancusi <arekfu@gmail.com> 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 02h30   #7
Mumia W..
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling Print Screen key

On 07/31/2007 04:18 PM, Luis Finotti wrote:
> [...]
> 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
>
>


What about this:

xmodmap -e "keycode 111 = BackSpace"

or

xmodmap -e "keycode 111 ="


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 02h30   #8
Mumia W..
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Disabling Print Screen key

On 07/31/2007 04:18 PM, Luis Finotti wrote:
> [...]
> 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
>
>


What about this:

xmodmap -e "keycode 111 = BackSpace"

or

xmodmap -e "keycode 111 ="


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 21h10   #9
Rogério Brito
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h25.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17613 seconds with 17 queries