extend documentation
This commit is contained in:
@@ -306,6 +306,21 @@ Create the file `/etc/cmdline.d/03-resume.conf` with the following content
|
||||
resume=/dev/vgsys/lvswap
|
||||
```
|
||||
|
||||
On some systems, the kernel will default to s2sleep when displays are turned of or when the laptop goes to suspend.
|
||||
Unfortunately, some devices have trouble waking up from this. The fix is to switch from s2sleep to deep sleep.
|
||||
|
||||
Create `/etC/cmdline.d/04-sleep.conf` with the following content
|
||||
|
||||
```ini
|
||||
mem_sleep_default=deep
|
||||
```
|
||||
|
||||
On some systems, deep sleep needs to be activated in the Bios
|
||||
|
||||
- Disable `Modern Standby`
|
||||
- Disable `S0 Low Power Idle`
|
||||
- Enable `Deep Sleep`
|
||||
|
||||
## Enable Unified Kernel Image Booting
|
||||
|
||||
UKI creates a single executable that can be directly booted from the UEFI firmware without any bootloader.
|
||||
|
||||
@@ -123,7 +123,7 @@ You can now start hyprland with `uwsm start hyprland.desktop`.
|
||||
|
||||
## Automatic Configuration
|
||||
|
||||
A lot of the paage installation and configuration in the `$HOME` and `$HOME/.config` folders can be automated
|
||||
A lot of the package installation and configuration in the `$HOME` and `$HOME/.config` folders can be automated
|
||||
with `chezmoi`.
|
||||
|
||||
1. Make sure that `chezmoi` is installed on the system with `pacman -S chezmoi`.
|
||||
@@ -154,6 +154,27 @@ ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin <username> %I $T
|
||||
After the automatic login of the user, Hyprland will be started on TTY1 by the `uwsm` commands
|
||||
in the `~/.bash_profile` file. On other TTYs, Hyprland will not be started automatically.
|
||||
|
||||
## Prevent Action When Laptop Lid is Closed
|
||||
|
||||
In some situations it might be useful to prevent all actions when the laptop lid is closed (or is being closed).
|
||||
Usually systemd will go to sleep mode when the lid is closed on no other idle inhibitors are present (e.g. keyboards,
|
||||
external monitors etc.).
|
||||
|
||||
If this works correctly it is fine, but it is buggy on some systems. If you notice symptoms like these
|
||||
|
||||
- The laptop goes into sleep immediately after booting and before the dock and external monitors are online
|
||||
- The laptop goes into sleep when monitors turn off (e.g. due to dpms)
|
||||
- The laptop goes into sleep although it is connected to a dock (dock detection is not reliable)
|
||||
|
||||
You can disdable the auto-suspend in `/etc/systemd/logind.conf`
|
||||
|
||||
```ini
|
||||
[Login]
|
||||
HandleLidSwitch=ignore
|
||||
HandleLidSwitchExternalPower=ignore
|
||||
HandleLidSwitchDocked=ignore
|
||||
```
|
||||
|
||||
## Create Default User Directories
|
||||
|
||||
Execute the command `xdg-user-dirs-update` to create or update the default user directories.
|
||||
|
||||
Reference in New Issue
Block a user