Skip to contentSkip to conversation

kswapd (?!) error

DISCUSSION Petre Bandac 6 participants 11 messages Oct 5, 2002 – Oct 8, 2002

lore
Share & tools
lore
#0 lore raw

can anyone translate in plain english the error below, please ? (the computer was frozen, and though it responded to ping, none of the services running - sshd, ftpd and apache - worked)

thanks,

petre

Oct  5 04:45:04 k kernel: Unable to handle kernel paging request at virtual 
address 361dcf1b
Oct  5 04:45:04 k kernel:  printing eip:
Oct  5 04:45:04 k kernel: c01297e8
Oct  5 04:45:04 k kernel: *pde = 00000000
Oct  5 04:45:04 k kernel: Oops: 0002
Oct  5 04:45:04 k kernel: CPU:    0
Oct  5 04:45:04 k kernel: EIP:    0010:[<c01297e8>]    Not tainted
Oct  5 04:45:04 k kernel: EFLAGS: 00010002
Oct  5 04:45:04 k kernel: eax: c14056d0   ebx: c14056d0   ecx: c4d90ae0   edx: 
361dcf1b
Oct  5 04:45:04 k kernel: esi: 00000000   edi: 00000457   ebp: 0000012a   esp: 
c14e3f58
Oct  5 04:45:04 k kernel: ds: 0018   es: 0018   ss: 0018
Oct  5 04:45:04 k kernel: Process kswapd (pid: 5, stackpage=c14e3000)
Oct  5 04:45:04 k kernel: Stack: 00000020 000001d0 00000020 00000006 c14056c0 
c02edf28 00000000 0000022c
Oct  5 04:45:04 k kernel:        00000457 c14056c0 c012a41c 00000006 000001d0 
c0289c68 00000000 c0289c68
Oct  5 04:45:04 k kernel:        c012a4bf 00000020 c0289c68 00000001 c14e2000 
c012a553 c0289bc0 00000000
Oct  5 04:45:04 k kernel: Call Trace: [<c012a41c>] [<c012a4bf>] [<c012a553>] 
[<c012a5ae>] [<c012a6bd>]
Oct  5 04:45:04 k kernel:    [<c0105478>]
Oct  5 04:45:05 k kernel:
Oct  5 04:45:05 k kernel: Code: 89 02 fb 51 8b 54 24 28 52 e8 8a f4 ff ff 83 

c4 08 fa 45 3b

Signature · 7 lines
 08:12:21 up 5 min,  2 users,  load average: 0.33, 0.24, 0.10

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw
Quoted 3 lines · Petre Bandac

can anyone translate in plain english the error below, please ? (the computer was frozen, and though it responded to ping, none of the services running - sshd, ftpd and apache - worked)

No to translate it properly into English you would have to do that yourself because your system has the details to decode the kernel oops below. Help on that is written in /usr/src/linux/README, the part called; IF SOMETHING GOES WRONG:

Now lets see if i can take a guess at what you are doing, considering you give is no further information on what you are doing then all one can do is guess.

Possably you have compiled a new kernel and or a experimental kernel series, ie; 2.5.x, you may have upgraded some or other utillity which is uncompatable with your kernel version.

Or had your machine been running for a very long time,? do you have a swap space, how many programs were you using at the time of the crash, what processes were running, what was the last thing you did before the crash?

All and any info is better than the zero info you gave.

It could also be that you have a rouge program/daemon running which is doing things that kswapd did not like. kswapd is mentioned in the oops, however that does not mean kswapd caused the problem, kswapd is the daemon that died, looks that way to me.

Help us to help you, o BTW, if this happened with a 2.5.xx kernel then send your "detailed" message to the applicable "MAINTAINER" stated in the MAINTAINERS list in the kernel source and not here, experimental kernels should not be used by newbies unless they know what they are doing.

NOTE, i used the word newbie as a general term to reflect to this list of which you are a list-member.

Quoted 35 lines

thanks,

petre

Oct  5 04:45:04 k kernel: Unable to handle kernel paging request at virtual
address 361dcf1b
Oct  5 04:45:04 k kernel:  printing eip:
Oct  5 04:45:04 k kernel: c01297e8
Oct  5 04:45:04 k kernel: *pde = 00000000
Oct  5 04:45:04 k kernel: Oops: 0002
Oct  5 04:45:04 k kernel: CPU:    0
Oct  5 04:45:04 k kernel: EIP:    0010:[<c01297e8>]    Not tainted
Oct  5 04:45:04 k kernel: EFLAGS: 00010002
Oct  5 04:45:04 k kernel: eax: c14056d0   ebx: c14056d0   ecx: c4d90ae0  
edx: 361dcf1b
Oct  5 04:45:04 k kernel: esi: 00000000   edi: 00000457   ebp: 0000012a  
esp: c14e3f58
Oct  5 04:45:04 k kernel: ds: 0018   es: 0018   ss: 0018
Oct  5 04:45:04 k kernel: Process kswapd (pid: 5, stackpage=c14e3000)
Oct  5 04:45:04 k kernel: Stack: 00000020 000001d0 00000020 00000006
c14056c0 c02edf28 00000000 0000022c
Oct  5 04:45:04 k kernel:        00000457 c14056c0 c012a41c 00000006
000001d0 c0289c68 00000000 c0289c68
Oct  5 04:45:04 k kernel:        c012a4bf 00000020 c0289c68 00000001
c14e2000 c012a553 c0289bc0 00000000
Oct  5 04:45:04 k kernel: Call Trace: [<c012a41c>] [<c012a4bf>]
[<c012a553>] [<c012a5ae>] [<c012a6bd>]
Oct  5 04:45:04 k kernel:    [<c0105478>]
Oct  5 04:45:05 k kernel:
Oct  5 04:45:05 k kernel: Code: 89 02 fb 51 8b 54 24 28 52 e8 8a f4 ff ff

83 c4 08 fa 45 3b

Signature · 9 lines
Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#2 lore raw
petre@k:~$ uname -a
Linux k 2.4.18-HTB #4 Wed Sep 25 02:47:50 EEST 2002 i686 unknown

it is a Slackware 8.1 installed a few weeks ago

I have 256 MB RAM and 200 MB swap space

I stay away for the experimental kernels, as what I want from my system is stability.

the uptime of the machine was at that time 4 days, 21:14:36. It is my home box, I run x-window on it (KDE), but at that time x-window wasn't running, so the only processes runing were those required by the system, plus apache plus http (below I'll list them). The only reason which comes to my mind is that at the time the crash occured I was doing a ftp upload on the machine @ ~200 KB (yes, kilo Bytes). If it makes any difference, I'm connected through a LanCity cable modem.

I shall look at the file you mentioned, richard, thank you, though I would like to have some opinions on what caused this error (one of the few "fatal" errors I have seen on linux machines yet).

petre

  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:03 init
    2 ?        SW     0:00 [keventd]
    3 ?        SW     0:00 [kapmd]
    4 ?        SWN    0:00 [ksoftirqd_CPU0]
    5 ?        SW     0:00 [kswapd]
    6 ?        SW     0:00 [bdflush]
    7 ?        SW     0:00 [kupdated]
    8 ?        SW     0:00 [kreiserfsd]
   52 ?        SW     0:00 [eth0]
   55 ?        S      0:00 /usr/sbin/syslogd
   58 ?        S      0:00 /usr/sbin/klogd -c 3 -x
   99 ?        S      0:00 /usr/sbin/inetd
  101 ?        S      0:00 /usr/local/sbin/sshd
  108 ?        S      0:00 /usr/sbin/crond -l10
  110 ?        S      0:00 /usr/sbin/atd -b 15 -l 1
  114 ?        S      0:00 /usr/sbin/apmd
  116 ?        S      0:00 gpm -m /dev/mouse -t ps2
  132 ?        S      0:00 /usr/local/apache/bin/httpd
  134 tty1     S      0:00 -bash
  135 tty2     S      0:00 -bash
  136 tty3     S      0:00 /sbin/agetty 38400 tty3 linux
  137 tty4     S      0:00 /sbin/agetty 38400 tty4 linux
  138 tty5     S      0:00 /sbin/agetty 38400 tty5 linux
  139 ?        S      0:00 /usr/local/sbin/uptimed
  140 tty6     S      0:00 /sbin/agetty 38400 tty6 linux
  141 ?        S      0:00 /usr/local/apache/bin/httpd
  142 ?        S      0:00 /usr/local/apache/bin/httpd
  143 ?        S      0:00 /usr/local/apache/bin/httpd
Quoted 71 lines · On Saturday 05 October 2002 11:29, pa3gcu wrote:
Quoted 3 lines · Petre Bandac

can anyone translate in plain english the error below, please ? (the computer was frozen, and though it responded to ping, none of the services running - sshd, ftpd and apache - worked)

No to translate it properly into English you would have to do that yourself because your system has the details to decode the kernel oops below. Help on that is written in /usr/src/linux/README, the part called; IF SOMETHING GOES WRONG:

Now lets see if i can take a guess at what you are doing, considering you give is no further information on what you are doing then all one can do is guess.

Possably you have compiled a new kernel and or a experimental kernel series, ie; 2.5.x, you may have upgraded some or other utillity which is uncompatable with your kernel version.

Or had your machine been running for a very long time,? do you have a swap space, how many programs were you using at the time of the crash, what processes were running, what was the last thing you did before the crash?

All and any info is better than the zero info you gave.

It could also be that you have a rouge program/daemon running which is doing things that kswapd did not like. kswapd is mentioned in the oops, however that does not mean kswapd caused the problem, kswapd is the daemon that died, looks that way to me.

Help us to help you, o BTW, if this happened with a 2.5.xx kernel then send your "detailed" message to the applicable "MAINTAINER" stated in the MAINTAINERS list in the kernel source and not here, experimental kernels should not be used by newbies unless they know what they are doing.

NOTE, i used the word newbie as a general term to reflect to this list of which you are a list-member.

Quoted 34 lines

thanks,

petre

Oct  5 04:45:04 k kernel: Unable to handle kernel paging request at
virtual address 361dcf1b
Oct  5 04:45:04 k kernel:  printing eip:
Oct  5 04:45:04 k kernel: c01297e8
Oct  5 04:45:04 k kernel: *pde = 00000000
Oct  5 04:45:04 k kernel: Oops: 0002
Oct  5 04:45:04 k kernel: CPU:    0
Oct  5 04:45:04 k kernel: EIP:    0010:[<c01297e8>]    Not tainted
Oct  5 04:45:04 k kernel: EFLAGS: 00010002
Oct  5 04:45:04 k kernel: eax: c14056d0   ebx: c14056d0   ecx: c4d90ae0
edx: 361dcf1b
Oct  5 04:45:04 k kernel: esi: 00000000   edi: 00000457   ebp: 0000012a
esp: c14e3f58
Oct  5 04:45:04 k kernel: ds: 0018   es: 0018   ss: 0018
Oct  5 04:45:04 k kernel: Process kswapd (pid: 5, stackpage=c14e3000)
Oct  5 04:45:04 k kernel: Stack: 00000020 000001d0 00000020 00000006
c14056c0 c02edf28 00000000 0000022c
Oct  5 04:45:04 k kernel:        00000457 c14056c0 c012a41c 00000006
000001d0 c0289c68 00000000 c0289c68
Oct  5 04:45:04 k kernel:        c012a4bf 00000020 c0289c68 00000001
c14e2000 c012a553 c0289bc0 00000000
Oct  5 04:45:04 k kernel: Call Trace: [<c012a41c>] [<c012a4bf>]
[<c012a553>] [<c012a5ae>] [<c012a6bd>]
Oct  5 04:45:04 k kernel:    [<c0105478>]
Oct  5 04:45:05 k kernel:
Oct  5 04:45:05 k kernel: Code: 89 02 fb 51 8b 54 24 28 52 e8 8a f4 ff ff

83 c4 08 fa 45 3b

Signature · 7 lines
 16:11:55 up  8:05,  2 users,  load average: 0.05, 0.16, 0.65

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#3 lore raw
Quoted 10 lines · Petre Bandac
petre@k:~$ uname -a
Linux k 2.4.18-HTB #4 Wed Sep 25 02:47:50 EEST 2002 i686 unknown

it is a Slackware 8.1 installed a few weeks ago

I have 256 MB RAM and 200 MB swap space

I stay away for the experimental kernels, as what I want from my system is stability.

Quoted 7 lines

the uptime of the machine was at that time 4 days, 21:14:36. It is my home box, I run x-window on it (KDE), but at that time x-window wasn't running, so the only processes runing were those required by the system, plus apache plus http (below I'll list them). The only reason which comes to my mind is that at the time the crash occured I was doing a ftp upload on the machine @ ~200 KB (yes, kilo Bytes). If it makes any difference, I'm connected through a LanCity cable modem.

Then may i suggest trying the data transfer again, with of course the same things running as you have shown with ps below.

Quoted 4 lines

I shall look at the file you mentioned, richard, thank you, though I would like to have some opinions on what caused this error (one of the few "fatal" errors I have seen on linux machines yet).

I suggest you read the whole piece about solving problems as there are several things you can do first before you go reading about ksymoops.

Quoted 26 lines

petre

  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:03 init
    2 ?        SW     0:00 [keventd]
    3 ?        SW     0:00 [kapmd]
    4 ?        SWN    0:00 [ksoftirqd_CPU0]
    5 ?        SW     0:00 [kswapd]
    6 ?        SW     0:00 [bdflush]
    7 ?        SW     0:00 [kupdated]
    8 ?        SW     0:00 [kreiserfsd]
   52 ?        SW     0:00 [eth0]
   55 ?        S      0:00 /usr/sbin/syslogd
   58 ?        S      0:00 /usr/sbin/klogd -c 3 -x
   99 ?        S      0:00 /usr/sbin/inetd
  101 ?        S      0:00 /usr/local/sbin/sshd
  108 ?        S      0:00 /usr/sbin/crond -l10
  110 ?        S      0:00 /usr/sbin/atd -b 15 -l 1
  114 ?        S      0:00 /usr/sbin/apmd
  116 ?        S      0:00 gpm -m /dev/mouse -t ps2
  132 ?        S      0:00 /usr/local/apache/bin/httpd
  134 tty1     S      0:00 -bash
  135 tty2     S      0:00 -bash
Quoted 8 lines
  136 tty3     S      0:00 /sbin/agetty 38400 tty3 linux
  137 tty4     S      0:00 /sbin/agetty 38400 tty4 linux
  138 tty5     S      0:00 /sbin/agetty 38400 tty5 linux
  139 ?        S      0:00 /usr/local/sbin/uptimed
  140 tty6     S      0:00 /sbin/agetty 38400 tty6 linux
  141 ?        S      0:00 /usr/local/apache/bin/httpd
  142 ?        S      0:00 /usr/local/apache/bin/httpd
  143 ?        S      0:00 /usr/local/apache/bin/httpd

{big snip}

Signature · 9 lines
Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#4 lore raw

"More information
on making sense of the dump is in Documentation/oops-tracing.txt"

and

"You can use the "ksymoops" program to make sense of the dump."

seems like I've got some researching to do today :-)

thank you, richard, for pointing the direction,

petre

Quoted 63 lines · On Saturday 05 October 2002 16:45, pa3gcu wrote:
Quoted 10 lines · Petre Bandac
petre@k:~$ uname -a
Linux k 2.4.18-HTB #4 Wed Sep 25 02:47:50 EEST 2002 i686 unknown

it is a Slackware 8.1 installed a few weeks ago

I have 256 MB RAM and 200 MB swap space

I stay away for the experimental kernels, as what I want from my system is stability.

Quoted 7 lines

the uptime of the machine was at that time 4 days, 21:14:36. It is my home box, I run x-window on it (KDE), but at that time x-window wasn't running, so the only processes runing were those required by the system, plus apache plus http (below I'll list them). The only reason which comes to my mind is that at the time the crash occured I was doing a ftp upload on the machine @ ~200 KB (yes, kilo Bytes). If it makes any difference, I'm connected through a LanCity cable modem.

Then may i suggest trying the data transfer again, with of course the same things running as you have shown with ps below.

Quoted 3 lines

I shall look at the file you mentioned, richard, thank you, though I would like to have some opinions on what caused this error (one of the few "fatal" errors I have seen on linux machines yet).

I suggest you read the whole piece about solving problems as there are several things you can do first before you go reading about ksymoops.

Quoted 24 lines

petre

  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:03 init
    2 ?        SW     0:00 [keventd]
    3 ?        SW     0:00 [kapmd]
    4 ?        SWN    0:00 [ksoftirqd_CPU0]
    5 ?        SW     0:00 [kswapd]
    6 ?        SW     0:00 [bdflush]
    7 ?        SW     0:00 [kupdated]
    8 ?        SW     0:00 [kreiserfsd]
   52 ?        SW     0:00 [eth0]
   55 ?        S      0:00 /usr/sbin/syslogd
   58 ?        S      0:00 /usr/sbin/klogd -c 3 -x
   99 ?        S      0:00 /usr/sbin/inetd
  101 ?        S      0:00 /usr/local/sbin/sshd
  108 ?        S      0:00 /usr/sbin/crond -l10
  110 ?        S      0:00 /usr/sbin/atd -b 15 -l 1
  114 ?        S      0:00 /usr/sbin/apmd
  116 ?        S      0:00 gpm -m /dev/mouse -t ps2
  132 ?        S      0:00 /usr/local/apache/bin/httpd
  134 tty1     S      0:00 -bash
  135 tty2     S      0:00 -bash
Quoted 8 lines
  136 tty3     S      0:00 /sbin/agetty 38400 tty3 linux
  137 tty4     S      0:00 /sbin/agetty 38400 tty4 linux
  138 tty5     S      0:00 /sbin/agetty 38400 tty5 linux
  139 ?        S      0:00 /usr/local/sbin/uptimed
  140 tty6     S      0:00 /sbin/agetty 38400 tty6 linux
  141 ?        S      0:00 /usr/local/apache/bin/httpd
  142 ?        S      0:00 /usr/local/apache/bin/httpd
  143 ?        S      0:00 /usr/local/apache/bin/httpd

{big snip}

Signature · 7 lines
 16:51:39 up  8:45,  2 users,  load average: 0.00, 0.03, 0.08

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#5 lore raw
In reply to Petre Bandac

OK. You want an opinion. It's only a guess, but I'd suspect a problem with your swap partition, since the failure described is a paging problem:

> > Oct 5 04:45:04 k kernel: Unable to handle kernel paging
request at
> > virtual address 361dcf1b

Also, ftp transfers tend to fill up memory. With 256 MB of real RAM, and the process list you sent, an ftp transfer mat be the only thing that ever triggers use of swap space.

To explore this guess, try the following (assuming this is a problem that recurs):

1. Run "top" in some way that will let you see its last output
before a failure (maybe over a telnet or ssh connection). Then notice if this problem occurs when you are just starting to use swap.

2. Disable your swap partition and see if the problem stops happening.

3. If you do NOT have DMA enabled for your hard drive, try
enabling it (with hdparm) and see if that helps. The problem may just be timing.

All this said, my guess is only that -- a guess. As I noted in another recent thread, a large ftp transfer is a good stress test for all parts of the system, so it will unearth any hardware problems you might have (in my case, most recently it unearthed a marginal power supply, as an example -- different failure mode, though).

Quoted 18 lines · Petre Bandac
petre@k:~$ uname -a
Linux k 2.4.18-HTB #4 Wed Sep 25 02:47:50 EEST 2002 i686 unknown

it is a Slackware 8.1 installed a few weeks ago

I have 256 MB RAM and 200 MB swap space

I stay away for the experimental kernels, as what I want from my system is stability.

the uptime of the machine was at that time 4 days, 21:14:36. It is my home box, I run x-window on it (KDE), but at that time x-window wasn't running, so the only processes runing were those required by the system, plus apache plus http (below I'll list them). The only reason which comes to my mind is that at the time the crash occured I was doing a ftp upload on the machine @ ~200 KB (yes, kilo Bytes). If it makes any difference, I'm connected through a LanCity cable modem.

Quoted 3 lines

I shall look at the file you mentioned, richard, thank you, though I would like to have some opinions on what caused this error (one of the few "fatal" errors I have seen on linux machines yet).

[details deleted]

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#6 lore raw
Quoted 20 lines · Ray Olszewski

OK. You want an opinion. It's only a guess, but I'd suspect a problem with

your swap partition, since the failure described is a paging problem:
> > Oct 5 04:45:04 k kernel: Unable to handle kernel paging

request at

> > virtual address 361dcf1b

Also, ftp transfers tend to fill up memory. With 256 MB of real RAM, and the process list you sent, an ftp transfer mat be the only thing that ever triggers use of swap space.

To explore this guess, try the following (assuming this is a problem that recurs):

1. Run "top" in some way that will let you see its last output
before a failure (maybe over a telnet or ssh connection). Then notice if this problem occurs when you are just starting to use swap.

Quoted 6 lines

2. Disable your swap partition and see if the problem stops
happening.

3. If you do NOT have DMA enabled for your hard drive, try
enabling it (with hdparm) and see if that helps. The problem may just be timing.

root@k:~# hdparm /dev/hda

/dev/hda:

 multcount    =  0 (off)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)

geometry = 2482/255/63, sectors = 39876480, start = 0

I'll try another ftp transfer - see if things happen the same

thanks,

petre

Quoted 30 lines

All this said, my guess is only that -- a guess. As I noted in another recent thread, a large ftp transfer is a good stress test for all parts of the system, so it will unearth any hardware problems you might have (in my case, most recently it unearthed a marginal power supply, as an example -- different failure mode, though).

Quoted 18 lines · Petre Bandac
petre@k:~$ uname -a
Linux k 2.4.18-HTB #4 Wed Sep 25 02:47:50 EEST 2002 i686 unknown

it is a Slackware 8.1 installed a few weeks ago

I have 256 MB RAM and 200 MB swap space

I stay away for the experimental kernels, as what I want from my system is stability.

the uptime of the machine was at that time 4 days, 21:14:36. It is my home box, I run x-window on it (KDE), but at that time x-window wasn't running, so the only processes runing were those required by the system, plus apache plus http (below I'll list them). The only reason which comes to my mind is that at the time the crash occured I was doing a ftp upload on the machine @ ~200 KB (yes, kilo Bytes). If it makes any difference, I'm connected through a LanCity cable modem.

Quoted 3 lines

I shall look at the file you mentioned, richard, thank you, though I would like to have some opinions on what caused this error (one of the few "fatal" errors I have seen on linux machines yet).

[details deleted]

Signature · 7 lines
 18:59:19 up 10:52,  2 users,  load average: 0.08, 0.06, 0.01

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#7 lore raw

Console fonts and colors

I use SuSE 8.0 and mostly use the KDE UI but find myself more and more using the standard text console either by doing a Alt+f2 or not even starting X at all.
What I would like to do is change the color of the font and maybe the font it self.
Is this a hard thing? If it involves setting up a fonts server or such,
maybe I'll make do with what I have. It's not all that bad really. My
goal was to change the font color to green and maybe find a font that I could get a few more words on a line.
Thanks,

Brett
___
Linux linuxDBA 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
12:30pm up 7 days, 14:17, 3 users, load average: 2.01, 1.99, 1.92

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#8 lore raw

Re: Console fonts and colors

Quoted 11 lines · Brett

I use SuSE 8.0 and mostly use the KDE UI but find myself more and more using the standard text console either by doing a Alt+f2 or not even starting X at all.
What I would like to do is change the color of the font and maybe the font it self.
Is this a hard thing? If it involves setting up a fonts server or such,
maybe I'll make do with what I have. It's not all that bad really. My
goal was to change the font color to green and maybe find a font that I could get a few more words on a line.
Thanks,

Quoted 4 lines

Brett
___
Linux linuxDBA 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
12:30pm up 7 days, 14:17, 3 users, load average: 2.01, 1.99, 1.92

I don't know about colours (I quite like white on black), but the way
to change the font is to use either consolechars' or setfont', depending on whether your distro ships console-tools or kbdutils. Unfortunately, all this will really do is change which characters map to which ascii codes, for example for me ¤ maps as a euro symbol using latin-{0,9}. Your distro probably sets a font already, in Mandrake they use `setsysfont' which is a wrapper script.

Now, if you want more characters on a line you either need SVGATextMode
(never tried it, it's just an application) or a framebuffer. I use framebuffers, you have to recompile the kernel for your particular video card (or vesa will I suppose work) and then give the right options to grub or lilo. For lilo I use

video=matrox:vesa:0x117 # matrox, e.g. mystigue, 1024x768
video=atyfb:1024x768 # old ati card, 1024x768

I've also used the following from an old Mandrake install -
video=vga:791 # vesa, I think this was maybe 800x600

This is documented to varying degrees in the kernel source.

Ken

Signature · 11 lines
 Out of the darkness a voice spake unto me, saying "smile, things could be
worse". So I smiled, and lo, things became worse.




-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#9 lore raw

Re: Console fonts and colors

In reply to Brett
Quoted 6 lines · Brett

I use SuSE 8.0 and mostly use the KDE UI but find myself more and more using the standard text console either by doing a Alt+f2 or not even starting X at all.
What I would like to do is change the color of the font and maybe the font it self.
Is this a hard thing? If it involves setting up a fonts server or such,

No, only it is hard to understand the doco. You can mess with the colors using "setterm -foreground green -background white" for instance. load a font with "consolechars -f fontfile".
"ls --color=yes" will reset the console attributes when it exits, though, so you might want to alias that to a wrapper script that resets the attributes to what you want. I don't know of a way to _read_ the console attributes, which is probably why "ls" does the way it does.

look in /usr/lib/kbd/consolefonts to see what fonts you have lying around.

There are some other funky ones lying around on metalab.unc.edu (www.ibiblio.org/pub/Linux) somewhere, I think.

Quoted 3 lines

maybe I'll make do with what I have. It's not all that bad really. My
goal was to change the font color to green and maybe find a font that I could get a few more words on a line.

Easier to get a few more lines on a screen.

Quoted 6 lines

Thanks,

Brett
___
Linux linuxDBA 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
12:30pm up 7 days, 14:17, 3 users, load average: 2.01, 1.99, 1.92

Lawson

Linux giftie 2.4.13 #1 Tue Oct 30 22:04:20 EST 2001 i586 unknown
4:56pm up 11 days, 13:46, 8 users, load average: 0.05, 0.01, 0.18
---oops---

________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today! For your FREE software, visit:
http://dl.www.juno.com/get/web/.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#10 lore raw

Re: Console fonts and colors

Quoted 5 lines · On Tuesday 08 October 2002 20:57, [email protected] wrote:
Quoted 3 lines

maybe I'll make do with what I have. It's not all that bad really. My
goal was to change the font color to green and maybe find a font that I could get a few more words on a line.

Easier to get a few more lines on a screen.

Brett, go take a look at;
http://people.zeelandnet.nl/pa3gcu/console_mode.htm

Quoted 3 lines
Quoted 3 lines

Thanks,

Brett

Signature · 9 lines
Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs