You are not logged in.

#1 2022-08-25 08:23:22

Mewyn
Member
Registered: 2017-11-12
Posts: 9

[Brightness] Can't adjust brightness

Hello,

I can't adjust screen brightness on my fresh archlinux install.

System :

❯ uname -a
Linux acantepinux 5.19.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 21 Aug 2022 18:55:22 +0000 x86_64 GNU/Linux
❯ sudo lspci | grep -i nvidia
2b:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3070 Lite Hash Rate] (rev a1)
2b:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)
❯ lsusb | grep -i keyboard
Bus 003 Device 002: ID 1b1c:1ba0 Corsair CORSAIR K60 RGB PRO Mechanical Gaming Keyboard
❯ ls /sys/class/backlight/   
# no file is listed
❯ sudo find /sys/ -type f -iname '*brightness*'                                                                   
/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.2/0000:03:08.0/0000:29:00.0/leds/phy0-led/brightness
/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.2/0000:03:08.0/0000:29:00.0/leds/phy0-led/max_brightness
/sys/devices/pci0000:00/0000:00:08.1/0000:2d:00.3/usb3/3-2/3-2:1.0/0003:1B1C:1BA0.0001/input/input3/input3::numlock/brightness
/sys/devices/pci0000:00/0000:00:08.1/0000:2d:00.3/usb3/3-2/3-2:1.0/0003:1B1C:1BA0.0001/input/input3/input3::numlock/max_brightness
/sys/devices/pci0000:00/0000:00:08.1/0000:2d:00.3/usb3/3-2/3-2:1.0/0003:1B1C:1BA0.0001/input/input3/input3::capslock/brightness
/sys/devices/pci0000:00/0000:00:08.1/0000:2d:00.3/usb3/3-2/3-2:1.0/0003:1B1C:1BA0.0001/input/input3/input3::capslock/max_brightness
/sys/devices/pci0000:00/0000:00:08.1/0000:2d:00.3/usb3/3-2/3-2:1.0/0003:1B1C:1BA0.0001/input/input3/input3::scrolllock/brightness
/sys/devices/pci0000:00/0000:00:08.1/0000:2d:00.3/usb3/3-2/3-2:1.0/0003:1B1C:1BA0.0001/input/input3/input3::scrolllock/max_brightness
❯ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 515.57

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

What i have tried :

Adding kernel paramaters > https://wiki.archlinux.org/title/backli … ne_options (did not work, folder /sys/class/backlight/ is still empty)


Thx for help,

Offline

#2 2022-08-25 08:49:08

TsarKy
Member
Registered: 2022-08-25
Posts: 4

Re: [Brightness] Can't adjust brightness

Hi Mewyn,

When you say ‘fresh install’, are you trying to change the brightness of the tty(1-6) terminals or the brightness of a window manager? The Xorg config is throwing me a bit.

Thank you,

TsarKy

Offline

#3 2022-08-25 08:57:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,208

Re: [Brightness] Can't adjust brightness

This doesn't look like a laptop, so "screen brightness" is normally not something controlled by the OS but rather directly on your monitor itself. There's technically a protocol to send relevant commands to the monitor but this has no relation to the "traditional" screen brightness mechanisms. To configure that you need to read: https://wiki.archlinux.org/title/Backli … l_monitors

Offline

#4 2022-08-25 18:48:04

Mewyn
Member
Registered: 2017-11-12
Posts: 9

Re: [Brightness] Can't adjust brightness

V1del wrote:

This doesn't look like a laptop, so "screen brightness" is normally not something controlled by the OS but rather directly on your monitor itself. There's technically a protocol to send relevant commands to the monitor but this has no relation to the "traditional" screen brightness mechanisms. To configure that you need to read: https://wiki.archlinux.org/title/Backli … l_monitors

Ok, i have loaded i2c_dev module to kernel and installed ddcutil (i have copied X11 config file and udev rules).
I am able to change brightness with cmd

ddcutil setvcp 10 XX

but how can i control brightness with my keyboard (i am using cinnamon) ?

Last edited by Mewyn (2022-08-25 18:48:42)

Offline

Board footer

Powered by FluxBB