When it comes to managing screen brightness on Debian, the built-in tool is Light Locker. This open-source software allows you to adjust your screen's brightness, set it to automatically change based on ambient light, and even schedule brightness changes. Here, we'll delve into Light Locker settings on Debian, exploring its features and how to configure them for an optimal user experience.

Before we dive into the settings, ensure that Light Locker is installed. If not, you can add it to your system using the following command in the terminal:

```bash sudo apt-get install light-locker ```
Understanding Light Locker Settings
Light Locker's settings are primarily controlled through the light-locker.conf file, located in the /etc/light-locker/ directory. This file contains various options that you can customize to suit your needs. Let's explore some of the key settings.

Adjusting Brightness Levels
Light Locker allows you to set minimum and maximum brightness levels. By default, these are set to 1 and 100, respectively. You can change these values in the light-locker.conf file:

```bash sudo nano /etc/light-locker/light-locker.conf ```
Look for the following lines and adjust the values as desired:
```ini min_brightness=1 max_brightness=100 ```
Save and close the file, then restart Light Locker for the changes to take effect:
```bash sudo systemctl restart light-locker ```
Enabling Automatic Brightness

Light Locker can automatically adjust the screen's brightness based on the ambient light. To enable this feature, set the auto_brightness option to 1 in the light-locker.conf file:
```ini auto_brightness=1 ```
Additionally, you can fine-tune the automatic brightness settings by adjusting the auto_brightness_backlight_level and auto_brightness_backlight_timeout options. The former sets the initial brightness level when automatic brightness is enabled, while the latter determines how frequently the brightness is adjusted.
Scheduling Brightness Changes

Light Locker also allows you to schedule brightness changes based on specific times. This can be particularly useful if you want your screen to automatically dim at night or brighten in the morning. To create a new schedule, use the following command:
```bash sudo light-locker-schedule --add --time "HH:MM" --brightness LEVEL ```
Replace HH:MM with the desired time and LEVEL with the brightness level (between 1 and 100). For example, to set the brightness to 50% at 8:00 PM, you would use:


















```bash sudo light-locker-schedule --add --time "20:00" --brightness 50 ```
To view your current schedules, use the following command:
```bash sudo light-locker-schedule --list ```
And to remove a schedule, use:
```bash sudo light-locker-schedule --remove --id ID ```
Replace ID with the ID of the schedule you want to remove (obtained from the --list command).
Managing Light Locker Daemon
Light Locker runs as a systemd service, which means you can manage it using systemd commands. To start, stop, or restart the Light Locker daemon, use the following commands:
```bash sudo systemctl start light-locker sudo systemctl stop light-locker sudo systemctl restart light-locker ```
To ensure that Light Locker starts automatically when your system boots, enable it with:
```bash sudo systemctl enable light-locker ```
Now that you've explored the Light Locker settings on Debian, you're well-equipped to configure this powerful tool to meet your specific needs. Whether you're looking to optimize your screen's brightness for different environments or automate brightness changes throughout the day, Light Locker offers a versatile solution for managing your screen's lighting.