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
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.
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.
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
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.
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.