Problem with Reboot/Shut Down

Posted on 2007-10-11
Last Modified: 2013-12-15
I've got a problem when I reboot or shutdown my Ubuntu VM. I'm running 7.04 in the most recent Parallels 3.0 on an Intel MacBook Pro, but I had the same problem happening on my Windows computer that I installed Linux on a few months ago.

The problem is that, during a reboot, the second that the OS begins unloading the display gets scrambled. It stays like that for the duration of the system shutting down and then the display goes back to normal (proper text) at BIOS. When I shutdown entirely, the process seems to stop somewhere along the way and the system never shuts down entirely; I'm forced to hit the power button.

I'm really not sure what's going on, I've never seen anything like this in my previous Ubuntu installs except for with 7.04, and I've not seen Windows/Mac/Linux do anything like this before. Can anyone point me in the right direction on this one?
Question by:Harry_Truman
    LVL 34

    Accepted Solution

    This could be caused by framebuffer console, and udev terminating (taking /dev/fb0 with it). I get minor corruption during halt or reboot due to this right now, planned to fix it by setting the framebuffer resolution before starting udev.
    That might fix it for you too - I'll post again once I've tried it myself.
    LVL 34

    Expert Comment

    by:Duncan Roe
    Ok I tried it and the corruption went away. I am not familiar with Ubuntu /etc rc scripts but the commands to look for are fbset (sets framebuffer resolution) and udevd (manages the udev /dev mount).
    Before udev starts, you have the old-style /dev directory on the root device. This should have an entry for fb0:

    crw-rw----  1 root video 29, 0 2007-10-13 17:15 /dev/fb0

    As it happens, mine had that already. You should mknod it if it's not there (in case fbcon is a module)

    Because udev hides the real /dev by doing a tmpfs mount of /dev, you may need to reboot with "init=/bin/bash" to access the "real" /dev. Once you have verified it contains fb0, alter your startup scripts so fbset is done before udevd and not done again after udevd.
    (don't include the double quotes on the boot command line)
    LVL 34

    Expert Comment

    by:Duncan Roe
    Oh dear, not so good after all. If I go in and out of X, corruption reappears. If I issue halt or reboot commands fro an xterm, corruption is worse than previously.
    I really think you want to get rid of framebuffer console.
    In the interim, if you Ctrl-Alt-F6 back to a console before shutting down the system, corruption may not be so bad.
    LVL 4

    Author Comment

    Yeah, I've noticed that anything I do outside of X really doesn't cause any issues.  I'll give it a shot and see what happens, at the very least I can just revert to a snapshot if anything gets worse...
    LVL 8

    Assisted Solution

    If you think the framebuffer is causing this, try disabling it:
    LVL 34

    Expert Comment

    by:Duncan Roe
    I believe I identified the problem as being framebuffer so deserve credit. MushyPea posted a nice website about framebuffer with at least one useful observation: "If you don't care about a graphic boot then you don't need framebuffer" - true enough if you want to use X windows all the time.
    I think I did the lion's share, but wouldn't object to a split.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now