BTW, this would be maybe more helpful:
$ dmesg | grep 7102 [ 160.994295] [7102]: New seat seat0. [ 160.995762] [7102]: Watching system buttons on /dev/input/event3 (Power Button) [ 161.037199] [7102]: Watching system buttons on /dev/input/event1 (Power Button) [ 161.040300] [7102]: Watching system buttons on /dev/input/event0 (Lid Switch) [ 161.040414] [7102]: Watching system buttons on /dev/input/event2 (Sleep Button) [ 161.347041] [7102]: Watching system buttons on /dev/input/event5 (AT Translated Set 2 keyboard) [ 746.362842] [7102]: Lid closed. [ 754.655963] [7102]: Lid opened. [ 765.975115] [7102]: Lid closed. [ 1256.930836] [7102]: Lid opened. [ 4909.671002] [7102]: Lid closed. [ 4914.565392] [7102]: Lid opened. [ 4940.668204] [7102]: Lid closed. [ 4948.342004] [7102]: Lid opened. $
Why not logging in a UNIX process name instead of its PID?
BTW, this would be maybe more helpful:
$ dmesg | grep 7102
[ 160.994295] [7102]: New seat seat0.
[ 160.995762] [7102]: Watching system buttons on /dev/input/event3 (Power Button)
[ 161.037199] [7102]: Watching system buttons on /dev/input/event1 (Power Button)
[ 161.040300] [7102]: Watching system buttons on /dev/input/event0 (Lid Switch)
[ 161.040414] [7102]: Watching system buttons on /dev/input/event2 (Sleep Button)
[ 161.347041] [7102]: Watching system buttons on /dev/input/event5 (AT Translated Set 2 keyboard)
[ 746.362842] [7102]: Lid closed.
[ 754.655963] [7102]: Lid opened.
[ 765.975115] [7102]: Lid closed.
[ 1256.930836] [7102]: Lid opened.
[ 4909.671002] [7102]: Lid closed.
[ 4914.565392] [7102]: Lid opened.
[ 4940.668204] [7102]: Lid closed.
[ 4948.342004] [7102]: Lid opened.
$
Why not logging in a UNIX process name instead of its PID?