12.04 hangs at "checking battery state"
Solution 1
Answer from the OP:
We installed lightdm and it showed similar behavior, i.e. it halted at a certain step.
However, then it was possible to press ctrlaltF1 and then login. The problem that there was the existence of /etc/init/lightdm.override
. Inside the file was the word manual
.
This was how it was present on install of lightdm, and then running 'sudo dpkg reconfigure lightdm'. Upon removing this file the system went to the login screen with no problems!
Solution 2
Worked for me with Ctrl+Alt+F1 and then login. After this, I typed:
sudo apt-get install --reinstall lightdm
sudo dpkg-reconfigure lightdm
After this, I rebooted system and worked fine.
Solution 3
The disk was full.
It worked for me with Ctrl+Alt+F1 and then login. After this, I typed
sudo df -H
It showed me 100% hard disk full. I made some space by deleting the unnecessary files.
sudo reboot
Solution 4
In my case it didn't have anything to do with lightdm or battery state. It was the nvidia driver. I had to execute
apt-get remove --purge nvidia-3*
to remove ALL nvidia related packages. Then I restarted, and the desktop loaded in standard graphic mode. Then I reinstalled nvidia by
apt-get install nvidia-current
and after reboot, nvidia drivers worked again.
Solution 5
A solution is available here
http://ubuntuforums.org/showthread.php?t=1606130
Display manager was looking for gdm instead of lightdm.
Related videos on Youtube
Comments
-
crystalbass17 over 1 year
My 12.04 system hangs at "Checking battery state". At this stage, no commands work eg: Ctrl+Alt+f1, or Alt+f5.
I ran recovery mode, and ran the following commands:
sudo mount -o remount, rw / sudo dpkg-reconfigure gdm
gdm was the only display manager installed, so I didn't get a GUI screen. I have an integrated graphics card "Intel Corporation Mobile 4 chipset Integrated Graphics Controller (rev 07)".
So I cannot install Nvidia drivers as everyone else suggests. I have gone through several similar questions but everyone suggests reconfiguring gdm or reinstalling graphic drivers.
I ran the following commands to get the latest x-swat drivers:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get upgrade
The system still hung at the same line.
The other option is to re-install Ubuntu, which is out of the question, since we have a very specific install for our project where the settings are very hard to duplicate.
Suggestions/Comments welcome.
-
uemeulo about 10 yearsThe accepted answer doesn't work for me but yours does. The last command which installs ubuntu-desktop takes a lot of time but it seems the main one.