You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I find neither wayfire nor labwc works successfully on Raspberry Pi 5 with VGA666 (VGA over DPI) HAT.
The session starts but the screen continues to display the console FB. I can still type things like Ctrl-Alt-T sudo reboot but can't see any output. Plugging anything into HDMI sockets (which were unplugged at start) gets no signal.
Power off. Disconnect HDMI, connect VGA666 HAT and VGA monitor and reboot.
Workaround:
It displays correctly, with the same hardware, when I use the vc4-kms-dpi-generic overlay (with appropriate timings) instead. This names the connector DPI-1 (connected) instead of VGA-1 (unknown).
Wayland also works correctly with DSI and VEC (including interlaced).
It looks connector_status_unknown may be the culprit. If I modify DRM drivers to force it to connector_status_connected, it works. (I had to change it in several places; I'm not sure which ones are significant.)
The thing is, for a VGA adaptor without DDC (which is the normal configuration for a VGA666 HAT), the status genuinely is unknown.
Yes it appears to be the connector status being "unknown" that is the issue.
The connector is implemented with display-connector.c. As we have no HPD or DDC lines defined for the connector, the status will default to connector_status_unknown for VGA.
Use video=VGA-1:1024x768@60e or video=VGA-1:1024x768@60D in /boot/firmware/cmdline.txt to enable the connector and choose the mode.
I'm slightly bemused that we've got quite a long list of modes up to 1920x1200 for the connector. It must be a default from somewhere in the DRM stack, but it's not the normal one of DMT modes up to 1024x768. (Full list at the bottom of this comment).
Alternatively you should be able to fit an I2C level shifter on GPIOs 0&1 to pins 12 & 15 of the VGA connector, and add the ddc override to vc4-kms-vga666 to read the EDID from the monitor. I do have a hacked VGA666 with wiring for such. Based on my comment in fenlogic/vga666#15 I had it working, but it doesn't work to work for me now to confirm. (Do note that issue for a wiring problem on VGA666)
I did discuss with @cillian64 earlier, and it would be nice if wlroots made connectors in the unknown state available but disabled by default. Doing so would also be of use for Composite as that generally defaults to unknown too. I don't know how feasible that is.
List of modes
~ $ kmsprint -m
Connector 0 (36) VGA-1 (unknown)
0 [email protected] 65.000 1024/24/136/160/- 768/3/6/29/- 60 (60.00) P|D
1 [email protected] 193.250 1920/136/200/336/- 1200/3/6/36/+ 60 (59.88) D
2 [email protected] 154.000 1920/48/32/80/+ 1200/3/6/26/- 60 (59.95) D
3 [email protected] 148.500 1920/88/44/148/- 1080/4/5/36/- 60 (60.00) D
4 [email protected] 162.000 1600/64/192/304/+ 1200/1/3/46/+ 60 (60.00) D
5 [email protected] 146.250 1680/104/176/280/- 1050/3/6/30/+ 60 (59.95) D
6 [email protected] 119.000 1680/48/32/80/+ 1050/3/6/21/- 60 (59.88) D
7 [email protected] 121.750 1400/88/144/232/- 1050/3/4/32/+ 60 (59.98) D
8 [email protected] 101.000 1400/48/32/80/+ 1050/3/4/23/- 60 (59.95) D
9 [email protected] 108.000 1600/24/80/96/+ 900/1/3/96/+ 60 (60.00) D
10 [email protected] 108.000 1280/48/112/248/+ 1024/1/3/38/+ 60 (60.02) D
11 [email protected] 106.500 1440/80/152/232/- 900/3/6/25/+ 60 (59.89) D
12 [email protected] 88.750 1440/48/32/80/+ 900/3/6/17/- 60 (59.90) D
13 [email protected] 108.000 1280/96/112/312/+ 960/1/3/36/+ 60 (60.00) D
14 [email protected] 85.500 1366/70/143/213/+ 768/3/3/24/+ 60 (59.79) D
15 [email protected] 72.000 1366/14/56/64/+ 768/1/3/28/+ 60 (60.00) D
16 [email protected] 85.500 1360/64/112/256/+ 768/3/6/18/+ 60 (60.02) D
17 [email protected] 83.500 1280/72/128/200/- 800/3/6/22/+ 60 (59.81) D
18 [email protected] 71.000 1280/48/32/80/+ 800/3/6/14/- 60 (59.91) D
19 [email protected] 79.500 1280/64/128/192/- 768/3/7/20/+ 60 (59.87) D
20 [email protected] 68.250 1280/48/32/80/+ 768/3/7/12/- 60 (59.99) D
21 [email protected] 74.250 1280/110/40/220/+ 720/5/5/20/+ 60 (60.00) D
22 [email protected] 40.000 800/40/128/88/+ 600/1/4/23/+ 60 (60.32) D
23 [email protected] 36.000 800/24/72/128/+ 600/1/2/22/+ 56 (56.25) D
24 [email protected] 33.750 848/16/112/112/+ 480/6/8/23/+ 60 (60.00) D
25 [email protected] 25.175 640/16/96/48/- 480/10/2/33/- 60 (59.94) D
Use video=VGA-1:1024x768@60e or video=VGA-1:1024x768@60D in /boot/firmware/cmdline.txt to enable the connector and choose the mode.
Ah yes, that does fix it! With an e it becomes "connected", then Wayland finds it. So that seems a fine workaround.
BTW VGA666 on Pi 5 does work up to 1920x1200, looking only mildly fuzzy -- monitors can be scarily good at clock recovery as long as the mode is a standard one.
BTW VGA666 on Pi 5 does work up to 1920x1200, looking only mildly fuzzy -- monitors can be scarily good at clock recovery as long as the mode is a standard one.
It works, but I can't work out where that list of modes comes from.
Not sure how that helps when the unknown connector is the only one available, or is the least-disconnected one?
I imagine the user would connect a sensible HDMI display initially to set things up, or as a second monitor.
On a raspberry pi specifically you could argue that if a VGA connector is present we should assume it's connected, or if there are no other monitors we should assume it's connected, but those don't generalise and I'd like any solution to be upstreamable in wlroots and not a persistent downstream bodge. And it's a pretty niche issue.
One kernel workaround for the VGA HAT would be to extend the DT properties to allow forcing the connector to be enabled, but it doesn't really scale.
vc4's Composite connector will also report unknown, so that would need to be updated too.
I count 36 instances from within DRM drivers that will return connector_status_unknown, so it's not an issue isolated to the Pi.
Reporting that status is valid and documented for the DRM/KMS API, so it needs a policy decision within the application layer as to how it should be handled.
The docs suggest
For default configuration userspace should only try to light up connectors with unknown status when there’s not connector with connector_status_connected.
Activity
njhollinghurst commentedon Jul 28, 2025
It looks
connector_status_unknownmay be the culprit. If I modify DRM drivers to force it toconnector_status_connected, it works. (I had to change it in several places; I'm not sure which ones are significant.)The thing is, for a VGA adaptor without DDC (which is the normal configuration for a VGA666 HAT), the status genuinely is unknown.
njhollinghurst commentedon Jul 29, 2025
I just tried it on a Raspberry Pi 4. Similar behaviour.
dtoverlay=vc4-kms-vga666, nothing plugged into HDMI: Console appears on VGA-1, butlabwclaunches on "NOOP-1 (headless output 2)".kmsprintreports both HDMI interfaces as "(disconnected)" and VGA-1 as "(unknown)".6by9 commentedon Aug 5, 2025
Yes it appears to be the connector status being "unknown" that is the issue.
The connector is implemented with display-connector.c. As we have no HPD or DDC lines defined for the connector, the status will default to
connector_status_unknownfor VGA.Use
video=VGA-1:1024x768@60eorvideo=VGA-1:1024x768@60Din /boot/firmware/cmdline.txt to enable the connector and choose the mode.I'm slightly bemused that we've got quite a long list of modes up to 1920x1200 for the connector. It must be a default from somewhere in the DRM stack, but it's not the normal one of DMT modes up to 1024x768. (Full list at the bottom of this comment).
Alternatively you should be able to fit an I2C level shifter on GPIOs 0&1 to pins 12 & 15 of the VGA connector, and add the
ddcoverride tovc4-kms-vga666to read the EDID from the monitor. I do have a hacked VGA666 with wiring for such. Based on my comment in fenlogic/vga666#15 I had it working, but it doesn't work to work for me now to confirm. (Do note that issue for a wiring problem on VGA666)I did discuss with @cillian64 earlier, and it would be nice if wlroots made connectors in the unknown state available but disabled by default. Doing so would also be of use for Composite as that generally defaults to
unknowntoo. I don't know how feasible that is.List of modes
cillian64 commentedon Aug 5, 2025
I've made a wlroots issue to discuss what we do about this in the compositor: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/4006
njhollinghurst commentedon Aug 5, 2025
Ah yes, that does fix it! With an
eit becomes "connected", then Wayland finds it. So that seems a fine workaround.BTW VGA666 on Pi 5 does work up to 1920x1200, looking only mildly fuzzy -- monitors can be scarily good at clock recovery as long as the mode is a standard one.
6by9 commentedon Aug 5, 2025
It works, but I can't work out where that list of modes comes from.
njhollinghurst commentedon Aug 5, 2025
From the wlroots issue:
Not sure how that helps when the unknown connector is the only one available, or is the least-disconnected one?
cillian64 commentedon Aug 5, 2025
I imagine the user would connect a sensible HDMI display initially to set things up, or as a second monitor.
On a raspberry pi specifically you could argue that if a VGA connector is present we should assume it's connected, or if there are no other monitors we should assume it's connected, but those don't generalise and I'd like any solution to be upstreamable in wlroots and not a persistent downstream bodge. And it's a pretty niche issue.
lurch commentedon Aug 5, 2025
As
/boot/firmware/cmdline.txtis on the FAT partition, it's still possible to edit it via the use of a USB microSD card-reader on e.g. a Windows PC 🙂njhollinghurst commentedon Aug 5, 2025
Yes the command-line option is probably good enough -- but let's see what people think over on
wlroots.Meanwhile I just tried it with DDC enabled (as I have a VGA666 with the appropriate tracks cut and wires bodged) and that works too.
6by9 commentedon Aug 5, 2025
One kernel workaround for the VGA HAT would be to extend the DT properties to allow forcing the connector to be enabled, but it doesn't really scale.
vc4's Composite connector will also report unknown, so that would need to be updated too.
I count 36 instances from within DRM drivers that will return
connector_status_unknown, so it's not an issue isolated to the Pi.Reporting that status is valid and documented for the DRM/KMS API, so it needs a policy decision within the application layer as to how it should be handled.
The docs suggest
And memory says that is what X tried to do.