From: Zilvinas Valinskas <zilvinas@gemtek.lt>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Linus Torvalds <torvalds@osdl.org>,
Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.6.7 (stty rows 50 columns 140 reports : No such device or address)
Date: Wed, 16 Jun 2004 17:17:04 +0300 [thread overview]
Message-ID: <1087395424.5314.2.camel@swoop.gemtek.lt> (raw)
In-Reply-To: <40D0432A.1080006@pobox.com>
I've checked drivers/char/tty_io.c :
/*
* Change # of rows and columns (0 means unchanged/the size of
fg_console)
* [this is to be used together with some user program
* like resize that changes the hardware videomode]
*/
int vc_resize(int currcons, unsigned int cols, unsigned int lines)
{
unsigned long old_origin, new_origin, new_scr_end, rlth, rrem, err = 0;
unsigned int old_cols, old_rows, old_row_size, old_screen_size;
unsigned int new_cols, new_rows, new_row_size, new_screen_size;
unsigned short *newscreen;
WARN_CONSOLE_UNLOCKED();
if (!vc_cons_allocated(currcons))
return -ENXIO;
there is only place that returns ENXIO ... and if you take a look into
vc_cons_allocated() :
int vc_cons_allocated(unsigned int i)
{
return (i < MAX_NR_CONSOLES && vc_cons[i].d);
}
it might be either i exceeds MAX_NR_CONSOLES or vc_cons[i].d is 0.
btw, get TIOCGWINSZ, works fine and returns correct values as shown in
strace. it is only SET part is failing ...
br
On Wed, 2004-06-16 at 15:55, Jeff Garzik wrote:
> Zilvinas Valinskas wrote:
> > On Compaq N800 EVO notebook with a radeonfb enabled - stty failes to
> > adjust terminal size. strace log attached. Under 2.6.5/2.6.6 it used to
> > work.
> >
> > relevant part:
> >
> > open("/dev/vc/1", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 3
> > fcntl64(3, F_GETFL) = 0x8800 (flags
> > O_RDONLY|O_NONBLOCK|O_LARGEFILE)
> > fcntl64(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
> > ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
> > ...}) = 0
> > ioctl(3, TIOCGWINSZ, {ws_row=65, ws_col=175, ws_xpixel=0, ws_ypixel=0})
> > = 0
> > ioctl(3, TIOCSWINSZ, {ws_row=50, ws_col=175, ws_xpixel=0, ws_ypixel=0})
> > = -1 ENXIO (No such device or address)
> > write(2, "/bin/stty: ", 11) = 11
> > write(2, "/dev/vc/1", 9) = 9
> > open("/usr/share/locale/locale.alias", O_RDONLY) = 4
> >
> >
> > it makes no difference when doing :
> >
> > stty rows 50 columns 140
> > or
> > stty rows 50 columns 140 -F /dev/vc/1 ...
> >
> > Exactly same error.
>
>
> huh, I wonder if this is why reset(1) doesn't fully reset the terminal,
> like it used to ...
>
> Jeff
>
>
next prev parent reply other threads:[~2004-06-16 14:17 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 5:56 Linux 2.6.7 Linus Torvalds
2004-06-16 6:58 ` Kalin KOZHUHAROV
2004-06-16 14:56 ` Jesper Juhl
2004-06-16 7:10 ` Jan De Luyck
2004-06-16 8:07 ` JFS compilation fix [was Re: Linux 2.6.7] Tomas Szepe
2004-06-16 12:55 ` Dave Kleikamp
2004-06-16 12:59 ` Dave Kleikamp
2004-06-16 13:05 ` Tomas Szepe
2004-06-16 9:58 ` Linux 2.6.7 (stty rows 50 columns 140 reports : No such device or address) Zilvinas Valinskas
2004-06-16 12:55 ` Jeff Garzik
2004-06-16 13:56 ` Benjamin Herrenschmidt
2004-06-16 16:38 ` jsimmons
2004-06-16 16:38 ` jsimmons
2004-06-16 14:17 ` Zilvinas Valinskas [this message]
2004-06-16 16:37 ` jsimmons
2004-06-16 16:37 ` jsimmons
2004-06-16 21:17 ` Egmont Koblinger
2004-06-16 21:17 ` Egmont Koblinger
2004-06-16 21:45 ` jsimmons
2004-06-16 21:45 ` jsimmons
2004-06-16 11:13 ` Linux 2.6.7 Tomas Szepe
2004-06-16 12:18 ` viro
2004-06-17 6:56 ` Tomas Szepe
2004-06-16 13:27 ` Linux 2.6.7 - problem with old gcc Eyal Lebedinsky
2004-06-16 16:09 ` Linux 2.6.7 (compile stats) John Cherry
2004-06-16 16:31 ` Linux 2.6.7 Dominik Karall
2004-06-16 18:53 ` Jeff Garzik
2004-06-16 17:42 ` Linux 2.6.7 - ACPI still broken Thomas Zehetbauer
2004-06-17 4:15 ` Kevin P. Fleming
2004-06-17 15:22 ` Linux 2.6.7 Sean Neakums
2004-06-18 4:36 ` Andrew Morton
2004-06-18 16:37 ` 2.6.7 Samba OOPS (in smb_readdir) Brice Goglin
2004-06-18 16:41 ` Brice Goglin
2004-06-18 17:11 ` Zwane Mwaikambo
2004-06-18 19:00 ` Christophe Saout
2004-06-18 19:22 ` Christophe Saout
2004-06-18 19:52 ` Zwane Mwaikambo
2004-06-19 20:35 ` Zwane Mwaikambo
2004-06-19 20:49 ` Zwane Mwaikambo
2004-06-19 20:52 ` Christophe Saout
2004-06-20 0:27 ` Zwane Mwaikambo
2004-06-20 0:28 ` Christophe Saout
2004-06-20 0:36 ` Zwane Mwaikambo
2004-06-20 0:40 ` Christophe Saout
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1087395424.5314.2.camel@swoop.gemtek.lt \
--to=zilvinas@gemtek.lt \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.