Fedora 39 - GNOME 45 - missing "Suspend when lid is closed" in Tweak Tools

Published on Author admin

By default in GNOME 45 option "Suspend when lid is closed" no more exists. Follow below steps to prevent Fedora 39 Workstation from suspend when laptop lid is closed. as normal user: create ~/.config/autostart/ignore-lid-switch-tweak.desktop file with following content [Desktop Entry] Type=Application Name=ignore-lid-switch-tweak Exec=/usr/libexec/gnome-tweak-tool-lid-inhibitor as root: create /usr/libexec/gnome-tweak-tool-lid-inhibitor file with following content: #!/usr/bin/python3 # SPDX-License-Identifier: GPL-3.0+… Continue reading Fedora 39 - GNOME 45 - missing "Suspend when lid is closed" in Tweak Tools

Fedora - unlock LUKS full disk encrypted system using USB stick

Published on Author admin

Follow below steps to enable unlocking LUKS full disk encrypted system using key file stored on USB stick Format USB key with FAT32 filesystem. Generate random keyfile: dd if=/dev/urandom of=/path/to/usbdisk/keyfile bs=4096 count=1 Add key to luks volume: cryptsetup luksAddKey /dev/sda6 /path/to/usbdisk/keyfile Check USB partition disk UUID: lsblk /dev/sdb1 -o NAME,UUID XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - UUID of LUKS… Continue reading Fedora - unlock LUKS full disk encrypted system using USB stick

Prevent battery drain during suspend mode on Linux

Published on Author admin

cat /sys/power/mem_sleep will return "s2idle" and "deep" values, value surrounded by square brackets will show which mode is currently activated. Probably when you observer battery drain during suspend, you will see "s2idle" highlighted. To change it do deep sleep mode use command: echo deep > /sys/power/mem_sleep To make change permanent add the following to your… Continue reading Prevent battery drain during suspend mode on Linux