Ubuntu 24.10 Concept ♥️ Snapdragon X Elite

The top one is missing. Im just now putting a few additional patches (this one included) onto my branch, will be tagged jg/ubuntu-qcom-x1e-6.13-rc6 if all goes well.

Properties:

  • qcom-x1e config and (mostly) build system
  • based on @jhovold’s wip/x1e80100-6.13-rc6 tree
  • merged qcom/for-next tree
  • current tested dtb patches for Windows Dev Kit 2023, HP Omnibook X14, and Snapdragon Dev Kit
  • best effort dtb patches for Thinkpad T14s
  • prototype dtb for Lenovo Thinkbook 16 G7, with separate purwa.dtsi, all available x1p42100 patches (doesn’t boot up fully yet)
  • a few more patches re x1e80100 usb2

For x1p42100, there is probably some crucial part still missing, wouldn’t expect it to work yet.

3 Likes

Not all went well, I guess, but well enough. I had to un-merge the qcom/for-next tree, it produced sync pending / not ready errors with the eUSB2 repeaters on the HP X14. The rest is as listed, the packages are for download here. The DP Altmode support is getting better - I have working type-c direct to display, type-c to dp cable, type-c to HDMI adapter support now, with some quirks.
The source is here.

Anyone else having trouble using external displays? I’ve read some comments where it seems that it worked but I can’t say that for me. Not a single display port is detected.

Are there any settings I could make? I am running a T14s 32gb oled.

After installation I, followed this article to encrypt my whole rootfs including /boot: https://medium.com/bobble-engineering/ubuntu-root-partition-encryption-using-luks-and-dm-crypt-f45130373e68

With this approach GRUB asks for the password to unlock the rootfs including /boot. Linux uses a key file for decryption from initramfs, so only one password is needed at boot. The only disadvantage is that it takes GRUB ages decrypting.

Sorry, I broke that just before the holidays. Am working on a fix. We need to include a few more things in the initrd. Unfortunately I think we might need msm which means we also pull in firmware and that makes things a bit more complicated, but afaics that is also the case on the x13s.

I have uploaded fixes that should fix FDE unlocking, please let me know if things are still broken after updating your packages.

1 Like

FDE unlocking all working again :slight_smile:

1 Like

With the latest update I now have 4K 60Hz using USB-C DP on my Dell XPS! (Up from 30hz on previous kernels/DTBs) So I actually now can use my external monitor properly! Great to see the progress.

I do have weird blue screens on my laptop screen sometimes when I disconnect the USB-C. Only a hard reset of the laptop works then. Maybe if I have time I’ll lookup some logs to see if the driver is reporting some issue, and report it upstream.

Also, the only way to get my wanted setup (only external monitor, and laptop screen off) is by booting laptop to Gnome, then select ‘Suspend’ in the power menu, immediately close the laptop screen, then immediately connect the USB-C monitor, and then 50% of the time I do get my monitor running, and the laptop screen is then not active anymore, so I don’t go ‘offscreen’ from my monitor to my laptop area. Can’t find a way to just disable it in Gnome or auto disable the laptop screen when closing lid. But hey, this is progress, cause now I can at least start setup my workflow instead of using my desktop Ubuntu machine!

1 Like

Did anyone managed to boot on the Surface Pro 11? If so, can you tell me which changes to do in order to boot? I really need it, thank you!

1 Like

How did you guys actually get the installer images working? I finally got this booted on my brand new Yoga Slim 7x… after a few attempts to boot I finally got into the desktop, fixed the display settings issue, but after maybe 20 or so attempts, I’ve never had the installer actually let me install anything. It always crashes at a random step. Sometimes it’s step 3 when it goes to detect the keyboard, sometimes it’s after I’ve selected my timezone, sometimes it’s on launch. But the installer app itself seems to be totally broken.

Edit:
Popping open the terminal and using “sudo ubuntu-bug ubuntu-desktop-bootstrap” and digging through the logs that were displaying… I noticed there were a lot of socket-related issues, even though all of the connections being made were pointing at localhost. I completely disabled wifi and bluetooth (put the device in airplane mode), and I was able to get all of the way through setup the first try.

@ryaninbinary this is definitely unexpected and not something I have heard of before. It might make sense to try different USB ports and drives just in case. Feel free to also open a bug at Bugs : ubuntu-concept with your logs attached.

Hello, did you manage to get around with this?
I’m having the same problem in an Archlinux install

I have upgraded the system, and I can confirm that I get the regular Ubuntu loading screen after grub and subsequently also the disk-decryption works. Since I set up a key file that is stored in the initrd (as a temporary thing), this works even without user input.

AND in about 10% of my boots, the system actually boots up normally into the gnome login-screen.

However, in the other 90%, it shows a blue screen after decryption and then reboots. I could not yet figure out a pattern, of when/why it passes and when/why not. Anything I can do to help debug this?

edit: booting in safe mode never leads to a regular loading screen (not even with text) and also not blue screen; safe mode always results in the old behaviour (black screen and then reboot).

1 Like

Thanks for confirming the prompt works!

However, in the other 90%, it shows a blue screen after decryption and then reboots. I could not yet figure out a pattern, of when/why it passes and when/why not. Anything I can do to help debug this?

Is this a 64GB RAM machine? Could you try adding GRUB_BADRAM=0x8800000000,0xf800000000 to /etc/default/grub and then run update-grub and see if that fixes the blue screen?

edit: booting in safe mode never leads to a regular loading screen (not even with text) and also not blue screen; safe mode always results in the old behaviour (black screen and then reboot).

Haven’t ever tried that. I’ll have to check what safe mode does differently.

1 Like

It is indeed!

Adding that to the file (but with quotes like the file suggested) and running update-grub instantly blue-screened the device :see_no_evil:
However, I managed to boot into the system again, and run it successfully, and now my boot-success-rate went from 10% to around 50%, so I think we are onto something :laughing:

Does this blacklist some regions of my RAM? Maybe we need to blacklist more?

Does this blacklist some regions of my RAM? Maybe we need to blacklist more?

Yes, there is a firmware bug on 64GB devices causing those blue screens and removing the upper 32GB of RAM is the only known working fix of at this point. Maybe I got the mask wrong, try adding cutmem 0x8800000000 0x8fffffffff at the start of your /boot/grub/grub.cfg manually, that is what we do in our installer to make things work.

1 Like

Thank you so much for taking the time, really appreciated!

Oh, boy, I hope this gets fixed at some point.

cutmem seems to let the system boot reliably! Thank you!

This will get overwritten on the next grub-update, correct? What’s the difference between cutmem and badram? Would badram work the hex values you provided for cutmem?

Anyway, really happy to be able to boot the system properly for the first time :tada:

This will get overwritten on the next grub-update, correct? What’s the difference between cutmem and badram? Would badram work the hex values you provided for cutmem?

So in theory they should do the same thing as I understand it, only one takes a range and the other takes an address + mask. I’ll have to check why that didn’t work as expected.

I installed Ubuntu successfully on my Omnibook. I did however completely overwrite the preinstalled Windows installation. Is there really no other way than reinstalling Windows, extracting the firmware files and copying them in place under Linux? Anyone willing to share their files with me? Can’t see why copyright would be a problem since the files are delivered with the computer and since they surely eventually will be made downloadable for Linux users as well.

BTW the Swedish keyboard layout is wrong (unless that also would be solved with the right firmware files in place).

1 Like

I did however completely overwrite the preinstalled Windows installation

That should depend on which option you chose in the installer. There is a dual boot and a replace Windows with Ubuntu option.

Is there really no other way than reinstalling Windows, extracting the firmware files and copying them in place under Linux

It looks like you might be lucky and HP actually distributes them on the homepage. It might be possible to extract the firmware using innoextract or similar. See: https://support.hp.com/se-sv/drivers/hp-omnibook-x-14-inch-laptop-ai-pc-14-fe0000/2102217282

Can’t see why copyright would be a problem since the files are delivered with the computer and since they surely eventually will be made downloadable for Linux users as well.

Because things being Shipped with the computer doesn’t mean we are allowed to redistribute them. Windows is delivered preinstalled on the Computer, that doesn’t make it legal for us to redistribute it.

EDIT: So I took a quick look, sp155535.exe should contain everything you need and can be unpacked with 7z e sp155535.exe. qcom-firmware-extract - ~ubuntu-concept/ubuntu/+source/qcom-firmware-extract - [no description] tells you which files you need and where they go. We could update qcom-firmware-extract to download the exe and unpack it automatically in case no local windows installation exists.