Every time I turn on my laptop, at the first attempt it boots to a black screen. I then remove the battery, and on the second attempt the laptop produces the Ubuntu login sound but no display. I again remove my battery, and only on the third attempt does the screen boot to login screen.
2 Answers
This intermittent black screen problem is bizarre. I had this for a long time and it went away after I did the following actions. Keep in mind that it can a problem in Ubuntu specific to your device, so this might not fix that. In that case you might want to revert the changes I make, instructions to do that are given in the end of answer.
Log in somehow: If you have managed to log in by battery quirks then proceed to next step. Otherwise get a GRUB menu during boot, select the option with recovery mode (use down/up key to move selection) and press enter. This should not end in black screen. If it does, then I'm clueless.
Main actions: Once you have somehow logged into Ubuntu:
- Press
Ctrl+Alt+Tto start a terminal. Backup
/etc/default/grub, copy it to you home folder. Run:cp /etc/default/grub ~Disable splash screen and enable log messages during boot:
sudo sed -i '/^GRUB_CMDLINE_LINUX_DEFAULT/{s/splash//;s/quiet//}' /etc/default/grub sudo update-grubReboot and boot normally (no in recovery mode)
sudo shutdown -r now
Revert to Old Settings: If the system reboots fine, then do your stuff and ignore this. If the problem continues and you want to revert to original settings. Then, login somehow, and run in terminal:
sudo cp ~/grub /etc/default/grub
sudo update-grub
Maybe, Ubuntu cannot cannot recognize if your built-in screen is present or not. It generally happen with AMD Chipset laptop.
My laptop used to have this problem. You can fix this in the System Setting.
Setting > Color > Laptop Screen
If you see Laptop Screen Not Calibrated, then click on Add Profile.

Select Default: Your Laptop Model (eg: my laptop Default: Gateway 4250s) then click Add.

Then click on Set for all user.
Then Reboot. I expect it will boot up normally.
- 70,557