×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

[SOLVED] KStars loads with a window size twice the size of a 1920 x 1080 screen

  • Posts: 194
  • Thank you received: 20
Here's what I get when I try to connect to the SBIG camera:

[Error] Failed to determine number of readout modes for primary CCD
[Error] GetCcdInfo: CC_GET_CCD_INFO->(Bad Parameter)
1 year 9 months ago #83273

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 20
I captured a log file of the SBIG camera first coming up. It shows the error.


File Attachment:

File Name: log_14-45-55.txt
File Size:22 KB


Thanks!
Last edit: 1 year 9 months ago by David Allmon.
1 year 9 months ago #83285
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 20
I've been looking at the driver source, and I think I found a problem.

Here in the source it looks at the number of modes to see if it is in range. It checks for less than 0 and more than 10. There are 11 valid modes in the header file. I think it should check for >11.

Thanks
The following user(s) said Thank You: Jasem Mutlaq
1 year 9 months ago #83286

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 20
That was it. I changed it to look for less than (CCD_BIN_NxN + 1) and built the driver and it now works.

Of course my screen problem is back. After a reboot, it went to 640 x 480, and I reinstalled from sscratch and now I'm back with KStars and friends being 2x size. I tried all the suggestions, but none of them worked.


Thanks,
1 year 9 months ago #83288

Please Log in or Create an account to join the conversation.

Thank you David for looking into this. Can you check if making the following change at line 2117 also resolve the issue?
numModes = gccdir.readoutModes - 1;
switch(numModes)

i.e. I just changed numModes right there to be readoutModes - 1

Would this work without regressions?
1 year 9 months ago #83289

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 20
Jasem,

The numModes value is used two lines down:
switch (numModes-1)
I should change that to:
switch (numModes)
or it will return the wrong value.

When I get off work I'll back out the previous change, make the change to 2117, and test. If need be, I'll make the second change. I can only test with an STF-8300EN, but the modes should be the same for all cameras coming from the SBIG library.

Thanks!
1 year 9 months ago #83305

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 20
Jasem,

I made the change and it worked. I tested taking a focus image and that worked. The line number in the code I downloaded yesterday is 2116, not 2117. That is the
numModes = gccdir.readoutmodes - 1;
line.
res = SBIGUnivDrvCommand(CC_GET_CCD_INFO, &gccdip, &gccdir);
    if (res == CE_NO_ERROR)
    {
        numModes = gccdir.readoutModes - 1;
        // the actual readout mode == numModes-1 because the first mode == 0
        switch(numModes)
        {

However, an odd side effect is that the dropdown for binning has values from 1x1 to 255x255. The result matches my modes (11), according to the code.



More testing is required. bin modes 1x1, 2x2, 3x3, 9x9 work. The rest do not.

Thanks
The following user(s) said Thank You: Jasem Mutlaq
Last edit: 1 year 9 months ago by David Allmon.
1 year 9 months ago #83307
Attachments:

Please Log in or Create an account to join the conversation.

Thank you David, it's greatly appreciated. I just pushed a fix. Can you verify it works OK?
The following user(s) said Thank You: David Allmon
1 year 9 months ago #83315

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 20
Jasem,

I built and tested the SBIG driver. Everything seems to work perfectly, within my ability to test. I still have 255 bin modes, and judging by the comments and the header file, I believe that should be 1x1, 2x2, 3x3, 9x9, and variable x and y, but I can't imagine how that would be accomplished. But it works well, and that's going to get me up and running.

Thanks for taking the time to fix it!
1 year 9 months ago #83318

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 20
To get the video problem fixed, I put the display in hdmi_safe_mode and rebooted. When it came up, I went into display preferences and therre were two HDMI ports listed and all of the modes my monitor supports. I picked 1920x1080, applied it and it went to 1920x1080 and KStars loads the correct size. Thanks to all who helped.
1 year 9 months ago #83319

Please Log in or Create an account to join the conversation.

Time to create page: 0.891 seconds