Como controlar o brilho de tela no Pop 24.04? (Cosmic)

Boa tarde, pessoal! Feliz natal!

Gostaria de saber como adicionar opção de controlar o brilho da tela pelo Cosmic.

No meu monitor antigo eu fazia pelo próprio monitor, mas estou com AOC novo que não é tão prático assim.

Minhas Informações

~$ inxi -F --filter
System:
Kernel: 6.17.9-76061709-generic arch: x86_64 bits: 64
Desktop: N/A Distro: Pop!_OS 24.04 LTS noble
Machine:
Type: Desktop System: Gigabyte product: B450M DS3H V2 v: N/A
serial:
Mobo: Gigabyte model: B450M DS3H V2 v: x.x serial:
UEFI: American Megatrends LLC. v: F62 date: 01/27/2022
CPU:
Info: 6-core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP cache: L2: 3 MiB
Speed (MHz): avg: 2516 min/max: 561/4654 cores: 1: 3635 2: 1738 3: 1738
4: 1738 5: 1738 6: 1738 7: 3599 8: 3599 9: 1738 10: 3597 11: 3597 12: 1738
Graphics:
Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti Lite Hash Rate] driver: nvidia
v: 580.82.09
Device-2: Anker PowerConf C200
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB
Display: wayland server: X.Org v: 24.1.2 with: Xwayland v: 24.1.2 driver:
gpu: nv_platform,nvidia,nvidia-nvswitch resolution: 1920x1080~180Hz
API: EGL v: 1.5 drivers: nvidia,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.82.09
renderer: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
Audio:
Device-1: NVIDIA GA104 High Definition Audio driver: snd_hda_intel
Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel
Device-3: FIFINE 683 Microphone driver: snd-usb-audio type: USB
Device-4: Anker PowerConf C200
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB
API: ALSA v: k6.17.9-76061709-generic status: kernel-api
Server-1: PipeWire v: 1.4.2 status: active
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac:
Bluetooth:
Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) driver: btusb
type: USB
Report: hciconfig ID: hci0 state: up address: bt-v: 5.1
Drives:
Local Storage: total: 1.62 TiB used: 70.64 GiB (4.3%)
ID-1: /dev/nvme0n1 vendor: Kingston model: SNV2S500G size: 465.76 GiB
ID-2: /dev/sda vendor: MacroVIP model: MV240GB size: 238.47 GiB
ID-3: /dev/sdb vendor: XrayDisk model: 1TB SSD size: 953.87 GiB
Partition:
ID-1: / size: 224.81 GiB used: 66.99 GiB (29.8%) fs: ext4 dev: /dev/sda3
ID-2: /boot/efi size: 1020 MiB used: 468.3 MiB (45.9%) fs: vfat
dev: /dev/sda1
Swap:
ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) dev: /dev/dm-0
ID-2: swap-2 type: zram size: 16 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
System Temperatures: cpu: 59.8 C mobo: 37.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 32 GiB available: 31.27 GiB used: 8.06 GiB (25.8%)
Processes: 386 Uptime: 50m Shell: Bash inxi: 3.3.34

Está difícil conseguir haha

General Instructions for Cosmic Byte Keyboards

  • Keyboard Backlight Brightness: The most common combination for adjusting the keyboard’s own LED brightness is Fn + (Up Arrow) to increase brightness and Fn + (Down Arrow) to decrease it.

  • Other Potential Combinations: Some models might use Fn with specific F keys, often marked with sun icons (:bright_button:/:dim_button:), such as Fn + F5/F6 or Fn + F11/F12. Check your keyboard’s manual for model-specific shortcuts.

Controlling Monitor Brightness in the COSMIC Desktop

If you are using the COSMIC desktop environment (like on Pop!_OS), the standard keyboard shortcuts (often the sun-labeled function keys on a laptop) should work by default.

If the keys don’t work, here are some common solutions within the COSMIC environment:

  • System Settings: You can always manually adjust the brightness using the slider in the Settings > System > Display menu.

  • Custom Shortcuts: You can create custom keyboard shortcuts if your default keys aren’t working. This often involves using a command-line utility like brightnessctl and assigning it to a key combination in the Keyboard Shortcuts settings.

  • Applets for External Monitors: For external monitors, the COSMIC desktop has applets (like those found on the cosmic-utils GitHub page) that allow you to control brightness via the DDC/CI protocol and can be synced with your keyboard’s brightness keys.

Não uso este sistema

Consegiui?

Não cheguei a testar.

Então, não tem essas opções não :frowning:

Os atalhos do teclado não fazem nada.

External Monitors só alterar entre light e dark mode.

Se tem o pacote instalado

For Internal/System Brightness (General Tools)

  • {nav}brightnessctl{/nav}: A command-line tool for backlight control.

    • Debian/Ubuntu: sudo apt update && sudo apt install brightnessctl.
  • {nav}Brightness Controller{/nav} (GUI):

    • Ubuntu: Add PPA: sudo add-apt-repository ppa:apandada1/brightness-controller, then sudo apt update && sudo apt install brightness-controller.

Como falei, nào uso.

Quando eu puder faço um teste em uma vm

1 curtida

Não faz nada :frowning:

Eu acho que é alguma incompatibilidade com minha placa de vídeo da nvidia

Lembrei que resolvi esse problema em meu notebook:

Mas dessa vez não tá dando certo. Já está como acpi_backlight=native

~$ lspci -k | grep -A 2 -E "(VGA|3D)"
0b:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3060 Ti Lite Hash Rate] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] GA104 [GeForce RTX 3060 Ti Lite Hash Rate]
	Kernel driver in use: nvidia

Tenta

nvidia.NVreg_EnableBrightnessControl=1 acpi_osi=! acpi_backlight=native

Tentei as três opções.

~$ cat /proc/cmdline
initrd=\EFI\Pop_OS-c3ed13d9-122a-4b31-bb38-087980af93ec\initrd.img root=UUID=c3ed13d9-122a-4b31-bb38-087980af93ec ro quiet loglevel=0 systemd.show_status=false splash nvidia-drm.modeset=1 acpi_backlight=vendor

Adiciono no final da linha?

A proposito, sempre que eu reinicio e aperto E, ele aparece duas opções de uma vez: acpi_backlight=native acpi_backlight=video

Mas depois de iniciar, ele só aparece uma, que é a native.

Não conheço o sistema, mas se for por aí que adicoona os parâmetros do kernel, então sim

1 curtida

o sistema não boota :frowning: fica tela preta.

O cosmic usa grub?

Se sim, /etc/default/grub

1 curtida

Veja se com alt+ctrl+ f3

Entra no console.

E tire

acpi_osi=!

1 curtida

Assim?

~$ cat /proc/cmdline
initrd=\EFI\Pop_OS-c3ed13d9-122a-4b31-bb38-087980af93ec\initrd.img root=UUID=c3ed13d9-122a-4b31-bb38-087980af93ec ro quiet loglevel=0 systemd.show_status=false splash nvidia-drm.modeset=1 nvidia.NVreg_EnableBrightnessControl=1 acpi_backlight=native

Não aconteceu nada :frowning:

Ok.

Sabe se tem kernel-zen?

Se tiver pode tentar instalar e veja se tem suporte

Parece que não tem no cosmic

1 curtida

Não sei o que é isso, posso pesquisar.

A título de curiosidade, rodei o comando:

~$ sudo kernelstub -v
[sudo] senha para gengar:
kernelstub.Config    : INFO     Looking for configuration...
kernelstub           : INFO     System information:

    OS:..................Pop!_OS 24.04
    Root partition:....../dev/sda3
    Root FS UUID:........c3ed13d9-122a-4b31-bb38-087980af93ec
    ESP Path:............/boot/efi
    ESP Partition:......./dev/sda1
    ESP Partition #:.....1
    NVRAM entry #:.......-1
    Boot Variable #:.....0000
    Kernel Boot Options:.loglevel=0 nvidia-drm.modeset=1 quiet systemd.show_status=false splash acpi_backlight=native
    Kernel Image Path:.../boot/vmlinuz-6.17.9-76061709-generic
    Initrd Image Path:.../boot/initrd.img-6.17.9-76061709-generic
    Force-overwrite:.....False

kernelstub.Installer : INFO     Copying Kernel into ESP
kernelstub.Installer : INFO     Copying initrd.img into ESP
kernelstub.Installer : INFO     Setting up loader.conf configuration
kernelstub.Installer : INFO     Making entry file for Pop!_OS
kernelstub.Installer : INFO     Backing up old kernel
kernelstub.Installer : INFO     Making entry file for Pop!_OS

Ok

Veja se o comando funciona, e crie atalhos para o teclado

Aumentar 5%

brightnessctl set +5%

Diminuir 5%

brightnessctl set 5%-

Boa sorte

:+1:

1 curtida
gengar@pop-os:~$ sudo brightnessctl set 5%+
Updated device 'input12::kana':
Device 'input12::kana' of class 'leds':
	Current brightness: 1 (100%)
	Max brightness: 1

gengar@pop-os:~$ sudo brightnessctl set 5%-
Updated device 'input12::kana':
Device 'input12::kana' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1

Nada :frowning:

Lista os dispositivos

brightnessctl list
# ou
brightnessctl -l -c backlight