ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Chrome OS Trogdor Devices - Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630 - Lenovo ThinkPad X13s - and various other snapdragon laptops) - https://oftc.irclog.whitequark.org/aarch64-laptops
krei-se has quit [Ping timeout: 480 seconds]
krei-se has joined #aarch64-laptops
hexdump01 has joined #aarch64-laptops
clee_ is now known as clee
gwolf has quit [Ping timeout: 480 seconds]
gwolf has joined #aarch64-laptops
jhovold has joined #aarch64-laptops
<pstef>
update-initramfs on my Debian Trixie points out that I'm missing firmware: a640_gmu.bin a630_zap.mbn a619_gmu.bin a615_zap.mbn a540_gpmu.fw2 a530_zap.b02 a530_zap.b01 a530_zap.b00
<pstef>
not sure what to think about it because it looks like it's not missing anything
<JensGlathe[m]>
those are older ones, should be no issue
<JosDehaes[m]>
Yes, I have the same, I think it's just not working yet
<pundir>
JensGlathe[m]: how do I get started with your Ubuntu_Desktop_24.04_x1e_6.11rc_v5.img.xz build on my Yoga Slim 7x? I have not dealt with Windows machines since early 2000s, so I'd need a bit of hand holding.
<kuruczgy[m]>
pundir: Like, you need help with booting the image?
<pundir>
kuruczgy[m]: yes please. does it boot like an usual x86 live disk image (or we are not there yet?)
<kuruczgy[m]>
(You can ignore all the stuff about NixOS)
<kuruczgy[m]>
But basically: you need to turn off bitlocker, disable secureboot, then just boot the USB by pressing F2 during boot and selecting it
<kuruczgy[m]>
Feel free to ask questions if something is unclear
<pundir>
nice! that would definitely help. I'll try that today
<kuruczgy[m]>
(In theory you could also just wipe Windows and not care about it, but I would not recommend that any time in the near future, until Linux support is super stable.)
<JensGlathe[m]>
this. Occasionally, you do need some bits from the Windows side, there is even a script on the image (fetch_sc8280xp_fw.sh) that can do this. Should be a good template for your own machine specific cariant, or (Jehova!) a generic version.
<JensGlathe[m]>
Oh and the image itself is bootable from USB. It has its own grub/efi bootloader and a few dtbs wied up, no need to even touch the local disk. Disabling secure boot / bitlocker is a sensible decision, though. You avoid a lot of pain this way.
<JensGlathe[m]>
Hopefully I can add the HP Omnibook X14 to the mix soon
<JensGlathe[m]>
s/wied/wired/
enyalios has quit [Ping timeout: 480 seconds]
enyalios has joined #aarch64-laptops
DJ_Mulder has joined #aarch64-laptops
<pundir>
JensGlathe[m] @kuruczgy[m] I plan to resize the Window's [C:] partition and install Ubuntu_Desktop_24.04_x1e_6.11rc_v5.img.xz on the new partition from the live disk. What are the caveats (if any)?
<JensGlathe[m]>
The image is already 2 partitions. One of it is also ESP. The SSD will also have an ESP, and ther should only be one used. So, it boils down to only copying over the rootfs partition, and doing some rewiring for the already on SSD ESP. Including re-installing grub. I would recommend to do the boot from USB (SSD) first. If that works well enough, you can run sudo update-grub and it will add the local Windows install to the boot
<JensGlathe[m]>
menu (and kill some text maybe, but that's nothing functional). I'm sure I've described ways to do the install on SSD with commands in the discussions already, need to fo a Wiki section for it.
<JensGlathe[m]>
As a precaution I would recommend to have a backup /recovery image / separate SSD to try these things with some fallback/restore option.
<kuruczgy[m]>
(I am not using the Ubuntu image so my setup might be less relevant for you, but I am still adding it as a data point.)
<kuruczgy[m]>
Here is my partition layout:
<kuruczgy[m]>
I have two ESPs and I moved around some of the windows partitions with gparted
alfredo has quit [Ping timeout: 480 seconds]
<kuruczgy[m]>
I also managed to mess up Windows once and had to download Lenovo's recovery image (needs windows, talk about a chicken-and-egg problem), it's a pain but it managed to reinstall a working Windows.
<JensGlathe[m]>
Nice. As long as you don't change UUIDs of the partition or filesystem Windows may still be able to boot. My experience is to rather use the ESP from Windows than risking Windows not booting (as long as you require it)
<travmurav[m]>
fwiw I also added second esp + manually added a boot entry for grub/sd-boot on it via efi shell bcfg
<travmurav[m]>
So I get both windows boot manager or sd-boot in uefi boot menu, with linux being the default in my case
<travmurav[m]>
But if firmware uses esp for efi capsules, it can break with two esp on the same disk
<travmurav[m]>
As in firmware updates via windows can break
<JensGlathe[m]>
Hmm sound is odd since 6.11
<JensGlathe[m]>
oh its now broken on 6.10 too, I would say alsa-ucm has a problem
pstef has quit [Read error: Connection reset by peer]
pstef has joined #aarch64-laptops
alpernebbi has quit []
DJ_Mulder has quit [Remote host closed the connection]
<kuruczgy[m]>
<pundir> "Jens Glathe: Ubuntu_Desktop_24.0..." <- Why does it say "Hardware name: Windows Dev Kit ..."? It should say "Lenovo Yoga Slim 7x ..." or "LENOVO 83ED ...". To me it seems like it doesn't have the right device tree.
<FarchordSteveCossette[m]>
<JensGlathe[m]> "@pundir @kuruczgy I would add..." <- Love this btw. The USB-C issue on that last paragraph is my BANE!
<kuruczgy[m]>
<anonymix007[m]> "Is something wrong with system-..." <- Hm are you sure the kernel image is called "vmlinux"? On arm64 it's usually called "Image".
<anonymix007[m]>
Aren't these "EFI stub" messages from the kernel itself already?
<kuruczgy[m]>
<anonymix007[m]> "Aren't these "EFI stub" messages..." <- Yeah, good point actually, they are. Then I have no idea why the EFI stub is failing, haven't seen this yet...
<jhovold>
kuruczgy[m]: please avoid using matrix quoting when replying here
alfredo has quit [Ping timeout: 480 seconds]
<JensGlathe[m]>
@pundir ouch something with the GIC. But yeah, you need to choose the right boot entry otherwise bad things happen. Will check the wiring again.
<JensGlathe[m]>
I can vaguely remember that there was something with gic, but that early...
<travmurav[m]>
I mean you will obviously get a system error if you try to talk to gic using 8c3 address while running on x1e
<travmurav[m]>
<del>if only there was a way for the image to pick correct dtb for you automatically</del>
<TSIN[m]>
wrong kernel?
<TSIN[m]>
* wrong kernel/dtb?
<JensGlathe[m]>
travmurav: was focused on the bsod issue, didn't want to upset things more. Yes dtbloader should be used. That's what it's there for. To be fair you would also need an initramfs specific to the dtb
<travmurav[m]>
can you not just include everything for the installer though?
<JensGlathe[m]>
you mean, like on the ISO?
<travmurav[m]>
in the said initramfs
<travmurav[m]>
as in
<travmurav[m]>
include a superset of "needed for x1e" + "needed for 8c3"
<JensGlathe[m]>
yes, you would need 2 initramfs as it seems. the modules lists need to be different to not get into trouble later
<travmurav[m]>
well something is already horribly wrong if making some extra unused modules available causes trouble I'd say...
<steev>
JensGlathe[m]: audio is broken on 6.10/6.11 on what? my x13s is doing just fine?
<JensGlathe[m]>
x13s. sounds odd, is good on Windows.
<steev>
too fast/too slow. tinny...
<JensGlathe[m]>
tinny yes, like pieces ofthe waveform missing
<JensGlathe[m]>
travmurav: I agree.
<steev>
that's not new, we don't have the full range
<JensGlathe[m]>
it sounds horrible
<steev>
patches welcome :)
<steev>
from memory, we artificially limit the power so that the speakers can't be broken. maybe we need to write some profiles for speakersafetyd
<anonymix007[m]>
I have no idea why, but it just booted with UKI. Literally everything is the same, just packaged into one .efi file. This must be systemd-boot issue
<jhovold>
JensGlathe[m]: have you recently switched to pipewire? audio works just fine on the x13s with pulseaudio
<jhovold>
there's a workaround for playback, but capture is really broken
<jhovold>
should be the same problem with all qcom socs
<anonymix007[m]>
Is brightness control supposed to work on x1e already?
<robclark>
works on my yoga 7x
<konradybcio>
anonymix007: such things are per device matters
<konradybcio>
although they tend to be identical on 95% of the devices..
<anonymix007[m]>
Well, it doesn't work on T14s
<robclark>
I've not looked closely but don't see anything in 7x dts for backlight so I guess it is probably controlled via dp-aux
<anonymix007[m]>
panel-simple-dp-aux complains that the BOE 0x0b66 panel is unknown. Could this be related?
hightower2 has quit [Ping timeout: 480 seconds]
<robclark>
I don't think so.. if it doesn't know the panel it just uses conservative (long) delays in the powerup sequence
<robclark>
fixing that might shave a few ms off of boot time
<HdkR>
If backlight controls don't work on the t14s when I get mine then I'll be complaining, I don't want to burn in that OLED :P
<\[m]>
you bought one?
<\[m]>
which cpu?
<FarchordSteveCossette[m]>
The oled on those x1es are goooorgeous
<HdkR>
\[m]: The only CPU available, X1E-78-100
<FarchordSteveCossette[m]>
tbf there are others. But not nearly as much choice in laptops though
<HdkR>
If the Snapdragon dev kit ever becomes a real product then I'll use that for most testing anyway
<kuruczgy[m]>
> please avoid using matrix quoting when replying here
<kuruczgy[m]>
(It might be nice to document this in the channel topic, instead of having to explain it to every new member. Maybe if a generic "matrix bridge etiquette" document exists somewhere linking to that would be enough.)
<kuruczgy[m]>
jhovold: Sorry, I thought that they just did not render on IRC, but now I checked and apparently the bridge is appending the quote to the beginning of the message, I can see how that makes the reading experience worse...
<kuruczgy[m]>
* > please avoid using matrix quoting when replying here
<kuruczgy[m]>
jhovold: Sorry, I thought that they just did not render on IRC, but now I checked and apparently the bridge is appending the quote to the beginning of the message, I can see how that makes the reading experience worse...
<kuruczgy[m]>
(It might be nice to document this in the channel topic, instead of having to explain it to every new member. Maybe if a generic "matrix bridge etiquette" document exists somewhere linking to that would be enough.)
<kuruczgy[m]>
And now the matrix editing feature apparently duplicated my message on IRC... okay, I definitely have to pay more attention to how stuff renders on IRC
<robclark>
HdkR: did you get the t14s with OLED? Would be nice to get ACPI dump from that. My suspicion is that we need different dtb for OLED vs non-OLED t14s. (Would like an edid-decode)
<robclark>
if the OLED is using the same or similar samsung panel as the 7x it shouldn't be so hard to get working (and I guess backlight controls will "just work")
<HdkR>
robclark: Yea, got the one with the 120hz oled
<HdkR>
Ships sometime next week
<robclark>
ohh, mine is only a measly 90hz
<robclark>
still, quite nice looking
<HdkR>
The 90hz on the 7x is pretty nice as well
<kuruczgy[m]>
anonymix007: I have the same issue, please definitely post about it if you make progress.
<kuruczgy[m]>
(Also mine isn't sleeping properly, according to the kernel logs at least, you might also want to check whether yours really goes to sleep and it's not just the screen going black.)
<anonymix007[m]>
Well, my ssh session appears to be suspended when the lid is closed. Here's dmesg (after resume): https://katb.in/yabeteronef
<anonymix007[m]>
Funnily enough, the screen comes up (for kernel logs) back while being rebooted.
hightower2 has joined #aarch64-laptops
<kuruczgy[m]>
<anonymix007[m]> "Well, my ssh session appears..." <- Hm, but in the log timings there is only a 1ms gap between the CPUs going to sleep and then waking.
<kuruczgy[m]>
But if your SSH session gets suspended until you open the lid, that must mean that the system IS sleeping, but the clock does not run during sleep?
<kuruczgy[m]>
I have never seen something like that before. But this could mean that sleeping IS working after all for me too, I need to check using SSH too I guess.
<robclark>
there are I think still several reasons why it isn't hitting lowest power states.. and depending on dts the panel regulator might not be switching off (see `arm64: dts: qcom: x1e80100-yoga: Update panel bindings` .. if vreg_edp_3p3 is regulator-always-on for your laptop then panel is probably not switching off completely
<kuruczgy[m]>
(Also FYI I can bring the screen back just by switching to another VT and back.)
<anonymix007[m]>
Isn't this clock thing universal? AFAIR it is the same on x86 as well
<kuruczgy[m]>
Just checked on my x86 laptop, the (kernel log) clock does seem to advance during sleep
<JensGlathe[m]>
jhovold: No haven't changed anything re audio
<jhovold>
JensGlathe[m]: but are you using pipewire? What you describe sounds like the pipewire issue
<JensGlathe[m]>
it is pipewire as per default of Ubuntu
<jhovold>
perhaps some setting changed when it was updated
<JensGlathe[m]>
re sc8280xp vs x1e driver clash: sounds like it may be better to build separate images
<robclark>
pipewire is also what fedora uses.. not really sure what the pipewire vs audio issue is, but it certainly would be nice to see it fixed
<robclark>
what is the driver clash?
<jhovold>
playback is broken for some users, depends on quantum settings
<jhovold>
capture is broken for everyone, sounds like a robot with hiccups
<robclark>
hmm, on x13s iirc I was still seeing "Dummy Output" in gnome sound settings (although alsactl was showing something sensible)
<jhovold>
there is no known workaround for the capture issue, so this would need to be fixed before we can do video conferencing
<jhovold>
(video in firefox depends on pipewire)
<robclark>
hmm, ok, playback is what I was more interested (only for selfish reasons, VC is all on corp devices)
<jhovold>
camera I meant
<jhovold>
not sure if distro's use different default settings, iirc debian even documented that you may need to fiddle with the quantum settings if you want to use pipewire
<jhovold>
the capture issue appears to be qcom specific though
<robclark>
hmm, "fiddle with settings I'm not familiar with" isn't a great UX
<jhovold>
not the same description of the issue, but the "fix" was
<steev>
maybe we need something like 90219f1bd273 "ASoC: SOF: intel: hda: Clean up link DMA for IPC3 during stop" - no real idea, just did a search for other robotic stuff
<steev>
but the good news is, the robotic stuff isn't only us on pipewire
<JensGlathe[m]>
The driver clash is sc8280xp drivers and a x1e driver in /etc/initramfs-tools/modules. On Volterra it loads tcsrcc_x1e80100 - leading to my aforementioned bsod in my tests, despite camcc_sc8280xp being blacklisted. Although pundir might have chosen the first entry (which is for Windows Dev Kit) it would be an issue even with dtbload.
<robclark>
hmm, even if you modprobe the drivers, they shouldn't be binding since wrong compatible
alpernebbi has joined #aarch64-laptops
<JensGlathe[m]>
Despite my esoteric bsod issue on Volterra (who has that hw anyway) I decided to give it a go. as anybody booted it succesfully?
<steev>
booted what
<JensGlathe[m]>
on x1e hardware. I tested it on Volterra and X13s
<robclark>
I think we kinda want to figure out why x1e modules cause problems on sc8280xp.. that is _supposed_ to work (and I don't see any obvious reason that it shouldn't work)
<JensGlathe[m]>
that, too
<steev>
unless it's somehow matching on a generic tcsr
<JensGlathe[m]>
I'm afraid this may be the reason. Need to check