Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11557 - serial console doesn't know what size it is
Summary: serial console doesn't know what size it is
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-03 20:22 UTC by Erik Scrafford
Modified: 2003-01-13 19:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Scrafford 2002-12-03 20:22:41 UTC
i'm using a serial console on my sparc, and when it boots up as each thing 
starts i get the "[ ok ]" thingy on the left side of the screen, intermixed 
with the other text. after poking around a bit it looks like terminal size 
can't be determined over a serial console. (i checked a solaris console with 
stty, and it said rows and columns were 0 as well, so it's not a linux bug). i 
attempted to fix it in /sbin/rc by setting the size manually if it was unknown
(doing stty rows and stty cols), but this didn't seem to catch on for the 
first few lines, and got reset when it started the runlevel 3 stuff. so 
instead i changed a few lines in /etc/init.d/functions.sh like so:

COLS="$(getcols ${COLS})"

to

if [ "$COLS" = "0 0" ]; then
    COLS=80
    stty cols 80 &>/dev/null
    stty rows 24 &>/dev/null
else
    COLS="$(getcols ${COLS})"
fi

this works perfectly so far.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-04 14:18:33 UTC
Fixed on CVS, thanks.