Un logiciel peut-il faire la différence entre un ordinateur de bureau et un ordinateur portable?

Table des matières:

Un logiciel peut-il faire la différence entre un ordinateur de bureau et un ordinateur portable?
Un logiciel peut-il faire la différence entre un ordinateur de bureau et un ordinateur portable?

Vidéo: Un logiciel peut-il faire la différence entre un ordinateur de bureau et un ordinateur portable?

Vidéo: Un logiciel peut-il faire la différence entre un ordinateur de bureau et un ordinateur portable?
Vidéo: Débuter sur PHOTOSHOP CC 2023 - YouTube 2024, Avril
Anonim
De nombreuses licences de logiciels sont assez restrictives en ce qui concerne le mode et le lieu d'installation d'un programme, mais jusqu'à quel point ces programmes permettent-ils de déterminer le type de périphérique sur lequel ils sont installés? L’article d’aujourd’hui sur le SuperUser Q & R répond aux questions d’un lecteur curieux.
De nombreuses licences de logiciels sont assez restrictives en ce qui concerne le mode et le lieu d'installation d'un programme, mais jusqu'à quel point ces programmes permettent-ils de déterminer le type de périphérique sur lequel ils sont installés? L’article d’aujourd’hui sur le SuperUser Q & R répond aux questions d’un lecteur curieux.

La séance de questions et réponses d’aujourd’hui nous est offerte par SuperUser, une sous-division de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.

Photo fournie par Robert (Flickr).

La question

Le lecteur de SuperUser, Abhi, veut savoir si un logiciel peut réellement différencier un ordinateur de bureau d'un ordinateur portable:

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?

Un logiciel peut-il réellement différencier un ordinateur de bureau d'un ordinateur portable?

La réponse

Les contributeurs SuperUser, abnev et Technik Empire, ont la solution pour nous. D'abord, 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

Suivi de la réponse de 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:

Possible values include:
Possible values include:
As for how Windows knows this, while I cannot say with certainty because I presently lack both the Windows source code and any official documentation links, I would say it is a simple matter of the hardware ID’s within the computer giving this information away to the operating system.
As for how Windows knows this, while I cannot say with certainty because I presently lack both the Windows source code and any official documentation links, I would say it is a simple matter of the hardware ID’s within the computer giving this information away to the operating system.

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.

Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.

Conseillé: