How does Ubuntu identify hardware?

Exist any kind of usual activities that customer need to do after mounting new hardware? Is Ubuntu makes some hardware - reliant changes throughout installation (other than generation of /etc/fstab documents), that customer should do when transforming any kind of tool, like motherboard, visuals card or various other? Approaches of discovery hardware in Ubuntu is unclear for me. What I can review it?

I have unreal troubles now, yet I would love to recognize what to do when it take place.

(PS: Do you recognize me?: -) I am not an indigenous english audio speaker and also it is my first experience, please comment my blunders: -)

2019-05-18 21:41:52
Source Share
Answers: 2

As a regulation, no. Ubuntu identifies the computer system is hardware throughout bootup, or when the hardware is connected in.

2019-05-22 20:36:44

As Marius claims: hardware is identified by the bit at boot time, or later on if it is "pluggable" (USB, etc). When the hardware is identified, the relevant bit component (vehicle driver) will certainly be filled and also most of the times userspace will certainly be alerted using dbus/udev to establish what to do with that said hardware ; udev has a set of "regulations" that define what to do with particular sorts of hardware. E.g. "if the identified hardware is an USB printer, add it to the print web server (CUPS)" is an instance of such regulation, and also it would certainly look something similar to this:

# Low-level USB device add trigger
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="07", ATTR{bInterfaceSubClass}=="01", RUN+="udev-configure-printer add %p"
# usblp device add trigger (needed when usblp is already loaded)
ACTION=="add", KERNEL=="lp*", RUN+="udev-configure-printer add %p"

The above becomes part of /lib/udev/rules.d/70-printers.rules (at the very least, on 10.10), which additionally consists of a regulation for getting rid of the printer from CUPS if you disconnect it.

BTW: USB class 7 are USB printers.

In many cases you could need to transform some arrangement documents, yet that would certainly be taken into consideration a bug or an essential workaround (some hardware is difficult or hard to identify).

2019-05-22 20:33:08