Score:1

Lenovo Legion 5 - Several problems while trying to use Ubuntu

cn flag

I know that parts of this question were asked before, however, none of the questions featured all problems that I have encountered and the answers were rather unhelpful in my case. I tried to install Ubuntu on my Legion 5 17" with a 1660ti and a Ryzen 7 4800H. The problems I encountered were:

  1. I can't find any alternative to Lenovo Vantage. You might say it is a bad product, but I actually use it quite a lot. E.g. the feature to turn on/off the camera (instead of your face, a grey camera is visible in a live video chat to others) is not working.

  2. Once I turned on battery conservation mode in Windows (to charge the battery only to 55-60%), I can't find any way to disable or re-enable it in Linux. TLP also does not work.

  3. The 3 power modes (red > white > blue) switched by clicking FN+Q don't actually do anything in Linux but only change the LED on the power button. When analyzing the wattage/power consumption of my hardware, nothing changes. In Windows it clearly does.

  4. One big issue I had with the graphics drivers was that I could not change the screen brightness in discrete graphics mode. In hybrid mode however, I could change the screen brightness. Furthermore, plugging in an external monitor via HDMI works with discrete mode, but not with hybrid mode. It's kind of like a dilemma. Either mode has its (dis)advantages. How would I solve the brightness and external monitor issue in both modes?

Update:

After some time I am now back with updated infos, which I hope will help future owners of the Legion 5 (whatever exact model it might be):

  1. As it seems, there is no need for Lenovo Vantage in GNU/Linux in general. The kernel developers added an ideapad kernel module, which contains some files that you can configure to your beliking. This module seems to support a wide variety of Lenovo devices. Have a look here for the GitHub source code. You can find the configuration files under /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00. Have a look at the several files. Oftentimes you can change the values inside of them from 0 to 1 or vice versa.

  2. TLP is not needed. Just change the value inside /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode to 0 or 1.

  3. I am not quite sure if this one works per default. I could hear some fan noises when I changed into the red mode (power mode), but the fan noise disappeared when I changed into white (automatic mode) or blue (silent mode). It seems that this is somehow already integrated in my Ubuntu version (21.10).

  4. This one drove me really crazy, but it turned out that I did not pay attention which Display Manager my Ubuntu session was using. Of course using Wayland will not work with a X11 config file... I changed my session into X11 and added the Option "RegistryDwords" "EnableBrightnessControl=1" line into the "Device" section of this file: /etc/X11/xorg.conf, which can be created by using the Nvidia X Server settings program. I have been using the discrete graphics mode preset inside the BIOS, and I am able to plug in a second monitor in my HDMI port with no issues.

side note: I still don't know how to fix the brightness issue for non X11 users.

user535733 avatar
cn flag
"*[N]one of the questions featured all problems that I have encountered*" That's intentional -- separating the questions helps more people.
user535733 avatar
cn flag
"*[T]he answer were rather unhelpful in my case*" does not seem sufficient reason to ask a duplicate question. It would be better to help refine the other questions so they are better answerable. Or to explain clearly how your question is different, and therefore answerable.
in flag
These all sound like things to bring to Lenovo's attention. There is little anyone else can do aside from invest scads of time in reverse-engineering software that Lenovo wrote specifically for Windows to offer something similar in Ubuntu (and Linux in general). Until Lenovo opens up the hardware documentation for their devices or invests in making Linux drivers for all of their machines, it is unlikely that any of these items will be resolved to *your* satisfaction
ru flag
I have the same laptop, only the 15 inch model (same CPU/GPU). I'm running Arch. I can get 8+ hours of battery life if I install `optimus-manager` and switch to "integrated" GPU mode. For me, it's a real hassle switching between GPUs (maybe because I haven't installed/configured things correctly, I'm not sure). For screen brightness, I have to manually change a file in /usr/share/X11/xorg.conf every single time. At the moment, I just keep my laptop in "discrete" (NVIDIA) GPU mode (less battery life, but less hassle too). I'm thinking for getting a new laptop.
demaniak avatar
cn flag
Feb 2023: it would seem that a lot (all?) issues have been addressed with new kernels (5.15+) and nvidia drivers 525.78.01+ . Fn+Q - yeah it's an odd one. On my machine (Legion 5 15ACH6H 82JU) it seems to suppress fans (powersaving) or ramp up fans (performance). Can't really say it does much else. Slimbook Battery 4 - switching between modes with that definitely has impact (as measured by powertop and observing handbrake encoding performance). At least for CPU. GPU is a different story. Short version: google for prime-run script, use "On Demand" mode in nvidia-x-settings.
Score:0
ru flag

In regards to your 4th question, if you're in "discrete" mode, then create this file:

$ cat /usr/share/X11/xorg.conf.d/21-nvidia-brightness.conf

Section "Device"
    Identifier     "Device0"
    #Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
EndSection

You'll then be able to adjust the brightness.

NOTE: On gaming laptops, it is IMPOSSIBLE to run an external monitor if you're running off the iGPU only ("integrated" mode), because the video output ports are hardwired to the Nvidia GPU (gamers demand this as it improves framerates). An external does work for me if I set the GPU to "hybrid" in the BIOS and then use optimus-manager and use the "hybrid" setting.

Score:-1
ru flag

Late reply, hope the people here have already solved the initial issues. I have a Legion 5 pro, Nvidia 3070 (2021 version). For people with similar devices(or maybe any new laptops with nvidia), here's what I have found till now :

  1. I have not found any way to change charging(fast, conservation) and power modes(performance, balanced and quiet) without closing linux. For charging I have to change it from from lenovo vantage by logging in to my dual booted windows(If you don't notice any change in charging mode when switching back to linux, you might want to (1)switch your mode in windows and (2)again restarting into windows and then (3)restarting into linux). There are some utility applications like the tpacpi-bat for thinkpads and ideapads, but none that support the legion series. Still searching for this ..
  2. Many graphic compatibility issues can be solved by having a linux kernel 5.10+(5.13+ tested and recommended). My initial setup had many issues even after updating to kernel 5.13 due to me messing with config files and settings. On a fresh installation of linux without changing or downloading updates, I first updated my kernel to 5.13. (I am running linux mint 20.3). I updated the linux kernel from "Update Manager">"View">"Linux Kernels". linux kernel options screenshot)
  3. After the kernel update, I installed the latest recommended nvidia-driver (proprietary) from "Driver Manager". I am currently using nvidia-driver-510. This should also download Nvidia X Server Settings automatically, and provide Nvidia Optimus as a panel(taskbar) icon. Using Optimus from here allows me to change between basically using the integrated gpu(power saving), discrete gpu(performance) or both(nvidia on demand). But this requires you to restart. To be able to see the "Nvidia On Demand" option in Nvidia optimus, you need to change into "Dynamic graphics" from bios
  4. Using the Nvidia on Demand option fixed my uncontrollable brightness, and desktop scaling issues (Note: you will still face many apps that don't follow the desktop scaling settings. Most can be solved by simple Googling). This is the best option in my opinion as it allows to run basic applications on my Amd iGPU. For specific applications we can use a terminal command(Google primus while launching an application or the "Run with Nvidia Gpu" option while right clicking on an executable program.

Note: You may face not being able to change refresh rate of monitor on linux while in Dynamic graphics mode. I think there is a solution to it, but I haven't checked yet. (I am content for now with 60 fps on linux, I can always game on Windows. Another user reported being stuck on 144 fps. Roll your luck :) )

Also if you are someone who is looking into whether or not you could afford to dual boot linux: Don't worry for your data on windows. You can shrink a partition through tools like AOMEI. Regarding storage, you can keep media, documents, installers in your windows storage and not allot a lot of storage to linux as it you access your windows folders from within linux.

Razor avatar
cn flag
**1.** Fn+Q can toggle between power modes. **3.** For some reason I can't choose integrated gpu(power saving) option, it's disabled, do you know why? **Note** I can choose between 60hz and 165hz on kde neon, kernel 5.13, nvidia 510.
Divyansh Singh avatar
ru flag
**1.** Not an expert on that but it seems for now only Windows can handle Fn+Q. Linux yet doesn't support that feature. **3.** Instead you can switch from the Nvidia Xserver Settings App which will install directly if you have downloaded a proprietary Nvidia driver. **Note** Regarding the refresh rate good for you, but I haven't actually checked out what causes mine to lock on 60hz. If you have any insights pls share (maybe as a different comment).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.