F11: xorg decision to disable Ctrl-Alt-Backspace

Casey Dahlin cdahlin at redhat.com
Fri Apr 3 16:35:50 UTC 2009


Adam Jackson wrote:
> On Thu, 2009-04-02 at 01:16 -0400, Casey Dahlin wrote:
> 
>> If X simply knew it was in an inconsistent state, could it initiate
>> recovery from there? It'd be nice if we could have a simple
>> /usr/bin/xreconfig so we could add this to the "easy fix from vt" cases.
> 
> Ngggh.
> 
> xrandr --auto would get you most of the way there, except, if you're
> vt-switched away from X, then it can't actually do the hardware probe
> again, because it doesn't own the hardware.  You could do something like
> (chvt 7; sleep 5; xrandr --auto) &, along with all the requisite
> DISPLAY= and XAUTHORITY= and maybe that would help?
> 
> - ajax
> 

You could probably replace the chvt 7; sleep 5 with something that would simply wait for X's vt to become active again (new code). Then there'd be the matter of getting the environment.

My first thought was to simply have a command that would set a flag inside of X, and then have x respond as if the user had done xrandr --auto the next time the vt became active.

Its definitely not /pretty/ to do any way I can think of, and I'm not sure the benefit outweighs the ugly when I step back and look at it.

--CJD




More information about the fedora-devel-list mailing list