Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How do I make X stop on Control-Alt-Backspace?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Sat Sep 26, 2009 3:35 pm    Post subject: [SOLVED] How do I make X stop on Control-Alt-Backspace? Reply with quote

Hi,

I know that sometime recently they removed the shortcut to terminate X on Control-Alt-Backspace.

From what I find on Google, the way to fix this is to add:

Code:
Section "ServerFlags"
        Option  "DontZap" "off"
EndSection

to the xorg.conf.

However, it does not work. Can anyone tell me why?

Thanks in advance!


Last edited by Etal on Tue Mar 23, 2010 7:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Sat Sep 26, 2009 4:19 pm    Post subject: Reply with quote

You should read this : xorg-server-1.6 upgrade guide
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Sat Sep 26, 2009 4:52 pm    Post subject: Reply with quote

OK, so running after running "setxkbmap -option terminate:ctrl_alt_bksp" , it works.

However, if I add the line to xorg.conf, it does not change anything. :?

Code:
Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "keyboard"
   Option      "XkbRules" "xorg"
   Option      "XkbModel" "inspiron"
   Option      "XkbLayout" "us"
   Option      "XkbOptions" "compose:ralt"
   Option      "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection


Did I do something wrong?
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Sep 26, 2009 5:00 pm    Post subject: Reply with quote

AM088 wrote:
OK, so running after running "setxkbmap -option terminate:ctrl_alt_bksp" , it works.
However, if I add the line to xorg.conf, it does not change anything. :?
Did I do something wrong?
The option works fine for me - probably your xorg.conf is ignored ??
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Sat Sep 26, 2009 5:12 pm    Post subject: Reply with quote

Nope, everything is built with "-hal", and hald is not running, and the log says "(==) Using config file: "/etc/X11/xorg.conf""

Interestingly, it does not mention the option in the log:
Code:
$ grep Keyboard /var/log/Xorg.0.log
(**) |-->Input Device "Keyboard0"
(**) Option "CoreKeyboard"
(**) Keyboard0: always reports core events
(**) Keyboard0: Protocol: standard
(**) Keyboard0: XkbRules: "xorg"
(**) Keyboard0: XkbModel: "inspiron"
(**) Keyboard0: XkbLayout: "us"
(**) Keyboard0: XkbOptions: "compose:ralt"
(**) Keyboard0: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Sep 26, 2009 7:39 pm    Post subject: Reply with quote

erm - and you restarted xorg ?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Sep 26, 2009 8:45 pm    Post subject: Reply with quote

Are you using KDM?
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Sat Sep 26, 2009 8:53 pm    Post subject: Reply with quote

toralf wrote:
erm - and you restarted xorg ?

Yes...

Mike Hunt wrote:
Are you using KDM?


I am. But even if I start X from console ( X :1 & xterm -display :1 ), it still doesn't work - instead I get a letter 'ÿ‪' in the xterm.

(Before someone asks about my "compose:ralt" - no, I'm not using the right Alt key)
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Sep 26, 2009 9:01 pm    Post subject: Reply with quote

you can edit /usr/share/config/kdm/kdmrc
    #ServerCmd=/usr/bin/X -br -novtswitch -quiet
    ServerCmd=/usr/bin/X -br -quiet


did you look here?
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Thu Oct 08, 2009 12:23 am    Post subject: Reply with quote

I have the same problem as the OP but using hal!

Here is my /etc/hal/fdi/policy/10-x11-input.fdi:
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <!-- FIXME: Support tablets too. -->
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">mouse</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
      </match>
    </match>

    <match key="info.capabilities" contains="input.touchpad">
      <merge key="input.x11_driver" type="string">mouse</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
      </match>
    </match>

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

      <!-- Restore Ctrl-Alt-Bksp Xserver Zapping -->
      <merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>

      <merge key="input.xkb.layout" type="string">pt</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>


I allso added to my xorg.conf
Code:

Section "ServerFlags"
        Option  "DontZap" "off"
EndSection


Any idea where to look at?

Thanks
Back to top
View user's profile Send private message
grasschopper139
n00b
n00b


Joined: 12 Jul 2009
Posts: 14
Location: New Jersey, USA

PostPosted: Thu Oct 08, 2009 4:38 am    Post subject: Reply with quote

my not be exactly what you are looking for, but could do the trick. Emerge xbindkeys. then edit the file ~/.xbindkeysrc with the command you want. I used it to get my media keys working on my dell laptop. here is a copy of my .xbindkeysrc

Code:
"amixer sset Master toggle && amixer sset 'Master Mono' toggle && amixer sset Headphone toggle"
XF86AudioMute

"amixer sset Master 1+ && amixer sset 'Master Mono' 1+ && amixer sset Headphone 1+"
XF86AudioRaiseVolume

"amixer sset Master 1- && amixer sset 'Master Mono' 1- && amixer sset Headphone 1-"
XF86AudioLowerVolume

"eject"
XF86Eject
Back to top
View user's profile Send private message
remi2402
Retired Dev
Retired Dev


Joined: 28 Jun 2003
Posts: 111
Location: Paris, France

PostPosted: Thu Oct 08, 2009 3:30 pm    Post subject: Reply with quote

If you're having issues with HAL, the first thing to check is
Code:
lshal | less
.

All the options you specify in /etc/hal/... must show up with lshal. If not, then your fdi file is wrong.

Don't forget to restart HAL after editing your fdi files.
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Fri Oct 09, 2009 12:42 am    Post subject: Reply with quote

Quote:

Don't forget to restart HAL after editing your fdi files.

That's it!!! I did all my tests without restarting HAL!
I just gave it a try and it is working fine.

Thank you very much.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Fri Oct 09, 2009 3:36 am    Post subject: Reply with quote

I use the -hal USE flag and I don't have hald running, so it doesn't help me :(

Edit: As a workaround, if I have the need to kill X, I just use Alt+SysRq+K.

Edit 2: RedSquirrel solved it here. Yay!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum