backlight not working wit ubuntu 20.4 code example

Example 1: change brightness ubuntu 20.04

# xrandr will list the displays you have connected eg HDMI-0 or DP-0 ...
xrandr 
# here's an example of changing an HDMI display 
# I have connected to 90% brightness
xrandr --output HDMI-0 --brightness 0.90
# --output is for the name of display
# --brightness is brightness ratio with 1.0 being 100%

Example 2: how to solve the brightness problem on unbuntu

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"