Lenovo legion 5 linux

Lenovo legion 5 linux

Edit : Added some distinctions between hybrid and discrete mode thanks to dglt1 and beermount inputs

for my first Reddit post I’d like to share some infos about Legion 5 pro actual linux compatibility

My model is the 16ACH6H — 82JQ0019FR — bought at french retailer fnac.com ; with 16 Gb RAM and 512 Go SSD (1799 €, french prices are terrible. )

I installed latest Manjaro 21 Ornara KDE Edition on it. Running 5.11.6 kernel

— Wifi and Bluetooth are working

— No problem with touchpad or keyboard

— Basic Function keys are working great

— Prime-run is working out of the box with Integrated Graphics with video-hybrid-amd-nvidia-prime

— Screen brightness is working when adding amdgpu.backlight=0 to the grub kernel option (Hybrid mode)

— No external screens in Integrated or Hybrid mode. Output ports are plugged to the dedicated 3070, so you’ve got to run the Nvidia chip as primary to get external screens working. I installed optimus-manager-qt which allows to switch from different graphic cards conveniently : follow this guide if interested (and ignore the Note about AMD-NVIDIA !) : https://archived.forum.manjaro.org/t/guide-install-and-configure-optimus-manager-for-hybrid-gpu-setups-intel-nvidia/92196

— No Power Management Features (I suppose the CPU is working at max levels all the time even on battery)

In hybrid mode only (no problem if you select discrete GPU in BIOS) :

— Even if you select the 3070 in Optimus, nvidia-settings detects the screen as «PRIME Display» which cannot be controlled by it. Which means no gsync !

— Can’t put the screen refresh rate at 165 Hz

I tried adding the «custom resolution» at 165 HZ with xrandr with these commands :

xrandr —newmode «2560x1600_165.00» 1046.03 2560 2792 3080 3600 1600 1601 1604 1761 -HSync +Vsync

xrandr —addmode eDP-1 «2560x1600_165.00»

xrandr —output eDP-1 —mode «2560x1600_165.00»

It lead me to a terrible screen experience with image persistence and screen flickering. On Linux, Windows or at boot time. Which only stopped when I reinitialized the computer the day after ! Don’t know why it happened but I’m glad it stopped !

  • I know a lot of linux users ask for IOMMU groups for Passthrough, it seems it is enabled by default on the bios, here are my results :

Really satisfied so far. For Matte display fans, this is the display to get ! WQHD 16:10 with 500 nits on 16″ is the perfect ratio for me for productivity. I kind of miss OLED contrast though.

The laptop is heavy but IMO it is still transportable without issue, it’s only 2.4 kg. The power supply is incredibly heavy, so I’m planning on using Power Delivery 100W GaN chargers when I’m on the go. I’m actually writing this post on Kwrite with an open firefox (10 tabs), battery full, integrated graphics on Optimus-manager, WQHD 60 hz (sigh. ) and my wattmeter shows me between 15 and 25W of consumption. Remember screen brightness is at max !

Читайте также:  Распаковка tgz linux консоль

But if you switch to dedicated graphics, for the same scenario power consumption ups to 40-50w.

I like the keyboard feeling, but i know I’m not very difficult on this aspect. I find the overall build quality very good, even if a full metal chassis would have been better.

This is my first Lenovo laptop, and I’m actually pleased to see so few bloatware on the default Windows install ! So far I only exited Mcaffee and Office. Lenovo Vantage interface IMO is pretty clear and well executed. It’s a lot better than in my girlfriend’s HP specter.

I will continue my tests and decide if I keep it or not before the end of the two weeks retractation period. The only device I would prefer is the Thinkbook 14p Gen 2, which will probably not be available in Europe, due to its 90 Hz Oled Screen and better battery run time (I’m no big gamer, 90 Hz and integrated graphic could be enough for my needs)

I hope this post will be useful to other geeks who’d like to run Linux on this beauty and that all The Bads will be resolved soon ! 🙂

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

how to install Linux Mint on Lenovo Legion 5 to have proper hardware drivers and screen brightness control

License

wottreng/Linux-Mint-on-Lenovo-Legion-5

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

** updated for Linux Mint 20.3 Cinnamon**
** updated for power consumption issue fix **

Читайте также:  Arduino mega 2560 linux

How to install Linux Mint on Legion 5 to have proper hardware drivers and screen brightness control

Linux Mint is forked from Debian and similar to Ubuntu so this may work for Ubuntu OS as well.
I did try to install Ubuntu 21.xx OS and it created a custom NVIDIA driver that didnt quite work properly so be warned.

I hope this will help someone else that might be going down this same path.
It took me a while to figure it out so hopefully I can same you some time.

Laptop: Lenovo Legion 5 15 Gaming Laptop, 15.6″ FHD (1920 x 1080) Display, AMD Ryzen 7 5800H Processor, 16GB DDR4 RAM, 512GB NVMe SSD, NVIDIA GeForce RTX 3050Ti
Amazon link: https://amzn.to/3s9NQcC

these are the steps I took to get Linux Mint 20.3 Cinnamon on a Lenovo Legion 5 gaming laptop

  • READ THE DOCS: https://linuxmint-installation-guide.readthedocs.io/en/latest/
  • install linux mint OS onto thumb drive
  • insert thumbdrive into laptop
  • boot laptop while pressing F12 — this will let you choose boot device
  • select thumbdrive to boot OS installer
  • select install Linux Mint on live media Desktop

STEPS to get Hardware operating properly:

[NOTE: hybrid graphics started working in Mint 20.3. For older versions, see older commits for discrete graphics only setup]
1: select hybrid graphics [NOTE: you can select Discrete Graphics if you want]

  • boot laptop while pressing F2 on keyboard
  • once in UEFI firmware settings, select hybrid graphics
  • select Exit and save settings

2: install latest linux kernel (kernel: 5.13.0-21-generic)

  • cli cmd: sudo mintupdate ➡ Mint Update Manager GUI
  • write up for ‘Update Manager’ gui : credit: https://www.makeuseof.com/upgrade-kernel-linux-mint/
  • GUI steps: Update Manager ➡ View ➡ Linux Kernels ➡ (5.13) ➡ install
  • reboot laptop ➡ cli cmd: reboot

3: install latest nvidia graphics drivers (510.47.03)
using «driver manager» gui update graphics drivers to latest nvidia driver version

  • cli cmd: sudo mintdrivers ➡ Mint Driver Update GUI
  • then install latest NVIDIA proprietary driver
  • reboot laptop ➡ cli cmd: reboot
  • [—NOTE: if you selected DISCRETE graphics, stop here—]
  • after reboot and login, click on NVIDIA On-Demand icon in lower right applet panel
  • click NVIDIA Settings
  • click PRIME Profiles
  • click NVIDIA On-Demand
  • after authentication and changes made, select Quit
  • reboot laptop ➡ cli cmd: reboot

4: update all packages to latest versions

  • GUI: select Update Manager in App Menu
  • cli cmd: sudo apt update && sudo apt full-upgrade -y
  • clean out garbage and fix links: sudo apt autoremove && sudo apt autoclean

STEPS to get screen brightness to work correctly and brightness keys to actually change screen brightness:

** update for Mint 20.3 Cinnamon, script updated to fix device name convention bug **
NOTE: brightness keys still not working so use this repository to control brightness in software

TLDR cli magic (copy and paste into your cmd line):

wget https://github.com/wottreng/Linux-Mint-on-Lenovo-Legion-5/archive/refs/heads/main.zip && unzip main.zip && cd Linux-Mint-on-Lenovo-Legion-5-main && chmod 777 setupBrightnessControlKeys.sh && ./setupBrightnessControlKeys.sh

1: download this repository ➡ cli cmd:

git clone https://github.com/wottreng/Linux-Mint-on-Lenovo-Legion-5.git 

2: change directory ➡ cli cmd:

cd Linux-Mint-on-Lenovo-Legion-5/

3: make setupBrightnessControlKeys.sh excutable ➡ cli cmd:

chmod 777 setupBrightnessControlKeys.sh

4: run setup script ➡ cli cmd:

./setupBrightnessControlKeys.sh

5: test your brightness keys, they should work properly now! If not see trouble shooting below

  • Read setupBrightnessControlKeys.sh for comments on how this works and how to remove key bindings if needed
  • run brightnessControl.py -h for help output and supported arguments
  • for TROUBLE SHOOTING or changes see Keyboard in App Menu ➡ Shortcuts ➡ Custom Shortcuts
  • Common issue with script is it finding the wrong device name. Run brightnessControl.py -v to see what device names its finding and you may need to set default in your key bindings like so: brightnessControl.py -d DEVICE-NAME -c 5
Читайте также:  Бэкап операционной системы linux

Realtek wifi 6 working with proper drivers:

⚠ NOTE: wifi driver is now included in Mint 20.3. If you still need drivers then look at older commits for manual install process ⚠

  • batterySaverMode.py puts laptop into battery saver mode when plugged in
  • limits charging above 60% capacity

TLDR cli magic (copy and paste into your cmd line):

wget https://github.com/wottreng/Linux-Mint-on-Lenovo-Legion-5/archive/refs/heads/main.zip && unzip main.zip && cd Linux-Mint-on-Lenovo-Legion-5-main && chmod 777 batterySaverMode.py && sudo mv ./batterySaverMode.py /bin/

1: make it excutable ➡ cli cmd:

chmod 777 ./batterySaverMode.py

2: add script to $PATH (ie. your /bin folder) ➡ /bin/batterySaverMode.py

sudo mv ./batterySaverMode.py /bin/batterySaverMode.py

3: call it from a command line ➡ cli cmd:

Power Consumption Configuration

(credit goes to O491dogan)
Higher than normal power consumption has been reported after proper drivers and updates.
The issue seems to be the dGPU not being turned off when not in use.

  • check power consumption with powertop
    • sudo apt install powertop
    • optimize system consumption with sudo powertop —auto-tune
    • launch with sudo powertop with power cable unplugged
      • with nothing running, power consumption should be about 10w.
      • if dGPU is running, power consumption is about 25w.
      • set dGPU to adaptive in BIOS
      • set dGPU to On-Demand in NVIDIA settings
        • nvidia-settings then select PRIME Profiles, then select NVIDIA On-Demand
        • cmd: cat /sys/bus/pci/devices/0000:01:00.0/power/control
          • should output auto for dGPU on-demand
          • on your dGPU is always on
          • with dGPU always on, about 2 hours
          • with dGPU on-demand, about 4 to 5 hours
          • F2 : open BIOS during boot
          • Ctrl + Alt + F1 or Ctrl + Alt + F2 : change to basic command line interface
          • Ctrl + Alt + F7 : change back to GUI ‘desktop’ interface
          • hold Shift during boot to open up grub for advanced options like recovery mode
          • open cli: CTRL + ALT + T

          Please contribute 📥 or message me if there is a better way! Lets help the Linux Community! 👌

          Buy Me A Coffee

          About

          how to install Linux Mint on Lenovo Legion 5 to have proper hardware drivers and screen brightness control

          Источник

Оцените статью
Adblock
detector