[Swift 3 SF314-42] Are there any kernel modules I can install to allow kernel to read sensor value?

Options
cy_narrator
cy_narrator Member Posts: 1 Newbie
edited July 1 in Swift and Spin Series

When I run dmesg, I get this output

[112585.311011] thermal thermal_zone0: failed to read out thermal zone (-61)

I am wondering if I have to install some kernel modules that allow such functionality to the kernel to read sensors value? I cannot say of any issue that arise because of being unable to read sensors value but I believe it can certainly help in optimizing heating condition.

Laptop: Acer Swift 3 SF314-42

OS: Linux Mint 21.3 based on Ubuntu 22.04

Feel free to ask any number of follow up questions!

[Edited the thread to add model number to the title]

Answers

  • StevenGen
    StevenGen ACE Posts: 14,680 Trailblazer

    You should research this on the Linux forums as Acer does not have anything relating to Linux as your Swift 3 SF314-42 model latop is a Win-11 24H2 OS based latop and its not designed for Linux and/or does Acer have any specific drivers for Linux. But the dmesg command in Linux is a powerful tool that allows users to view messages from the kernel ring buffer. This buffer stores information about hardware, device driver initialization, and messages from kernel modules during system startup. Good luck and hope this helps you out.

    The dmesg command is invaluable for troubleshooting hardware-related errors and diagnosing device failures.

    Basic Usage

    To display all messages from the kernel ring buffer, simply run:

    sudo dmesg

    This command outputs a large amount of information, so it's often useful to pipe it through a pager like less for easier navigation:

    sudo dmesg | less

    Human-Readable Timestamps

    By default, dmesg uses a timestamp notation of seconds and nanoseconds since the kernel started. To convert these to a more human-friendly format, use the -H option:

    sudo dmesg -H

    For standard dates and times, use the -T option:

    sudo dmesg -T

    Real-Time Monitoring

    To watch messages as they arrive in the kernel ring buffer, use the --follow option:

    sudo dmesg --follow

    This is useful for monitoring hardware changes or kernel module updates in real-time.

    Filtering Messages

    You can filter messages by specific terms using grep. For example, to find messages related to USB devices:

    sudo dmesg | grep -i usb

    To search for multiple terms, use the -E option with grep:

    sudo dmesg | grep -E "memory|tty|dma"

    Using Log Levels

    Each message in the kernel ring buffer has a log level indicating its importance. You can filter messages by log level using the -l option. For example, to see only informational messages:

    sudo dmesg -l info

    To combine multiple log levels:

    sudo dmesg -l debug,notice

    Facility Categories

    Messages are grouped into categories called facilities. To filter messages by facility, use the -f option. For example, to see messages related to system daemons:

    sudo dmesg -f daemon

    To combine multiple facilities:

    sudo dmesg -f syslog,daemon

    Removing the Need for sudo

    To allow all users to run dmesg without sudo, use:

    sudo sysctl -w kernel.dmesg_restrict=0

    Conclusion

    The dmesg command is a versatile tool for diagnosing and troubleshooting hardware and kernel issues in Linux. By using its various options, you can filter and format the output to suit your needs, making it easier to pinpoint and resolve issues.

    If this answers your question and solved your query please "Click on Yes" or "Click on Like" if you find my answer useful👍