Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LG Gram laptops on Linux

This repository contains information on how to configure your LG Gram if you plan on installing Linux, as a lot of things aren't perfect.

This guide is made for the LG Gram 17" 2023, but it should work on all other models with some minor tweaking. I'm using Fedora (44), but all should work on other distros too.

Download the configurations

Download the configurations from the release page, and unzip the file. You can then modify all the files to your liking, and move them to the folders mentioned below (you need root).

Kernel configurations

As seen here, the newer versions of the Linux kernel support a lot of drivers for the laptop.

There are 2 ways of changing these settings: using rules.d (and therefore applying them at boot) or by changing them manually using the terminal.

Warning

I noticed that these settings didn't change on Ubuntu, so the only way to apply them was by using the rules.d and rebooting. Which is very annoying. This was in 2024, and things may have changed since then.

rules.d config

Then, Copy the rule.d in there by moving the folder:

sudo cp -r /rules.d/ /etc/udev/rules.d/

Or move them manually in one way or another. You will need root permissions of course. Then modify them by opening them up with nano.

Change kernel parameters at runtime

To do that, change the values using echo or nano or whatever tool you prefer. The names are on the Linux kernel web page linked above.

For instance, here I want to change the battery from 100% to 80% maximum charge:

sudo echo 80 >> /sys/class/power_supply/BAT0/charge_control_end_threshold

Battery capacity

It must be changed using the rules.d parameter, because even though KDE (and most likely Cosmic and Gnome as well) can change the maximum capacity, they don't stick at reboot. You must use that rule.d file in order for it to stick at every boot.

Performance fixes

The LG Gram laptops, being very lightweight, suffer from having an insanely small heatsink and very restrictive thermal configuration. By default, whenever the CPU goes above 70°C (even on Windows) it thermal throttles and this means incredibly limited performance.

To give you an idea, the laptop could potentially use upwards of 30-35W of power between CPU and iGPU. But when the limiters are in place, it drops all the way down to 12W which makes it incredibly slow even for mundane tasks. It took me months of working on it for hours a day to figure out how to fix it. Insane.

Thankfully it's possible to bypass this by using a custom thermald configuration. I already made one that works, and you can just drag and drop it in the /etc/thermald/ folder.

No your laptop will not explode, Intel has set a maximum operating temperature of 95°C that cannot be exceeded or changed even on the BIOS (it resets at boot). So your laptop will be safe, it will just operate better.

Speakers equalization

I've made a simple equalizer to make the speakers sound a little bit better (never tried them on Windows, but I'm aware there should be an app for it). Mind the speakers are only 2W powerful so they aren't going to be very loud and you might not hear anything if there is even minor amount of noise in the room.

Just download the EasyEffects app, and configure it by loading the eq profile I've created. Click profiles at the bottom left, then local and click import next to the new profile name text area.

Also, I'd recommend adding an exciter and moving the bar at the left (i don't know what it does but it sounds better). Experiment with it as much as you please.

PageUp/Home and PageDown/End keys are the other way around

They are inverted, and you gotta hold the FN key to use them, which gets in the way when programming. If you want to fix it, I recommend you install an app called Input Remapper on your distro.

To do that, create a profile, add a setting and register the input using the record button, then go ahead and type the button name KEY_whatever. You must do home > page up and page up > home of course otherwise you loose access to one of the buttons! Then hit the enable automatically button and you are good to go.

Other oddities

BIOS settings

You can get into the Advanced section by holding CTRL+ALT+SHIFT+F7.

The BIOS options, when holding the arrow keys down, scroll much slower than on Windows. I have no idea how this is even possible.

Also, there's millions of options but only a couple of them stick when rebooting? Most of them just don't, and sometimes they reset for no reason (the Performance tab for Power profiles is one of them. Also it doesn't work, it limits at 25W even when you push it higher).

Performance

Other oddities are what I explained in the performance tab. To give more context, games like Genshin Impact (yeah I was playing that at the time don't judge) would drop from 40ish FPS to like... 12? Even lower sometimes. All because of this ridiculously low temperature setting. I've never seen any other computer with such low temperature thresholds. That's just insanely low considering that CPUs can hit even more than 100°C before throttling nowadays.

About

Configurations for LG Gram laptops on Linux.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors