2002-10-30 20:57:24

by James Simmons

[permalink] [raw]
Subject: [BK console] console updates.


Hi folks!!!

Along with the new fbdev api I also have rewritten the console layer.
The goals are:

1) The idea here was to move alot of the basic functionaly present in
alot of low level drivers into the the higher layers thus making the
low level drivers smaller and cleaner. A good example is using the
/dev/fb interface to resize a VC. That is just plain dumb.

2) The second goal was to seperate out the terminal emulation to allow
for a light weight printk. Also the idea was to make the VT console
system modular. On embedded devices then we can insmod the VT
console system. This is partially done.

3) Multi-desktop systems. Already done this. The current code in BK
doesn't support this just yet as I have a few bug to beat out for
single headed systems. It will take about one more week to get this
ready.


I doubt this code will go into 2.5.X but it is avaiable for anyone to play
with it.

bk://linuxconsole.bkbits.net

BTW I will make patches avaiable as soon as 2.5.45 comes out.

MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.

James Simmons [[email protected]] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net


2002-10-30 21:46:37

by Christoph Hellwig

[permalink] [raw]
Subject: Re: [BK console] console updates.

On Wed, Oct 30, 2002 at 01:56:38PM -0800, James Simmons wrote:
> I doubt this code will go into 2.5.X but it is avaiable for anyone to play
> with it.

Why? I don't want to live another release with the old, crappy console,
and you've been working on this during almost all of 2.4 now..

2002-10-30 22:06:13

by Andreas Schuldei

[permalink] [raw]
Subject: Re: [BK console] console updates.

> 3) Multi-desktop systems. Already done this. The current code in BK
> doesn't support this just yet as I have a few bug to beat out for
> single headed systems. It will take about one more week to get this
> ready.

this is something i know several people are interested in. and it
does not touch core code to add, does it?

This is my personal-favorit-must-go-in-above-all-else-feature.

2002-10-30 22:28:40

by Skip Ford

[permalink] [raw]
Subject: Re: [BK console] console updates.

James Simmons wrote:
>
> bk://linuxconsole.bkbits.net
>
> BTW I will make patches avaiable as soon as 2.5.45 comes out.

Don't even bother posting to the list without a patch. Saying you want
testers and not providing a patch is just rediculous.

--
Skip

2002-10-30 22:54:53

by M. R. Brown

[permalink] [raw]
Subject: Re: [BK console] console updates.

* Skip Ford <[email protected]> on Wed, Oct 30, 2002:

> James Simmons wrote:
> >
> > bk://linuxconsole.bkbits.net
> >
> > BTW I will make patches avaiable as soon as 2.5.45 comes out.
>
> Don't even bother posting to the list without a patch. Saying you want
> testers and not providing a patch is just rediculous.
>

Not knowing where/how to stay current is also a bit ridiculous.

http://sf.net/projects/linuxconsole/. Click on "CVS".

M. R.


Attachments:
(No filename) (455.00 B)
(No filename) (189.00 B)
Download all attachments

2002-10-30 23:08:26

by Martin J. Bligh

[permalink] [raw]
Subject: Re: [BK console] console updates.

> * Skip Ford <[email protected]> on Wed, Oct 30, 2002:
>
>> James Simmons wrote:
>> >
>> > bk://linuxconsole.bkbits.net
>> >
>> > BTW I will make patches avaiable as soon as 2.5.45 comes out.
>>
>> Don't even bother posting to the list without a patch. Saying you want
>> testers and not providing a patch is just rediculous.
>>
>
> Not knowing where/how to stay current is also a bit ridiculous.
>
> http://sf.net/projects/linuxconsole/. Click on "CVS".

Yeah, of course ... his psychic power must be weakening, he
should have magically been able to guess that because ....

That's not a patch, it's a CVS tree. Just mail out a normal
patch, like everyone else.

M.

2002-10-31 10:32:38

by Svetoslav Slavtchev

[permalink] [raw]
Subject: Re: [BK console] console updates.

Quoting Andreas Schuldei <[email protected]>:

> > 3) Multi-desktop systems. Already done this. The current code in BK
> > doesn't support this just yet as I have a few bug to beat out for
> > single headed systems. It will take about one more week to get
> this
> > ready.
>
> this is something i know several people are interested in. and it
> does not touch core code to add, does it?
>
> This is my personal-favorit-must-go-in-above-all-else-feature.
>

My too,
except may be working lvm and soft-raid

2002-11-01 00:38:15

by James Simmons

[permalink] [raw]
Subject: Re: [Linux-fbdev-devel] Re: [BK console] console updates.


> On Wed, Oct 30, 2002 at 01:56:38PM -0800, James Simmons wrote:
> > I doubt this code will go into 2.5.X but it is avaiable for anyone to play
> > with it.
>
> Why? I don't want to live another release with the old, crappy console,
> and you've been working on this during almost all of 2.4 now..

Okay. Here is the new console system. The patch is against 2.5.45.
Please note only vgacon has been fixed to work with this new api.

http://phoenix.infradead.org/~jsimmons/console.diff.gz

Via BK bk://linuxconsole.bkbits.net/stable


Diff stats:

arch/alpha/kernel/setup.c | 13
arch/arm/kernel/setup.c | 9
arch/i386/kernel/setup.c | 8
arch/i386/vmlinux.lds.s | 109
arch/ia64/kernel/setup.c | 16
arch/m68k/amiga/config.c | 4
arch/m68k/apollo/config.c | 3
arch/m68k/atari/config.c | 5
arch/m68k/hp300/config.c | 4
arch/m68k/mac/config.c | 5
arch/m68k/q40/config.c | 3
arch/m68k/sun3/config.c | 4
arch/m68k/sun3x/config.c | 3
arch/mips/ddb5476/setup.c | 5
arch/mips/dec/setup.c | 5
arch/mips/ite-boards/generic/it8172_setup.c | 7
arch/mips/jazz/setup.c | 4
arch/mips/philips/nino/setup.c | 7
arch/mips/sgi/kernel/setup.c | 6
arch/mips/sni/setup.c | 4
arch/mips64/kernel/ioctl32.c | 3
arch/mips64/sgi-ip22/ip22-setup.c | 5
arch/mips64/sgi-ip32/ip32-setup.c | 6
arch/parisc/kernel/setup.c | 8
arch/ppc/amiga/config.c | 3
arch/ppc/kernel/ppc4xx_setup.c | 7
arch/ppc/platforms/chrp_setup.c | 8
arch/ppc/platforms/k2_setup.c | 6
arch/ppc/platforms/lopec_setup.c | 4
arch/ppc/platforms/mcpn765_setup.c | 6
arch/ppc/platforms/menf1_setup.c | 6
arch/ppc/platforms/mvme5100_setup.c | 6
arch/ppc/platforms/pcore_setup.c | 6
arch/ppc/platforms/pmac_setup.c | 5
arch/ppc/platforms/pplus_setup.c | 4
arch/ppc/platforms/prep_setup.c | 4
arch/ppc/platforms/prpmc750_setup.c | 6
arch/ppc/platforms/prpmc800_setup.c | 6
arch/ppc/platforms/sandpoint_setup.c | 5
arch/ppc/platforms/spruce_setup.c | 6
arch/ppc64/kernel/chrp_setup.c | 5
arch/ppc64/kernel/ioctl32.c | 73
arch/sh/kernel/setup.c | 8
arch/sparc/kernel/setup.c | 5
arch/sparc64/kernel/ioctl32.c | 37
arch/um/kernel/um_arch.c | 2
arch/x86_64/kernel/setup.c | 10
drivers/char/Kconfig | 5
drivers/char/console_macros.h | 166 -
drivers/char/consolemap.c | 152 -
drivers/char/decvte.c | 2065 ++++++++++++++++++
drivers/char/keyboard.c | 327 +-
drivers/char/misc.c | 3
drivers/char/n_tty.c | 12
drivers/char/selection.c | 83
drivers/char/sysrq.c | 17
drivers/char/tty_io.c | 48
drivers/char/vc_screen.c | 124 -
drivers/char/vt.c | 3178 ++++++++--------------------
drivers/char/vt_ioctl.c | 1020 +++++---
drivers/video/dummycon.c | 1
drivers/video/mdacon.c | 3
drivers/video/newport_con.c | 1
drivers/video/promcon.c | 13
drivers/video/sticon.c | 1
drivers/video/vgacon.c | 162 -
include/linux/console.h | 60
include/linux/console_struct.h | 110
include/linux/consolemap.h | 6
include/linux/kbd_kern.h | 96
include/linux/selection.h | 32
include/linux/tty.h | 19
include/linux/vt_kern.h | 350 ++-
include/video/fbcon.h | 2
74 files changed, 4752 insertions(+), 3778 deletions(-)

2002-11-01 00:39:27

by James Simmons

[permalink] [raw]
Subject: Re: [Linux-fbdev-devel] Re: [BK console] console updates.


> > 3) Multi-desktop systems. Already done this. The current code in BK
> > doesn't support this just yet as I have a few bug to beat out for
> > single headed systems. It will take about one more week to get this
> > ready.
>
> this is something i know several people are interested in. and it
> does not touch core code to add, does it?
>
> This is my personal-favorit-must-go-in-above-all-else-feature.

Just the VT console code. It does effect the console display drivers tho.



2002-11-01 11:02:27

by Skip Ford

[permalink] [raw]
Subject: Re: [BK console] console updates.

James Simmons wrote:
> Okay. Here is the new console system. The patch is against 2.5.45.
> Please note only vgacon has been fixed to work with this new api.
>
> http://phoenix.infradead.org/~jsimmons/console.diff.gz
>
> Diff stats:
> arch/i386/vmlinux.lds.s | 109

Your patch creates the above linker script. It appears to be a copy
of vmlinux.lds.S from the same directory.

--
Skip

2002-11-01 15:00:26

by Petr Baudis

[permalink] [raw]
Subject: Re: [BK console] console updates.

Dear diary, on Thu, Oct 31, 2002 at 12:32:18AM CET, I got a letter,
where Skip Ford <[email protected]> told me, that...
> James Simmons wrote:
> >
> > bk://linuxconsole.bkbits.net
> >
> > BTW I will make patches avaiable as soon as 2.5.45 comes out.
>
> Don't even bother posting to the list without a patch. Saying you want
> testers and not providing a patch is just rediculous.

As far as I understand it, he just provided you a status report so that you
could see what's going on etc (especially relevant around the Oct-31 deadline),
and he fullfiled his promise and sent the patches as soon as 2.5.45 came out,
didn't he? So what's wrong?

--

Petr "Pasky" Baudis

* ELinks maintainer * IPv6 guy (XS26 co-coordinator)
* IRCnet operator * FreeCiv AI occassional hacker
.
This host is a black hole at HTTP wavelengths. GETs go in, and nothing
comes out, not even Hawking radiation.
-- Graaagh the Mighty on rec.games.roguelike.angband
.
Public PGP key && geekcode && homepage: http://pasky.ji.cz/~pasky/

2002-11-01 16:13:55

by James Simmons

[permalink] [raw]
Subject: Re: [BK console] console updates.


> James Simmons wrote:
> > Okay. Here is the new console system. The patch is against 2.5.45.
> > Please note only vgacon has been fixed to work with this new api.
> >
> > http://phoenix.infradead.org/~jsimmons/console.diff.gz
> >
> > Diff stats:
> > arch/i386/vmlinux.lds.s | 109
>
> Your patch creates the above linker script. It appears to be a copy
> of vmlinux.lds.S from the same directory.

Strange. I fixed that. All clean.

2002-11-01 16:40:29

by James Simmons

[permalink] [raw]
Subject: Re: [BK console] console updates.


> On Wed, Oct 30, 2002 at 01:56:38PM -0800, James Simmons wrote:
> > I doubt this code will go into 2.5.X but it is avaiable for anyone to play
> > with it.
>
> Why? I don't want to live another release with the old, crappy console,
> and you've been working on this during almost all of 2.4 now..

Give my console diff a try.

http://phoenix.infradead.org/~jsimmons/console.diff.gz

Its against 2.5.45. It has 3 bugs I know of.

1) Switch back to X messes up the screen.

2) I had to disable the beeper. I have to think of a proper solution to
that problem with Vojtech.

3) Software suspend is broken because the console has moved from the
global int currcons to private struct vc_data to represent a VC.
BTW what was the author of that code trying to do any ways?


2002-11-02 12:44:44

by Pavel Machek

[permalink] [raw]
Subject: Re: [BK console] console updates.

Hi!

> Along with the new fbdev api I also have rewritten the console layer.
> The goals are:

Current 2.5.45 (and previous 2.5's) has funny problems on my vesafb
machines [like half of letters appearing during emacs session, to the
point you do ^L to repaint]. I hope this fixes it....
Pavel
--
When do you have heart between your knees?

2002-11-04 09:34:36

by Aivils Stoss

[permalink] [raw]
Subject: Re: [BK console] console updates.

Fri, 1 Nov 2002 09:40:05 -0800 (PST) James Simons wrote:
>> On Wed, Oct 30, 2002 at 01:56:38PM -0800, James Simmons wrote:
>> > I doubt this code will go into 2.5.X but it is avaiable for anyone to
play
>> > with it.
>>
>> Why? I don't want to live another release with the old, crappy console,
>> and you've been working on this during almost all of 2.4 now..
>
>Give my console diff a try.
>
>http://phoenix.infradead.org/~jsimmons/console.diff.gz
>
>Its against 2.5.45. It has 3 bugs I know of.
>
>1) Switch back to X messes up the screen.

Already fixed in the linuxconsole 2.4.X backport http://startx.times.lv/

Aivils Stoss

--- linus-2.5/drivers/char/vt_ioctl.c Mon Nov 4 11:33:57 2002
+++ linus-2.5/drivers/char/vt_ioctl.c.changed Mon Nov 4 11:36:45 2002
@@ -1089,17 +1089,17 @@ int vt_ioctl(struct tty_struct *tty, str
if (!tmp) {
tmp = vc_allocate(vc->vt_newvt);
if (!tmp) {
i = vc->vt_newvt;
vc->vt_newvt = -1;
return i;
}
}
-
+ vc->vt_newvt = -1;
/*
* When we actually do the console switch,
* make sure we are atomic with respect to
* other console switches..
*/
acquire_console_sem();
complete_change_console(tmp,
vc->display_fg->fg_console);
release_console_sem();

2002-11-06 02:03:36

by James Simmons

[permalink] [raw]
Subject: Re: [Linux-fbdev-devel] Re: [BK console] console updates.


> >1) Switch back to X messes up the screen.
>
> Already fixed in the linuxconsole 2.4.X backport http://startx.times.lv/

Applied :-)

k

2002-11-09 00:56:00

by James Simmons

[permalink] [raw]
Subject: Re: [Linux-fbdev-devel] Re: [BK console] console updates.


> > Along with the new fbdev api I also have rewritten the console layer.
> > The goals are:
>
> Current 2.5.45 (and previous 2.5's) has funny problems on my vesafb
> machines [like half of letters appearing during emacs session, to the
> point you do ^L to repaint]. I hope this fixes it....

It will. I'm waiting for the latest patches whcih do fix all those
problems. As soon as I get them I will post a updated patch for the fbdev
changes.