LWN.net Logo

Shortening the rope

Shortening the rope

Posted Apr 3, 2009 22:37 UTC (Fri) by dododge (subscriber, #2870)
In reply to: Shortening the rope by JoeBuck
Parent article: Shortening the rope

Yeah, I have to concur. I'm a 20-year user of emacs, and you could remove the alt keys from my keyboard and I'd hardly notice. I normally use the aforementioned ESC prefix instead, but if you don't want to move off the home row you can even get around that by using C-[. I think the last time I touched an actual meta key was on a DECStation keyboard in the early 90s, and it would never occur to me to try to chord those sequences on a modern system.

Also, I do use ctrl-alt-backspace on purpose all the time. At work I manually start the X server and use C-A-BS to quit on a daily basis. At home there is some sort of race such that the X server never sees all of my video cards immediately after a power cycle, until I C-A-BS gdm and let it probe a second time. Then there are crazy X11 bugs requiring a server restart, which I encounter up to several times a day on my home system (a problem that began immediately after I upgraded from Ubuntu 8.04 to 8.10, sigh).


(Log in to post comments)

Shortening the rope

Posted Apr 4, 2009 0:00 UTC (Sat) by nix (subscriber, #2304) [Link]

I'm a long-term XEmacs user who uses the meta key constantly, despite
starting out in TTYs with ESC the only option: but my keyboard (a Maltron)
is sufficiently bizarre that I had to almost relearn typing, at least
non-alphanumeric typing, when I switched. Learning to use the meta key was
easy when I was learning to use ctrl (next to it) and backspace (next to
that) at the same time.

(Yes, with ctrl-alt-backspace all in a line under my thumb I've been
running with DontZap for a *long* time.)

Shortening the rope

Posted Apr 8, 2009 21:48 UTC (Wed) by roelofs (subscriber, #2599) [Link]

(Yes, with ctrl-alt-backspace all in a line under my thumb...

I smell a Stones parody in there somewhere...

Shortening the rope

Posted Apr 9, 2009 4:39 UTC (Thu) by pr1268 (subscriber, #24648) [Link]

I smell a Stones parody in there somewhere...

Well, I have little Sympathy for the Devil who insists on shortening the rope too much. Don't they realize that You Can't Always Get What You Want? It's bad enough that I Can't Get No Satisfaction with all these extra X server options, and no one else wants to come to my Emotional Rescue when my X session is Shattered. My computer is a Beast of Burden; I cannot just Let It Bleed.

All I ask is that the developers Gimme Shelter from too short a rope. As for the bike shed (discussed by Thue below), why not just Paint It, Black?

Shortening the rope

Posted Apr 17, 2009 8:05 UTC (Fri) by nix (subscriber, #2304) [Link]

Not an intentional one, but it's nice watching people run with it :)

Meta Key

Posted Apr 6, 2009 2:38 UTC (Mon) by rfunk (subscriber, #4054) [Link]

"I think the last time I touched an actual meta key was on a DECStation
keyboard in the early 90s"

What, no Windows keyboard for you?

I map the Windows-logo key to Meta, since it sure looks to me like the
meta keys I had I my old Sun SparcStations. Similarly, Apple keyboards
have an Apple-logo key that serves the same purpose. Note that both Emacs
and X11 have a separate modifier code for Alt and Meta.

Meta Key

Posted Apr 9, 2009 5:44 UTC (Thu) by daniels (subscriber, #16193) [Link]

Strictly speaking, X has no 'modifier code' for Alt (though it can be mapped as a separate modifier via vmods), which is why Meta is generally used.

Meta Key

Posted Apr 17, 2009 12:31 UTC (Fri) by Ross (subscriber, #4065) [Link]

There are eight modifier flags, three of which have permanent meaning (shift, control, and
capslock). So really those are the only ones which are guaranteed to exist on every X server.

Meta, Alt, Hyper, Super, etc. can be mapped to any of the other five if those keysyms (or left or
right vaiants) exist.

My experience is that this stuff isn't very well documented and certain applications interpret things
a little differently.

Utility of ctrl-alt-backspace

Posted Apr 17, 2009 11:51 UTC (Fri) by Ross (subscriber, #4065) [Link]

I'm also a big use of the X server kill keystroke. I use it as a really fast logout mechanism all the
time. Of course I could change to another key sequence (though it wouldn't work when the
screen is locked), and I guess I will have to.

The bigger problem in X server and application bugs. There's no easy way to work around them
and the kill sequence is a quick way to recover. Yes, you can say these should be fixed,
but I've seen them for as long as I've used Linux which is more than a decade now. Whether
Firefox, OpenOffice, some full-screen game (the worst because they seem to make virtual
console switching fail when they lock up), or whatever locks up your session, this gives you a way
out.

Really, I'd like to see the X protocol extended so grabs weren't needed as often, and so there was
a safer way to do grabs. But that hasn't happened and it would take a long time for things to be
rewritten to take advantage of it.

The X server going into a catatonic state (or crashing, but at least then you can login and restart
it) is also something which is hard to fix, because there are so many different video cards and
extensions.

So, in summary, I hate to see this go without a replacement. Someone mentioned that Sun
requires you to hit the key sequence three times in a row -- that would be fine with me. The
alternative is to ssh in and kill things from another computer, or to power-cycle the box, which
isn't convenient.

Utility of ctrl-alt-backspace

Posted Apr 17, 2009 21:39 UTC (Fri) by oak (guest, #2786) [Link]

In the case of a keyboard grab, you can just switch to a virtual terminal
and kill the offending program (all toolkits popups use grabs so program
freezing with menu open e.g. to network timeout is pretty bad). That
releases the client's pointer/keyboard/server grab.

This helps only to grabs though, if X itself freezes, you cannot do the VT
switch as similarly to other FB apps, X would need to ACK the VT-switch
(at least until kernel can do the mode switches & palette save/restore on
VT switches by itself). Then you need to use the kernel SysRq key to kill
the whole X.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds