this post was submitted on 06 Jun 2025
217 points (97.8% liked)

linuxmemes

26027 readers
1776 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     

    cross-posted from: https://swg-empire.de/post/3428368

    Though you still have to suspend by yourself when you're done.

    you are viewing a single comment's thread
    view the rest of the comments
    [–] gazter@aussie.zone 28 points 4 weeks ago (16 children)

    Linux newb here. What does this mean? My knowledge of systemd is that it is responsible for things like mounting disks and running networking. So does this mean I can ask systemd to grab a new IP address every x hours, even if the machine is asleep?

    [–] bjoern_tantau@swg-empire.de 13 points 3 weeks ago (2 children)

    Systemd at its core starts stuff when your Linux system boots and during normal operation. It can also start stuff at specific times. That was traditionally done by cron.

    But of course when you set up to run something at midnight it cannot run if the system is in standby. But with the WakeSystem=true option you can tell it to basically set an alarm for the computer to turn itself back on and do whatever you want it to do.

    It does not turn your computer back to sleep, though. That's something you have to script yourself.

    I hope they add the ability to turn the computer on even if it is completely shut off. That would make keeping my family's computers updated much easier.

    [–] KaninchenSpeed@sh.itjust.works 4 points 3 weeks ago (1 children)

    I hope they add the ability to turn the computer on even if it is completely shut off. That would make keeping my family's computers updated much easier.

    That's probably not possible, but you could do it with a microcontroller and a relay bridging the power switch.

    [–] bjoern_tantau@swg-empire.de 4 points 3 weeks ago* (last edited 3 weeks ago)

    If you read the corresponding feature request it actually seems to be pretty easy. They were just arguing about implementation details.

    Windows has supposedly also done this for a while now.

    Of course it depends on hardware capabilities. But I guess it's common enough now.

    Edit: This is actually trivial to implement with the rtcwake command. Usually available in linux-utils or similar packages. rtcwake --list-modes shows you what modes your system supports.

    Edit 2: Like, this is beyond trivial. Just echo the desired waketime as a Unix timestamp to /sys/class/rtc/*/wakealarm and you're set. Doesn't matter if the system is just sleeping or turned off entirely.

    Edit 3: But waking from power down seems not to be supported on the Steam Deck. Only from suspend.

    load more comments (13 replies)