[19.3] Lenovo Flex 5 no video acceleration

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: [SOLVED]-[19.3] Lenovo Flex 5 no video acceleration

Post by mr_raider »

Ok I've successfully installed 5.7 on a clean Mint Cinnamon 20 install in a VM:
na@na-VirtualBox:~$ inxi -Fx
System:
Host: na-VirtualBox Kernel: 5.7.1-050701-generic x86_64 bits: 64
compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.6.6
Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal
Machine:


Type: Virtualbox System: innotek product: VirtualBox v: 1.2
serial: <superuser/root required>
Mobo: Oracle model: VirtualBox v: 1.2 serial: <superuser/root required>
UEFI: innotek v: VirtualBox date: 12/01/2006
Battery:
ID-1: BAT0 charge: 11.5 Wh condition: 50.0/50.0 Wh (100%) model: innotek 1
status: Discharging
CPU:
Topology: Quad Core model: AMD PRO A12-8800B R7 12 Compute Cores 4C+8G
bits: 64 type: MCP arch: Excavator rev: 1 L2 cache: 1024 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 16768
Speed: 2096 MHz min/max: N/A Core speeds (MHz): 1: 2096 2: 2096 3: 2096
4: 2096
Graphics:
Device-1: VMware SVGA II Adapter driver: vmwgfx v: 2.18.0.0
bus ID: 00:02.0
Display: x11 server: X.Org 1.20.8 driver: vmware
unloaded: fbdev,modesetting,vesa resolution: 1308x682~60Hz
OpenGL: renderer: SVGA3D; build v: 2.1 Mesa 20.0.8 direct render: Yes

I used the same tool you just downloaded. My best guess is that the script failed to fully build the initramfs in your case.

We can do it manually. Make sure dkms is installed:

Code: Select all

sudo apt install dkms

Manually download the kernel files:

https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7.7/

Select the following 4:


amd64/linux-headers-5.7.7-050707-generic_5.7.7-050707.202007010943_amd64.deb

amd64/linux-headers-5.7.7-050707_5.7.7-050707.202007010943_all.deb
amd64/linux-image-unsigned-5.7.7-050707-generic_5.7.7-050707.202007010943_amd64.deb
amd64/linux-modules-5.7.7-050707-generic_5.7.7-050707.202007010943_amd64.deb


Place them all alone in a directory of your choice. Open a terminal in that directory and type:

Code: Select all

sudo dpkg -i ./*.deb
Wait for the install to finish and carefully look at the output for errors.
Image

TallStranger
Level 2
Level 2
Posts: 64
Joined: Sun Jan 05, 2020 2:56 pm

Re: [SOLVED]-[19.3] Lenovo Flex 5 no video acceleration

Post by TallStranger »

Thanks, but I suspect you have not seen my last post where I now have it working with 5.4 and Secure Boot using the AMD driver file.
viewtopic.php?p=1841614#p1841614

I was only trying to get 5.7 working to achieve the Sleep/Suspend and External monitor results, but 5.4 is OK. But I will make a copy of your instructions, thanks again for doing that.
Mint 20.0+Cinnamon - Lenovo IdeaPad Flex 5, Ryzen 5 4500, 16GB, 500GB, Kernel 5.6/5.7/5.8 is a MUST for an external Monitor
Mint 19.3+Cinnamon - Acer i7-3rd-gen, 8GB, 512GB-SSD

TallStranger
Level 2
Level 2
Posts: 64
Joined: Sun Jan 05, 2020 2:56 pm

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by TallStranger »

OK, rejoiced too soon. Last night I closed the lid and it went to sleep, power light pulsing slowly.

This morning, opened the lid and a few seconds later, my chosen background from yesterday appeared in all it's glory on the external monitor. Logged in and got a black screen with the Taskbar visible on the external monitor. Arrrggggghhhhh.

Right click did not work, File Manager came up OK as did the CLI and Menu opened fine. But any selection from the Menu would run, but not be visible too me. Although a rectangle would appear within the Workspace icons on the Taskbar, so it was there and running, I just could not see it.

I rebooted and set Secure Boot off, but no difference.

I guess I will try the Kernel upgrade as mr_raider has defined and go around again.

Anyone have thoughts on this black screen stuff? It boots to the login screen just fine on the external monitor.

Thanks
Mint 20.0+Cinnamon - Lenovo IdeaPad Flex 5, Ryzen 5 4500, 16GB, 500GB, Kernel 5.6/5.7/5.8 is a MUST for an external Monitor
Mint 19.3+Cinnamon - Acer i7-3rd-gen, 8GB, 512GB-SSD

TallStranger
Level 2
Level 2
Posts: 64
Joined: Sun Jan 05, 2020 2:56 pm

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by TallStranger »

OK kernel upgrade did the same thing again. "load the kernel first" then take me back to the list of Kernels to select 5.4.

I used Synaptic to remove the 5.7 kernel so it would at least boot through Grub.

I have found that if I setup the Display to be Mirrored instead of LCD-Disabled, External-Primary, then both screens work fine. I can then tap the Lenovo F7/Screen key twice and it will toggle through the 4-states, one of which is external-only. Not perfect but it is working. Sleep/Suspend is working too, but within the confines of that previous Sentence.

With all the features this 2-in1 has, including live-stylus I really do not want to send it back for an Acer, so will live with this rather poor configuration and setup. Hopefully AMD will get their act together with their Driver, OR the Mint devs will get it sorted out to work the way Manjaro has done it.
Mint 20.0+Cinnamon - Lenovo IdeaPad Flex 5, Ryzen 5 4500, 16GB, 500GB, Kernel 5.6/5.7/5.8 is a MUST for an external Monitor
Mint 19.3+Cinnamon - Acer i7-3rd-gen, 8GB, 512GB-SSD

twerq
Level 2
Level 2
Posts: 52
Joined: Sun Jul 05, 2020 10:55 am

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by twerq »

TallStranger wrote:
Tue Jul 07, 2020 4:55 pm
mr_raider wrote:
Tue Jul 07, 2020 2:05 pm
De-activate secure boot.
Thanks for your persistence, but same again with that disabled. linuz error and back to list of kernels. Tried also 5.6.whatever, also same.
Did you de-activated secure boot first and then tried to install kernel? …or you installed the kernel first?

TallStranger
Level 2
Level 2
Posts: 64
Joined: Sun Jan 05, 2020 2:56 pm

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by TallStranger »

twerq wrote:
Wed Jul 08, 2020 5:45 pm
Did you de-activated secure boot first and then tried to install kernel? …or you installed the kernel first?
I had and still have, Secure Boot enabled. Surely Mint 20.0 should be capable of handling full UEFI.

Interestingly, I installed it in VirtualBox and as dr_raider mentioned when he did that, the 5.7 kernel installed and Virtual Mint booted OK **with* Secure Boot.

This is all well out of my area of knowledge, but would really like to get it under control the right way.
Mint 20.0+Cinnamon - Lenovo IdeaPad Flex 5, Ryzen 5 4500, 16GB, 500GB, Kernel 5.6/5.7/5.8 is a MUST for an external Monitor
Mint 19.3+Cinnamon - Acer i7-3rd-gen, 8GB, 512GB-SSD

mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by mr_raider »

TallStranger wrote:
Fri Jul 10, 2020 2:51 pm
twerq wrote:
Wed Jul 08, 2020 5:45 pm
Did you de-activated secure boot first and then tried to install kernel? …or you installed the kernel first?
I had and still have, Secure Boot enabled. Surely Mint 20.0 should be capable of handling full UEFI.

Interestingly, I installed it in VirtualBox and as dr_raider mentioned when he did that, the 5.7 kernel installed and Virtual Mint booted OK **with* Secure Boot.

This is all well out of my area of knowledge, but would really like to get it under control the right way.
Secure booting requires a signed kernel. Only the ubuntu official kernels shipped with the distro at install are signed. The procedure we performed installed an unsigned "unofficial" kernel. Ubuntu does not sign these kernels.

At some point in the Min 20/Ubuntu 20.04 cycle, the 5.7 and later kernels will be available as signed. But you won't see that before OCtober.
Image

Fizz
Level 4
Level 4
Posts: 200
Joined: Mon Jul 15, 2019 8:17 am

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by Fizz »

I have been following this, as my next machine will also be based on the 4500U. Will kernel 5.5 and above be offered on Mint 19.3 at any point? Or will those later kernels only be offered on Mint 20?

My plan is to move (or clone) my current drive to the new machine. I am thinking it may be easier to upgrade my working system to a kernel that supports the new cpu before transferring the drive- hopefully that will prevent / limit any upgrade headaches.

Thoughts?


-Fizz

mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by mr_raider »

Fizz wrote:
Sat Jul 18, 2020 8:16 am
I have been following this, as my next machine will also be based on the 4500U. Will kernel 5.5 and above be offered on Mint 19.3 at any point? Or will those later kernels only be offered on Mint 20?

My plan is to move (or clone) my current drive to the new machine. I am thinking it may be easier to upgrade my working system to a kernel that supports the new cpu before transferring the drive- hopefully that will prevent / limit any upgrade headaches.

Thoughts?


-Fizz
In theory, no. Mint gets it's kernels from Ubuntu, and the 18.04 release cycle will not have higher kernels since 5.4 is an LTS kernel. You can read about it here:

https://wiki.ubuntu.com/Kernel/RollingL ... ementStack


Now if the Mint team decides to start backporting newer kernels, that's a different thing. But historically, Mint has focused on teh Desktop Environement and left the innards of the OS to Ubuntu.
Image

Fizz
Level 4
Level 4
Posts: 200
Joined: Mon Jul 15, 2019 8:17 am

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by Fizz »

OK, so for me it would make sense to update my system to Mint 20 first, then get a later kernel (at least 5.6, preferably 5.7 or 5.8 ) either from Mint updates or do it manually. Only after that is working would I then move / clone the drive to the new system (the one that has the Ryzen 5 4500U).

So in theory then, the new hardware would be fully supported before i make the move to it, thereby limiting migration pains. Anyone see any issue with such a plan?

I suppose i could also manually update the kernel even while still on 19.3, but having eventual official support for later kernels is probably a good thing.


-Fizz

mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by mr_raider »

Fizz wrote:
Sat Jul 18, 2020 12:12 pm
OK, so for me it would make sense to update my system to Mint 20 first, then get a later kernel (at least 5.6, preferably 5.7 or 5.8 ) either from Mint updates or do it manually. Only after that is working would I then move / clone the drive to the new system (the one that has the Ryzen 5 4500U).

So in theory then, the new hardware would be fully supported before i make the move to it, thereby limiting migration pains. Anyone see any issue with such a plan?

I suppose i could also manually update the kernel even while still on 19.3, but having eventual official support for later kernels is probably a good thing.


-Fizz
No. You can run kernels 5.6 and beyond on 19.x. You need download them here and install them manually:

https://kernel.ubuntu.com/~kernel-ppa/mainline/

It's not supported officially, but I have had success on it. I also have an AMD card and kernel 5.7 really helped.

BTW Mint 20.1 might have the Ubuntu 2010 kernel available. But that's December 2020 you are looking at.
Image

Fizz
Level 4
Level 4
Posts: 200
Joined: Mon Jul 15, 2019 8:17 am

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by Fizz »

mr_raider wrote:
Sat Jul 18, 2020 12:48 pm
BTW Mint 20.1 might have the Ubuntu 2010 kernel available. But that's December 2020 you are looking at.
So Mint 20 (Ulyana) is based on Ubuntu 20.04, while Mint 21 20.1 will be based on Ubuntu 20.10? I don't know what the difference between those two is. Is there a big edge with 20.10?

-Fizz
Last edited by Fizz on Sat Jul 18, 2020 5:24 pm, edited 1 time in total.

User avatar
trytip
Level 13
Level 13
Posts: 4782
Joined: Tue Jul 05, 2016 1:20 pm

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by trytip »

Fizz wrote:
Sat Jul 18, 2020 1:06 pm
mr_raider wrote:
Sat Jul 18, 2020 12:48 pm
BTW Mint 20.1 might have the Ubuntu 2010 kernel available. But that's December 2020 you are looking at.
So Mint 20 (Ulyana) is based on Ubuntu 20.04, while Mint 21 will be based on Ubuntu 20.10? I don't know what the difference between those two is. Is there a big edge with 20.10?

-Fizz
no way mint team will base their distribution on anything .10 which is EOL after 6 months.
to the OP, i see no hardware information or logs or any useful data that can be used to solve your issues.
what are your boot parameters? cat /etc/default/grub
Image

mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by mr_raider »

Fizz wrote:
Sat Jul 18, 2020 1:06 pm
mr_raider wrote:
Sat Jul 18, 2020 12:48 pm
BTW Mint 20.1 might have the Ubuntu 2010 kernel available. But that's December 2020 you are looking at.
So Mint 20 (Ulyana) is based on Ubuntu 20.04, while Mint 21 20.1 will be based on Ubuntu 20.10? I don't know what the difference between those two is. Is there a big edge with 20.10?

-Fizz
No. Mint does not base on non LTS Ubuntu. However when Ubuntu releases a non lts point release it has a new kernel. They usually backport it for the last LTS which is called an HWE (hardware enablement stack). At that point Mint should have it in the repo. That's why 19 was released with 4.15 and 19.3 was released with 5.0.
Image

Fizz
Level 4
Level 4
Posts: 200
Joined: Mon Jul 15, 2019 8:17 am

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by Fizz »

mr_raider wrote:
Sat Jul 18, 2020 6:45 pm
Fizz wrote:
Sat Jul 18, 2020 1:06 pm
So Mint 20 (Ulyana) is based on Ubuntu 20.04, while Mint 21 20.1 will be based on Ubuntu 20.10? I don't know what the difference between those two is. Is there a big edge with 20.10?
No. Mint does not base on non LTS Ubuntu. However when Ubuntu releases a non lts point release it has a new kernel. They usually backport it for the last LTS which is called an HWE (hardware enablement stack). At that point Mint should have it in the repo. That's why 19 was released with 4.15 and 19.3 was released with 5.0.
Hmmm... ok i got confused then... when you said...
mr_raider wrote:
Sat Jul 18, 2020 12:48 pm
BTW Mint 20.1 might have the Ubuntu 2010 kernel available. But that's December 2020 you are looking at.
... i thought you meant that 20.1 was going to be based on Ubuntu 20.10. I'm not familiar enough to know which versions are the LTS, so... :)

For my purposes, the main thing is to get it working fully under a new Ryzen 5 4500U (hopefully within the next month), whether that's best done with Mint 20 or 19.3, i'm not sure. I'm leaning towards 20, just so i know there will eventually be support for later kernels, even if i use an unsupported kernel through the end of the new year.

-Fizz

mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by mr_raider »

Go with 20. Newer mesa, future kernel updates.
Image

TallStranger
Level 2
Level 2
Posts: 64
Joined: Sun Jan 05, 2020 2:56 pm

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by TallStranger »

Fizz wrote:
Sat Jul 18, 2020 9:06 pm
For my purposes, the main thing is to get it working fully under a new Ryzen 5 4500U (hopefully within the next month), whether that's best done with Mint 20
Fizz, I now have it working with 20.0 and the 5.4.42 kernel. But I am not happy with it as Suspend will still send it loony and take half an hour to rebuild with TimeShift plus manually installing the AMD drivers -- again.

The basic Mint/Mesa drivers do not see the external HDMI-monitor and I always get the "no video acceleration" warning. Other than that it works OK with just the LCD when I uninstall the AMD set. But, I use this laptop mostly in a desktop environment, so I need that external HDMI.

I am about to disable Secure Boot and retry mr_raider's install process of 5.7. Just thought I take a look in here to see if anyone had success with 5.4 and AMD, but seems we are at the pointy end of this.

I will report back shortly. Well, hopefully! :D
Mint 20.0+Cinnamon - Lenovo IdeaPad Flex 5, Ryzen 5 4500, 16GB, 500GB, Kernel 5.6/5.7/5.8 is a MUST for an external Monitor
Mint 19.3+Cinnamon - Acer i7-3rd-gen, 8GB, 512GB-SSD

mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by mr_raider »

Some reading for ryzen 4500u users:


https://www.phoronix.com/scan.php?page= ... inux&num=1
Image

TallStranger
Level 2
Level 2
Posts: 64
Joined: Sun Jan 05, 2020 2:56 pm

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by TallStranger »

Well, it looks like it might finally be working. I disabled Secure Boot and also changed the Boot Sequence to "Legacy."

I installed kernel 5.7.latest-whatever from the 5.7 group with mr_raider's manual .deb method in an earlier post. I did not need to download or install any AMD-GPU drivers. But, I did get a lot (around 20) of "possible missing firmware amdgpu ... " errors, but it all worked fine with the external HDMI.

I had some problems with a Logitech wireless mouse as it would stall frequently for ten+ seconds at a time. I swapped that out for a corded version and it seemed OK, but I need the wireless when traveling, so I then downloaded the 4 kernel files for 5.6.latest.whatever. I used the Mint-Updater/View/Kernel and deleted 5.7. Then I installed 5.6 again with mr_raider's method in earlier post.

So far, so good.

Thanks to all and to mr_raider especially.
Mint 20.0+Cinnamon - Lenovo IdeaPad Flex 5, Ryzen 5 4500, 16GB, 500GB, Kernel 5.6/5.7/5.8 is a MUST for an external Monitor
Mint 19.3+Cinnamon - Acer i7-3rd-gen, 8GB, 512GB-SSD

mr_raider
Level 7
Level 7
Posts: 1756
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: [19.3] Lenovo Flex 5 no video acceleration

Post by mr_raider »

Hang on tight. AMD is good with kernel patches. By OCtober I think the 4500u/4700u will be flying in Linux. Might finally replace my 4 year old laptop next year with one them.
Image

Post Reply

Return to “Hardware Support”