Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
13 views
Why can't I increase my screen brightness in Debian 12 basic install on my old Packard Bell Easynote Laptop?
I'm trying to increase the brightness of my screen in order to see well what I'm doing (because the set brightness is so low thay I can't see anything if I have some light behind me). Before asking here I have investigated and found some possible ways that didn't work for me: I tried to increase the...
I'm trying to increase the brightness of my screen in order to see well what I'm doing (because the set brightness is so low thay I can't see anything if I have some light behind me). Before asking here I have investigated and found some possible ways that didn't work for me: I tried to increase the backlight of my laptop (since it's too dark) by using brightnessctl (which teorically worked but didn't actually change anything, since the brightness didn't change) or xbacklight (which didn't work because, as I have understood, it's for intel GPUs), so I tried to change it manually in /sys/class/backlight/[device]. I could find a device called **radeon_bl0** inside the mentioned path, and some subdirectories inside radeon_bl0 such as: actual_brightness, bl_power (set to 0), brightness, device, max_brightness (255), power, scale, subsystem, type and uevent. Seeing that, I tried to do it with echo 200 > /sys/class/backlight/radeon_bl0/brightness. Actually, it changed the number inside the file (the cat command showed the new value), but the actual (physical) backlight was the same. I don't know why does this happen, but I think it could be related to brightnessctl not working. Thanks for reading this, I hope someone can help me :) PD: My GPU is an AMD ATI Mobility Radeon 9550 EDIT: The laptop is a Packard Bell Easynote PB26M00704
bueno467 (1 rep)
Aug 5, 2025, 04:11 PM • Last activity: Aug 6, 2025, 12:47 PM
0 votes
0 answers
128 views
Screen stuck at 0 brightness after sleeping and unplugged
I am running Fedora Linux on an ASUS G14. When my laptop goes to sleep, and then wakes up again, and then is unplugged, it will be stuck at 0 brightness. The screen will get very dim, and I will be unable to adjust the brightness. When I run: `brightnessctl set 50%`, the output is: ``` Updated devic...
I am running Fedora Linux on an ASUS G14. When my laptop goes to sleep, and then wakes up again, and then is unplugged, it will be stuck at 0 brightness. The screen will get very dim, and I will be unable to adjust the brightness. When I run: brightnessctl set 50%, the output is:
Updated device 'amdgpu_bl1':
Device 'amdgpu_bl1' of class 'backlight':
	Current brightness: 128 (50%)
	Max brightness: 255
but the actual brightness is still 0 When I view: /sys/class/backlight/amdgpu_bl1/actual_brightness the value is 0. And then when I view: /sys/class/backlight/amdgpu_bl1/brightness the value is what it _should_ be. I can't modify any of the files in /sys/class/backlight/amdgpu_bl1/ as they are all read only. Finally, when I change the power mode nothing changes. When I plug my laptop back in, the brightness goes back up and is able to be adjusted as normal. Here is my laptop and OS information:
OS: Fedora Linux 41 (Workstation Edition) x86_64
Host: ROG Zephyrus G14 GA401QM_GA401QM (1.0)
Kernel: Linux 6.12.6-200.fc41.x86_64
Uptime: 7 hours, 28 mins
Packages: 2177 (rpm), 10 (flatpak)
Shell: bash 5.2.32
Display (NCP005E): 1920x1080 @ 144 Hz (as 1536x864) in 14" [Built-in]
DE: GNOME 47.2
WM: Mutter (Wayland)
WM Theme: Adwaita
Theme: Adwaita [GTK2/3/4]
Icons: Adwaita [GTK2/3/4]
Font: Cantarell (11pt) [GTK2/3/4]
Cursor: Adwaita (24px)
Terminal: Ptyxis 47.6
Terminal Font: Source Code Pro (10pt)
 CPU: AMD Ryzen 9 5900HS (16) @ 4.68 GHz
GPU 1: NVIDIA GeForce RTX 3060 Mobile / Max-Q [Discrete]
GPU 2: AMD Radeon Vega Series / Radeon Vega Mobile Series [Integrated]
Memory: 10.32 GiB / 15.02 GiB (69%)
Swap: 1.27 GiB / 8.00 GiB (16%)
Disk (/): 18.96 GiB / 373.02 GiB (5%) - btrfs
I am also using proprietary nvidia drivers if that is relevant
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.77                 Driver Version: 565.77         CUDA Version: 12.7     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   34C    P0             21W /   80W |      13MiB /   6144MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2474      G   /usr/bin/gnome-shell                            2MiB |
+-----------------------------------------------------------------------------------------+
Leftover Salad (125 rep)
Dec 31, 2024, 07:42 PM • Last activity: Jul 13, 2025, 09:05 PM
1 votes
1 answers
2056 views
Automatically changing screen brightness in Fedora 38
When the brightness is not maximum, it automatically changes either increases or decreases randomly. There is no brightnessctl installed, so that's not the problem. This has been happening since Fedora 37 for me.
When the brightness is not maximum, it automatically changes either increases or decreases randomly. There is no brightnessctl installed, so that's not the problem. This has been happening since Fedora 37 for me.
pushpa (11 rep)
Sep 9, 2023, 05:38 AM • Last activity: Jul 6, 2025, 06:08 PM
2 votes
3 answers
1255 views
Pop os brightness stuck at maximum
So I've encountered this problem every time I installed linux on my laptop. I've asked it before [here][1], but that didn't go well. Now I'v installed Pop OS (22.04) and I'm fully committed to it, it's not dual boot anymore and it's the only OS I currently run. I did try gaming on it and works just...
So I've encountered this problem every time I installed linux on my laptop. I've asked it before here , but that didn't go well. Now I'v installed Pop OS (22.04) and I'm fully committed to it, it's not dual boot anymore and it's the only OS I currently run. I did try gaming on it and works just fine, I actually have no problem right now with it, except the brightness of course xd The situation: Brightness of the screen is stuck at maximum (I think, it's really bright), the actual_brightness file has 100 in it, the brightness slider changes the brightness file (both files on /sys/class/backlight/nvidia_0).
I CAN change the brightness using xrandr --output DP-2 --brightness 0.5 for example, but it won't stay that way and none of the files I mentioned change when I use xrandr.
Also, the keyboard backlight works just fine, I didn't install any RGB related software and it has the default red color but the brightness level is working perfect. Changing the brightness of the keyboard backlight will return the display brightness to maximum, if I've used xrandr before and changed it. What I have done: I did dual boot Pop OS before wiping windows from the laptop, and in dual boot mode, I've changed the permissions of brightness and actual_brightness files (chmod 777), and also tried to manually write numbers in them but it didn't work (Used nano and vim for it, in sudo mode). I've searched for solutions but couldn't find working ones. There were somethings about older versions of nvidia drivers solving these problems, but: 1. I need up to date drivers, because I game on it and can't keep an outdated driver for gaming. Basically everything I need to install (steam, wine, lutris) will update the drivers or need up to date drivers. 2. This problem is not new, I had it every single time I've installed linux on this laptop (multiple times Ubuntu, I think I did manjaro one time and probably Pop OS before), and I think it's something related to how my hardware interacts with linux or something. My specs: ASUS ROG GL503VS, Intel Corei7-7700HQ, Nvidia Geforce GTX 1070 (The only GPU on my laptop, and it is dedicated of course), 1920x1080 144hz GeSync capable display (I don't know if it helps at all).
Software: Pop OS 22.04, nvidia-smi output:
$ nvidia-smi
Mon Nov 20 16:50:39 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.02              Driver Version: 545.29.02    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1070        Off | 00000000:01:00.0  On |                  N/A |
| N/A   60C    P0              35W / 115W |    380MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      2130      G   /usr/lib/xorg/Xorg                          139MiB |
|    0   N/A  N/A      2234      G   /usr/bin/gnome-shell                         57MiB |
|    0   N/A  N/A      5027      G   ...RunOnOsLogin,WebAssemblyTrapHandler       88MiB |
|    0   N/A  N/A      5593      G   ...,WinRetrieveSuggestionsOnlyOnDemand       90MiB |
+---------------------------------------------------------------------------------------+
And uname -r output:
$ uname -r
6.5.6-76060506-generic
If any other information is needed, I can happily give it to you. I'm quite new to linux (despite many tries) and know a thing or two but not much at all. I really want to use it as my main OS, but I think I'm gonna lose my eyes in the process if I can't solve this problem XD. Many thanks in advance.
III_phr (43 rep)
Nov 20, 2023, 01:25 PM • Last activity: Jul 1, 2025, 10:08 PM
2 votes
1 answers
2501 views
Can't set xrandr brightness and gamma correctly
What is wrong? $ xrandr --output HDMI-1 --gamma 0.6:1.0:1.6 --brightness 0.76 $ xrandr --verbose | sed -n '/HDMI-1/,/Brightness/p' HDMI-1 connected 1920x1080+0+0 (0x6c) normal (normal left inverted right x axis y axis) 510mm x 290mm Identifier: 0x63 Timestamp: 65733000 Subpixel: unknown Gamma: 1.7:1...
What is wrong? $ xrandr --output HDMI-1 --gamma 0.6:1.0:1.6 --brightness 0.76 $ xrandr --verbose | sed -n '/HDMI-1/,/Brightness/p' HDMI-1 connected 1920x1080+0+0 (0x6c) normal (normal left inverted right x axis y axis) 510mm x 290mm Identifier: 0x63 Timestamp: 65733000 Subpixel: unknown Gamma: 1.7:1.0:0.63 Brightness: 0.75
MichalH (2489 rep)
Jul 30, 2015, 07:07 PM • Last activity: Jun 13, 2025, 11:02 AM
0 votes
0 answers
266 views
Setting Brightness Below Minimum on Wayland
I use a Dell XPS 9520, and the manufacturer-specified minimum brightness (when `/sys/class/backlight/intel_backlight/brightness` is `1`) is simply way too bright and hurts my eyes in a dark environment. When I was using X11, I was able to work around this using `xrandr` to artificially reduce the br...
I use a Dell XPS 9520, and the manufacturer-specified minimum brightness (when /sys/class/backlight/intel_backlight/brightness is 1) is simply way too bright and hurts my eyes in a dark environment. When I was using X11, I was able to work around this using xrandr to artificially reduce the brightness below the minimum. For example, the below command would set the screen to 40% brightness, multiplying the effect of normal brightness controls.
xrandr --output eDP-1 --brightness 0.4
However, xrandr does not work on Wayland and I have been unable to find anything to replace this functionality. The screen also does not support DDC/CI controls for programs like ddcutil. And if it's relevant, I'm using KDE Plasma 6.3 on NixOS. Is there any way to reduce brightness below the minimum on Wayland?
fin444 (166 rep)
Mar 27, 2025, 03:37 AM
2 votes
1 answers
90 views
After replacing the screen, the maximum brightness lower than it used to be
I have a Dell XPS 13 9360. I had to replace the screen (which means: I had to replace the entire top half of my laptop...) since I cracked that by mistake... Of course, the new screen is original and it's the very same model as the previous one. Still, the maximum brightness is not as bright as the...
I have a Dell XPS 13 9360. I had to replace the screen (which means: I had to replace the entire top half of my laptop...) since I cracked that by mistake... Of course, the new screen is original and it's the very same model as the previous one. Still, the maximum brightness is not as bright as the previous one. I didn't change any file for replacing it. I simply open the case and physically replaced the screen. I guess that the new screen has some kind of different ID and that my computer has to understand that he has to loads the very same drivers it used to load for the old screen. I checked the /sys/class/backlight/intel_backlight/ folder only after the replacement, and I can read that the max_brightness is set to 7500. It looks like there's no direct way to edit that file by using a text editor. My grub hasn't changed from GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet options i915 enable_fbc=1 enable_guc=3 disable_power_well=0 fastboot=1 options dell-smm-hwmon restricted=0 force=1" Do you have any suggestion on how to fix this? I use Fedora 30.
Jimmy Scionti (131 rep)
Jul 31, 2019, 06:37 AM • Last activity: Feb 25, 2025, 09:00 AM
0 votes
2 answers
351 views
Dim the screen using software instead of hardware in Ubuntu 20.04
I have a Thinkpad P52 which has the issue of PWM flickering if the brightness is lowered using the hardware keys. I've tried installing [Desktop Dimmer](https://github.com/sidneys/desktop-dimmer) both via source and the deb package but it fails. Are there other softwares which can just as easily hel...
I have a Thinkpad P52 which has the issue of PWM flickering if the brightness is lowered using the hardware keys. I've tried installing [Desktop Dimmer](https://github.com/sidneys/desktop-dimmer) both via source and the deb package but it fails. Are there other softwares which can just as easily help me reduce the brightness of the screen using software?
An SO User (263 rep)
Jul 7, 2020, 02:32 AM • Last activity: Dec 1, 2024, 10:40 AM
0 votes
2 answers
144 views
In which file is stored the screen backlight brightness settings?
I would like to make a Debian 12 Live system for a laptop, from another computer that has an external display without backlight settings in the operating system. I need to know the file where is stored the backlight brightness settings, to copy it in the Live system, so that the backlight will be al...
I would like to make a Debian 12 Live system for a laptop, from another computer that has an external display without backlight settings in the operating system. I need to know the file where is stored the backlight brightness settings, to copy it in the Live system, so that the backlight will be already adjusted when I will boot the live system. The live system will use MATE desktop environment, a fork of GNOME. I wonder if the backlight configuration is part of gsettings ? And so, which file I will have to copy, once the backlight brightness adjusted ?
Bertrand125 (1070 rep)
Oct 26, 2024, 03:26 PM • Last activity: Oct 27, 2024, 09:58 AM
0 votes
0 answers
31 views
Brightness all the way down and the brightness option doesn't work after suspending in debian
I am new to linux and this is my first time encountering this issue. I just installed debian 12 and it was working fine till today. I just opened my laptop and the moment it started after being suspended, i saw that the screen brightness was all the way down. I could barely read it and tried turning...
I am new to linux and this is my first time encountering this issue. I just installed debian 12 and it was working fine till today. I just opened my laptop and the moment it started after being suspended, i saw that the screen brightness was all the way down. I could barely read it and tried turning the brightness up by function keys and the brightness option in the menu on the screen. It didn't work.
Prateek Kumar (1 rep)
Sep 16, 2024, 03:32 PM
1 votes
1 answers
94 views
Terrible brightness range and inverted brightness buttons on integrated display Endeavour OS
The integrated display cannot go over above 50% brightness and buttons for changing it are inverted. I believe this is a well-known issue on HP Victus laptops - but it was never solved, not in the slightest. So I wonder if there is any idea to do something about it - I believe it is not EOS specific...
The integrated display cannot go over above 50% brightness and buttons for changing it are inverted. I believe this is a well-known issue on HP Victus laptops - but it was never solved, not in the slightest. So I wonder if there is any idea to do something about it - I believe it is not EOS specific issue, as it persists on pure Arch and Ubuntu - is it possible to lock brightness on a hardware level? Or perhaps any workaround. Any help appreciated.
Krzysztof Kulka (11 rep)
Jun 23, 2024, 03:21 PM • Last activity: Jun 28, 2024, 10:57 PM
1 votes
0 answers
50 views
Permanent brightness issue after just reading `/dev/mem`
For no reason, I've tried to read `/dev/mem` on a Linux x86_64 laptop using ``` cat /dev/mem > /dev/null ``` Under the root user, and my kernel was built without any restrictions on `/dev/mem`. I knew that `/dev/mem`'s driver provides access to physical memory. And physical memory addresses can be m...
For no reason, I've tried to read /dev/mem on a Linux x86_64 laptop using
cat /dev/mem > /dev/null
Under the root user, and my kernel was built without any restrictions on /dev/mem. I knew that /dev/mem's driver provides access to physical memory. And physical memory addresses can be mapped to different hardware and peripherals, so it may be unsafe to write to them. But I thought that read is fine.
But something went wrong, I saw few traces dumped to TTY (VT's), and the last line was saying note: cat[THE_PID] exited with irqs disabled.
After one or two seconds, it rebooted automatically, I don't know why (there was likely no kernel panic, and anyway I had kernel.panic=0 in sysctl, so it shouldn't have rebooted by itself).
I firstly ofc thought it was absolutely fine (just a crash, as always after "experiments"). **But then it turned out that a permanent issue was introduced by these actions**.
On the next boot, after loading of i915 driver for the iGPU, screen brightness automatically went to zero. I had to manually increase /sys/class/backlight/intel_backlight/brightness in the sysctl, for the brightness to be restored. Now, **on every boot, when the iGPU driver gets loaded, brightness goes zero, requiring an intervention**.
I have tried:
- Resetting EFI/BIOS - Deleting all efivars and booting the firmware cleanly - Zeroing out /dev/nvram and booting the firmware cleanly - Booting from a different disk (where there was a different Linux installation, different kernel version). None of these helped. Everything else works, but the brightness issue remains. I have to blindly set the brightness every boot, or using a script to run on boot, after modprobe i915 takes place. It's fine then, but I really want to know why that happened. Not exactly to fix it, but just because I'm really curious about how such thing could happen.
As I suppose, there was some physical address in /dev/mem which was mapped to the iGPU's non-volatile memory with some brightness preferences? But I have only done a read, not write.
Unfortunately I don't have the traces and regs which were dumped to TTY when cat died (because the machine rebooted nearly immediately, nothing was saved anywhere).
Thanks for any insights!
melonfsck - she her (150 rep)
May 29, 2024, 05:11 PM • Last activity: May 29, 2024, 05:26 PM
23 votes
11 answers
91561 views
Control screen brightness in i3
I would like to control the screen brightness in **i3**, in Intel laptops that come with *Fn* keys for the purpose. These keys function with any other DE. First making sure devices available are Intel: $ ls -l /sys/class/backlight/ total 0 lrwxrwxrwx 1 root root 0 juin 24 18:26 intel_backlight -> .....
I would like to control the screen brightness in **i3**, in Intel laptops that come with *Fn* keys for the purpose. These keys function with any other DE. First making sure devices available are Intel: $ ls -l /sys/class/backlight/ total 0 lrwxrwxrwx 1 root root 0 juin 24 18:26 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight [In another forum](https://faq.i3wm.org/question/3445/change-brightness-in-i3-macbook-pro/index.html) the programme xbacklight is suggested as means to control brightness in **i3**. However it fails in the laptops I tried so far: $ xbacklight -inc 10 No outputs have backlight property Is there any other way to control brightness in **i3**?
Luís de Sousa (662 rep)
Jun 24, 2019, 04:48 PM • Last activity: May 4, 2024, 03:23 PM
4 votes
4 answers
15150 views
Brightness too low in Debian Wheezy
I have just installed Debian Wheezy in my Toshiba Laptop and it works great. However, sometimes the brightness level is too low when starting the system. If I use the keys `Fn+F6` to decrease and `Fn+F7` to increase it, a bar appears in the screen, increasing or decreasing but the brightness level d...
I have just installed Debian Wheezy in my Toshiba Laptop and it works great. However, sometimes the brightness level is too low when starting the system. If I use the keys Fn+F6 to decrease and Fn+F7 to increase it, a bar appears in the screen, increasing or decreasing but the brightness level did not change. Do you have any ideas? PS: I'm using the gnome fallback mode.
Kio Marv (191 rep)
Jul 20, 2013, 07:09 PM • Last activity: Mar 4, 2024, 05:41 PM
0 votes
0 answers
94 views
Is there any AI program to auto adjust brightness, contrast, gamma values of camera according to environment lighting? like smartphones do
In smartphones, one can see how quickly it identifies faces and adjusts brightness, colour saturation and all other settings. Similarly, I am looking for some applications for Linux. Till now, I found only [DeepCamera](https://github.com/SharpAI/DeepCamera) which is not what I want I guess.
In smartphones, one can see how quickly it identifies faces and adjusts brightness, colour saturation and all other settings. Similarly, I am looking for some applications for Linux. Till now, I found only [DeepCamera](https://github.com/SharpAI/DeepCamera) which is not what I want I guess.
Amit (1 rep)
Feb 17, 2024, 08:40 AM
1 votes
0 answers
69 views
How to increase/decrese brightness in smaller values?
Is there a way I can decrease or increase my monitor brightness level in smaller percentage values (like 1% or 2%) rather than 5% on Linux Mint? Also, I would the fix to work with my function keys as well. Fn + F5 (for brightness decrease) and Fn + F6 (for brightness increase). Here is my ```inxi -F...
Is there a way I can decrease or increase my monitor brightness level in smaller percentage values (like 1% or 2%) rather than 5% on Linux Mint? Also, I would the fix to work with my function keys as well. Fn+F5 (for brightness decrease) and Fn+F6 (for brightness increase). Here is my
-Fxzr
report-
System:
  Kernel: 6.5.0-17-generic x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia
    base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 82K2 v: IdeaPad Gaming 3 15ACH6
    serial: 
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76486 WIN
    serial:  UEFI: LENOVO v: H3CN45WW(V3.03)
    date: 09/01/2023
Battery:
  ID-1: BAT1 charge: 25.6 Wh (59.5%) condition: 43.0/45.0 Wh (95.6%)
    volts: 11.9 min: 11.5
    model: 0x53 0x4D 0x50 0x00 0x32 0x30 0x4C 0x32 0x30 0x4D 0x33 0x50 0x43
    status: Not charging
CPU:
  Info: 6-core model: AMD Ryzen 5 5600H with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3 rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 16 MiB
  Speed (MHz): avg: 1768 high: 4031 min/max: 400/4280 cores: 1: 400 2: 400
    3: 2246 4: 400 5: 2397 6: 400 7: 1693 8: 2847 9: 4031 10: 400 11: 2096
    12: 3907 bogomips: 79054
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo
    driver: nvidia v: 545.29.06 bus-ID: 01:00.0
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel
    bus-ID: 05:00.0
  Device-3: IMC Networks Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-3:3
  Display: x11 server: X.Org v: 1.21.1.4 driver: X:
    loaded: amdgpu,ati,nvidia unloaded: fbdev,modesetting,nouveau,vesa
    gpu: amdgpu resolution: 3072x1728~120Hz
  OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.54 6.5.0-17-generic)
    v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 05:00.1
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Lenovo driver: N/A bus-ID: 05:00.5
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel bus-ID: 05:00.6
  Sound Server-1: ALSA v: k6.5.0-17-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel port: 2000 bus-ID: 02:00.0
  IF: enp2s0 state: down mac: 
  Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: Lenovo driver: mt7921e v: kernel bus-ID: 03:00.0
  IF: wlo1 state: up mac: 
Bluetooth:
  Device-1: Foxconn / Hon Hai Wireless_Device type: USB driver: btusb v: 0.8
    bus-ID: 1-4:4
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: 
    bt-v: 3.0 lmp-v: 5.2
Drives:
  Local Storage: total: 476.94 GiB used: 13.56 GiB (2.8%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZALQ512HBLU-00BL2
    size: 476.94 GiB temp: 27.9 C
Partition:
  ID-1: / size: 31.79 GiB used: 12.73 GiB (40.0%) fs: ext4
    dev: /dev/nvme0n1p6
  ID-2: /boot/efi size: 256 MiB used: 35.7 MiB (14.0%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 59.28 GiB used: 817.1 MiB (1.3%) fs: ext4
    dev: /dev/nvme0n1p7
Swap:
  ID-1: swap-1 type: partition size: 7.45 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p8
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A gpu: amdgpu temp: 43.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2321
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/apandada1-brightness-controller-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/apandada1-brightness-controller-jammy.gpg] https://ppa.launchpadcontent.net/apandada1/brightness-controller/ubuntu  jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https://mirrors.nxtgen.com/linuxmint-mirror/packages  virginia main upstream import backport
    2: deb https://mirrors.nxtgen.com/ubuntu-mirror/ubuntu  jammy main restricted universe multiverse
    3: deb https://mirrors.nxtgen.com/ubuntu-mirror/ubuntu  jammy-updates main restricted universe multiverse
    4: deb https://mirrors.nxtgen.com/ubuntu-mirror/ubuntu  jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/  jammy-security main restricted universe multiverse
Info:
  Processes: 322 Uptime: 2h 32m Memory: 13.49 GiB used: 2.21 GiB (16.4%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.4.0 Shell: Bash v: 5.1.16
  inxi: 3.3.13
I've tried the following workarounds- 1. **ddcutil** doesn't work as I am on a laptop. 2. **Brightness Controller application**, but it is very inconvenient and doesn't work with function keys. 3. **Brightness and gamma applet**, decrease brightness works fine but increase is glitchy. So had to discard this one aswell. I also cross-posted this question on the linux-mint forum and also subreddits like r/linux4noobs and r/linuxmint- Linux Mint Forum - link r/linux4noobs - link r/linuxmint - link
Dex (11 rep)
Feb 12, 2024, 11:24 AM • Last activity: Feb 12, 2024, 11:57 AM
2 votes
1 answers
478 views
Syntax error in sudoers file
I wanted to allow my ordinary user to run `/usr/bin/brightnessctl` to turn on/off the keyboard backlight on my laptop, so I did ``` visudo -f /etc/sudoers.d/grove ``` (`grove` is my username, but all that matters here is that that file is included in `/etc/sudoers`) That file already contained these...
I wanted to allow my ordinary user to run /usr/bin/brightnessctl to turn on/off the keyboard backlight on my laptop, so I did
visudo -f /etc/sudoers.d/grove
(grove is my username, but all that matters here is that that file is included in /etc/sudoers) That file already contained these lines:
grove   ALL=(ALL) NOPASSWD: /usr/bin/light -A 5
grove   ALL=(ALL) NOPASSWD: /usr/bin/light -U 5
so I just mimicked those and tried adding
grove   ALL=(ALL) NOPASSWD: /usr/bin/brightnessctl -d tpacpi::kbd_backlight s 2
grove   ALL=(ALL) NOPASSWD: /usr/bin/brightnessctl -d tpacpi::kbd_backlight s 0
but that make visudo report a syntax error:
/etc/sudoers.d/grove:3:59: syntaksfejl
grove   ALL=(ALL) NOPASSWD: /usr/bin/brightnessctl -d tpacpi::kbd_backlight s 2
                                                          ^~
/etc/sudoers.d/grove:4:59: syntaksfejl
grove   ALL=(ALL) NOPASSWD: /usr/bin/brightnessctl -d tpacpi::kbd_backlight s 0
                                                          ^~
(syntaksfejl is Danish for syntax error, I have LANG set so everything speaks Danish, and I see no reason to redo it with LANG=C to provide an error in english for such little text) What is wrong here? Is it the colons (and the indicator being wrong, which might be caused by a TAB after grove), and if so how can I allow that command? Should I just allow /usr/bin/brightnessctl and accept that I can control more things? (If it matters, I'm working on a Debian 12)
Henrik supports the community (5878 rep)
Jan 12, 2024, 03:27 PM • Last activity: Feb 3, 2024, 09:58 AM
1 votes
0 answers
71 views
Linux on my machine forgets screen brightness setting after login
I have an old Dell Latitude laptop and I have been running Linux on it for a few years without any problems. But about a month ago, anytime I start the computer and log in, or do a screen lock and log back in, the screen brightness is at highest setting and I have to manually reduce the screen brigh...
I have an old Dell Latitude laptop and I have been running Linux on it for a few years without any problems. But about a month ago, anytime I start the computer and log in, or do a screen lock and log back in, the screen brightness is at highest setting and I have to manually reduce the screen brightness using Windows key + down arrow. I thought this was an issue with my distro but I then installed other distros eg Debian and it has the same issue. So it seems to be an issue for any Linux distro that I use. I went into BIOS and made sure that 1) Automatic screen brightness based on ambient light is NOT enabled, and 2) Set screen brightness to about 50%. Since it seems to be an issue with any Linux distro, I thought I would post in this forum. I realize it could be an issue with my laptop, but I am having trouble figuring that out. Any help is much appreciated.
ironfish (135 rep)
Jan 7, 2024, 04:09 PM
1 votes
2 answers
368 views
Autokey - Adjusting Screen Brightness with Hotkeys (and sustaining that brightness in Awesome Window Manager)
In [awesome window manager](https://awesomewm.org/), my screen brightness gets reset to 100% each time I'm away from my computer for a few minutes. **How can I get it to sustain the brightness I set prior to these screen-saver/power-management timeouts?** **Background:** Using [autokey](https://en.w...
In [awesome window manager](https://awesomewm.org/) , my screen brightness gets reset to 100% each time I'm away from my computer for a few minutes. **How can I get it to sustain the brightness I set prior to these screen-saver/power-management timeouts?** **Background:** Using [autokey](https://en.wikipedia.org/wiki/AutoKey) , I've created 3 scripts that enable me to adjust my screen's brightness with hotkeys. These scripts use the debian package brightnessctl to accomplish this:
sudo apt install brightnessctl
` For the sake of being helpful to others, I will include these scripts below. **Increase Brightness:**
import os
currentBrightness = system.exec_command("brightnessctl g")
brightnessLevel = str(int(currentBrightness) + 1)
if int(brightnessLevel) > 100:
    brightnessLevel = '100'
if brightnessLevel:
    cmd = "brightnessctl s " + brightnessLevel
    os.system(cmd)
    store.set_global_value("lastBrightness",brightnessLevel)
**Decrease Brightness:**
import os
currentBrightness = system.exec_command("brightnessctl g")
brightnessLevel = str(int(currentBrightness) - 1)
if int(brightnessLevel)  0:
    store.set_global_value("lastBrightness",brightnessLevel)
    cmd = "brightnessctl s " + brightnessLevel
    os.system(cmd)
While these scripts are working perfectly, I do have an issue: When I'm away from my computer for a few minutes, and then come back, my monitor will be in some type of power saving state, where the monitor has been either turned off or displays a black screen. When I wake up the monitor (by hitting a key or moving my mouse) the brightness that I previously set (using brightnessctl), has been changed back to 100% brightness. **How can I sustain my brightness settings thorough these screen-saver/power-saving timeouts?**
Lonnie Best (5415 rep)
Jan 22, 2022, 01:40 PM • Last activity: Oct 30, 2023, 10:53 PM
0 votes
0 answers
42 views
Finding the brightness and R,G,B combination being used in a desktop monitor
I have two desktop computers. The first one is: Lenovo. Description: Ubuntu 16.04.7 LTS, Release: 16.04, codename: xenial. The second one is: Dell Inspiron. Description: Ubuntu 18.04.5 LTS, Release: 18.04, codename: bionic. The first desktop has a comfortable brightness level. It does not require an...
I have two desktop computers. The first one is: Lenovo. Description: Ubuntu 16.04.7 LTS, Release: 16.04, codename: xenial. The second one is: Dell Inspiron. Description: Ubuntu 18.04.5 LTS, Release: 18.04, codename: bionic. The first desktop has a comfortable brightness level. It does not require any special applications. For the second desktop, I have to use an application called “Brightness Controller”. In this application, I have to adjust four items: Brightness, R, G and B. I tried many combinations of the four items. But could not get the exact screen appearance as the first desktop. Is there a way to find out the “combination of the four items” that is being used in the first computer? Then I will be able to make the second computer also appear the same. Thanks.
Nikhil Kumar (101 rep)
Oct 24, 2023, 12:02 PM
Showing page 1 of 20 total questions