Re: How to implement alternate zap key idea

2008-10-03 Thread Harald Braumann
On Wed, 24 Sep 2008 09:22:47 +0100
David Gerard [EMAIL PROTECTED] wrote:

 2008/9/23 Jaymz Julian [EMAIL PROTECTED]:
 
 FWIW, I tend to kill X not with ctrl-alt-bs but by going to a non-X
 console with ctrl-alt-F2 and sudo pkill Xorg. I suppose that's a bit
 Linux/FreeBSD-specific, of course. sshing in from another machine also
 works well.

Don't forget to define an ACPI action, that does chvt 1 when you
press Fn-F1 (or whatever) for the times, when xscreensaver's password
window and qt-pinentry fight for the keyboard grab and the keyboard is
stuck.

Cheers,
harry


signature.asc
Description: PGP signature
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: How to implement alternate zap key idea

2008-09-23 Thread William Tracy
On Mon, Sep 22, 2008 at 10:13 PM, Corbin Simpson
[EMAIL PROTECTED] wrote:
 Or, to put it another way, distros should default to DontZap, except
 for Gentoo. :3

I've had to use ctrl+alt+backspace fairly often in the past due to
buggy window managers. (I'm looking at you, Enlightenment.)

Or due to Gnome or KDE getting halfway through loading a desktop over
NFS, then locking up when when the network does something weird. _

Or when I'm browsing Slashdot, accidentally click a GNAA link, and a
bunch of shock images start dancing on my screen ... while I'm in
public. (NoScript for Firefox is a good thing!)

-- 
William Tracy
[EMAIL PROTECTED] -- [EMAIL PROTECTED]
Vice President, Cal Poly Linux Users' Group
http://www.cplug.org
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: How to implement alternate zap key idea (was: Re: Poll: Should Xorg change from using Ctrl+Alt+Backspace to?something harder for users to press by accident?)

2008-09-22 Thread Peter Hutterer
On Tue, Sep 23, 2008 at 04:39:49AM +, Jason Spiro wrote:
 Thanks for the info.  1. So I guess when using evdev, a way to implement my
 Ctrl+Alt+Bksp then Ctrl+Alt+Y idea would be this?:  Ctrl+Alt+Bksp should latch
 some new modifier called ctrl_alt_bksp_was_pressed, and Ctrl+Alt+Y should zap 
 X
 only when that modifier is latched.  Would that work?

maybe. You'd need to look at XKB's compat capabilities there.

Anyway - that's taking the hard way out. 
your claim was that CAB is too easy to hit. So disable it - it could be easily
done at runtime through xkb options. Or put it on ctrl-alt-shift-F12 or
something.

Alternatively, have a client listen to CAB, load the normal xkb behaviour, pop
up a dialog if you want to kill the server, hit CAB now. (this is just idle
thinking)

 As for the Ctrl+K+X idea (which I don't know is as safe; 

AFAIK, XKB will only handle combinations with modifiers. sequential key combos
must be done in a client.

 2. is it possible that a heavy pet sitting on the keyboard and depressing all 
 keys at once could cause
 X to think Ctrl+K+X was pressed?), 

yes. and those users with a pet octopus better choose a 9-key combo. Ha, 
serves them octopodiformes right for having 2 fingers less than us!

There is a thing such as cost/effort. stop your pet sitting on the keyboard,
or disable zap.

 3. are kbd and evdev each able to detect such a key combination? 

both are designed to handle key events - yes.

 4. Are the majority of PS/2 and USB keyboards able to transmit such three-key 
 combos reliably?  

they are designed to handle keyboard entry - yes.

 5. Do most users know how to press multi-letter key combinations?

Depends on your definition of most and of users. I know a fair few that
would go looking for a post box when you start talking about multi-letter
combinations.

Cheers,
  Peter
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: How to implement alternate zap key idea

2008-09-22 Thread Corbin Simpson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jason Spiro wrote:
 Plus, due to the psychological effect called groupthink, people who would 
 have
 said yes are now less likely to admit it to the entire list, since IIRC 
 three
 have already said no and only one (me) has said yes.  :(

Ctrl+K+X may not work on some keyboards. Ctrl+Alt+Z, Ctrl+Alt+A,
Ctrl+Alt+P may be a legitimate sequence in some program.

We are not talking about a reboot, we are talking about killing, and
optionally restarting, the graphics subsystem. This is not something any
casual user should *ever* have to do. Ever. If somebody *needs* to kill
X using an emergency key combo, and they are not devs, then something is
wrong somewhere down the line.

Or, to put it another way, distros should default to DontZap, except
for Gentoo. :3

(And Slackware, and Arch, and LFS. Sheesh.)

~ C.

- --
~ Corbin Simpson
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjYew0ACgkQeCCY8PC5utDzDQCdHD8WAk25da2bYerVQiUX1UnZ
5VkAn1xPsLSMnYgqdMJjQMIMTeUgrhxA
=p2mD
-END PGP SIGNATURE-
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg