Bug 576481 - Even with DontZap off, Ctrl+Alt+Backspace doesn't kill the X server
Summary: Even with DontZap off, Ctrl+Alt+Backspace doesn't kill the X server
Status: RESOLVED FIXED
: 604018 (view as bug list)
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Milestone 4
Hardware: x86-64 openSUSE 11.3
: P2 - High : Normal with 1 vote (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-03 12:08 UTC by Jaroslaw Zachwieja
Modified: 2010-06-19 12:41 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
HWinfo log (587.88 KB, text/plain)
2010-03-19 11:34 UTC, Jaroslaw Zachwieja
Details
rpm -qa log (90.09 KB, text/x-log)
2010-03-19 11:34 UTC, Jaroslaw Zachwieja
Details
aytoyast profile used to install the system (88.84 KB, application/xml)
2010-03-19 11:38 UTC, Jaroslaw Zachwieja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslaw Zachwieja 2010-02-03 12:08:30 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.1) Gecko/20090714 SUSE/3.5.1-1.1 Firefox/3.5.1

# cat /etc/X11/xorg.conf
Section "ServerFlags"
        Option          "DontZap"       "off"
EndSection


# grep DontZap /var/log/Xorg.0.log
(**) Option "DontZap" "off"

Ctrl+Alt+Backspace doesn't work (even twice, three or four times).

Reproducible: Always

Steps to Reproduce:
1. Add above to /etc/X11/xorg.conf
2. restart xdm
3. press C+A+B twice in rapid succession on the login screen.
Actual Results:  
Nothing.

Expected Results:  
X Server should die and get restarted by xdm.

Other Ctrl+Alt combinations work: Ctrl+Alt+Insert, Ctrl+Alt+Delete.

I understand that you're trying to shield the lemmings from shooting themselves in the foot and introduce safe defaults, but this is after I've explicitly enabled the feature.
Comment 1 Jaroslaw Zachwieja 2010-02-09 14:58:24 UTC
Any update on this?
Comment 2 Stefan Dirsch 2010-02-16 13:18:21 UTC
Hmm. Works for me. Please note our default here:

       Option "ZapWarning"  "boolean"
              This warns the user loudly when the Ctrl+Alt+Backspace  sequence
              is  pressed  for  the  first  time but still terminates the Xorg
              server when this key-sequence is pressed  again  shortly  after.
              Default: on.
Comment 3 Jaroslaw Zachwieja 2010-02-16 13:32:24 UTC
Reopening.

Stefan,

Please note that I'm not complaining about the ZapWarning. I don't mind that behaviour.

I'm reporting the Zap not working at all, regardless if it's with warning or not.

I thought I was clear about it when describing steps to reproduce (see Description, Step 3).

Unless I'm missing something here...
Comment 4 Stefan Dirsch 2010-02-16 13:40:53 UTC
But what can I do, if I can't reproduce that issue? I'm already using latest Xserver from X11:Xorg ...
Comment 5 Jaroslaw Zachwieja 2010-02-16 14:16:20 UTC
Gotcha. Misunderstanding sorted. I'll retest.
Comment 6 Bernhard Wiedemann 2010-02-27 04:29:13 UTC
can reproduce this behavior:

I installed in VirtualBox-3.1.3  openSUSE-11.3-MS2 from NET choosing LXDE (has xorg-7.4-67.7)
To zap in VirtualBox, one has to hit right-Ctrl+Backspace (tested on other Linux)

Regardless of ZapWarning and DontZap options, nothing happens when hitting the zap key several times in short succession.
init 3  and  rcxdm stop  work now (but did not on first boot)

Xorg.0.log is not writing anything about it.
Are there any other logs that I could check?
Comment 7 Stefan Dirsch 2010-02-27 08:14:46 UTC
Please open a seperate bugreport for Virtualbox.
Comment 8 Bernhard Wiedemann 2010-02-28 06:25:36 UTC
This issue is in no part related to VirtualBox as I can now also reproduce it on qemu-kvm (using "sendkey ctrl-alt-backspace") and original poster could reproduce it on real hardware, so I have no doubt that I could do the same.
So if I opened another "Zapping X11 doesnt work"-report it would have to be considered a DUPLICATE of this one.
Am I missing something that makes opening another report worthwhile?
Comment 9 Stefan Dirsch 2010-02-28 08:37:56 UTC
I believe I made it rather clear that I could not reproduce that issue on real hardware. Virtualbox/qemu X support is handled by a different developer, so this person might be lucky and can reproduce the issue. So please be so kind and open a
seperate bugreport. Thanks.
Comment 10 Jaroslaw Zachwieja 2010-03-19 11:33:08 UTC
I have reproduced the issue again on real hardware using Milestone3.
Comment 11 Jaroslaw Zachwieja 2010-03-19 11:34:13 UTC
Created attachment 349442 [details]
HWinfo log
Comment 12 Jaroslaw Zachwieja 2010-03-19 11:34:56 UTC
Created attachment 349443 [details]
rpm -qa log

This has been installed from LiveCD (KDE) Milestone3
Comment 13 Jaroslaw Zachwieja 2010-03-19 11:36:01 UTC
(In reply to comment #12)
> This has been installed from LiveCD (KDE) Milestone3

Sorry, wrong system, ignore that sentence (attachment concerns the actual system).
Comment 14 Jaroslaw Zachwieja 2010-03-19 11:38:43 UTC
Created attachment 349445 [details]
aytoyast profile used to install the system

The system is a Dell OptiPlex 780.
Comment 15 Stefan Dirsch 2010-03-19 11:47:36 UTC
Looks it doesn't help to close a bug as worksforme. It gets reopened again and again anyway. Ignoring it for the time being.
Comment 16 Jaroslaw Zachwieja 2010-03-19 11:58:42 UTC
Stefan,

Have you actually tried reproducing it using the attached autoyast profile?

Can you verify this still happening for milestone 3 or does it work for your own branch of X11?

Would you be so kind and add QA as CC for this? I believe this needs to be addressed, not ignored.

Regards,
-- 
JZ
Comment 17 Stefan Dirsch 2010-03-19 14:39:37 UTC
As you wish.
Comment 18 Jaroslaw Zachwieja 2010-03-24 16:27:50 UTC
Problem still exists in Milestone 4.
Comment 19 Stefan Dirsch 2010-03-25 14:34:55 UTC
I can reproduce that issue on a freshly installed machine with Milestone 4. Even

Section "ServerFlags"
  Option "DontZap" "off"
  Option "ZapWarning" "on"
EndSection

doesn't help.

On the other machine I keep udpated on Factory I can reproduce the issue only when starting a second Xserver on top of a running Xserver. If I start a second Xserver from Linux console Ctrl-Alt-BS works fine. Ctrl-Alt-BS works also
for the first Xserver. Weird.
Comment 20 Stefan Dirsch 2010-04-06 00:30:01 UTC
Just as a hint for myself.

https://wiki.ubuntu.com/X/Config/DontZap

enable Zapping:  setxkbmap -option terminate:ctrl_alt_bksp
disable Zapping: setxkbmap -option ""
Comment 21 Stefan Dirsch 2010-04-07 12:17:54 UTC
Adding

  Option  "XkbOptions"    "terminate:ctrl_alt_bksp"

to keyboard snippet in xorg.conf.d appears to fix the issue.
Comment 22 Stefan Dirsch 2010-04-07 12:48:30 UTC
Fixed in xorg-x11 now:

-------------------------------------------------------------------
Wed Apr  7 14:40:22 CEST 2010 - sndirsch@suse.de

- etc/X11/xdm/keytable: 
  * make Zapping possible again; still beeps first (bnc #576481)
Comment 23 Jaroslaw Zachwieja 2010-04-13 11:57:05 UTC
Thanks!
Comment 24 Stefan Dirsch 2010-05-08 13:36:52 UTC
*** Bug 604018 has been marked as a duplicate of this bug. ***
Comment 25 Harald Koenig 2010-05-09 17:31:48 UTC
(In reply to comment #24)
> *** Bug 604018 has been marked as a duplicate of this bug. ***

etc/X11/xdm/keytable is the wrong place to fix this!

* does not work with explicit xorg.conf (at least I guess so -- and yes, sometimes it's still needed e.g. for non-standard multi screen setups)

* does not work for plain Xserver or startup using xinit (not using xdm)

* does not fix the inconsistency in keytables between "de" (zapping works) and "us" (zapping broken).  see bug #604018 for details why you can't reproduce the problem with "de" keyboard settings...


please fix the xkb files and forget about such workarounds, please.
thanks!
Comment 26 Harald Koenig 2010-05-09 17:32:38 UTC
oops, forgot to "REOPEN" this bug....
Comment 27 Stefan Dirsch 2010-05-09 19:39:28 UTC
Harald, as I said I'm not aware of a better fix. Feel free to report upstream or provide a fix. Aren't you part of the openSUSE community? ;-)
Comment 28 Atri Bhattacharya 2010-06-19 01:35:46 UTC
Still does not work for me with RC1. I mean, if I press Ctrl+Alt+Backspace twice I still cannot kill X. Is Zapping turned off by default? If so how to turn it on since there is no xorg.conf file anymore?

Thanks
Comment 29 Stefan Dirsch 2010-06-19 01:58:17 UTC
ZapWarning is still our default. Please attach 

  /etc/X11/xorg.conf.d/90-keytable.conf
Comment 30 Atri Bhattacharya 2010-06-19 02:40:30 UTC
This is the content of the requested file:-

Section "InputClass"
	Identifier "LocalKeyboard"
	MatchIsKeyboard "on"
	Option	"XkbRules"	"base"
	Option	"XkbModel"	"evdev"
	Option	"XkbLayout"	"us"
	Option	"XkbOptions"	"terminate:ctrl_alt_bksp"
EndSection
Comment 31 Stefan Dirsch 2010-06-19 02:46:44 UTC
Looks good. I guess you still have a xorg.conf file in place, which overwrites that setting.
Comment 32 Atri Bhattacharya 2010-06-19 03:12:23 UTC
(In reply to comment #31)
> Looks good. I guess you still have a xorg.conf file in place, which overwrites
> that setting.

No, I don't think so

>cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: No such file or directory
Comment 33 Bernhard Wiedemann 2010-06-19 06:57:25 UTC
This worked for me now on a fresh install of RC1 on VirtualBox. 
Atri: is this a fresh install or an updated older system?
Maybe some other leftover/cache file? try  grep Input /etc/X11 -R
Comment 34 Stefan Dirsch 2010-06-19 07:56:09 UTC
Well, you could see in /var/log/Xorg.0.log, whether there is still any xorg.conf in place and being read.
Comment 35 Stefan Dirsch 2010-06-19 12:02:42 UTC
The following patch should fix the issue.

--- usr/share/X11/xkb/rules/evdev.orig  2010-06-19 13:48:56.059291636 +0200
+++ usr/share/X11/xkb/rules/evdev       2010-06-19 13:52:04.338436260 +0200
@@ -899,8 +899,8 @@
   us           intl-unicode    =       +extras/us(intl-unicode):4
 
 ! model                =       symbols
-  $evdevkbds    =   +inet(evdev)+inet(%m)
-  *             =   +inet(evdev)
+  $evdevkbds    =   +inet(evdev)+inet(%m)+terminate(ctrl_alt_bksp)
+  *             =   +inet(evdev)+terminate(ctrl_alt_bksp)
 
 ! model                layout          =       compat
   pc98         nec_vndr/jp     =       pc98(basic)
Comment 36 Stefan Dirsch 2010-06-19 12:41:30 UTC
Now hopefully fixed for real (SR #41767/41768).

 41767  State:new     By:sndirsch     When:2010-06-19T14:27:48
        submit:       X11:XOrg/xkeyboard-config  ->  openSUSE:Factory       
        Descr: - xkeyboard-config.ctrl_alt_bksp.patch
                 * enable zapping by default (still protected by ZapWarning)
                   (bnc #576481)

 41768  State:new     By:sndirsch     When:2010-06-19T14:39:59
        submit:       X11:XOrg/xorg-x11  ->  openSUSE:Factory       
        Descr: - /etc/X11/xdm/keytable:
                 * model/rules is always "evdev", not matter what you write to
                   keyboard section
                 * option terminate:ctrl_alt_bksp no longer required; now fixed
                   for real in xkeyboard-config