here it is - just a small shellscript:Ĭfg Description = Hibernate when battery level is lower than given minimum and not connected to power source ExecStart = /absolute/path/to/lowbat-hibernate.shĪnd activate the timer with systemctl start lowbat-hibernate.timer. Instead of installing another daemon or bunch of utilities, i thought i'd come up with something myself. you can find out for yourselves with udevadm monitor -subsystem-match=power_supply. at first i thought that one udev rule would suffice, but it turns out that my battery does not communicate with the kernel, to send events to udev. then i have to enable hibernation by configuring both kernel parameters and the initramfs.īut the system still has to find out when the battery is low. This still leaves me with one important thing: go for hibernation when battery is low.įirst, need a swap partition. i went through the config file, changed 1 or 2 settings, but mostly it's good just as it is.
the archwiki article is short, but links to the official documentation. I still have to find a solution for applying different settings when on battery power (and suspending/hibernating/shutting down when on low power. To achieve that, create Description = Lock Xsession before sleep #Before=sleep.target User = %I Type = forking Environment = DISPLAY=:0 ExecStart = /usr/bin/i3lock -dpms -e -c 111111 WantedBy = suspend.targetĪnd activate it with sudo systemctl enable that way it will only activate when the laptop goes to sleep, but not when it goes to hibernate. i got suspend & lock screen on lid close now Spent most of the night applying power management from. when i open the lid again, something is very wrong: either the screen remains black (no backlight, either) or the system freezes.Īdding acpi_sleep=s3_bios,s3_mode to the linux bootup command line ( source) helps. i'd like to stick with systemd's built-in functionality for as long as possible, see /etc/systemd/nfīut the problem persists: sometimes closing the lid makes the computer go into suspend, sometimes not. Some strange problems with suspend & wakeup. so confusing, after the base install, coming to general recommendations.
it is not enough to install the window manager and a few graphical applications, especially on a laptop. Not installing a proper desktop environment, i have to set up my system manually. the i3 windowmanager is dynamic, but its main goal is tiling.
the small screen and smaller touchpad made a keyboard driven tiling wm seem the best choice. One more time i decided for the lightweight & barebone alternative: Xorg + windowmanager + no display manager. i added the inofficial repository to /etc/nf. usually i take the time to install it manually (and i recommend that if it's the first time for you). just the notable things after the base system was installed. I will not go through the whole archlinux installation rigmarole, that's what is there for. What kind of system would i use on this machine? installing arch linux -up. but before i buy a new foil, i want to do some field testing to see how well the anti-glare actually works. but still, i made a mistake and it didn't turn out so well (only the foil is wasted, not the screen itself. it was easy to remove the bezel around the screen, apply the foil, and put the bezel back on. not the right size, so i had to cut it a little. so, one happy nerd.įirst i bought some anti-glare screen protection.
and, very important, something onto which i can install real gnu/linux - not android. i also dislike touchscreens and wanted something as small as possible, but with a real keyboard. i just changed my home isp contract, and got an extra sim card with it, but only for data, not for calls. It has a 160gb hard drive, which i find pretty good for such an old & small machine, and about 1gb of ram.īut the inbuilt 3g modem is most important to me. but they usually run on android/google and it's not easily possible to install "real" linux onto them. one can actually buy tablets that are pretty much the same size as this machine (although lighter and thinner), and attach some sort of keyboard. I wanted something to carry around with me, but i wanted a real keyboard as well. Introduction: why i like this machine -up.