I didn't pay much attention when I was writing code in the middle of the night yesterday. the Ubuntu system reminded me that there was an available upgrade and I just gave it an upgrade. As a result, after getting up, I started the system and found that grub prompted two kernels, then select the latest kernel, and the black screen will not be able to access the system for a long time. Solution: Delete the graphics driver, otherwise after the restart or white screen to delete the graphics driver command is: sudo/usr/share/ati/fglrx-uninstall.sh restart into the desktop, over, and then to run the update-grub2 on the terminal
I didn't pay much attention when I was writing code in the middle of the night yesterday. the Ubuntu system reminded me that there was an available upgrade and I just gave it an upgrade. As a result, after getting up, I started the system and found that grub prompted two kernels, then select the latest kernel, and the black screen will not be able to access the system for a long time.
Solution: Delete the video card driver. Otherwise, the screen is still displayed after restart.
The command to delete the graphics card driver is: sudo/usr/share/ati/fglrx-uninstall.sh
Go to the desktop after reboot, over, and then run the update-grub2 on the terminal
Next, we will do two things: 1. Whether to update the kernel. 2. the graphics card driver must be reinstalled.
1. Update the kernel as follows:
Install the new kernel, then update-grub, update-grub2, should be OK, and then follow the below to delete the old Kernel File.
The kernel version corresponding to apt-get remove. Delete the kernel of the old version (the files-image-and-header-must be deleted. Be careful when executing the command ).
Kernel version corresponding to apt-get autoremove. You can clear the kernel version.
Modify/boot/grub. cfg (after version 9.10, the menu. list file is replaced with grub. cfg), delete the text of the old kernel, and restart the system.
2. reinstall the graphics card driver
You need to reinstall the graphics card driver after the restart (if the restart fails, refer to the startup error handling method described at the beginning of the article ).
How to reinstall the graphics card driver:
1. delete old and wrong drivers
Cd/usr/share/ati/
Sudo./fglrx-uninstall.sh
Sudo apt-get remove xorg-driver-fglrx xserver-xorg-video-ati xserver-xgl
2. install a new driver (download it from the ATI official website)
Sudo sh./ati-driver-installer-8-11-x86.x86_64.run
After installation, initialize the configuration file and execute
Sudo aticonfig-initial-f
Generate the modules. dep and map files to ensure normal loading of modules and drivers.
Sudo depmod-
3. Restart
4. Check the installation result
Run fglrxinfo on the terminal. The displayed result is:
Display: 0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 2600 XT
OpenGL version string: 2.1.8201 Release
5. Check whether your video card works in Xv mode.
Xvinfo
If a lot of results are displayed, it is working in xv mode. If the display is as follows, you need to set
X-Video Extension version 2.2
Screen #0
No adaptors present
Manually set xv Mode
Sudo aticonfig-overlay-type = xv
6. Check other information.
Glxinfo | grep direct
My result is
Direct rendering: Yes
7. test whether the speed and operation are normal. The program will display the rotating gear and some numerical values.
Glxgears
Fgl_glxgears