Re: What controls X?

2011-06-21 Thread Vincent Lefevre
On 2011-06-18 11:25:13 +, Camaleón wrote:
> On Fri, 17 Jun 2011 22:37:57 +0200, Hans-J. Ullrich wrote:
> > after some update long time ago, kdm is starting on console 9 instead od
> > console 7 (which is deafult).
> 
> I've also noticed that time ago under GNOME.

I use gdm3, and I notice that the X server runs on a random console,
which may be 7, 8 or 9.

> After booting, tty7 holded the X session but after a while it 
> automagically jumped to tty8 but I no longer see this behaviour or maybe 
> is that just didn't notice again.
> 
> > I could still not find out, where X is controlled at. I found this
> > process:
> > 
> > root 10358  7.8  1.9 146300 41052 tty10Rs+  19:13  14:11
> > /usr/bin/X :0 vt10 -br -nolisten tcp -auth /var/run/xauth/A:0-DzJNF

Here gdm3 doesn't run X, but Xorg:

root 12874 12873  0 Jun20 tty9 00:01:11 /usr/bin/Xorg :0 -br -verbose 
-audit 0 -novtswitch -auth /var/run/gdm3/auth-for-Debian-gdm-AnLrqy/database 
-nolisten tcp vt9

perhaps because it is started by root, thus doesn't need to be suid
like X. So, /etc/X11/xinit/xserverrc isn't used.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110621115929.gb8...@prunille.vinc17.org



Re: What controls X?

2011-06-19 Thread Camaleón
On Sat, 18 Jun 2011 19:50:13 -0400, Tom H wrote:

> On Sat, Jun 18, 2011 at 11:41 AM, Camaleón  wrote:

 Mmm, I dunno what holds that variable "$@" but it has to be
 documented somewhere ("man startx" or "man xserver") :-?
>>>
>>> $@ is a bash positional parameter not an X-specific variable.
>>
>> Mmm, good but, what exactly holds?
> 
> It holds vt7.

Just "vt7"?

> As I said later in my earlier reply, I gave up on finding out its
> source...

But you said it wasn't a specific X variable. If it's the VT number, sure 
it is ;-)

>>> I tried to look for its source some time ago and gave up quickly. I'm
>>> not running GNOME so this is from memory: the parent process of "exec
>>> /usr/bin/X ..." calls a variable of the form "/org/gnome/".
>>> I thought that it might be a gconf key that might hold the VT but I
>>> didn't find it.
>>
>> I've made some findings. By reading this bug report:

(...)

> "FirstVT" used to be an upstream variable but its was dropped in the
> upgrade from 2.20 to 2.24 and the Debian maintainer seems to be applying
> a patch in order to perpetuate it in Debian.

There must a reason for doing that and regardless of its convenience, it 
works fine.
 
> Anyway, I don't think that this a solution to the OP's problem, unless
> I'm misremembering it. No matter what is set as FirstVT, you can end up
> at a higher number after logging out and logging back in because
> console-kit-daemon would've kept that VT allocated.

I was not looking for a solution to the OP's problem, I've already said 
that VT is automatically assigned, defaulting to VT7 -as inittab seems to 
say-, and I guess that if it is taken it jumps to the next available. So 
the problem here is knowing why and when it jumps.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.06.19.10.41...@gmail.com



Re: What controls X?

2011-06-18 Thread Tom H
On Sat, Jun 18, 2011 at 11:41 AM, Camaleón  wrote:
> On Sat, 18 Jun 2011 08:18:50 -0400, Tom H wrote:
>> On Sat, Jun 18, 2011 at 7:25 AM, Camaleón  wrote:


 Examing the system, I found in /etc/X11/xinit/xserverrc

 exec /usr/bin/X -nolisten tcp "$@"

 where "$@" I suppose is the console-number.
>>>
>>> Mmm, I dunno what holds that variable "$@" but it has to be documented
>>> somewhere ("man startx" or "man xserver") :-?
>>
>> $@ is a bash positional parameter not an X-specific variable.
>
> Mmm, good but, what exactly holds?

It holds vt7.

As I said later in my earlier reply, I gave up on finding out its source...


 But where does it get from?
>>>
>>> I've always thought that X server sets the first available vt for the x
>>> window system so I wonder why X server cannot dispose of vt7 to
>>> allocate the kdm/gdm session.
>>
>> I tried to look for its source some time ago and gave up quickly. I'm
>> not running GNOME so this is from memory: the parent process of "exec
>> /usr/bin/X ..." calls a variable of the form "/org/gnome/". I
>> thought that it might be a gconf key that might hold the VT but I didn't
>> find it.
>
> I've made some findings. By reading this bug report:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588598
>
> I followed the suggested steps and edited "/etc/gdm3/daemon.conf" (this is
> a wheezey system):
>
> [daemon]
> (...)
> FirstVT=9
>
> Restarted and seems it worked:
>
> test@debian:~$ grep -i vt /var/log/Xorg.0.log
> [    37.345] (++) using VT number 9
>
> So at least we have found where we can set this under GNOME.

"FirstVT" used to be an upstream variable but its was dropped in the
upgrade from 2.20 to 2.24 and the Debian maintainer seems to be
applying a patch in order to perpetuate it in Debian.

Anyway, I don't think that this a solution to the OP's problem, unless
I'm misremembering it. No matter what is set as FirstVT, you can end
up at a higher number after logging out and logging back in because
console-kit-daemon would've kept that VT allocated.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTi=QyfPSq8kCCbcCen3nKpHep5=1...@mail.gmail.com



Re: What controls X?

2011-06-18 Thread Camaleón
On Sat, 18 Jun 2011 08:18:50 -0400, Tom H wrote:

> On Sat, Jun 18, 2011 at 7:25 AM, Camaleón  wrote:

>>> Examing the system, I found in /etc/X11/xinit/xserverrc
>>>
>>> exec /usr/bin/X -nolisten tcp "$@"
>>>
>>> where "$@" I suppose is the console-number.
>>
>> Mmm, I dunno what holds that variable "$@" but it has to be documented
>> somewhere ("man startx" or "man xserver") :-?
> 
> $@ is a bash positional parameter not an X-specific variable.

Mmm, good but, what exactly holds?

>>> But where does it get from?
>>
>> I've always thought that X server sets the first available vt for the x
>> window system so I wonder why X server cannot dispose of vt7 to
>> allocate the kdm/gdm session.
> 
> I tried to look for its source some time ago and gave up quickly. I'm
> not running GNOME so this is from memory: the parent process of "exec
> /usr/bin/X ..." calls a variable of the form "/org/gnome/". I
> thought that it might be a gconf key that might hold the VT but I didn't
> find it.

I've made some findings. By reading this bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588598

I followed the suggested steps and edited "/etc/gdm3/daemon.conf" (this is 
a wheezey system):

[daemon]
(...)
FirstVT=9

Restarted and seems it worked:

test@debian:~$ grep -i vt /var/log/Xorg.0.log
[37.345] (++) using VT number 9

So at least we have found where we can set this under GNOME.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.06.18.15.41...@gmail.com



Re: What controls X?

2011-06-18 Thread Tom H
On Sat, Jun 18, 2011 at 7:25 AM, Camaleón  wrote:
> On Fri, 17 Jun 2011 22:37:57 +0200, Hans-J. Ullrich wrote:


>> I could still not find out, where X is controlled at. I found this
>> process:
>>
>> root     10358  7.8  1.9 146300 41052 tty10    Rs+  19:13  14:11
>> /usr/bin/X :0 vt10 -br -nolisten tcp -auth /var/run/xauth/A:0-DzJNF
>>
>> Examing the system, I found in /etc/X11/xinit/xserverrc
>>
>> exec /usr/bin/X -nolisten tcp "$@"
>>
>> where "$@" I suppose is the console-number.
>
> Mmm, I dunno what holds that variable "$@" but it has to be documented
> somewhere ("man startx" or "man xserver") :-?

$@ is a bash positional parameter not an X-specific variable.


>> But where does it get from?
>
> I've always thought that X server sets the first available vt for the x
> window system so I wonder why X server cannot dispose of vt7 to allocate
> the kdm/gdm session.

I tried to look for its source some time ago and gave up quickly. I'm
not running GNOME so this is from memory: the parent process of "exec
/usr/bin/X ..." calls a variable of the form "/org/gnome/".
I thought that it might be a gconf key that might hold the VT but I
didn't find it.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTi=p-doywv7d7e9hha6thwc5-jo...@mail.gmail.com



Re: What controls X?

2011-06-18 Thread Camaleón
On Fri, 17 Jun 2011 22:37:57 +0200, Hans-J. Ullrich wrote:

> after some update long time ago, kdm is starting on console 9 instead od
> console 7 (which is deafult).

I've also noticed that time ago under GNOME.

After booting, tty7 holded the X session but after a while it 
automagically jumped to tty8 but I no longer see this behaviour or maybe 
is that just didn't notice again.

> I could still not find out, where X is controlled at. I found this
> process:
> 
> root 10358  7.8  1.9 146300 41052 tty10Rs+  19:13  14:11
> /usr/bin/X :0 vt10 -br -nolisten tcp -auth /var/run/xauth/A:0-DzJNF

stt008:~# grep -i vt /var/log/Xorg.0.log
(++) using VT number 7

> Examing the system, I found in /etc/X11/xinit/xserverrc
> 
> exec /usr/bin/X -nolisten tcp "$@"
> 
> where "$@" I suppose is the console-number.

Mmm, I dunno what holds that variable "$@" but it has to be documented 
somewhere ("man startx" or "man xserver") :-?

> But where does it get from? 

(...)

I've always thought that X server sets the first available vt for the x 
window system so I wonder why X server cannot dispose of vt7 to allocate 
the kdm/gdm session.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.06.18.11.25...@gmail.com



Re: What controls X?

2011-06-17 Thread Tom H
On Fri, Jun 17, 2011 at 4:37 PM, Hans-J. Ullrich  wrote:
>
> after some update long time ago, kdm is starting on console 9 instead od
> console 7 (which is deafult).
>
> I could still not find out, where X is controlled at. I found this process:
>
> root     10358  7.8  1.9 146300 41052 tty10    Rs+  19:13  14:11 /usr/bin/X :0
> vt10 -br -nolisten tcp -auth /var/run/xauth/A:0-DzJNF
>
> Examing the system, I found in /etc/X11/xinit/xserverrc
>
> exec /usr/bin/X -nolisten tcp "$@"
>
> where "$@" I suppose is the console-number.
>
> But where does it get from? In kdmrc the terminal is configured, that it 
> should
> use the next free console (ServerVTs=-7).File /etc/inittab is identically like
> on my other computers, where X is still running on console 7.
>
> Just on my amd64-system it is started wrong. Although it is not a big problem
> at all, I am very interested, how things work together, as I found no
> misconfigured configuration yet.
>
> It would be nice, if someone might point me, which configs are involved, and
> maybe which steps I should check, to get X back to console 7.
>
> (besides: Of course, it is working, if I change
>
> ServerVTs=-7
>
> but as this setting is workingh on all my other systems, I want to leave it as
> set by default and find out, why the same settings differ only on this special
> machine.

If you run "kill -HUP console-kit-daemon", you can then run "deallocvt
7" and re-use vt7.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/banlktingjfgje8fsrptjxctazvb9nzh...@mail.gmail.com



Re: What controls X?

2011-06-17 Thread Kelly Clowers
On Fri, Jun 17, 2011 at 14:10, Freeman  wrote:
>
> I've had the impression that X has been showing up in random consoles ever
> since squeeze testing but I never looked into it.

It may be worth noting that it is always on 7 when using startx,
instead of a *dm.

Cheers,
Kelly Clowers


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTi==5MkvLAT==axo7bls6fubc1h...@mail.gmail.com



Re: What controls X?

2011-06-17 Thread Freeman
On Fri, Jun 17, 2011 at 03:49:50PM -0500, Hugo Vanwoerkom wrote:
> Hans-J. Ullrich wrote:
> >Hi list,
> >
> >after some update long time ago, kdm is starting on console 9
> >instead od console 7 (which is deafult).
> >
> >I could still not find out, where X is controlled at. I found this process:
> >
> >root 10358  7.8  1.9 146300 41052 tty10Rs+  19:13  14:11
> >/usr/bin/X :0 vt10 -br -nolisten tcp -auth
> >/var/run/xauth/A:0-DzJNF
> >
> >Examing the system, I found in /etc/X11/xinit/xserverrc
> >
> >exec /usr/bin/X -nolisten tcp "$@"
> >
> >where "$@" I suppose is the console-number.
> >
> >But where does it get from? In kdmrc the terminal is configured,
> >that it should use the next free console (ServerVTs=-7).File
> >/etc/inittab is identically like on my other computers, where X is
> >still running on console 7.
> >
> >Just on my amd64-system it is started wrong. Although it is not a
> >big problem at all, I am very interested, how things work
> >together, as I found no misconfigured configuration yet.
> >
> >It would be nice, if someone might point me, which configs are
> >involved, and maybe which steps I should check, to get X back to
> >console 7.
> >
> >(besides: Of course, it is working, if I change  
> >
> >ServerVTs=-7
> >
> >but as this setting is workingh on all my other systems, I want to
> >leave it as set by default and find out, why the same settings
> >differ only on this special machine.
> >
> >Hope, someone knwos better, as I try to solve this now since months.
> >
> 
> I note that with gdm3 X jumps to console 8 upon restart of gdm3.
> 
> Hugo
> 

I've had the impression that X has been showing up in random consoles ever
since squeeze testing but I never looked into it.

-- 
Regards,
Freeman

"Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the
answer." --Somebody


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110617211057.GA7910@Europa.office



Re: What controls X?

2011-06-17 Thread Hugo Vanwoerkom

Hans-J. Ullrich wrote:
Hi list, 

after some update long time ago, kdm is starting on console 9 instead od 
console 7 (which is deafult).


I could still not find out, where X is controlled at. I found this process:

root 10358  7.8  1.9 146300 41052 tty10Rs+  19:13  14:11 /usr/bin/X :0 
vt10 -br -nolisten tcp -auth /var/run/xauth/A:0-DzJNF


Examing the system, I found in /etc/X11/xinit/xserverrc

exec /usr/bin/X -nolisten tcp "$@"

where "$@" I suppose is the console-number.

But where does it get from? In kdmrc the terminal is configured, that it should 
use the next free console (ServerVTs=-7).File /etc/inittab is identically like 
on my other computers, where X is still running on console 7.


Just on my amd64-system it is started wrong. Although it is not a big problem 
at all, I am very interested, how things work together, as I found no 
misconfigured configuration yet. 

It would be nice, if someone might point me, which configs are involved, and 
maybe which steps I should check, to get X back to console 7.


(besides: Of course, it is working, if I change 

ServerVTs=-7

but as this setting is workingh on all my other systems, I want to leave it as 
set by default and find out, why the same settings differ only on this special 
machine.


Hope, someone knwos better, as I try to solve this now since months.



I note that with gdm3 X jumps to console 8 upon restart of gdm3.

Hugo





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/itgeku$mos$1...@dough.gmane.org



What controls X?

2011-06-17 Thread Hans-J. Ullrich
Hi list, 

after some update long time ago, kdm is starting on console 9 instead od 
console 7 (which is deafult).

I could still not find out, where X is controlled at. I found this process:

root 10358  7.8  1.9 146300 41052 tty10Rs+  19:13  14:11 /usr/bin/X :0 
vt10 -br -nolisten tcp -auth /var/run/xauth/A:0-DzJNF

Examing the system, I found in /etc/X11/xinit/xserverrc

exec /usr/bin/X -nolisten tcp "$@"

where "$@" I suppose is the console-number.

But where does it get from? In kdmrc the terminal is configured, that it should 
use the next free console (ServerVTs=-7).File /etc/inittab is identically like 
on my other computers, where X is still running on console 7.

Just on my amd64-system it is started wrong. Although it is not a big problem 
at all, I am very interested, how things work together, as I found no 
misconfigured configuration yet. 

It would be nice, if someone might point me, which configs are involved, and 
maybe which steps I should check, to get X back to console 7.

(besides: Of course, it is working, if I change 

ServerVTs=-7

but as this setting is workingh on all my other systems, I want to leave it as 
set by default and find out, why the same settings differ only on this special 
machine.

Hope, someone knwos better, as I try to solve this now since months.

Best regards

Hans



 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201106172237.58062.hans.ullr...@loop.de