Phần mềm có thể phân biệt giữa máy tính để bàn và máy tính xách tay không?

Mục lục:

Phần mềm có thể phân biệt giữa máy tính để bàn và máy tính xách tay không?
Phần mềm có thể phân biệt giữa máy tính để bàn và máy tính xách tay không?

Video: Phần mềm có thể phân biệt giữa máy tính để bàn và máy tính xách tay không?

Video: Phần mềm có thể phân biệt giữa máy tính để bàn và máy tính xách tay không?
Video: Tự học Photoshop Cấp Tốc - BÀI 1 - Chỉnh Ảnh Nhanh - YouTube 2024, Tháng tư
Anonim
Nhiều giấy phép phần mềm khá hạn chế khi nói đến cách thức và nơi bạn có thể cài đặt một chương trình, nhưng các chương trình đó xác định loại thiết bị nào được cài đặt trên các chương trình đó tốt đến mức nào? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.
Nhiều giấy phép phần mềm khá hạn chế khi nói đến cách thức và nơi bạn có thể cài đặt một chương trình, nhưng các chương trình đó xác định loại thiết bị nào được cài đặt trên các chương trình đó tốt đến mức nào? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Ảnh lịch sự của Robert (Flickr).

Câu hỏi

Trình đọc siêu người dùng Abhi muốn biết liệu phần mềm có thực sự phân biệt được giữa máy tính để bàn và máy tính xách tay hay không:

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?

Phần mềm thực sự có thể phân biệt giữa máy tính để bàn và máy tính xách tay không?

Câu trả lời

Những người đóng góp SuperUser bất thường và Technik Empire có câu trả lời cho chúng tôi. Đầu tiên, bất thường:

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

Tiếp theo là câu trả lời từ 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.

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: