PDA

View Full Version : Boot screen and startup



RobGoss
June 6th, 2015, 07:54 PM
Hello everyone I'm currently using Ubuntu 14.04, I wanted to know if you could tell me why and how I can get rid of the distortion when I start up my machine. What I mean is just before my computer reaches the login screen I see a distorted background and it stays this way for a few seconds before I can login...

I'm using the default environment from Ubuntu.. Almost forgot I have a different background for my lock screen and my desktop. Thanks so much

Bashing-om
June 6th, 2015, 08:06 PM
RobGoss; Hi !

You can tell grub to use a different resolution.
Here is what I have done :


# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1600x900

By editing " /etc/default/grub " .
Where I have set a higher resolution, 1600x900. for my display, and for what my display supports. Heed the warning ; "note that you can use only modes which your graphic card supports via VBE" !

Else you can check the display settings that the GUI is using, That resolution is safe to use in grub also.



my bit to try and help

RobGoss
June 6th, 2015, 09:05 PM
Thanks for the fast reply.

So I need to edit the grub file and make these changes? I don't want to mess things up seeing everything is running great.

What are the recommended resolution for grub? and Is this why I getting the distorted startup. Can you tell me why this is happening is it because the lock screen had a different resolution from the desktop?

RobGoss
June 6th, 2015, 09:14 PM
This is what I see in my grub file do I need to change the GFXMODE=640x480 to something higher?


# The resolution used on graphical terminal# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

Bashing-om
June 6th, 2015, 09:29 PM
RobGoss; Yes indeed.

That is the place to make the edit. Always make a backup of any file you are editing ! Never can tell what might happen, and with that backup you can revert.

As to the resolution that you can use in grub; as advised by the comment:
reboot to the grub menu; 'c' key for a (C)ommand line interface.
Observe the result of grub command:


vbeinfo


Else you can use the native resolution the the GUI uses; That info should be available in "system Settings" -> display.

Be careful and know what the supported resolutions are. We do not want to damage the monitor by overdriving it !

As to:


Can you tell me why this is happening is it because the lock screen had a different resolution from the desktop?

I would not think this is a factor, as grub runs before the operating system is started; and, if I am not mistaken grub uses a different driver than that of the GUI .



ain't nothing but a thing

RobGoss
June 6th, 2015, 09:34 PM
Ok so i changed this



# The resolution used on graphical terminal# note that you can use only modes which your graphic card supports via VBE# you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480


To This


# The resolution used on graphical terminal# note that you can use only modes which your graphic card supports via VBE# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=1900x900


But it still looks really bad after start up am I doing something wrong?

Bashing-om
June 6th, 2015, 09:44 PM
RobGoss; Hey !

Process of learning:


#GRUB_GFXMODE=1900x900

1st you are certain that "1900x900" is a valid resolution, yes ? I can not stress enough.
Then we have that silly little '#" that makes the line into a "comment" with the '#' character the line will not be parsed.

So in the text editor remove that comment character. and and and
Once the file is saved, to propagate the change to the operating system run terminal command:


sudo update-grub

( as the advisory states at the head of the file ).

OK, how now does the splash screen look when rebooting ?



ain't nothing but a thing

RobGoss
June 6th, 2015, 09:51 PM
RobGoss; Hey !

Process of learning:

1st you are certain that "1900x900" is a valid resolution, yes ? I can not stress enough.
Then we have that silly little '#" that makes the line into a "comment" with the '#' character the line will not be parsed.

So in the text editor remove that comment character. and and and
Once the file is saved, to propagate the change to the operating system run terminal command:


sudo update-grub

( as the advisory states at the head of the file ).

OK, how now does the splash screen look when rebooting ?

ain't nothing but a thing






I use this command to edit my Grub file

sudo gedit /etc/default/grub –

After doing so I changed the resolution to 1900 by 900, Then I saved the changes, Are you saying I have to remove the '#" from my Grub file then save my changes? Sorry I'm a bit lost :)


You said: OK, how now does the splash screen look when rebooting ?

After updating the grub it seems like the distorted image that was all scrambled and multi colors is the now the same images I'm using on my desktop but less distortion.

ajgreeny
June 6th, 2015, 10:01 PM
Did you also run sudo update-grub which is needed for the edit to take effect?

Bashing-om
June 6th, 2015, 10:01 PM
RobGoss; Well ...

In my mode of instruction:
This is a no no !


sudo gedit /etc/default/grub

With a graphical application one uses the graphical elevator "gksudo" rather than the textual 'sudo' : ( gksudo is also now depreciated - but can be used, as pkexec is now the new boy on the block ) . - undesired side effects -
You may have to install 'gksudo" :


sudo apt-get install gksu

see:
http://www.psychocats.net/ubuntu/graphicalsudo

And yes, you have the right of the procedure.
remove the comment character at the start of that line (in your text editor);
save the file and exit back to terminal:
and then execute:


sudo update-grub

to propagate the change.



as we make haste



slowly

RobGoss
June 6th, 2015, 10:03 PM
Did you also run sudo update-grub which is needed for the edit to take effect?

Yes I did after it was recommend but it still looks kind of distorted not sure why I'm sure I'm missing something. Thanks

RobGoss
June 6th, 2015, 10:14 PM
Let me get this straight

First: You want me to edit my Grub file correct and remove the # from this line #GRUB_GFXMODE=1900x900 correct? what's the best way to edit this and save my changes.

Second: You want me to run this command from my terminal:

sudo apt-get install gksu

Third: You want me to run this update command from the terminal:

sudo update-grub


Then I need to restart my machine to see the changes correct? Sorry but I just want to make sure, Thanks so much for your time.

Bashing-om
June 6th, 2015, 10:15 PM
RobGoss; Humm ...

Not at all sure of what you have going on here as:
You say


I'm using the default environment from Ubuntu..
I have a different background for my lock screen and my desktop.

After updating the grub it seems like the distorted image that was all scrambled and multi colors is the now the same images I'm using on my desktop but less distortion.


Which begs the question, are you using a custom image for grub's splash screen AND if so what means have you employed to set the image ?

Are we going to



go ahunt'n

RobGoss
June 6th, 2015, 10:20 PM
RobGoss; Humm ...

Not at all sure of what you have going on here as:
You say


Which begs the question, are you using a custom image for grub's splash screen AND if so what means have you employed to set the image ?

Are we going to


go ahunt'n






As far as I know I'm not using any custom image for the grub splash screen. I am using a custom image for my desktop background and a custom image for the login screen.

After rebooting it seems a little better I just have a little distortion at the bottom of the splash screen now by I still did not remove the # from the grub file yet.

Bashing-om
June 6th, 2015, 10:35 PM
RobGoss; Well ..


To attain admin authority to use a graphical application, I am the more comfortable with the legacy "gksudo" .
This utility is no longer installed by default on later releases of ubuntu, as "pkexec" is now the preferred way. I am aware that one has to do some setting up of 'pkexec' to make it apply to text editors and as such I would rather use 'gksudo' .
so if you run:


gksudo gedit /etc/default/grub

and the system tells you it can not comply. Then install the suite that includes the gksudo tool:


sudo apt-get install gksu

OR one can check and see if it is already installed:


dpkg -l gksu

IF it is you will get this result:


sysop@1404mini:~$ dpkg -l gksu
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii gksu 2.0.2-6ubunt amd64 graphical frontend to su
sysop@1404mini:~$


SO; we do:
1) gksudo gedit /etc/default/grub and remove the '#' character at the start of line "#GRUB_GFXMODE=1900x900"
2) Save the file and exit back to terminal
3) execute terminal command " sudo update-grub "
4) reboot to see the effect.
-------------------
Now if there is still a problem
a) change the resolution to some other
or
b) see what image you are using, if it is compatible with what grub expects and what means you are using to set up a custom splash image.
-----------------------

Keep in mind



we will be with you 'til the end

RobGoss
June 6th, 2015, 10:40 PM
Will do my friend thank you I will let you know how it goes.

RobGoss
June 6th, 2015, 11:38 PM
How do you determine were the grub background images are located.

Bashing-om
June 7th, 2015, 12:16 AM
RobGoss; Well;

Could be in a number of places; most generally :


sysop@1404mini:~$ ls -al /usr/share/images/desktop-base/desktop-grub.png
lrwxrwxrwx 1 root root 30 May 19 2013 /usr/share/images/desktop-base/desktop-grub.png -> /etc/alternatives/desktop-grub
sysop@1404mini:~$

sysop@1404mini:~$ ls -al /etc/alternatives/desktop-grub
lrwxrwxrwx 1 root root 43 May 19 2013 /etc/alternatives/desktop-grub -> /usr/share/images/desktop-base/joy-grub.png
sysop@1404mini:~$

For the tutorial to have a custom splash screen:
https://help.ubuntu.com/community/Grub2/Displays
is a good guide. There are many others.
If ya want to get indepth - multiple installs; fancy displays:
see
https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen
Is the better that I am aware of.



it's 'buntu



where there is a will there is a way

Dennis N
June 7th, 2015, 12:17 AM
This page explains Grub background images and the locations where they might be.

https://help.ubuntu.com/community/Grub2/Displays

See "Image Priority" section.

By default, Grub does not use a background image. A user has to put one in an appropriate location.

RobGoss
June 7th, 2015, 12:32 AM
Hello and thanks, But I was looking in my Grub file and notice this at the end of the file

export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
#export GRUB_MENU_PICTURE="/home/robert/Pictures/Wallpapercorrectsize/ubuntu_logo_wallpaper_by_a48maverick-d6nfcpm.png"

Correct me if I'm wrong but it looks like the grub splash is displaying multi images and that would explain the distorted images be displayed. Because when the splash screen is loading I can see a number of images I have saved in my wallpaper folder and picture folder. Am I correct? How would I change that path to show just one background image.

Bashing-om
June 7th, 2015, 12:48 AM
RobGoss; Hey;

Looks as if you have been following old documentation that no longer applies.
See :
https://help.ubuntu.com/community/Grub2/Displays
"GRUB 1.99 and later
The following guidance for setting the background image is for GRUB 2 version found in Ubuntu 11.04, Natty Narwhal and later."

For the correct procedure. Revert all other means you are employing to obtain a splash image.



just what I think



do it by-the-book

Dennis N
June 7th, 2015, 01:23 AM
I will just add this final thought to the thread, and then be on my way:

In post #1, you said:

"What I mean is just be for I computer reaches the login screen I see a distorted background and it stays this way for a few seconds"

I think you may be referring to the Plymouth boot splash, not the Grub background. The Grub background is only behind the menu.

RobGoss
June 7th, 2015, 02:33 AM
I will just add this final thought to the thread, and then be on my way:

In post #1, you said:

"What I mean is just be for I computer reaches the login screen I see a distorted background and it stays this way for a few seconds"

I think you may be referring to the Plymouth boot splash, not the Grub background. The Grub background is only behind the menu.


So is this a Grub issue or Plymouth boot splash issue? because now I'm confused because I'm trying to follow the Grub tutorial that was shared here but now you're saying it might not be the Grub splash screen.....

RobGoss
June 7th, 2015, 02:56 PM
Bump

Dennis N
June 7th, 2015, 04:01 PM
IMO, If you see this distorted image while the grub menu is being displayed on the screen, then the grub background is the likely suspect. If you see this distored image after the grub menu, the Plymouth boot splash is a likely suspect. Your statement that I quoted suggested the latter.

Boot Process Stages:

http://www.thegeekstuff.com/2011/02/linux-boot-process/

Based on my understanding, after you select an OS from the grub menu, the kernel for that selection is booted and it takes over, starts init and you system gets going. It's during all this startup activity that the Plymouth boot splash would run, up to starting the login screen.

I have had problems with the Plymouth boot splash having the wrong resolution, I have seen weird psychedelic color distortion on the booth splash which disappears when the login screen is reached - that was on an old AMD system with old Nvidia Graphics I was once trying to resurrect. Never figured out how to fix that. We used to call it Psychedelic Ubuntu. That system is now deceased.

I'm not an expert on startup problems; just pointing out where it might be.

RobGoss
June 7th, 2015, 06:03 PM
IMO, If you see this distorted image while the grub menu is being displayed on the screen, then the grub background is the likely suspect. If you see this distored image after the grub menu, the Plymouth boot splash is a likely suspect. Your statement that I quoted suggested the latter.

Boot Process Stages:

http://www.thegeekstuff.com/2011/02/linux-boot-process/

Based on my understanding, after you select an OS from the grub menu, the kernel for that selection is booted and it takes over, starts init and you system gets going. It's during all this startup activity that the Plymouth boot splash would run, up to starting the login screen.

I have had problems with the Plymouth boot splash having the wrong resolution, I have seen weird psychedelic color distortion on the booth splash which disappears when the login screen is reached - that was on an old AMD system with old Nvidia Graphics I was once trying to resurrect. Never figured out how to fix that. We used to call it Psychedelic Ubuntu. That system is now deceased.

I'm not an expert on startup problems; just pointing out where it might be.

Well I'm still learning Linux so with that said, I'm new also and I don't know to much about the grub menu. When I startup my machine it just loads up my Ubuntu system. I don't see any Grub menu am I missing something? I don't know how to access it ether. Thanks

Bashing-om
June 7th, 2015, 06:27 PM
RobGoss; Morning .

We are all at some point on this learning curve that is linux . The boot process is a particular interest to me, and it is a constant learning process. There is a lot going on to boot up that kernel and desktop.

In a direct response:


When I startup my machine it just loads up my Ubuntu system I don't see any Grub menu am I missing something? I don't know how to access it ether.

Nope, you are not by default missing anything. With only one instance of ubuntu installed by default the boot menu will not be displayed. In such an instance of a single install to gain access to the grub menu, when booting up as soon as the bios screen clears depress and hold the right-shift- key -> grub menu (MBR partitioning) ((UEFI systems it is the escape key).

So let us try and identify at what stage you see the distortion. Is this distortion before the grub menu, or after when the booting kernel is selected ?




all in the process

RobGoss
June 7th, 2015, 06:36 PM
RobGoss; Morning .

We are all at some point on this learning curve that is linux . The boot process is a particular interest to me, and it is a constant learning process. There is a lot going on to boot up that kernel and desktop.

In a direct response:

Nope, you are not by default missing anything. With only one instance of ubuntu installed by default the boot menu will not be displayed. In such an instance of a single install to gain access to the grub menu, when booting up as soon as the bios screen clears depress and hold the right-shift- key -> grub menu (MBR partitioning) ((UEFI systems it is the escape key).

So let us try and identify at what stage you see the distortion. Is this distortion before the grub menu, or after when the booting kernel is selected ?


all in the process






Hello Bashing, I'm a little confused, I don't select any kernel at boot up, I just press the start up button on my machine and after that it boots up to my login screen but! before it reaches that is when I see the distorted screen. Sorry if I'm a bit confusing but the grub topic has thrown me off.....


Is this the Grub menu that you're talking about
www. (http://robgoss.com/images/ubuntu_11.04-grub2.png)robgoss.com/images/ubuntu_11.04-grub2.png (http://robgoss.com/images/ubuntu_11.04-grub2.png)

If it is I don't see this at startup and that's not were the distortion is. It's the screen just before the login screen appears were you enter your pass word.


This is what the screen look like when it appears.
http://robgoss.com/images/distorted.jpg

Bashing-om
June 7th, 2015, 06:55 PM
RobGoss; Yeah ;

That is the screen that you want to tey and boot to. as advised in the default configuration with a single instance of linux installed the boot menu will not be displayed. To get to this menu in the older systems one must get grub's attention.
Grub looks for any key to be depressed within a certain time frame after bios hands off to grub, "any" key is generally told to be the shift key(s).
Reboot and as soon as the bios screen clears depress a key, the grub menu should appear.
Boot to this grub menu. Is the distortion prior to the menu ? When you press enter - with the top entry in the kernel list selected (asterisk) do you now get this distortion ?



who what when and why

RobGoss
June 7th, 2015, 07:34 PM
I did press the shift key and hold it then the Grub menu appeared after that I choose the first option to boot Ubuntu after that when my system loads i get that distorted screen before I login.



but I'm not sure what to do at this point

Bashing-om
June 7th, 2015, 07:47 PM
RobGoss; Good ;

Ok with the grub menu displayed it is your option which kernel to boot with.
The booting kernel can be selected by the keyboard arrow keys to move up/down the list OR choose "advanced" to be able to select other options. Just place the cursor to the choice and hit the enter key. Generally one wants to boot the latest kernel ( the one with the highest version number) . You can not hurt anything by selecting different options, see what happens. Playing with a "recovery" kernel will be an eye opener.

When booting from a selected kernel from the grub menu, is the distortion still present ?

Just remember to always shut the system down cleanly !



a process of learning

RobGoss
June 7th, 2015, 08:18 PM
After trying to follow your instructions which was GREAT by the way and much appreciated. I was able to access the Grub menu there were a few options and the first one was to boot up Ubuntu, The others was Advanced option which I did choose that as well. No matter which one I choose when trying to boot up the I got the distorted view.....

RobGoss
June 7th, 2015, 08:46 PM
First of all I use a dual monitor setup sorry I did not mention that not sure if it would have help this discussion, and after watching my machine booting up a few times I notice there was something yellow displaying in the distorted screen.

I have theses yellow sticky's pined to my second screen, well I notice when my machine booted up I can also see those yellow sticky's booting up on my first monitor so that made me think why am I also seeing those yellow sticky's all distorted on my first monitor.

So I disconnected my second monitor and try booting up my machine again and guess what? no distorted screen after booting up with only one monitor everything look ok. So it looks as tho it's something to do with my dual setup screen.

This has been driving me nuts since yesterday. Any ideas?

Bashing-om
June 7th, 2015, 09:13 PM
RobGoss; Well ..

Yeah dual monitors do set things in a different light.
I have no experience with dual monitors, so now we fly by the seat of out pants, see what we can learn.

Presently all I can think of is to see what is set in System Settings -> display . Are both monitors the same manufacturer ? Such that both will use the same settings ?



sometimes I do wonder

RobGoss
June 7th, 2015, 09:17 PM
Yes there're the same identical monitors brand setting and all. I am wondering if I could maybe turn one off and turn it on when needed with out unplugging it.

Bashing-om
June 7th, 2015, 09:41 PM
RobGoss; Sheeeshh ...

Do not really know about turning on the monitor later, years ago that was a bad practice due to a possible power spike on the power supply blowing capacitors. Do not know if that still applies . Dennis ?



If I knew it all



I would not be me

RobGoss
June 7th, 2015, 10:06 PM
I guess I'll have to do my homework hey man I want to thank you guys so much for all the help you guys are GREAT. I think this is a whole new topic :)

At least I know now what is causing it. It was not a total failure

Bashing-om
June 7th, 2015, 10:30 PM
RobGoss; Hey ;

I got another thought. power all down, and swap the monitor cables. See if the problem moves with the cables .

The topic, I think, remains the same; just a change in direction.



stranger things have been known to happen

RobGoss
June 7th, 2015, 10:58 PM
I'll give it a try can't hurt nothing....

RobGoss
June 8th, 2015, 12:31 AM
RobGoss; Hey ;

I got another thought. power all down, and swap the monitor cables. See if the problem moves with the cables .

The topic, I think, remains the same; just a change in direction.


stranger things have been known to happen





So I swapped the monitor cables and no changes the only way I can get rid of the distortion is to unplug one monitor, so I did until I can find a fix for this effecting my startup.

Bashing-om
June 8th, 2015, 01:07 AM
RobGoss; K ;

Next thought up, is to check " /etc/X11/Xorg.conf " . As the monitors are identical, the settings for screen 0 and screen 1 should be the same in that file.



as I continue pondering on along