Differences between revisions 4 and 5
Revision 4 as of 2011-03-06 12:53:57
Size: 5821
Comment: sync with English version
Revision 5 as of 2012-12-25 22:55:02
Size: 5870
Comment: add link to french translation
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[HowToIdentifyADevice/System|English]] - Italiano - [[ru/HowToIdentifyADevice/System|Русский]]-~ ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[HowToIdentifyADevice/System|English]] - [[fr/HowToIdentifyADevice/System|Français]] - Italiano - [[ru/HowToIdentifyADevice/System|Русский]]-~
Line 15: Line 16:
$ dmidecode -t 1 # dmidecode -t 1
Line 34: Line 35:
$ dmidecode -s system-manufacturer # dmidecode -s system-manufacturer
Line 36: Line 37:
$ dmidecode -s system-version # dmidecode -s system-version
Line 38: Line 39:
$ dmidecode -s system-product-name # dmidecode -s system-product-name

Translation(s): English - Français - Italiano - Русский

Come identificare un dispositivo > Sistema (Modello del computer)


Si immagini di voler individuare un modello di computer che non ha adesivi che lo identifichino ;)

Molti usano semplicemente dmidecode come utente root per individuare il modello, tuttavia lshal può essere eseguito come utente normale. Se sul sistema non è disponibile nessuno dei due strumenti, si può controllare il file system /sys.

dmidecode

Si può usare dmidecode per interrogare la zona DMI della scheda madre a proposito del modello del computer:

# dmidecode -t 1
# dmidecode 2.9
SMBIOS 2.4 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: LENOVO
        Product Name: 1952W5R
        Version: ThinkPad T60
        Serial Number: 01234566
        UUID: 01234567-1234-1234-1234-123456789ABC
        Wake-up Type: Power Switch
        SKU Number: Not Specified
        Family: ThinkPad T60

o in alcune forme più brevi:

# dmidecode -s system-manufacturer
LENOVO
# dmidecode -s system-version
ThinkPad T60
# dmidecode -s system-product-name
1952W5R

HAL

È inoltre possibile usare hal:

# lshal -u computer -l
udi = '/org/freedesktop/Hal/devices/computer'
  info.addons = {'hald-addon-cpufreq', 'hald-addon-acpi'} (string list)
  info.bus = 'unknown'  (string)
  info.callouts.add = {'hal-storage-cleanup-all-mountpoints'} (string list)
  info.capabilities = {'cpufreq_control'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.SystemPowerManagement', 'org.freedesktop.Hal.Device.CPUFreq'} (string list)
  info.product = 'Computer'  (string)
  info.subsystem = 'unknown'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer'  (string)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames = {'num_seconds_to_sleep', 'num_seconds_to_sleep', '', '', '', 'enable_power_save'} (string list)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths = {'hal-system-power-suspend', 'hal-system-power-suspend-hybrid', 'hal-system-power-hibernate', 'hal-system-power-shutdown', 'hal-system-power-reboot', 'hal-system-power-set-power-save'} (string list)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_names = {'Suspend', 'SuspendHybrid', 'Hibernate', 'Shutdown', 'Reboot', 'SetPowerSave'} (string list)
  org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures = {'i', 'i', '', '', '', 'i'} (string list)
  power_management.acpi.linux.version = '20070126'  (string)
  power_management.can_hibernate = true  (bool)
  power_management.can_suspend = true  (bool)
  power_management.can_suspend_hybrid = false  (bool)
  power_management.can_suspend_to_disk = true  (bool)
  power_management.can_suspend_to_ram = true  (bool)
  power_management.is_powersave_set = false  (bool)
  power_management.quirk.s3_bios = true  (bool)
  power_management.quirk.s3_mode = true  (bool)
  power_management.type = 'acpi'  (string)
  smbios.bios.release_date = '04/12/2007'  (string)
  smbios.bios.vendor = 'LENOVO'  (string)
  smbios.bios.version = '79ETD2WW (2.12 )'  (string)
  smbios.chassis.manufacturer = 'LENOVO'  (string)
  smbios.chassis.type = 'Notebook'  (string)
  smbios.system.manufacturer = 'LENOVO'  (string)
  smbios.system.product = '1952W5R'  (string)
  smbios.system.serial = '1234567'  (string)
  smbios.system.uuid = '01234567-1234-1234-1234-123456789ABC'  (string)
  smbios.system.version = 'ThinkPad T60'  (string)
  system.chassis.manufacturer = 'LENOVO'  (string)
  system.chassis.type = 'Notebook'  (string)
  system.firmware.release_date = '04/12/2007'  (string)
  system.firmware.vendor = 'LENOVO'  (string)
  system.firmware.version = '79ETD2WW (2.12 )'  (string)
  system.formfactor = 'laptop'  (string)
  system.hardware.product = '1952W5R'  (string)
  system.hardware.serial = '1234567'  (string)
  system.hardware.uuid = '01234567-1234-1234-1234-123456789ABC'  (string)
  system.hardware.vendor = 'LENOVO'  (string)
  system.hardware.version = 'ThinkPad T60'  (string)
  system.kernel.machine = 'i686'  (string)
  system.kernel.name = 'Linux'  (string)
  system.kernel.version = '2.6.21-2-686'  (string)
  system.product = '1952W5R ThinkPad T60'  (string)
  system.vendor = 'LENOVO'  (string)

/sys

A partire da Debian Lenny, il kernel espone alcune informazioni DMI nel file system virtuale /sys.

$grep "" /sys/class/dmi/id/[bpc]*
/sys/class/dmi/id/bios_date:02/13/2009
/sys/class/dmi/id/bios_vendor:LENOVO
/sys/class/dmi/id/bios_version:6FET61WW (2.07 )
/sys/class/dmi/id/board_asset_tag:
/sys/class/dmi/id/board_name:2241WR5
grep: /sys/class/dmi/id/board_serial: Permission denied
/sys/class/dmi/id/board_vendor:LENOVO
/sys/class/dmi/id/board_version:Not Available
/sys/class/dmi/id/chassis_asset_tag:No Asset Information
grep: /sys/class/dmi/id/chassis_serial: Permission denied
/sys/class/dmi/id/chassis_type:10
/sys/class/dmi/id/chassis_vendor:LENOVO
/sys/class/dmi/id/chassis_version:Not Available
/sys/class/dmi/id/product_name:2241WR5
grep: /sys/class/dmi/id/product_serial: Permission denied
grep: /sys/class/dmi/id/product_uuid: Permission denied
/sys/class/dmi/id/product_version:ThinkPad T500

BIOS

Nel BIOS del computer si possono ottenere indicazioni sulla scheda madre (su modelli di fascia alta è spesso mostrato anche il modello).