O software pode diferenciar entre um computador desktop e um laptop?

Índice:

O software pode diferenciar entre um computador desktop e um laptop?
O software pode diferenciar entre um computador desktop e um laptop?

Vídeo: O software pode diferenciar entre um computador desktop e um laptop?

Vídeo: O software pode diferenciar entre um computador desktop e um laptop?
Vídeo: PHOTOSHOP PRA INICIANTES! - Como usar o Photoshop (básico) - YouTube 2024, Abril
Anonim
Muitas licenças de software são bastante restritivas quando se trata de como e onde você pode instalar um programa, mas quão bons são esses programas para determinar em que tipo de dispositivo eles estão instalados? A postagem de perguntas e respostas do SuperUser de hoje tem a resposta para a pergunta de um leitor curioso.
Muitas licenças de software são bastante restritivas quando se trata de como e onde você pode instalar um programa, mas quão bons são esses programas para determinar em que tipo de dispositivo eles estão instalados? A postagem de perguntas e respostas do SuperUser de hoje tem a resposta para a pergunta de um leitor curioso.

A sessão de perguntas e respostas de hoje nos é oferecida por cortesia do SuperUser, uma subdivisão do Stack Exchange, um agrupamento de sites de perguntas e respostas conduzido pela comunidade.

Foto cedida por Robert (Flickr).

A questão

Leitor SuperUser Abhi quer saber se o software pode realmente diferenciar entre um computador desktop e um laptop:

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?

O software pode realmente diferenciar entre um computador de mesa e um laptop?

A resposta

Os contribuidores do SuperUser, abnev e Technik Empire, têm a resposta para nós. Primeiro, 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

Seguido pela resposta do 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.

Tem algo a acrescentar à explicação? Som desligado nos comentários. Quer ler mais respostas de outros usuários do Stack Exchange com experiência em tecnologia? Confira o tópico de discussão completo aqui.

Recomendado: