SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-12-09 09:25:19

p950tes
Member
From: Uppsala, Sweden
Registered: 2012-05-05
Posts: 16

[Solved] Enable display of shutdown/reboot console output

Hi guys!

Quick quesion. On my laptop running a regular Debian Wheezy some output from the shutdown scripts is displayed on the screen when shutting it down. I kinda like seeing everything that's being done, especially to get to know if an error occurs or if some shutdown procedure is taking particularly long. On my waldorf laptop you just see it sitting at user login until the will now halt message comes.

How can I enable displaying this output during shutdown?

Cheers!

Last edited by p950tes (2013-01-16 10:10:07)

Offline

Be excellent to each other!

#2 2012-12-09 13:14:55

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: [Solved] Enable display of shutdown/reboot console output

/var/log/messages (or messages.1)

dmesg

last -x

Should give you some of the info you are looking for.

Last edited by dura (2012-12-09 13:15:58)

Offline

#3 2012-12-09 15:53:02

p950tes
Member
From: Uppsala, Sweden
Registered: 2012-05-05
Posts: 16

Re: [Solved] Enable display of shutdown/reboot console output

Thanks for your answer mate. Sorry, I may not have been completely clear as to what I'm looking for. I know I can look at the log files to find the info, but what I'm looking for is to actually see that output live during each shutdown, the way I see it on my debian laptop.

That should just be some simple conf file setting, shouldn't it?

Offline

#4 2012-12-09 16:12:03

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: [Solved] Enable display of shutdown/reboot console output

In /etc/default/grub change:

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

to:

GRUB_CMDLINE_LINUX_DEFAULT="verbose"

Last edited by dura (2012-12-09 16:12:34)

Offline

#5 2012-12-09 22:49:45

p950tes
Member
From: Uppsala, Sweden
Registered: 2012-05-05
Posts: 16

Re: [Solved] Enable display of shutdown/reboot console output

Hi mate, and thanks for the suggestion.

Changing that did generate a big heap of verbose messages on startup, but didn't really give me much on shutdown, just a few messages getting displayed for a split-second or so.

Just to clarify, this is basically what I'd like to see:
VuBAd.jpg

And this is /etc/default/grub on my wheezy machine (which does give me the output I want):

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

Any more thoughts mate? smile

Offline

#6 2012-12-10 23:23:59

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,469
Website

Re: [Solved] Enable display of shutdown/reboot console output

hi.
your shutdown info goes to tty7.
try hitting ctrl-alt-F7 on shutdown/reboot to confirm... found this, but you would be using inittab to shutdown anyway.
no idea what you need to edit to get the output where you want it, probably hiding in /etc/ somewhere.
at least you know why now.
good luck

Offline

#7 2012-12-11 15:50:30

p950tes
Member
From: Uppsala, Sweden
Registered: 2012-05-05
Posts: 16

Re: [Solved] Enable display of shutdown/reboot console output

Thanks mate, you're exactly right, hitting ctrl-alt-f7 on shutdown/reboot does indeed display the shutdown messages!

So what do you think could be causing this, SLiM? I use LightDM on my other laptop that do display the messages. Any idea on how to manually switch to tty7 when shutting down?

Offline

#8 2012-12-11 16:24:10

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: [Solved] Enable display of shutdown/reboot console output

I think you may be right about SLiM causing this. I have stopped it starting up and have all the shutdown info that you want. Of course, you get the raw login too- which I think you'd like; you are afterall just interested in this because of cosmetics right (or do you have some technical interest?)?

Offline

#9 2012-12-11 23:04:03

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,469
Website

Re: [Solved] Enable display of shutdown/reboot console output

did it.
kinda obvious in the end, but a great journey.
i looked at the slim.conf, this has x-args. looked at x-args man page.

all you need to do is edit /etc/slim.conf
from this;

xserver_arguments   -nolisten tcp

To this;

xserver_arguments   -nolisten tcp tty01

@Dura - the OP wanted to

especially to get to know if an error occurs or if some shutdown procedure is taking particularly long

which in my small experience, can be very handy.
once when using Samba, #! wouldn't shutdown... took me a random key bashing session to find out that all the fun (info) was on tty7. where it gave me a (what turned out to be false) lead on why i had to hard reset my machine. one can turn 'verbose' booting on and off (and i have had to) but 'verbose' shutting down....

It won't look as pretty coloured as your wheezy machine, need some other magic for that...

Offline

#10 2012-12-12 09:36:57

p950tes
Member
From: Uppsala, Sweden
Registered: 2012-05-05
Posts: 16

Re: [Solved] Enable display of shutdown/reboot console output

wuxmedia wrote:

@Dura - the OP wanted to

especially to get to know if an error occurs or if some shutdown procedure is taking particularly long

which in my small experience, can be very handy.
once when using Samba, #! wouldn't shutdown... took me a random key bashing session to find out that all the fun (info) was on tty7. where it gave me a (what turned out to be false) lead on why i had to hard reset my machine. one can turn 'verbose' booting on and off (and i have had to) but 'verbose' shutting down...

Yep, that's exactly my reason. Especially samba can be quite annoying there at times (you usually don't need to hard reset it, but it may take a good 10 minutes before it's willing to shutdown on it's own when it's being grumpy)

wuxmedia wrote:

did it.
kinda obvious in the end, but a great journey.
i looked at the slim.conf, this has x-args. looked at x-args man page.

all you need to do is edit /etc/slim.conf from this;

xserver_arguments   -nolisten tcp

To this;

xserver_arguments   -nolisten tcp tty01

It won't look as pretty coloured as your wheezy machine, need some other magic for that...

Sorry, I tried all the combinations of those arguments I could think of, but none of them work:

xserver_arguments    -nolisten tcp tty01
xserver_arguments    tty01 -nolisten tcp
xserver_arguments    -nolisten tcp -tty01
xserver_arguments    (-nolisten tcp) tty01

More ideas? smile

Offline

#11 2012-12-12 11:42:47

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,469
Website

Re: [Solved] Enable display of shutdown/reboot console output

oh darn - that worked on my waldorf install.
try tty02 etc. ?

the official arch wiki (actually Xfree86 man pages too ) says it should be vt01 etc.... maybe try that.
good luck

Last edited by wuxmedia (2012-12-12 22:24:12)

Offline

#12 2012-12-16 13:42:10

p950tes
Member
From: Uppsala, Sweden
Registered: 2012-05-05
Posts: 16

Re: [Solved] Enable display of shutdown/reboot console output

Sorry for the late reply mate, that took a lot of reboots to test them all.

Here are the results:

tty01	login prompt (tty1)
tty02	login prompt (tty1)
tty03	login prompt (tty1)
tty04	login prompt (tty1)
tty05	login prompt (tty1)
tty06	login prompt (tty1)
tty07	login prompt (tty1)

vt01	old boot messages
vt02	empty screen
vt03	empty screen
vt04	empty screen
vt05	empty screen
vt06	empty screen
vt07	login prompt (tty1)

I find it a bit curious that vt01 displays the boot messages from when the machine booted (starting rsyslogd, starting sshd etc.), shouldn't the shutdown messages be displayed on the same virtual terminal as the boot messages?

Offline

#13 2012-12-16 18:15:24

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,469
Website

Re: [Solved] Enable display of shutdown/reboot console output

yeah - i bet took me ages to work it on my machine.
i really don't know.
it would make sense what you say.
i will (slowly) have another look at my waldorf partiton.
good luck

Offline

#14 2013-01-16 10:08:42

p950tes
Member
From: Uppsala, Sweden
Registered: 2012-05-05
Posts: 16

Re: [Solved] Enable display of shutdown/reboot console output

I figured it out!

I was looking at the xorg arguments under Xorg --help and noticed an argument called "-novtswitch". The description there says "don't immediately switch to new VT", which I thought sounded like it had more to do with the boot process, to not change to vt07 automatically at boot, but decided to try it anyway.

And what do you know, it worked! It does switch to vt07 on boot as it should, but stays on vt07 during the shutdown process, displaying the shutdown procedure.

So the final line in slim.conf is:

xserver_arguments         -nolisten tcp -novtswitch

Thanks for the help guys!

Last edited by p950tes (2013-01-16 10:09:27)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo