jekhor / yogabook-linux

Yoga Book Linux porting efforts, umbrella repository for link all pieces together
74 stars 8 forks source link

[SOLUTION] Screen brightness control #40

Open LucaCraft89 opened 2 weeks ago

LucaCraft89 commented 2 weeks ago

To allow control of the brightness of the display you need to load the following kernel modules: pwm-lpss pwm-lpss-platform and add 3 .bin firmware files.

Here is How

  1. Download and copy the firmware files commands
    mkdir firmware
    cd firmware
    apt update
    apt install wget
    wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/i915/dg2_huc_gsc.bin
    wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/i915/mtl_guc_70.bin
    wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/i915/mtl_huc_gsc.bin
    cp *.bin /usr/lib/firmware/i915
    # Additionaly remove dir
    cd ..
    rm -rf firmware
  2. Edit boot config
    sudo nano /etc/defualt/grub

    Where you see GRUB_CMDLINE_LINUX_DEFAULT, comment the line with "#" change it to:

    GRUB_CMDLINE_LINUX_DEFAULT="pwm-lpss pwm-lpss-platform quiet splash resume=UUID=ab3b8c33-635c-4af8-bc8a-d1d8546c5ab8"

    should look like this:

    # GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=<your-UUID>
    GRUB_CMDLINE_LINUX_DEFAULT="pwm-lpss pwm-lpss-platform quiet splash resume=UUID=<your-UUID>"

    save with CTRL + X then Y then ENTER

  3. Update Config Run
    sudo update-grub
  4. Reboot
    sudo reboot
  5. Test Open the quick toggle menu in gnome in the top right and see if you can adjust screen brightness with the slider