Sometimes GRUB and/or the Ubuntu command line may suddenly change to a resolution which is not compatible with your monitor in which case your monitor displays a message such as “Signal out of range” or “No signal.” An easy way to solve this problem is to do the following:
- Connect a monitor which can support high resolutions and refresh rates to the problematic machine (a CRT monitor should work). If you do not have an extra monitor available, you could also SSH into the problematic machine using an SSH client on another machine.
- Edit the file
- Uncomment the line which reads
#GRUB_GFXMODE=1024x768and then change the ‘1024x768’ to whichever resolution you would like to use. To be safe, I suggest using 800x600 or 1024x768 at the most.
- Save the file.
- Execute the command
sudo update-gruband then reboot the machine. Now, reconnect the monitor which previously was not working. Both GRUB and the Ubuntu command line will now, by default, run using the resolution specified in the
GRUB_GFXMODE=line of the
/etc/default/grubfile! T he information used to create this post was obtained from - https://help.ubuntu.com/community/Grub2