Installing Fedora on LG Gram Notebook
Installing Fedora on LG Gram Notebook⌗
The LG gram is a very powerful and at the same time incredibly light notebook. As a Linux user, I of course immediately installed Fedora on the laptop and had to realise, to my disillusionment, that one or two things do not run as smoothly as I had hoped.
- During charging via USB-C, several kernel tasks spawn that place a heavy load on the CPU. As a result of the heat development, the laptop becomes very loud and slow.
- In addition, ACPI error messages constantly spam the kernel log and make it virtually unreadable.
With a little research, however, I was able to solve both problems with my gram.
The first fix solves the USB-C charging problem:
To mask the flag on boot add acpi_mask_gpe=0x6E
to the end of the line GRUB_CMDLINE_LINUX in /etc/default/grub
.
Regenerate your grub config by running:
sudo grub2-mkconfig -o "$(readlink -e /etc/grub2.conf)"
sudo grub2-mkconfig -o "$(readlink -e /etc/grub2-efi.conf)"
To unmask on boot run create a new systemd service called lg-gram.
[Unit]
Description=Unmasks ACPI flag 0x6E and sets charging limit to 80 on LG Gram
[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo 'unmask' > /sys/firmware/acpi/interrupts/gpe6E"
ExecStart=/bin/bash -c "echo 80 > /sys/class/power_supply/CMB0/charge_control_end_threshold"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
- Reload services and start the
lg-gram.service
systemctl daemon-reload && systemctl enable --now lg-gram.service
In the second step, we disable an unsupported temperature sensor in the UEFI:
Hold F10
while starting to access the boot selector, press TAB
to access the BIOS.
Enable Advanced UEFI/BIOS Settings with CTRL+SHIFT+ALT+F7
TBC…