Dagens Spørsmål & Svar-sesjon kommer til oss med høflighet av SuperUser-en underavdeling av Stack Exchange, en fellesskapsdrevet gruppering av Q & A-nettsteder.
Foto courtesy of Robert (Flickr).
Spørsmålet
SuperUser leser Abhi vil vite om programvare faktisk kan skille mellom en stasjonær datamaskin og en bærbar PC:
A license for CPU-intensive software like Pix4D says that it can be installed on two devices, but with one condition. Reading the fine print, it seems that one device can be a full-processing desktop/workstation whereas the second one must be a laptop or mobile device.
How would the software know what type of device it is installed on? Are there giveaways in the hardware specifications for determining something like this (i.e. the presence of a battery)?
Given that the software is fully functional on both devices, would this condition become irrelevant if I just buy a high-end laptop which is just as fast as the desktop?
Kan programvare faktisk skille mellom en stasjonær datamaskin og en bærbar PC?
Svaret
SuperUser bidragsytere abnev og Technik Empire har svaret for oss. Først opp, abnev:
On Linux, you can run the following command:
sudo dmidecode –string chassis-type
On a laptop, this will return laptop, notebook, portable, or sub-notebook (depending on the manufacturer).
For Windows, refer to the following TechNet documentation to determine your computer chassis type: Identifying the Chassis Type of a Computer
Etterfulgt av svaret fra Technik Empire:
To add to the other answer here regarding Linux, Windows software can also access this information through various provided WinAPI methods/objects. One such example is Win32_ComputerSystem, which among others, has members like:
Since Windows has a massive partner network that submits their drivers directly to Microsoft (for driver updates via Windows Update and “standard” drivers to include with installation media), it is pretty easy for Windows to figure out precisely what kind of computer you have it installed on. Just by the CPU ID alone, you could determine whether it is a desktop computer or a laptop.
Har du noe å legge til forklaringen? Lyder av i kommentarene. Vil du lese flere svar fra andre tech-savvy Stack Exchange-brukere? Sjekk ut hele diskusjonstråden her.