You are not logged in.

#1 2014-08-09 08:45:09

maggie
Member
Registered: 2011-02-12
Posts: 255

which package colorizes the output of dmesg

I have colored output of dmesg on my desktop just by typing "dmesg" but it is not colored on my laptop. Which package is doing that?

Offline

#2 2014-08-09 09:32:41

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: which package colorizes the output of dmesg

Is dmesg an alias on your system? It should be capable to color output on itself with 'dmesg -L=always' or similar.

Offline

#3 2014-08-09 09:36:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: which package colorizes the output of dmesg

Check the output of 'type dmesg' and 'type -p dmesg' on the computer that has colored output.

man dmesg wrote:

       -L, --color[=when]
              Colorize  important  messages (enabled by default).  The optional argument when can be auto, never
              or always.  If the when argument is omitted, it defaults to auto.

dmesg is provided by util-linux package. Are both using the same version?


Edit: Tooo laaate,
I think it's a recent change, as I haven't changed anything on my system an now just typing 'dmesg' gives me colored output.

util-linux 2.24.2-1 is just black'n'white.

Last edited by karol (2014-08-09 09:40:48)

Offline

#4 2014-08-09 09:42:23

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: which package colorizes the output of dmesg

Seems to be caused by util-linux update.

Offline

#5 2014-08-09 09:43:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: which package colorizes the output of dmesg

http://lwn.net/Articles/606125/

Edit: Errr, not, there's nothing new about the defaults, just that it adds customization.

Last edited by karol (2014-08-09 09:45:59)

Offline

Board footer

Powered by FluxBB