Comment on Got myself some energy monitoring Zigbee plugs and made an interesting discovery
fmstrat@lemmy.nowsci.com 2 weeks agoDepends on the driver. Usually for finicky ones you can do an rmmod at suspend and a modprobe on resume. What distro, and are you using the default suspend mechanism?
umbrella@lemmy.ml 2 weeks ago
yes, i’m on ubuntu, using all the default drivers.
and i would guess its finnicky because its an old laptop.
fmstrat@lemmy.nowsci.com 2 weeks ago
There are a couple of ways:
Or
I usually do 2 because I like the hotkey method for desktops, and it keeps things the same for both. Also allows me to close a lid on a laptop and leave it on. But 1 is more “formal”.
Happy to share some scripts if you’d like, on my phone now, though.
umbrella@lemmy.ml 2 weeks ago
how do i do 1? having timeout to suspend and lid close to suspend would be great. and id like to see some example scripts!
i had pretty much given up on standby with this one.
fmstrat@lemmy.nowsci.com 2 weeks ago
Will grab some when I back, but assuming you are using
systemd
, it’s easy if you follow this old but good method: blog.christophersmart.com/…/running-scripts-befor…If that doesn’t work out of the box, it’s likely because you’re hitting S1 instead of S3, but give that test script a shot and let me know how it goes!