You are not logged in.

#26 2009-05-30 10:28:30

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

As always, the Ubuntu devs interfered into a big Linux project (like GNOME for example) and created a mess.

Those guys should be banned from connecting to the internet.

Offline

#27 2009-05-30 10:38:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

I don't care if the idea came from Ubuntu, xorg / freedestop or from BillG himself, but I kinda like nice fonts and graphic browsers and don't want to ditch X completely.

Offline

#28 2009-05-30 11:15:24

vries
Member
Registered: 2008-04-20
Posts: 8

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

heh, so backspace is not good enough for xorg devs now, eh? I've created a patch for xkebord-config since I prefer to patch my packages than adding another command to startup scripts.

--- symbols/pc    2009-04-25 14:04:02.000000000 -0700
+++ symbols/pc    2009-05-30 12:30:33.000000000 -0700
@@ -19,7 +19,10 @@
     include "pc(editing)"
     include "keypad(x11)"
 
-    key <BKSP> {    [ BackSpace    ]    };
+    key <BKSP> {
+        type="CTRL+ALT",
+        symbols[Group1]= [ BackSpace,   Terminate_Server ]
+    };
 
     key  <TAB> {    [ Tab,    ISO_Left_Tab    ]    };
     key <RTRN> {    [ Return    ]    };

Offline

#29 2009-05-30 11:22:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

@vries
The problem w/ patches is that they are pain in the neck to maintain.

Offline

#30 2009-05-30 13:00:11

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Ashren wrote:

Why don't they (the Xorg devs) want people to have this feature anymore? To protect newbies from losing data? Some other reason?

http://www.mail-archive.com/xorg-devel@ … 00420.html


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#31 2009-05-30 13:41:15

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

I added the setxkbmap line to my ~/.xinitrc but my C-A-Backspace doesn't restart gdm.

$ cat ~/.xinitrc 
#!/bin/sh
exec gnome-session
setxkbmap -option terminate:ctrl_alt_bksp

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#32 2009-05-30 13:44:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Maybe you should switch the lines - execute setxkbmap first?

Offline

#33 2009-05-30 13:47:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

@karol - I tried it both ways

#!/bin/sh
exec gnome-session
setxkbmap -option terminate:ctrl_alt_bksp

and also

#!/bin/sh
setxkbmap -option terminate:ctrl_alt_bksp
exec gnome-session

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#34 2009-05-30 13:52:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Maybe when you're using session manager everything's a bit different because it's handled by xfce4-session or gnome-session. It's just a guess and unfortunately I don't know how to enable C-A-B in your setup.

Offline

#35 2009-05-30 13:54:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Thanks for the reply, karol.

Last edited by graysky (2009-05-30 19:03:21)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#36 2009-05-30 13:59:57

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Thanks to this thread I've got C-A-Backspace working again, but I can't use Super_L in any shortcuts. I've got the following in my .stumpwmrc and now it does absolutely nothing:

(define-key *top-map* (kbd "M-S-Super_L")   "exec urxvtc -e python")
(define-key *top-map* (kbd "C-Super_L")     "exec urxvtc -e screen")
(define-key *top-map* (kbd "C-S-Super_L")   "exec urxvtc -sh 0 -e cmatrix -C red -l -b")
(define-key *top-map* (kbd "C-M-Super_L")   "exec urxvtc -e guile")
(define-key *top-map* (kbd "C-M-S-Super_L") "exec urxvtc -e clisp")
(define-key *top-map* (kbd "M-Super_L")     "exec urxvtc -e emacs")

Offline

#37 2009-05-30 14:05:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

@Barrucadu
Maybe you should check new features of xkeyboard-config.

Offline

#38 2009-05-30 14:06:20

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Ah, it seems Super_L has transformed into a modkey.

Offline

#39 2009-05-30 14:13:23

kareeser
Member
Registered: 2009-05-29
Posts: 10

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Hm. Interesting move... I also noticed this happenning.

I figured they already disabled Ctrl-Alt-Bksp already, so what's the point in further disabling it? Sounds like a dick move just to piss off people who like that particular shortcut smile

Good to hear the solution is simple... I had thought for a moment that I'd done something wrong, since I was in the middle of messing around with my setup.

Offline

#40 2009-05-30 15:40:55

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

This is going to be the whole mess all over again sad
How many times is this going to be changed upstream and to what purpose ...


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#41 2009-05-30 15:45:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Developers can be every bit as good / bad as any people. If politicians can have "fun" making little changes that piss people off but don't really make the world a better place, why the devs can't? I think they _shouldn't_ even if they can but that's another story.

Offline

#42 2009-05-30 19:03:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

karol wrote:

Maybe when you're using session manager everything's a bit different because it's handled by xfce4-session or gnome-session. It's just a guess and unfortunately I don't know how to enable C-A-B in your setup.

Is anyone running Gnome with this updated version of xorg AND has restored their C+A+Backspace?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#43 2009-05-30 19:20:32

vries
Member
Registered: 2008-04-20
Posts: 8

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

I've found better way to maintain it:
if you use hotplugging  add:
<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
to your /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi

if you aren't using hotplugging add:
Option         "XkbOptions" "terminate:ctrl_alt_bksp"
to keyboard section in xorg.conf

Last edited by vries (2009-05-30 19:22:32)

Offline

#44 2009-05-30 19:22:23

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

I use HAL/evdev to auto configure my keyboard. For german keyboard layout I needed to copy /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi to /etc/hal/fdi/policy/10-keymap.fdi and make some changes.

After adding

<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>

to the file Ctrl+Alt+Backsp works here.

this is my complete /etc/hal/fdi/policy/10-keymap.fdi

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">de</merge>
      <merge key="input.xkb.variant" type="string">nodeadkeys</merge>
      <merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
    </match>
  </device>
</deviceinfo>

edit:
hmm, to late wink

Last edited by SiD (2009-05-30 19:25:06)

Offline

#45 2009-05-31 01:48:56

kareeser
Member
Registered: 2009-05-29
Posts: 10

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Hm.

I wonder if anyone's actually explored the possibility that one could change the "restart X" combo from Ctrl-Alt-Bksp to Ctrl-Alt-Bksp x 2. It would certainly stop people from hitting it accidentally.

Hell, make it a three-fer, and if you STILL manage to hit it by accident, then you're just an idiot. smile

Edit: As it turns out, yes, it's been discussed, but glossed over without much discussion. Too bad.

Last edited by kareeser (2009-05-31 02:00:10)

Offline

#46 2009-05-31 09:50:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

I can execute the following command to re-enable the C+A+B restarting X once I'm logged into gnome:

$ setxkbmap -option terminate:ctrl_alt_bksp

Others have recommended that I add this line to my ~/.xinitrc however doing so has no effect once I restart gdm and log in (i.e. C+A+B doesn't work).  Short of adding a shell script and making it run when I log into gnome, is there a better way to have that setxkbmap line run?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#47 2009-05-31 09:56:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

vries wrote:

if you aren't using hotplugging add:
Option         "XkbOptions" "terminate:ctrl_alt_bksp"
to keyboard section in xorg.conf

Offline

#48 2009-05-31 10:15:03

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

@karol - I tried that and as well.  Also, I tried his other suggestion to add the line to my /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi

Neither of which worked after I manually restarted gdm sad

In case this is my error, here is the keyboard line from my /etc/X11/xorg.conf as it appears in the file:

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
       Option  "XkbOptions" "terminate:ctrl_alt_bksp"

Here is my modified /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">us</merge>
      <merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

Last edited by graysky (2009-05-31 10:17:00)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#49 2009-05-31 10:36:34

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

Assume you did a hal restart after changing 10-keymap.fdi?

Offline

#50 2009-05-31 10:37:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: latest xkeyboard-config prevents ctrl-alt-backspace from killing X

You can either execute that command after you've logged in by some script magic or find out what files does gnome-session sources and try to add that line somewhere. I don't know if rc.local is a good place for such a hack.

Offline

Board footer

Powered by FluxBB