Problem solving real machine installed Ubuntu18.04 slow boot, can not shut authorities

The first to use the whole real machine Ubuntu 18.04, with time U disk installed in the card and check the option to install third-party software, the next step will be stuck, have been waiting to load, at the beginning because the graphics card driver problem after re-installation is also available. After no hook on the options installed successfully, find the boot giant slow, the overall solid-state boot to twelve minutes, not even directly related to the shutdown, force shutdown to turn off every time.

Later, after a lot of information accessible online, many say this is because the graphics card driver problem, but disabled by default nouveau driver off the blacklist, and a good graphics card via CUDA installed directly after the driver, the problem remains unresolved. By next nvidia-settings and view the current nvidia graphics driver installed normal circumstances, the host PCI interface also think of an independent external sound card innovation LIVE series, and later, after the official inquiry, officials have stopped driving this sound card update, did not provide the appropriate linux driver, stuck off when, according to F1, view the current work, the system has been found in watting for save / restore sound card, which is more identified with the issues related to the sound card, then into the motherboard bios after turn off the built-in high-fidelity sound, the problem is still not resolved, then the following command to view the system audio device information:

sudo lshw -C sound

(The following are output after the blacklist) can be found in so many audio devices, each device can be seen in the configuration item corresponding to the driver, as in the first usb: 1, configuration: driver = snd-usb-audio maxpower = 500mA speed = 480Mbit / s

*-usb:1                   
       description: Video
       product: FULL HD 1080P Webcam
       vendor: Generic
       physical id: 7
       bus info: usb@3:7
       version: 7.01
       serial: 200901010001
       capabilities: usb-2.00
       configuration: driver=snd-usb-audio maxpower=500mA speed=480Mbit/s
  *-multimedia
       description: Audio device
       product: 8 Series/C220 Series Chipset High Definition Audio Controller
       vendor: Intel Corporation
       physical id: 1b
       bus info: pci@0000:00:1b.0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:29 memory:f7130000-f7133fff
  *-multimedia UNCLAIMED
       description: Multimedia audio controller
       product: EMU10k1 [Sound Blaster Live! Series]
       vendor: Creative Labs
       physical id: 0
       bus info: pci@0000:04:00.0
       version: 05
       width: 32 bits
       clock: 33MHz
       capabilities: pm cap_list
       configuration: latency=32 maxlatency=20 mingnt=2
       resources: ioport:e000(size=32)
  *-multimedia
       description: Audio device
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0.1
       bus info: pci@0000:05:00.1
       version: a1
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:17 memory:f7080000-f7083fff
 

Need to disable the device driver name to join blacklist,

south you /etc/modprobe.d/blacklist.conf

 In the last line insert:

blacklist snd-usb-audio # (blacklist + need to disable the drive name)

Once saved, because the blacklist in the kernel, so it is necessary to restart the kernel.

sudo update-initramfs -k all -u

Then after reboot, I found a fast boot speed, by again

sudo lshw -C sound

It can be seen in the corresponding device UNCLAIMED state, but also to disable the corresponding drive off.

Then test the shutdown, the problem also will be shut authorities can not afford to solve.

A brief summary:

When such a problem, in addition to google problems others have encountered even more according to source of the problem, possible causes problems caused by the exclusion, there are more than log search logs, there are more than the process of the investigation process, more attention to detail, such as the authorities can not afford the time off, you can F1, you can see related reasons can not afford to be related with the sound card, so you can start from a sound card terms. Power cards, you can also view the boot process to see which part of the more time-consuming, and accordingly excluded.

references:

https://www.cnblogs.com/lvdongjie/p/4153327.html

https://superuser.com/questions/541854/disable-specific-pci-device-at-boot

Published 18 original articles · won praise 8 · views 30000 +

Guess you like

Origin blog.csdn.net/qq_20408397/article/details/86569405