Bug 113330 - Remote control support (lirc)
Summary: Remote control support (lirc)
Status: RESOLVED INTENTIONAL
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Interroperability (show other bugs)
Version: 0.8.2
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-26 01:19 UTC by Antonio E.
Modified: 2017-08-06 07:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio E. 2005-09-26 01:19:54 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

It would be nice to have support for remote controllers using lirc, that way one could use digikam to make presentations of the pictures staying far from the computer.
Comment 1 Cyrill Helg 2005-09-26 01:23:42 UTC
yes thats a nice idea. You could use dcop for this. So digikam devs need to have these dcop functions that we can link it to lirc/kde lirc server ;)

Greets
Comment 2 Antonio E. 2006-01-06 15:39:43 UTC
Yes, dcop would be pretty good for this purpose.
Comment 3 caulier.gilles 2006-01-06 15:42:17 UTC
dcop interface have been added to digikam to current svn implementation. It will be available to 0.8.1 release.

Gilles Caulier
Comment 4 Antonio E. 2006-01-06 16:47:59 UTC
Cool! It's really nice to read that :). Thanks!!!
Comment 5 Tom Albers 2006-01-06 17:12:15 UTC
uhum? dcop interface is added but not any functionality in regard to this report.
Comment 6 Antonio E. 2006-01-06 17:19:47 UTC
I see. Well, at least it's a first step to make it possible.
I hope that the functionability could be added in the future.
Comment 7 Antonio E. 2006-08-24 09:30:33 UTC
Just a question, having the dcop implemented, what else needs to be implemented to communicate digikam with the kdelirc? I've been trying to find in the amarok sources were is the lirc support done but for now I haven't found it, just the dcop interface.

Thanks.
Comment 8 Cyrill Helg 2006-08-24 17:17:27 UTC
AFAIK This should be enough. You can connect dcop to lirc by using the kde lirc server. I'm doing this with amaraok.
Comment 9 Antonio E. 2006-08-24 17:36:29 UTC
That is what I thought, but I can't. I'm using the kde-lirc with amarok too, for a year. When I open the kde-lirc dialog (IRKick), when I try to add a new action, I can select amarok, KsCD,... but digikam is not there. That's why I think that dcop is not everything that we need to use the kde-lirc. But, browsing the amarok sources I didn't find any line referring lirc only dcop. That's why I think that the support is mostly done, but some little thing is avoiding digikam to be controlled from kde-lirc. At least I can't see digikam from the irkick, I don't know if other people can and it's a local problem.

Thanks for the comment.
Comment 10 Antonio E. 2006-08-24 20:24:09 UTC
Cyrill, you are totally right. I can use now digikam using irkick.

I've opened the irkick configuration dialog, pressed add and then selected to add manually an action to a running application. From there I can access to digikam. It's a pitty that digikam is not displayed in the default apps in the previous menu like amarok, kaffeine,kdetv,... but I can live with that.

After selecting the desired button from the remote controller, I open the digikam tree entry in the application list, and from there I can access to the entire dcop interface.

Then I have to play from the command line, because configuring lirc throw dcop is not so intuitive for normal users. I make an example of how I have set the forward button of the remote controller to show the next image in the Image Editor.

In the command line I type:
dcop   (to get the name of the apps, in my case digikam-25053)

Now I get the available actions for the editor:

dcop digikam-25053 "Image Editor" actions

I find the one that I want: editorwindow_forward

To test it I type:

dcop digikam-25053 "Image Editor" activateAction editorwindow_forward

It works.

So I go to the irkick and I add an action, setting the forward button, I open the digikam tree. Then I select the Image Editor. In the function list I select: activateAction. I press next, and I get a new text field asking for the action to execute, so I type: editorwindow_forward. After that I press finish, and it's done. I press apply.

I test it with the remote controller and it works nicelly.

As we see, the control of digikam with a remote controller is working perfectly using dcop. To me it's good enough (you can't believe how happy I feel setting this), but I think that it's very complex to set it for normal or new linux users, specially if they don't know a bit of dcop. It would be nice to have an easier way to set these action, like for the applications than I commented above. I repeat, I don't need it, but maybe other people...

As the kde-lirc support is done, I don't know if we should close this issue or let it opened.

I want to say thanks again for adding the dcop support.
Comment 11 Antonio E. 2006-08-24 20:37:44 UTC
Playing with dcop I found a bug, that makes digikam to crash (I'm using 0.9svn).

If I have the Image Editor, and I make:

dcop digikam-2830 Digikam activateAction album_forward

Then, digikam crashes. It happens always.
Comment 12 Antonio E. 2006-08-24 20:41:32 UTC
No, it's worse, it happens always; even with the Image Editor hidden.
Comment 13 Cyrill Helg 2006-08-24 21:07:28 UTC
Hi again... Probably there is just a list with apps and predefined actions in irkick... Not sure though, because that would be no good strategy :)

Comment 14 Antonio E. 2006-08-25 10:38:24 UTC
I've created a new bug for the crash #132957
Comment 15 caulier.gilles 2006-08-25 10:53:03 UTC
#14 ==> ok Antonio, we will take a look...

Gilles Caulier
Comment 16 caulier.gilles 2008-03-18 12:42:20 UTC
Antonio,

This entry still valid. LIRC can be used as well with digiKam now. I can close this file ?

Gilles Caulier
Comment 17 Antonio E. 2008-03-18 13:16:34 UTC
Well, this week I'm not at home, which is where I use Digikam. I haven't played with lirc for around 3-4 months so I haven't tested the current status. But, if you think that the support is working, then yes, probably we can close this file and then open new ones in case of if any problem is found; well that, unless if you'd like me to test the lirc support when I'll be back at home next Monday. In that case, is fine with just testing 0.9.4 or 0.10 has different code to manage it?

Antonio.
Comment 18 caulier.gilles 2008-03-18 13:28:05 UTC
Antonio,

Yes for 0.9.4-beta1.

0.10.0 do not use DCOP with KDE4, but DBUS. You can test it too, but this version still i alpha stage. take a care. Do not use it in production

Gilles Caulier
Comment 19 Antonio E. 2008-03-18 15:00:11 UTC
OK Gilles, I'll give it a try on next week at least the version 0.9.4, and I'll report how it behaves.

Thanks,

Antonio.
Comment 20 caulier.gilles 2008-12-06 14:10:12 UTC
Andi, 

This entry is fully relevant of digiKam DBUS interface... We just need to export digiKam actions, that all...

Gilles

Comment 21 caulier.gilles 2011-12-13 08:50:36 UTC
Antonio,

What's new about this entry ?

Gilles Caulier
Comment 22 Antonio E. 2011-12-19 16:45:37 UTC
Gilles, sadly I can't test this functionability as my lirc device passed away.
Comment 23 caulier.gilles 2011-12-19 17:40:19 UTC
Someone can provide any feedback with an IR remote control...

Gilles Caulier
Comment 24 caulier.gilles 2015-06-30 08:06:50 UTC
New digiKam 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?
Comment 25 caulier.gilles 2016-07-15 12:56:32 UTC
This will never implemented in digiKam...

Gilles Caulier