nerdexam
CompTIA

XK0-004 · Question #335

A technician recently installed Linux on a desktop computer. The desktop has two graphics cards from two different vendors. One of the graphics cards works, but the other does not. Which of the…

The correct answer is A. Ismod. lsmod lists all kernel modules currently loaded, making it the correct first step when a graphics card is not working, to check whether its driver module is present.

Troubleshooting and Diagnostics

Question

A technician recently installed Linux on a desktop computer. The desktop has two graphics cards from two different vendors. One of the graphics cards works, but the other does not. Which of the following commands should the technician use to start troubleshooting this issue?

Options

  • AIsmod
  • BVmstat
  • CGdm
  • Dstartx

How the community answered

(31 responses)
  • A
    87% (27)
  • B
    6% (2)
  • C
    3% (1)
  • D
    3% (1)

Why each option

lsmod lists all kernel modules currently loaded, making it the correct first step when a graphics card is not working, to check whether its driver module is present.

AIsmodCorrect

lsmod reads /proc/modules and displays every kernel module currently loaded, allowing the technician to quickly determine whether a driver for the non-functional graphics card vendor has been loaded - an absent or missing module immediately points to a driver installation or detection problem as the root cause.

BVmstat

vmstat reports virtual memory usage, paging, block I/O, and CPU activity and provides no information about hardware drivers or kernel module state.

CGdm

gdm is the GNOME Display Manager that manages graphical login sessions and is not a diagnostic utility for inspecting kernel drivers or hardware detection.

Dstartx

startx launches an X Window System session but does not report on which kernel modules are loaded or whether a specific hardware driver is present.

Concept tested: lsmod kernel module inspection for GPU driver troubleshooting

Source: https://man7.org/linux/man-pages/man8/lsmod.8.html

Topics

#lsmod#kernel modules#graphics drivers#hardware troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice