Well guys, today I bring you the solution to a problem that I had to solve in my Cinnamon with Arch Linux.
The problem was that on an HP Envy M4 Notebook, the reduce and increase brightness button works and is displayed in cinnamon, BUT OH! it does not increase or reduce gloss.
By running the following command:
$ ls /sys/class/backlight/
I would display the controller in my case they appeared 2
acpi_video0 e intel_backlight
The problem is that everything works for acpi_video0 but it is not using the intel_backlight which is what my notebook uses.
How can we know this? Easy with the command:
# cat /sys/class/backlight/acpi_video0/brightness
Which shows us its value and if we press the keyboard button and lower or raise the brightness it modifies it. But like I said, that's not the one the notebook uses if not intel_backlight, now if we do the same but for intel we will see something different:
# cat /sys/class/backlight/intel_backlight/brightness
It gives us the value but if we modify it from the terminal we will notice that the brightness is modified.
# echo 1000 > /sys/class/backlight/intel_backlight/brightness
We will notice that the brightness changes or increases depending on the value we use.
Solution to the problem:
We create or modify the file /etc/X11/xorg.conf.d/20-intel.conf and we add the following:
Section "Device" Identifier "card0" Driver "intel" Option "Backlight" "intel_backlight" BusID "PCI: 0: 2: 0" EndSection
After this we need to modify the following line in the / etc / default / grub file:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
As you can see I only added acpi_backlight = vendor inside the sentence, depending on how yours is only added inside.
We proceed to regenerate our grub.cfg with the following command:
# grub-mkconfig -o /boot/grub/grub.cfg
and that's it just in case I use a:
# mkinitcpio -p linux
but just in case: 3 luck and I hope it helps someone who has the same problem and is trying to solve it n_n a greeting.