Brightness key not working Ubuntu 16.04 LTS

I faced the same problem before on my laptop Lenovo z500 ideapad after searching i found this solution :

  1. open terminal
  2. sudo nano "/etc/default/grub"
  3. append acpi_backlight=vendor to the GRUB_CMDLINE_LINUX_DEFAULT line:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"
    
  4. save and close nano (Ctrl+X, then confirm saving changes)
  5. sudo update-grub
  6. restart

If nothing changes , you can check the solutions of this question.