External display on the x13s?
I have Fedora 39 running on my x13s (with some minor tweaks to the grub BLS boot entry) and it has working GPU, sound, battery status, etc. I see the external display port in the DTS, however it's not working for me. I have pd-mapper and qrtr installed. Does anyone have any suggestions for enabling that? dmesg doesn't give any useful information.
Brian
Quoted 9 lines · Brian Masney
I have Fedora 39 running on my x13s (with some minor tweaks to the grub BLS boot entry) and it has working GPU, sound, battery status, etc. I see the external display port in the DTS, however it's not working for me. I have pd-mapper and qrtr installed. Does anyone have any suggestions for enabling that? dmesg doesn't give any useful information.
Brian
Run gnome and run the display @ < 2k
---
bod
Quoted 8 lines · Bryan O'Donoghue
Quoted 7 lines · Brian Masney
I have Fedora 39 running on my x13s (with some minor tweaks to the grub BLS boot entry) and it has working GPU, sound, battery status, etc. I see the external display port in the DTS, however it's not working for me. I have pd-mapper and qrtr installed. Does anyone have any suggestions for enabling that? dmesg doesn't give any useful information.
Quoted 7 lines
Quoted 2 lines
Brian
Run gnome and run the display @ < 2k
---
bod
<= 2k
Quoted 8 lines · Bryan O'Donoghue
Quoted 7 lines · Brian Masney
I have Fedora 39 running on my x13s (with some minor tweaks to the grub BLS boot entry) and it has working GPU, sound, battery status, etc. I see the external display port in the DTS, however it's not working for me. I have pd-mapper and qrtr installed. Does anyone have any suggestions for enabling that? dmesg doesn't give any useful information.
Quoted 5 lines
Quoted 2 lines
Brian
Run gnome and run the display @ < 2k
Brian's question makes it seem like he doesn't have any display, your <=2k only relates to the display artifacts that you have, right?
Regards,
Bjorn
Quoted 12 lines · Bjorn Andersson
Quoted 11 lines · Bryan O'Donoghue
Quoted 9 lines · Brian Masney
I have Fedora 39 running on my x13s (with some minor tweaks to the grub BLS boot entry) and it has working GPU, sound, battery status, etc. I see the external display port in the DTS, however it's not working for me. I have pd-mapper and qrtr installed. Does anyone have any suggestions for enabling that? dmesg doesn't give any useful information.
Brian
Quoted 9 lines
Quoted 2 lines
Run gnome and run the display @ < 2k
Brian's question makes it seem like he doesn't have any display, your <=2k only relates to the display artifacts that you have, right?
Regards,
Bjorn
Well its funny you asked.
I had an idea Gnome was working but lxqt was not, testing this a bit I get the second display up if the display port is connected to the port furthest away from the screen, not the port closest to the screen.
Quoted 1 line
2k artifacts persist but
- Gnome
- Gnome Classic
- KDE Plasma
- lxqt
Give me second screen up on Debian sid ~ reliably but only through the port furthest away from the ESC key.
Plugging the cable in and out at the gdm prompt seems to crash gdm.
The best result for me seems to be log in and then connect the cable furthest away from the screen.
I don't think the WM makes a real difference.
---
bod
Quoted 10 lines · Bryan O'Donoghue
Quoted 8 lines · Bjorn Andersson
Quoted 7 lines · Bryan O'Donoghue
Quoted 6 lines · Brian Masney
I have Fedora 39 running on my x13s (with some minor tweaks to the grub BLS boot entry) and it has working GPU, sound, battery status, etc. I see the external display port in the DTS, however it's not working for me. I have pd-mapper and qrtr installed. Does anyone have any suggestions for enabling that? dmesg doesn't give any useful information.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Run gnome and run the display @ < 2k
Brian's question makes it seem like he doesn't have any display, your <=2k only relates to the display artifacts that you have, right?
I had an idea Gnome was working but lxqt was not, testing this a bit I get the second display up if the display port is connected to the port furthest away from the screen, not the port closest to the screen.
Works fine on both ports here so that could also indicate a (configuration) problem with your user space.
The port closes to the screen is the second port ("Unknown20-2", "USB-2" or soon "DP-2"), which may or may not be relevant.
Quoted 1 line
Plugging the cable in and out at the gdm prompt seems to crash gdm.
I don't use Gnome, but that sounds like it could be related to the mutter issue Brian mentioned. Have your verified that you have that fix?
Try booting to a VT console (stop whatever display server you are using) and then plug in the USB connector in order to confirm that the issue is in user space. You should see the console mirrored on your external display.
Johan
Quoted 16 lines · Johan Hovold
Quoted 14 lines · Bryan O'Donoghue
Quoted 13 lines · Bjorn Andersson
Quoted 9 lines · Bryan O'Donoghue
Quoted 6 lines · Brian Masney
I have Fedora 39 running on my x13s (with some minor tweaks to the grub BLS boot entry) and it has working GPU, sound, battery status, etc. I see the external display port in the DTS, however it's not working for me. I have pd-mapper and qrtr installed. Does anyone have any suggestions for enabling that? dmesg doesn't give any useful information.
Run gnome and run the display @ < 2k
Brian's question makes it seem like he doesn't have any display, your <=2k only relates to the display artifacts that you have, right?
Quoted 6 lines
Quoted 3 lines
I had an idea Gnome was working but lxqt was not, testing this a bit I get the second display up if the display port is connected to the port furthest away from the screen, not the port closest to the screen.
Works fine on both ports here so that could also indicate a (configuration) problem with your user space.
Maybe. I've apt update/apt upgrade -y as at ~ 30 minutes ago and I see gnome-shell crashing with the second port -> nearest the screen.
Not the mutter related backtrace though.
kde plasma seems happy with both ports.
sway uses both ports.
Looks like something specific to gnome shell.
gdm doesn't show anything in journalctl but does appear to restart sddm is fine but, then again displays only on the laptop screen.
Quoted 5 lines
The port closes to the screen is the second port ("Unknown20-2", "USB-2" or soon "DP-2"), which may or may not be relevant.
Quoted 1 line
Plugging the cable in and out at the gdm prompt seems to crash gdm.
Quoted 8 lines
I don't use Gnome, but that sounds like it could be related to the mutter issue Brian mentioned. Have your verified that you have that fix?
Try booting to a VT console (stop whatever display server you are using) and then plug in the USB connector in order to confirm that the issue is in user space. You should see the console mirrored on your external display.
Works.
Looks gnome shell specific to me.
Quoted 9 lines · Bryan O'Donoghue
Quoted 4 lines · Johan Hovold
Try booting to a VT console (stop whatever display server you are using) and then plug in the USB connector in order to confirm that the issue is in user space. You should see the console mirrored on your external display.
Works.
Looks gnome shell specific to me.
The VT consoles work for me and mirror the screen as expected.
I did some more digging and this appears to be GNOME shell related and is likely different than the issue that I originally linked to [1]. When I run with GNOME under Wayland, I see this error come through from the XWayland:
Received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for
operation)'.
(Details: serial 315 error_code 2 request_code 140 (RANDR)
minor_code 7)
I have MUTTER_SYNC=1 set in my environment variables, and gdb shows that gnome-shell crashes at [2] since plane_assignment is NULL. I don't have anymore time to dig deeper into this today unfortunately.
[1] https://gitlab.gnome.org/GNOME/mutter/-/issues/2398
[2] https://github.com/GNOME/mutter/blob/main/src/backends/native/meta-kms-crtc.c#L365
Brian
Quoted 15 lines · Brian Masney
On Mon, Nov 06, 2023 at 11:27:55AM +0000, Bryan O'Donoghue wrote:
The VT consoles work for me and mirror the screen as expected.I did some more digging and this appears to be GNOME shell related and is likely different than the issue that I originally linked to [1]. When I run with GNOME under Wayland, I see this error come through from the XWayland:
Received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for
operation)'.
(Details: serial 315error_code2request_code140 (RANDR)
minor_code7)
Quoted 6 lines
I have MUTTER_SYNC=1 set in my environment variables, and gdb shows that gnome-shell crashes at [2] since
plane_assignmentis NULL. I don't have anymore time to dig deeper into this today unfortunately.[1] https://gitlab.gnome.org/GNOME/mutter/-/issues/2398
[2] https://github.com/GNOME/mutter/blob/main/src/backends/native/meta-kms-crtc.c#L365
After digging more through the coredump, it is the same issue mentioned above [1] with mutter. I'm just seeing it happen somewhere else.
Brian
Quoted 7 lines · Brian Masney
I have Fedora 39 running on my x13s (with some minor tweaks to the grub BLS boot entry) and it has working GPU, sound, battery status, etc. I see the external display port in the DTS, however it's not working for me. I have pd-mapper and qrtr installed. Does anyone have any suggestions for enabling that? dmesg doesn't give any useful information.
With the ADSP remoteproc and pd-mapper running, and pd-mapper being able to pick up the json files you should get your power-supply, and you should get your USB Type-C events.
Unless I'm mistaken, there's still some issue with Gnome, but you should be able to validate if the display is detected using "modetest -c". It should present you with a eDP-1, USB-1 and USB-2 (or eDP-1, DP-1, DP-2 now in the future).
For reference, I'm running v6.6 with no modifications and built straight from the upstream defconfig. I just confirmed that I can drive my 4k TV (at 30Hz...) over HDMI with that.
Regards,
Bjorn
Quoted 10 lines · Bjorn Andersson
With the ADSP remoteproc and pd-mapper running, and pd-mapper being able to pick up the json files you should get your power-supply, and you should get your USB Type-C events.
Unless I'm mistaken, there's still some issue with Gnome, but you should be able to validate if the display is detected using "modetest -c". It should present you with a eDP-1, USB-1 and USB-2 (or eDP-1, DP-1, DP-2 now in the future).
Quoted 3 lines
For reference, I'm running v6.6 with no modifications and built straight from the upstream defconfig. I just confirmed that I can drive my 4k TV (at 30Hz...) over HDMI with that.
The issue ended up being my HDMI adapter since it looks like it's thunderbolt. I found a different USB-C to HDMI adapter in my box of cables and it's now detected on the x13s. However, mutter crashes and I believe it's this issue:
https://gitlab.gnome.org/GNOME/mutter/-/issues/2398
To get Fedora 39 on the x13s, I had to take the nvme drive out, put it in a USB caddy, dd the image to the drive using another computer, and modify the grub config. It looks like Fedora's initramfs is missing one or more modules that's needed so that the USB storage is detected. I'm going to look into that as I have free time. I heard from Andrew that there is (or was) an issue on boot up where the USB voltage drops. Is that still an issue?
For the search engines: To get Fedora 39 booting on the x13s
directly dd the image using a different computer as I describe above
Mount the second partition and edit the loader/entries/xxx.conf file on that partition:
Under options, remove 'quiet' and add 'arm64.nopauth clk_ignore_unused pd_ignore_unused'
Add a new line:
devicetree /dtb-6.5.6-300.fc39.aarch64/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb
Put the drive back in the system.
To persist the kernel options once you boot the system, edit /etc/default/grub. Change this line to:
GRUB_CMDLINE_LINUX="arm64.nopauth clk_ignore_unused pd_ignore_unused"
Add a new line GRUB_DEFAULT_DTB=/dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb
Fedora 39 currently has the 6.5.6 kernel and you can upgrade to a 6.6 kernel with:
sudo dnf copr enable @kernel-vanilla/mainline-wo-mergew sudo dnf upgrade 'kernel*'
Brian
Quoted 12 lines · Brian Masney
Quoted 10 lines · Bjorn Andersson
With the ADSP remoteproc and pd-mapper running, and pd-mapper being able to pick up the json files you should get your power-supply, and you should get your USB Type-C events.
Unless I'm mistaken, there's still some issue with Gnome, but you should be able to validate if the display is detected using "modetest -c". It should present you with a eDP-1, USB-1 and USB-2 (or eDP-1, DP-1, DP-2 now in the future).
Quoted 7 lines
Quoted 3 lines
For reference, I'm running v6.6 with no modifications and built straight from the upstream defconfig. I just confirmed that I can drive my 4k TV (at 30Hz...) over HDMI with that.
The issue ended up being my HDMI adapter since it looks like it's thunderbolt. I found a different USB-C to HDMI adapter in my box of cables and it's now detected on the x13s.
Woho!
Quoted 4 lines
However, mutter crashes and
I believe it's this issue:
https://gitlab.gnome.org/GNOME/mutter/-/issues/2398
:(
Quoted 8 lines
To get Fedora 39 on the x13s, I had to take the nvme drive out, put it in a USB caddy, dd the image to the drive using another computer, and modify the grub config. It looks like Fedora's initramfs is missing one or more modules that's needed so that the USB storage is detected. I'm going to look into that as I have free time. I heard from Andrew that there is (or was) an issue on boot up where the USB voltage drops. Is that still an issue?
I've not scoped the cable, or analysed the problem further, but the USB bus is at least re-enumerated when the USB Type-C firmware is loaded by remoteproc.
Quoted 20 lines
For the search engines: To get Fedora 39 booting on the x13s
directly dd the image using a different computer as I describe above
Mount the second partition and edit the
loader/entries/xxx.conffile on that partition:Under options, remove 'quiet' and add 'arm64.nopauth
clk_ignore_unusedpd_ignore_unused'
Add a new line:devicetree /dtb-6.5.6-300.fc39.aarch64/qcom/sc8280xp-lenovo-thinkpad-x13s.dtbPut the drive back in the system.
To persist the kernel options once you boot the system, edit
/etc/default/grub. Change this line to:GRUB_CMDLINE_LINUX="arm64.nopauth
clk_ignore_unusedpd_ignore_unused"
Quoted 8 lines
Add a new line GRUB_DEFAULT_DTB=/dtb/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb
Fedora 39 currently has the 6.5.6 kernel and you can upgrade to a 6.6 kernel with:
sudo dnf copr enable @kernel-vanilla/mainline-wo-mergew sudo dnf upgrade 'kernel*'
Thank you for sharing,
Bjorn