Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsUbuntu
All Forum Topics
Options

343 Posts

03-06-2021

Germany

187 Signins

2065 Page Views

  • Posts: 343
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2065
  • Message 21 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-04-30, 12:30 PM

@ osnix wrote:

@ jaeyeon.kim wrote:

Thanks, Mark and osnixBut I' afraid I' not familiar with compile kernel manually.Could you please explain or give some nice manual on how to build kernel from '' source code ?

 

Don' worry, I' build a live iso ( Not ubuntu sry ), you just burn it to a USB stick and boot. 

But first I need to figure what commits I have to backport.

 

I stripped down my dev iso, however, it is still 1.5G.

If you want to test the boot with 5.12+patch(es) posted in this thread,

you can download the iso from this location:

 

https://crazy.dev.frugalware.org/lenovo/live-boot-test/

 

Please note, there is no bootsplash, you may see some black screen from

the boot logo to the desktop, just give it a bit of time :-).

 

Gabriel

Reply
Options

3 Posts

04-27-2021

United States of America

5 Signins

25 Page Views

  • Posts: 3
  • Registered: ‎04-27-2021
  • Location: United States of America
  • Views: 25
  • Message 22 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-01, 5:37 AM
Amazing it seems to work, thank you!! I was able to boot *without* setting nomodeset, i915 was initalized based on dmesg logs, and my backlight is now working, so things look very promising. Would it be possible to give instructions for how you applied the patch and built the iso? I'd like to try it on ubuntu. You da bomb. And Mark too. Thank you.
Reply
Options

343 Posts

03-06-2021

Germany

187 Signins

2065 Page Views

  • Posts: 343
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2065
  • Message 23 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-01, 9:03 AM

@ megamegabits wrote:

Amazing it seems to work, thank you!! I was able to boot *without* setting nomodeset, i915 was initalized based on dmesg logs, and my backlight is now working, so things look very promising.Would it be possible to give instructions for how you applied the patch and built the iso? I' like to try it on ubuntu.You da bomb. And Mark too. Thank you.

 

Unfortunately, I have no idea what would be the Ubuntu way to rebuild their kernel as a deb.

Same story for a Ubuntu iso.

 

I found this in the Ubuntu wiki maybe you can follow the steps and rebuild the kernel that way.

 

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

 

The patch I used against 5.12 would be this:

 

https://crazy.dev.frugalware.org/Intel-i915-backport-MSO-fixes-to-kernel-5.12.patch

 

I believe a good idea would be to open a bug report to Ubuntu people about the issue,

and point to this thread and the patch.

Reply
Options

3 Posts

05-01-2021

Germany

2 Signins

10 Page Views

  • Posts: 3
  • Registered: ‎05-01-2021
  • Location: Germany
  • Views: 10
  • Message 24 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-01, 12:01 PM

Wait, just to confirm: you would say that there's a decent chance that when i compile my own 5.12 for Ubuntu and apply that single patch you post, there's decent chance it works? I'll try and post if it works

Reply
Options

343 Posts

03-06-2021

Germany

187 Signins

2065 Page Views

  • Posts: 343
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2065
  • Message 25 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-01, 12:16 PM

@ simonheb wrote:

Wait, just to confirm: you would say that there' a decent chance that when i compile my own 5.12 for Ubuntu and apply that single patch you post, there' decent chance it works? I' try and post if it works?

 

Yes, there is. But I would suggest adding the patch on top of the Ubuntu kernel patches.

They always have some custom patches which may be needed in the userland.

Reply
Options

3 Posts

05-01-2021

Germany

2 Signins

10 Page Views

  • Posts: 3
  • Registered: ‎05-01-2021
  • Location: Germany
  • Views: 10
  • Message 26 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-02, 1:15 AM

Update, in case anyone is trying the same:

I applied the patch you linked to the 5.12 source from xanmod (https://github.com/xanmod/linux) sadly no success. (Eventhough your frugalware iso worked well for me)

Reply
Options

343 Posts

03-06-2021

Germany

187 Signins

2065 Page Views

  • Posts: 343
  • Registered: ‎03-06-2021
  • Location: Germany
  • Views: 2065
  • Message 27 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-02, 6:23 AM

@ simonheb wrote:

Update, in case anyone is trying the same:

I applied the patch you linked to the 5.12 source from xanmod (https://github.com/xanmod/linux) sadly no success. (Eventhough your frugalware iso worked well for me)

 

Maybe there is a kernel config difference too, I'll try to find out.

 

You can ofc use my config ofc if you wish, just let me know.

 

Reply
Options

3 Posts

05-01-2021

Germany

2 Signins

10 Page Views

  • Posts: 3
  • Registered: ‎05-01-2021
  • Location: Germany
  • Views: 10
  • Message 28 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-02, 11:03 AM

Sorry. My fault. It was working all along, i was just tired an booted into the wrong kernel.

 

I wrote my steps down, in case there are other debian/ubuntu/pop!_OS beginners out there who want to try this. After all it was not so difficult:

https://gist.github.com/simonheb/b54b91358c3d7e2960a4f6e13e95ac54

 

I know it worked because inxi -G now shows me this (and because performance is much better)

simon@pop-os:~$ inxi -G
Graphics:
  Device-1: Intel driver: i915 v: kernel 
  Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo 
  Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
  resolution: 2256x1504~60Hz 
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.0.0 

Reply
Options

584 Posts

07-22-2019

Canada

439 Signins

4801 Page Views

  • Posts: 584
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 4801
  • Message 29 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-04, 0:41 AM

Just as a couple of notes:

 

1) I checked and the patches are in the fedora kernel tree so I expect they'll be available as an update soon. I'll see if I can find out when that's likely to happen - but if you're a Fedora user hopefully just an online update will be needed in the not too distant future

 

2) Canonical gave us the golden image for this platform just a couple of days ago but there are issues with it so I can't share it. We'll get an updated image that works and I'm happy to share that once it's passed basic sanity (it's still got to go through our test and energy cert program before it's official). I believe the patches are in the OEM kernel tree - but I haven't had a chance to confirm that 100% yet (it's where I would expect them to be)

 

For other distro's...you'll need them to pick up the patches or wait for 5.13. or build your own kernel. 

 

If you're building your own kernel these are my steps (but there are much better guides online):

 - make sure you have all the packages needed to build the kernel. See your distro for the full list, or figure it out as you hit errors - there's a bunch and it differs between distro's so I'm going to be lazy and leave that piece as an exercise for the reader ;) 

 - git clone  --depth 1 https://github.com/torvalds/linux.git

 - cd linux

 - cp /boot/config -<latest> .defconfig

 - make olddefconfig

 - For debian/ubuntu based I usually do: "make bindeb-pkg" and install the resultant deb package. For  Fedora/RHEL based you can do 'make binrpm-pkg'. (There are alternatives that are faster - this is the easiest way I know of though)

 - Do “grub2-set-default 0” to make your new kernel the default

 - reboot....and cross your fingers, legs, eyes and toes.

 

Mark

 

 

Reply
Options

5 Posts

04-23-2021

Canada

7 Signins

30 Page Views

  • Posts: 5
  • Registered: ‎04-23-2021
  • Location: Canada
  • Views: 30
  • Message 30 of 32

Re:Ubuntu on X1 Titanium Yoga

2021-05-10, 18:04 PM

Thank you very much everyone for helping in this. I confirm that following these instructions I got it to work!

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms