LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > ondoho
User Name
Password

Notices


Rate this Entry

How to provide information about peripherals with dmesg

Posted 10-19-2021 at 12:51 AM by ondoho
Updated 06-22-2022 at 11:54 PM by ondoho (added -T option to dmesg (human-readable timestamps))

You want to see how your Linux system reacts to a certain peripheral being plugged in (smartphone, monitor, USB stick etc.).
dmesg can provide that information, but one needs to separate it from previous messages.
Here's how:
  • Make sure the device in question is unplugged.
  • Open a terminal, maximise it.
  • Enter dmesg -Tw (wait for new messages).
  • Some systems require elevated privileges for dmesg, if so prepend sudo or become superuser first.
  • After dmesg -Tw spat out lots of stuff and has hopefully settled down (if it hasn't that could point to a different problem), press <Enter> until your terminal window is blank.
  • Now insert the peripheral you want information about and wait - depending on the deivce, up to a full minute.
  • Copy all the new output that is visible now.

This can also be insightful when removing peripherals and in many other situations.
Posted in Uncategorized
Views 1880 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration