1 |
On 09/07/2003 at 20:54:35(-0700), Anupam Kapoor used 1.3K just to say: |
2 |
> Sven Vermeulen <swift@g.o> writes: |
3 |
> |
4 |
> > On Wed, Jul 09, 2003 at 01:22:38PM -0700, Anupam Kapoor wrote: |
5 |
> > [...] |
6 |
> >> i am not sure i understand how it is related to spawning multiple |
7 |
> >> consoles during system boot. |
8 |
> > |
9 |
> > I'm not sure, but I believe that the following commands will create the vc's |
10 |
> > (which is not what you want): |
11 |
> > |
12 |
> > echo -ne "\033(K" > /dev/vc/${x} |
13 |
> > or |
14 |
> > echo -ne "\033(K" > /dev/tty${x} |
15 |
> > in /etc/init.d/consolefont (in case you don't have consolechars) |
16 |
> > |
17 |
> > By delimiting ${x} to the number of VC's you want you make sure that the |
18 |
> > kernel only starts that number of xterms when loading the UML... |
19 |
> i think the consoles are created by devfsd, with : |
20 |
> MAKEDEV /dev/vc/XXX c 4 .... |
21 |
> or some such. |
22 |
> |
23 |
> i think 'echo' does not create any devices. |
24 |
|
25 |
No, it doesn't. |
26 |
|
27 |
However, I see a few misunderstandings about terms "creating" the device, and |
28 |
"creating" the console. I am not sure that I am calling them correctly either. |
29 |
In fact I am pretty sure, I am calling things the wrong way, but I'll try to |
30 |
explain what I mean anyway, so it shouldn't really matter. |
31 |
|
32 |
I have device files numbered 0 to 63 in /dev/vc/. These are the devices that |
33 |
are either created by devfs or by MAKEDEV. Their number is fixed when compiling |
34 |
the kernel (I guess). |
35 |
|
36 |
However, pressing Alt+F7 when X is not running would do nothing here, since the |
37 |
/dev/vc/7 device has not been used ever. Another example. Pressing Alt+Right |
38 |
arrow (when using the vc/1 console) would in turn switch to vc/2, vc/3... vc/6, |
39 |
vc/1, vc/2 etc... I.e. it switches between the "created consoles". Now try to |
40 |
do |
41 |
|
42 |
echo "something" > /dev/vc/7 |
43 |
|
44 |
Alt + Right would now switch over this new console as well. |
45 |
|
46 |
The above is simply my observation. Terminology may be wrong, some other stuff |
47 |
may be wrong, but the overall idea is correct I hope. |
48 |
|
49 |
-- |
50 |
\ Georgi Georgiev \ Horner's Five Thumb Postulate: Experience \ |
51 |
/ chutz@×××.net / varies directly with equipment ruined. / |
52 |
\ +81(90)6266-1163 \ \ |
53 |
|
54 |
-- |
55 |
gentoo-dev@g.o mailing list |