Repository navigation
Who or what ended the session (#28)
The end line says who or what asked for a clean shutdown or restart, from logind's and sudo's lines:
shut down at 14:52 with sudo shutdown now
restarted at 03:12 by user, with sudo reboot
shut down at 18:13 from the login screen (sddm)
shut down at 10:52 with the power key
shut down at 18:22, scheduled at 18:21 with sudo shutdown
The user is named only when it isn't the one running whyd, and always for a session read with --file; the report never names them. Abrupt ends don't change: nobody asked for them.
Why it went to sleep (#29)
The moment a session went to sleep says why: went to sleep, lid closed, battery critical, with systemctl suspend. When it never woke up, the verdict says it too, and with a critical battery it tells the whole story: "It suspended at 22:34, battery critical, and never resumed: the battery ran out."
Rules (#21)
Nine new rules and one extended, from the lines no rule recognised on the development laptop: errors not recognised there went from 7 to 0, warnings from 1,230 to 814, mostly desktop noise now hidden.
Install or update
curl -fsSL https://raw.githubusercontent.com/vmaltarello/whyd/main/install.sh | shOr the package for your distribution below; see the README.