![]() |
#76 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
@Vanguard3000,
I have been reading the code in Qt6.5.2 in qwindowsscreen.cpp and it appears the serialnumber for each monitor is extracted from an edidRegistryKey in the Windows registry. Each monitor will dump its edid block when connected and the qt code tries to parse it to get the pieces. If for any reason both edid blocks do not exist in the registry or if edid parsing fails, this will fail. This provides an avenue to explore if editing the registry might help solve the issue. |
![]() |
![]() |
![]() |
#77 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 169
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
|
Here's the debug info:
Code:
Debug: Primary Screen: "LG FHD (1)" "LG Electronics" "16843009" Debug: geo : QRect(1920,0 1920x1080) Debug: avail geo: QRect(1920,0 1920x1040) Debug: devideRatio: 1 Debug: logical dpi: 96 96 Debug: physic dpi: 81.28 80.6824 Debug: All Screens Debug: Screen: 0 "LG FHD (1)" "LG Electronics" "16843009" Debug: geo : QRect(1920,0 1920x1080) Debug: avail geo: QRect(1920,0 1920x1040) Debug: devideRatio: 1 Debug: logical dpi: 96 96 Debug: physic dpi: 81.28 80.6824 [Edit] I'm wondering where that "LG FHD" name is coming from (not the registry, apparently) since that may be the "name" it's looking for. [Edit 2] Okay, I've found it in a different spot in the registry. I'm going to do something stupid... [Edit 3] I tried renaming them and restarted but the name reverted. Worth a try I guess. Quote:
"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\DISP LAY\GSM5BCA\5&96b30e3&0&UID4352\Device Parameters" ). Both EDID entries are identical as well. Last edited by Vanguard3000; 08-23-2023 at 04:59 PM. |
|
![]() |
![]() |
![]() |
#78 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Since both EDID's are identical it explains why the SerialNumbers of both are identical: 16843009
Given everything is identical, there is just no way for Qt to tell them apart. Especially not using the serialNumber extracted from identical EDID blocks. Do you have any other ports you could use for a second display. Maybe a different usb-c to hdmi adapter or anything else like that? I know they make inline edid modifiers. Some are dirt cheap. Perhaps you could use one to change the edid of the second monitor to use a different serial number? Something like this come to mind, but you would need one that can change the serial number. I am not surevanyone even makes one. https://www.amazon.ca/Passthrough-Ge...08RCMFLMK?th=1 Until we can find out how to distinguish between the two monitors that Qt can detect we have no way to fix or patch anything. Last edited by KevinH; 08-23-2023 at 05:25 PM. |
![]() |
![]() |
![]() |
#79 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Are those EDID blocks in hex code? If so could you copy each of them to text files so that I can try parsing the edid blocks and create a new edid with a changed serial number?
I am really stumped. |
![]() |
![]() |
![]() |
#80 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Actually that Sigil debug output in incorrect as well. It should show the primary screen then show all screens including the primary and secondary screens. So it should show 3 in total. That only shows 2 entries.
So Qt thinks you only have one screen, as the second one overwrote the first one! You are not in "clone" mode with your screens by any chance? Last edited by KevinH; 08-23-2023 at 05:22 PM. |
![]() |
![]() |
![]() |
#81 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 169
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
|
Quote:
Quote:
Me too. Sorry. Seems like an issue Qt would have noticed before this version went live. No, they're on "Extend". |
||
![]() |
![]() |
![]() |
#82 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Qt changed the way they do this because of bug reports. EDID blocks are NOT supposed to have the same serial numbers. So what Qt did really should not have hurt but in your case it did.
I still can not figure out why your debug.txt has only two entries. It should list the info for the primary first. And then list it for all screens, primary included. Can you copy and paste the two edid blocks into a text file and zip then up and post them. I want to try decoding them just to verify that Qt has not messed that up. |
![]() |
![]() |
![]() |
#83 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
|
I'll try to keep investigating and see if I can find something reproducable.
Quote:
|
|
![]() |
![]() |
![]() |
#84 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,823
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
A question
Right now I updated to Sigil 2.01 from the Arch repo and that version is compiled with Qt 5.15.10 and not Qt 6.5.2. Does that fact make Sigil 2.x (from the Arch repo) not work fully?
|
![]() |
![]() |
![]() |
#85 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Quote:
Perhaps DiapDealer can nudge them a bit. Sigil will remain buildable under Qt 5.15 or so for the next year just to handle much older Linux distributions. As long as you can still run all your plugins, you should be okay. Test ones that use Qt to do the plugin's gui to see. Try one of Doitsu's qt based ones and our Readium Reader plugin as I know it uses Qt. If they all continue to work, you should be okay. But Arch should really be using Qt6.5.2 |
|
![]() |
![]() |
![]() |
#86 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 169
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
|
Quote:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\E num\DISPLAY\GSM5BCA You'll find the two EDIDs in there. Also, there are a few displays that have appeared with no properties in there. They've appeared during my tinkering and can't be removed. |
|
![]() |
![]() |
![]() |
#87 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,647
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That really doesn't have anything to do with it.
And what you're not understanding is that that's not always possible when one is dealing with a cross-platform project that is built from the same code on ALL platforms. We rely on Qt to do ALL the heavy lifting (graphically). Last edited by DiapDealer; 08-23-2023 at 07:23 PM. |
![]() |
![]() |
![]() |
#88 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,647
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
But yes, Reuben, I think all of 2.0 features will be be available to you with the Arch package. I was back and forth between Sigil Qt5.15.x and Sigil Qt6.5.x quite a bit when doing my testing on my Arch machine. Last edited by DiapDealer; 08-23-2023 at 07:22 PM. |
|
![]() |
![]() |
![]() |
#89 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Your edid blocks are exactly identical and can be decoded to the following:
{ "manufacturer_id": 7789, "manufacturer": "Goldstar Company Ltd", "manufacturer_pnp_id": "GSM", "product_id": 51803, "year": 2021, "week": 1, "edid_version": "1.4", "type": "digital", "width": 60.0, "height": 34.0, "gamma": 2.2, "dpms_standby": true, "dpms_suspend": true, "dpms_activeoff": true, "resolutions": [[720, 400, 70.0], [720, 400, 88.0], [640, 480, 60.0], [640, 480, 72.0], [640, 480, 75.0], [800, 600, 56.0], [800, 600, 60.0], [800, 600, 70.0], [800, 600, 75.0], [832, 624, 75.0], [1024, 768, 87.0], [1024, 768, 60.0], [1024, 768, 72.0], [1024, 768, 75.0], [1152, 864, 75.0], [1280, 720, 60.0], [1280, 800, 60.0], [1280, 1024, 60.0], [1440, 900, 60.0], [1400, 1050, 60.0], [1600, 900, 60.0], [1680, 1050, 60.0]], "name": "LG FHD", "serial": 16843009 } Bytes 12 to 15 (number count starts at 0 not 1) are the serial number. The last byte is a checksum byte added to make the sum of all 128 bytes to be 0 (mod 256) So I wonder if it is possible to change one of the EDID blocks to be: Code:
00 ff ff ff ff ff ff 00 1e 6d ca 5b 01 01 01 02 01 1f 01 04 a5 3c 22 78 fb 7b 45 a4 55 4a a2 27 0b 50 54 a5 4b 00 71 4f 81 c0 81 00 81 80 95 00 90 40 a9 c0 b3 00 2a 44 80 a0 70 38 27 40 30 20 35 00 e0 0e 11 00 00 1e 00 00 00 fd 00 30 4b 55 55 12 01 0a 20 20 20 20 20 20 00 00 00 fc 00 4c 47 20 46 48 44 0a 20 20 20 20 20 20 02 3a 80 18 71 38 2d 40 58 2c 45 00 e0 0e 11 00 00 1e 01 ed Might be worth a shot but I would guess that restarting the comnputer would just reset it. The only right way to fix this is to ask Qt to add back the user device Friendly name but concatenate the the serial number to it to make something any user could make unique. I have tried to alert Qt's developers to the problem by posting in the original bug report that caused the change to EDID serial numbers in the first place: See https://bugreports.qt.io/browse/QTBUG-112829 Last edited by KevinH; 08-24-2023 at 10:47 AM. |
![]() |
![]() |
![]() |
#90 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,848
Karma: 6120478
Join Date: Nov 2009
Device: many
|
@democrite,
Would you try using the macOS x86_64 build under Rossetta 2 to see if the bug/abort happens there as well and report back. That would help if I could narrow down my search to be arm64 specific. Also are you using the latest macOS Ventura 13.5.1 as it is supposed to include a number of bug fixes specific to arm64. It might help. All of my testing is being done with it, and I still can not replicate what you are seeing. Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-1.9.20 Released | DiapDealer | Sigil | 12 | 01-28-2023 09:41 AM |
Sigil-0.9.12 Released | DiapDealer | Sigil | 194 | 03-15-2019 03:51 PM |
Sigil-0.9.11 Released | DiapDealer | Sigil | 37 | 02-18-2019 06:56 PM |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil 0.6.0 Released | user_none | Sigil | 93 | 11-24-2012 06:50 PM |