Inspeccionar los registros de características en dmesg
En este paso, aprenderemos cómo inspeccionar los registros de características utilizando el comando dmesg
. dmesg
muestra el buffer de mensajes del kernel, que contiene información sobre la detección de hardware, la inicialización de controladores y otros eventos del sistema. Es una herramienta valiosa para solucionar problemas relacionados con el hardware.
Para ver el buffer de mensajes del kernel, abra su terminal.
Ahora, escriba el siguiente comando y presione Enter:
dmesg
Este comando generará una gran cantidad de información. La salida es un registro cronológico de los mensajes del kernel.
La salida se verá algo así (los detalles exactos variarán según su sistema):
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 5.15.0-76-generic (buildd@lcy02-amd64-078) (gcc (Ubuntu 9.4.0-1ubuntu1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #83-Ubuntu SMP Thu Jun 15 19:16:42 UTC 2023
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-76-generic root=UUID=... ro
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x1: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x2: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x4: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0xd: 'AVX-512 opmask, upper bytes of ZMM0-ZMM15, EVEX encoded data ZMM0-ZMM15'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0xe: 'AVX-512 hi256 zmm, opmask registers ZMM16-ZMM31'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x12: 'Tile registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 832
[ 0.000000] x86/fpu: xstate_offset[d]: 1408, xstate_sizes[d]: 512
[ 0.000000] x86/fpu: xstate_offset[e]: 1920, xstate_sizes[e]: 512
[ 0.000000] x86/fpu: xstate_offset[12]: 2432, xstate_sizes[12]: 1664
[ 0.000000] x86/fpu: Enabled xstate features 0x13, context size is 4096 bytes, using 'compacted' format.
[ 0.000000] signal: max sigframe size: 9216
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009d800-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
...
Puede filtrar la salida utilizando grep
para buscar palabras clave específicas. Por ejemplo, para buscar mensajes relacionados con dispositivos USB, puede utilizar el siguiente comando:
dmesg | grep USB
Esto mostrará solo las líneas que contengan la palabra "USB".
También puede utilizar dmesg
para buscar mensajes de error. Por ejemplo, para buscar mensajes que contengan la palabra "error", puede utilizar el siguiente comando:
dmesg | grep error
Al inspeccionar la salida de dmesg
, puede obtener información valiosa sobre el comportamiento del hardware y los controladores de su sistema.