-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indi pentax #936
Indi pentax #936
Conversation
Thank you! @karlrees Can you please review this? |
Also had to up cmake_minimum_required to 3.19 otherwise I got this warning. It's almost 4 years old, shouldn't be a problem I hope.
|
Can you please bump the version and update the corresponding Debian changelog? |
Done. Never did it before, tbh. Hope it's right |
I had worked out a supposed fix to the bad file descriptor issue as well, though my solution was different. My solution worked on some platforms (e.g., my Astroberry install), but not Ubuntu 23.10 or 24.04 with the Raspberry Pi 5. Due to lack of time, I ended up dropping the issue for a while. Anyway, I just tested your solution on Ubuntu 24.04 with the Raspberry Pi 5, and the error remains for me. What platform were you working on? |
I have only AMD64 Gentoo for now and checked fix on Arch VM also. Will try to install ubuntu 24.04 VM today and check this out (and unfortunately still have no raspberry to test Astroberry) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These commits do not cause any regression for me, so I am okay with them. They do not appear to fix the problem on any of the Raspberry Pi 5 installations I have tested, so there is probably more to the issue, but if they help some people, I have no problem with them.
@knro I have a fix for all of my Raspberry Pi installations. It's in my fork (https://github.com/karlrees/indi-3rdparty). It's possible that there are two distinct issues and both Graf2242's fix and my fix are needed. I'm not too savvy on best development practices--should I be submitting my fixes as a separate pull request, or somehow combining them with this pull request? (Full disclosure, I also made a couple of other changes to the driver to support DNG files better, possibly support K3-III, and sync the pktriggercord source to its latest version). |
I'm totally fine with both ways. Probably at least we should merge both fixes for Debian single release. Better ask @knro for how to do it better (I can cherry-pick karlrees's fixes in my branch, for example) |
…users Fix setcap order: it should be applied to final file after installation
- Experimental support for K3III - DNG files now save as .dng files instead of .raw (cherry picked from commit 47189d0)
- Added DNG support for PTP mode
So, I did merged our fixes together:
|
Well, I'll comment out this again tomorrow if no one stops me |
The version needs to be changed in the CMakeLists.txt files for both indi_pentax (line 10, INDI_PENTAX_VERSION_MINOR) and libpktriggercord (line 4, PK_VERSION) as well. Looks like I changed these before without updating the DEBIAN changelog. To be consistent, we probably should bump the version for indi_pentax to 1.2, and the version for libpktriggercord to 85.03. |
Yep, good point. Done |
There are two fixes to indi-pentax driver for k20d:
"Bad file descriptor" fix
As mentioned here - Driver indi_pentax: select: Bad file descriptor #775 - there are many errors in logs if driver can't connect to camera. I'm not sure that i implement fix right, but at least it's working
Pentax K20d fix
https://github.com/indilib/indi-3rdparty/blob/master/indi-pentax/pktriggercord_ccd.cpp#L856 . If driver can't identify any of device batteries - it just disconnect. I tried to parse state hexdump and seem that 0x168 is correct address. I have no battery grip so I can't check it's state address
To be fair, there are two more fixes need for k20d to work:
indi-3rdparty/libpktriggercord/src/pslr_scsi_linux.c
Line 212 in 913c233
setcap cap_sys_rawio+ep /usr/bin/indi_pentax