View previous topic :: View next topic |
Author |
Message |
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat Sep 26, 2009 3:35 pm Post subject: [SOLVED] How do I make X stop on Control-Alt-Backspace? |
|
|
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 |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1897 Location: 127.0.0.1
|
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat Sep 26, 2009 4:52 pm Post subject: |
|
|
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 |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Sep 26, 2009 5:00 pm Post subject: |
|
|
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 |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat Sep 26, 2009 5:12 pm Post subject: |
|
|
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 |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Sat Sep 26, 2009 7:39 pm Post subject: |
|
|
erm - and you restarted xorg ? |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Sep 26, 2009 8:45 pm Post subject: |
|
|
Are you using KDM? |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat Sep 26, 2009 8:53 pm Post subject: |
|
|
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 |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Sep 26, 2009 9:01 pm Post subject: |
|
|
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 |
|
|
psdasilva Apprentice
Joined: 03 Sep 2005 Posts: 239
|
Posted: Thu Oct 08, 2009 12:23 am Post subject: |
|
|
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 |
|
|
grasschopper139 n00b
Joined: 12 Jul 2009 Posts: 14 Location: New Jersey, USA
|
Posted: Thu Oct 08, 2009 4:38 am Post subject: |
|
|
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 |
|
|
remi2402 Retired Dev
Joined: 28 Jun 2003 Posts: 111 Location: Paris, France
|
Posted: Thu Oct 08, 2009 3:30 pm Post subject: |
|
|
If you're having issues with HAL, the first thing to check is .
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 |
|
|
psdasilva Apprentice
Joined: 03 Sep 2005 Posts: 239
|
Posted: Fri Oct 09, 2009 12:42 am Post subject: |
|
|
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 |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Fri Oct 09, 2009 3:36 am Post subject: |
|
|
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 |
|
|
|