Bug 20000

Summary: DontVtSwitch is ignored in xorg.conf
Product: xorg Reporter: Javier Ariza <jarizaro>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: high CC: mikmak, yuanzhou520
Version: 7.4 (2008.09)Keywords: regression
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Javier Ariza 2009-02-07 08:20:45 UTC
i have the last xorg.conf (witch ubuntu intrepid).
This bug is present.  I build this package from source too, and the problem persist.

I have a multiseat configuration.  All work ok. But when someone press Alt+FN or CONTROL+ALT+FN system switch to tty.

I added in my xorg.conf the DontVtSwitch, but appears don't work.
In some web pages i saw this entry is ignored if 
  Option "AutoAddDevices" "false"
  Option "AutoEnableDevices" "false"
exists in this file too.


I'm trying to patch the source code to ignore this keypress ALT+FN or CONTROL+ALT+FN, but i don't now exactly where touch.  There are some if (vtswitchenable && ...   ... )  , i added in all ( .... .. && FALSE).
Building and installing the package, but keypress aren't being ignored.
 The file interesting is xorg-server-1.5.2/hw/xfree86/common/xf86Events.c


My ServerFlags section in xorg.conf:


Section "ServerFlags"
  #These option keep the X Server from entering in power saving mode:
  Option "BlankTime"    "0"                                          
  Option "StandByTime"  "0"                                          
  Option "SuspendTime"  "0"                                          
  Option "OffTime"      "0"                                          

  #Allow the server to start without mouse
  Option "AllowMouseOpenFail"   "yes"

  #anadido javi:
  Option "XineRama"     "on"
  Option "AllowEmptyInput" "true"
  Option "AutoAddDevices" "false"
  Option "AutoEnableDevices" "false"


  #Disable VT switching with ALT+Fn
  Option "DontVTSwitch" "yes"
  # Option "HandleSpecialKeys" "Always"

  #This disallows the user of the control + alt + backspace sequence
  Option "DontZap"      "true"
EndSection

Please submit a patch for xf86Events.c or give me a hint.
I'm planning to mount some multiseat configurations, but this problem is giving me a headache. 

Greetings.
Comment 1 Mickael Marchand 2009-02-08 05:40:09 UTC
Please see ubuntu's bug report at https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/295195 where I reported it initially.

Cheers,
Mik
Comment 2 Peter Hutterer 2009-02-11 22:37:26 UTC
AFAICT, this seems to work in master, at least with the evdev driver. With
the kdb driver of despair (the 'fixed' version) it doesn't seem to VT switch
anyway.
Comment 3 yz Lee 2009-02-25 23:04:15 UTC
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Value: 'ascii' codec can't decode byte 0xe4 in position 64: ordinal not in range(128)
  File : /usr/lib/python2.5/site-packages/yum/rpmtrans.py, line 376, in callback
    self._instProgress( bytes, total, h )
  File : /usr/lib/python2.5/site-packages/yum/rpmtrans.py, line 457, in _instProgress
    self.complete_actions, self.total_actions)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2101, in event
    self._showName(self.info_actions[action])
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2094, in _showName
    self.base.package(package_id, status, self.curpkg.summary)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 237, in package
    PackageKitBaseBackend.package(self, package_id, status, summary)
  File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 108, in package
    print >> sys.stdout, "package\t$s\t$s\t$s" $ (status, package_id, summary)
Comment 4 Mickael Marchand 2009-04-22 08:12:28 UTC
I can confirm this is fixed in ubuntu jaunty (so I guess in Xorg too)

thanks a lot
Cheers,
Mik
Comment 5 Javier Ariza 2009-04-22 09:10:19 UTC
(In reply to comment #4)
> I can confirm this is fixed in ubuntu jaunty (so I guess in Xorg too)
> 
> thanks a lot
> Cheers,
> Mik
> 

Good news!
Did you test for a long time? :)

Comment 6 Mickael Marchand 2009-04-22 09:34:23 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > I can confirm this is fixed in ubuntu jaunty (so I guess in Xorg too)
> > 
> > thanks a lot
> > Cheers,
> > Mik
> > 
> 
> Good news!
> Did you test for a long time? :)
> 


well, not much yet (few hours), but as for VT switch I can't switch away nor kill Xorg in my multiseat setup on jaunty,
will test a bit more during the coming days, but looks just fine to me at the moment.

Cheers,
Mik

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.