Difference between revisions of "Hardware/Apple"

From NixOS Wiki
Jump to: navigation, search
(Adds a command to identify the apple hardware. (couldn't actually test though))
 
m (Tentatively switches to use freely readable variables in /sys/...)
Line 2: Line 2:
  
 
<syntaxhighlight lang="commands">
 
<syntaxhighlight lang="commands">
  $ sudo nix-shell -p dmidecode --run dmidecode  | grep -i macbook
+
  $ cat /sys/devices/virtual/dmi/id/product_{family,name}
Product Name: MacBookAir3,1
+
MacBook
Family: MacBook
+
MacBook2,1
 
</syntaxhighlight>
 
</syntaxhighlight>
  
The ''Version'' field is your key to success, this will allow you to identify with great accuracy the hardware. Fixes for other versions may apply too, but the greater the gap between revisions, the less likely it is to work.
+
The last line is the '''version'' field; the key to your success. This will allow you to identify with great accuracy the hardware. Fixes for other versions may apply too, but the greater the gap between revisions, the less likely it is to work.

Revision as of 23:49, 15 January 2018

Identifying your computer

 $ cat /sys/devices/virtual/dmi/id/product_{family,name}
MacBook
MacBook2,1

The last line is the 'version field; the key to your success. This will allow you to identify with great accuracy the hardware. Fixes for other versions may apply too, but the greater the gap between revisions, the less likely it is to work.