cluster dashboard opens on second display when multiple displays are enabled
Description
Environment
Attachments
- 22 Feb 2021, 09:11 PM
- 22 Feb 2021, 07:49 PM
Activity
Walt Miner June 2, 2023 at 3:15 PM
Change was merged to gerrit in September 2022
Walt Miner March 9, 2021 at 2:35 PM
We can add to the potential feature list for 2021 in consultation with the IC EG.
Marius Vlad March 3, 2021 at 3:41 PM
cluster-gauges is like homescreen, a client shell, and not an application, so we can't really migrate it that way. It has to be started straight in on another output (like there an environment variable for homescreen), or we "enhance" the compositor to use the same agl-shell-app-id for the client shell. Currently there's no code in the compositor to deal with the client-shell, just applications.
Would like to get some feed-back on the matter before I write something up. @Jan-Simon Moeller or @Walt Miner what is the take on this? Is this something that is worth looking into?
Marius Vlad March 1, 2021 at 10:40 AM
Well, the logs shows that the appid option is not found. I'm going to do a short test and get back to you.
Vasyl Vavrychuk February 27, 2021 at 12:47 AM
[03:06:44.032] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[03:06:44.033] Screenshooter interface created
[03:06:44.033] Sending ready to systemd
[03:06:44.900] Added surface 0xaaaae9bcfff0, app_id receiver to pending list
[03:06:45.750] Added surface 0xaaaae9c89fb0, app_id cluster-gauges to pending list
[03:06:46.251] (background) position view 0xaaaae9c8a050, x 0, y 0, on output HDMI-A-2
[03:06:46.251] Usable area: 1920x1080+0,0
[03:06:46.251] WARNING: Output does not have a background
[03:06:46.251] Usable area: 1920x1080+0,0
[03:06:46.251] Activation completed for app_id receiver, role POPUP, output HDMI-A-1
while that cluster gauges are shown on Linux 2 display
I work with AGL Reference Hardware board, it has two HDMIs: HDMI-A-1 and HDMI-A-2. By default, only HDMI-A-1 is enabled.
I run agl-cluster-demo-platform image.
When I enable second HDMI, cluster applications moves to its display.
I have found in https://gerrit.automotivelinux.org/gerrit/gitweb?p=apps/agl-cluster-demo-dashboard.git;a=blobdiff;f=app/main.cpp;h=3c460d53cde791d0ec3949095346763f072108b1;hp=a5b9ecead3353431e22aaea3bc61e7cedb47ceb0;hb=233faba31d4ed8b3a4d6e758275b2103a5c69ef3;hpb=843114c08eabcd51a58c94c7e9130652b86b1449 that cluster application looks for primary display in Qt.
I don't understand why HDMI-A-2 becomes primary display. In my opinion first HDMI should be primary display.
Compositor logs attached.