Posts

Showing posts with the label lid closed

Changing the Default Terminal to Terminator on Ubuntu

Image
Terminator is a powerful tool for developers, allowing you to manage multiple terminal sessions in a single window. Features like splitting panes, tabs, and simultaneous input can significantly boost your productivity. Step 1: Install Terminator First, install Terminator using the apt package manager. sudo apt update sudo apt install terminator -y The -y option automatically answers 'yes' to any prompts during the installation process, streamlining the setup. Step 2: Set as the System Default Ubuntu uses a utility called update-alternatives to manage default applications. We'll use this tool to change the default terminal emulator ( x-terminal-emulator ) to Terminator. Run the Configuration Command Enter the following command in your terminal. A list of available terminals will appear. sudo update-alternatives --config x-terminal-emulator Select Terminator From the resulting list, enter the selection number corresponding to terminator and press Enter. ...

How to Keep Ubuntu 24.04 Laptop Running with Lid Closed

Image
By default, Ubuntu suspends your laptop when you close the lid. However, in some use cases, such as downloading files overnight, using external displays, or running services, you may want your laptop to stay awake. Here’s how to configure your system so it continues running even with the lid closed. Step 1: Edit the logind.conf File Open a terminal and run the following command to edit the systemd logind configuration file: sudo vi /etc/systemd/logind.conf Find the following lines (they may be commented out) and modify them as shown below: HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore If any of these lines are commented out with # , be sure to remove the comment symbol. HandleLidSwitch=ignore : Prevents the system from suspending when the laptop lid is closed, regardless of whether it's on battery or AC power. HandleLidSwitchExternalPower=ignore : Specifically ensures the system does not suspend when the lid is closed a...