From fa694454735ed5d7f530f43912a2990dd3af7416 Mon Sep 17 00:00:00 2001 From: Greg Hormann Date: Sun, 29 Dec 2024 11:18:49 -0500 Subject: [PATCH] 1) Remove dmesg from Raspinfo section of Troubleshooting 2) Add dmesg -T (all platforms) to "Boot" section of Troubleshooting 3) add "-T" when creating dmesg for tmp/boot.log on crash Closes #2084 --- src/fppd.cpp | 2 +- www/troubleshoot-commands.json | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/fppd.cpp b/src/fppd.cpp index c43c7bbbb..9789af50a 100644 --- a/src/fppd.cpp +++ b/src/fppd.cpp @@ -353,7 +353,7 @@ static void handleCrash(int s) { if (crashLog > 1) { strcat(zName, " settings"); if (crashLog > 2) { - system("dmesg > tmp/boot.log"); + system("dmesg -T > tmp/boot.log"); system("journalctl -b -u fppinit -u fppoled -u fpp_postnetwork >> tmp/boot.log"); strcat(zName, " config tmp logs/fppd.log logs/apache2-error.log playlists /etc/fpp"); } diff --git a/www/troubleshoot-commands.json b/www/troubleshoot-commands.json index a24796bda..b1fd82ef0 100644 --- a/www/troubleshoot-commands.json +++ b/www/troubleshoot-commands.json @@ -409,6 +409,14 @@ "platforms": [ "all" ] + }, + "DMESGDLogs": { + "title": "dmesg", + "description": "", + "cmd": "dmesg -T", + "platforms": [ + "all" + ] } } }, @@ -488,7 +496,7 @@ "RPIINFO": { "title": "RPI Info", "description": "Raspberry Pi inbuilt info tool", - "cmd": "/bin/raspinfo; rm -f raspinfo.txt", + "cmd": "/bin/raspinfo | sed '/dmesg/q'; rm -f raspinfo.txt", "platforms": [ "Raspberry Pi" ]