• Home

    • Information
    • Webpage styling
  • Installation

    • Pre-installation
    • Installation
    • Configuration
  • Post-installation

    • General recommendations
      • ACPI events
      • Activating numlock on bootup
    • Performance
    • Gaming
    • Security

Post-installation Guide


General recommendations

Miscellaneous things to do after the installation.

ACPI events

Users can configure how the system reacts to ACPI events such as pressing the power button or closing a laptop's lid.

In Axis Linux, you can use acpid to handle those events. Even if you don't need any ACPI control package, you might sometimes see errors in journalctl, because it's missing. It's worth installing it.

For example, here's a simple Wi-Fi power switch event that is toggled by pressing the WLAN button:



event=button/wlan
action=/etc/acpi/handlers/wlan

and it's handler:



#!/bin/sh
rf=/sys/class/rfkill/rfkill0

case $(< $rf/state) in
  0) echo 1 >$rf/state;;
  1) echo 0 >$rf/state;;
esac

For more usage examples - head over to the Arch Linux Wiki.

Activating numlock on bootup

The easiest and preferred method to toggle numlock on boot is using an mkinitcpio hook. You have to install mkinitcpio-numlock from the AUR and add the numlock entry in the /etc/mkinitcpio.conf HOOKS array.


/etc/mkinitcpio.conf


HOOKS=(base udev autodetect keyboard keymap consolefont numlock modconf block encrypt lvm2 filesystems fsck)

Then, regenerate the initramfs:


mkinitcpio -P

Axis Linux Documentation is distributed under GNU Free Documentation License 1.3 or later unless otherwise noted.

Copyright © 2021 - Axis Linux