7

I've been researching information about /etc/machine-id, a file that contains an ever-persistent machine ID that identifies the install across hardware or netwotk changes, and that is world-readable.

Most documentation I've seen says it is mostly safe to change this file and generate a new ID on shutdown, and there are example scripts to do it via eg.: systemd or rc.shutdown . That's nice, but... we're on Linux, we don't "shutdown" our machines, what do they think we are, Windows users? We don't shutdown at least intentionally.

So, I was wondering, is it feasible to regenerate this ID on hibernate? It's another instance where the machine powers down, there are ACPI hooks to run scripts on hibernate/wakeup, and I feel at least for a laptop it's a more common use case than a shutdown.

you are viewing a single comment's thread
view the rest of the comments
[-] HelloRoot@lemy.lol 2 points 4 days ago* (last edited 4 days ago)

Here you go:

Everything should be documented there

https://git.sr.ht/~deckweiss/x11_activity_session

It probably can be adopted to wayland (or even native kde tiling) with a bit of tinkering.

[-] lambisio@feddit.cl 2 points 3 days ago

I'm instacloning this. I get from the files and from previous experience with KDE that it can be done, I just haven't gotten enough tinkering experience outside of the classics such as wmctrl to do that yet.

this post was submitted on 13 Apr 2026
7 points (100.0% liked)

Linux Questions

3871 readers
13 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS