Notices


Reply
Thread Tools
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#1271
Originally Posted by Copernicus View Post
[keysets are coded into Pierogi]
I see, and I can completely understand why you'd do so: if it's just a few ints here and there, it's reasonable enough, since the overhead to add some text file parsing to load the keyset(s) would be pretty large.

Still, I would vote in favor of having separate keyset files, preferably in a human readable format. It would enable not only the packaging flexibility suggested above, but also would enable a lot of flexibility for the end-user: people could test/develop modified/new keysets, even on their N900s directly, without having to rebuild the app for every change.

If you're okay with the idea but just don't want to take the time to code it, I wouldn't mind taking a go at it, and then you can reject/approve my patch as you wish.

Originally Posted by Copernicus View Post
Ah, well, the problems with the QtIrreco app kind of steered me away from this path. Actually, I really am not a fan of most modern remote-control apps, even if all they are doing is downloading advertisements; I really think a simple tool like this should be fully independent, and work without needing to access the net for anything.
I agree completely, which is why I was much more in favor of alternative 1 than alternative 2 anyway. Besides things like IDS/IPS rulesets, which need to have as rapid of updates as possible, I am tempted to say distributing stuff through third party servers when it can be packaged instead is not the best route to go - I just figured I'd throw it in there for completeness.
__________________
If you want to donate in support of anything that I do, you can do so with either of these options:
PayPal | Bitcoin: 1J4XG2z97iFEKNZXThHdFHq6AeyWEHs8BJ | [Will add other donation options eventually]
 

The Following 4 Users Say Thank You to Mentalist Traceur For This Useful Post:
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#1272
Originally Posted by nokiabot View Post
swiping left right could change tabs as lying on bed one would not need to look the ph to toggle tabs as that way its more like a actual remote
That would be interesting; the real problem is that Qt was only starting to add gestures to their framework right as they were giving up on supporting the N900. All the low-level gesture code is there, but you can't just say "when the user swipes left, do this"; instead, you need to collect the user's movements, decide when a "swipe" has been performed, and then manually manipulate the screen to react to that. I've got a little app that changes the screen when the user swipes, but I don't yet have the code to make the window slide left or right to indicate that a potential swipe motion has been detected, so it's a little unintuitive.

hardware volume keys as an option to actually control the volume of tv or change channels of hifi sattop whatever
Well, but I've already got the volume keys tied to changing between your favorite keysets. The other problem is that the volume keys are on the same side of the N900 as the IR LED, so you kind of have to put your fingers all the way around the device while it is pointing at the TV or whatever; very awkward.

camera butt half press to mute full press to power down when sleepy
That would be nice! Same problem, though; the buttons on that side of the device are just awkward to use.

The hardware keyboard would be good for both of these situations, though; as I recall, I had started using it for some of these tasks some time back (as Sixwheeledbeast had pointed out to me). I'll have to look and see what shape that code is in.

fullscreen option as many times i found myself to quit pierogi when using blindly
Hmm. That probably wouldn't be too hard to add. I don't think Pierogi benefits as much from full-screen mode as other apps would, but I could give it a try. (The big problem would probably be placing more controls onto the screen for accessing the options on the drop-down menu; but then, I've been wondering if folks would prefer having access to those options on the main screen rather than via the menu. I'll think about it...)

if implemented hw buttons should work regardless of screen lock not like lanternes camera button toggle which goes dead when screen lock kicks in
Yeah, as I recall in order to do that I needed to give an elevated status to the app, which for these little utilities, I'm really not all that enthusiastic about. I don't want to potentially drain your battery just because you left Pierogi or Lanterne running in the background...

But let me take another look.
 

The Following 7 Users Say Thank You to Copernicus For This Useful Post:
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#1273
Originally Posted by Mentalist Traceur View Post
Still, I would vote in favor of having separate keyset files, preferably in a human readable format. It would enable not only the packaging flexibility suggested above, but also would enable a lot of flexibility for the end-user: people could test/develop modified/new keysets, even on their N900s directly, without having to rebuild the app for every change.
Well, I do have reservations about this. For one, the original purpose of Pierogi was to create a little experiment of my own; I knew that many CIR control systems were similar to each other, and I wanted to see if I couldn't compress keysets together by creating families of similar controls. And, I went ahead and used the C++ class inheritance scheme to implement these families. As such, there are a lot of concepts built-in to the current Pierogi system that would be difficult to explain to the general public.

Second, Pierogi is way late to the game here. The N900 originally launched with an IR remote control mechanism that uses 100% human-readable keyset files; that is, the Linux Infrared Remote Control (or LIRC) project. (And the Irreco / QtIrreco project built a GUI shell around it.) So, you can today set up the LIRC server on your N900 and run your own config files on it. (Although, I do have to admit that calling LIRC config files "human-readable" is a bit of a stretch; the syntax they use is, honestly, pretty awful.)

However, let me make this counter-proposal: what about a two-tiered keyset mechanism? It shouldn't be hard to let Pierogi continue to support its internal set of keysets (following my rather obscure implementation mechanism), and then optionally read in a set of more standard external config files.

I think the only significant effort here would be to come up with a decent human-readable file format. The LIRC format is, well, just awful; moreover, as it only records individual pulses, it is fundamentally incompatible with the current Pierogi system. I'm using a protocol-based system now, so a config file would presumably involve naming the protocol to use, then (sometimes) a manufacturer ID, (usually) a device ID, and finally a sequence of key IDs. The key IDs will also need to be mapped to the internal Pierogi button list.

I've gotten a whole lot more experience writing recursive-descent XML parsers in the last year, which folks can probably see from my other pasta products, so I'd be happy to support an XML-based file format. But I could probably do something else too, if another type of format would be preferred.

Last edited by Copernicus; 2015-02-08 at 23:36.
 

The Following 8 Users Say Thank You to Copernicus For This Useful Post:
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#1274
Another update to Pierogi is now making its way up to the Extras-Devel repository. Other than the addition of a Grundig TV keyset, the main modification is an update to the documentation available from the drop-down menu. I'm not sure it makes for entertaining reading, but at least it now covers the main points of the Pierogi UI (other than the macro system, which I have simply left out).

As such, I'm going to go ahead and classify this update, 1.1.41, as a "release candidate". I'm going to continue to pound on it a bit myself for a day or so, and if no one else has any objections, I'll go ahead and submit this version to Extras-Testing. With luck, a much updated version of Pierogi will soon be available in the Extras repository.

I'll probably try to work through some of my other pasta products, and see if I can't shape them up into something that can be pushed into Extras...
 

The Following 5 Users Say Thank You to Copernicus For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#1275
Shouldn't the promotion go through the testing and voting process? Just asking
__________________
Русский военный корабль, иди нахуй!
 

The Following User Says Thank You to pichlo For This Useful Post:
mrsellout's Avatar
Posts: 889 | Thanked: 2,087 times | Joined on Sep 2010 @ Manchester
#1276
Originally Posted by Frasier View Post
Ok, Thanks Copernicus ... I have established that the IR is working ... shows up on a photo ... So, I need to experiment more with options.

Perhaps I am too far away from the appliances ...

Hope to get to the bottom of this now.
Just a quick thought: have you got the keyboard open when you're using the app? I've found that often the ir port is blocked by the n900's screen when that is the case.
 

The Following 2 Users Say Thank You to mrsellout For This Useful Post:
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#1277
Originally Posted by pichlo View Post
Shouldn't the promotion go through the testing and voting process? Just asking
Yes, I kind of thought that's what happens when one submits an app to the Extras-Testing repository. (Or am I missing a step? I'm pretty sure that's what I did to start the process before...) I'm planning on doing that tomorrow, if no other problems show up...
 

The Following User Says Thank You to Copernicus For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#1278
To be honest, I do not quite have all the details figured out. I have only one package and that is in Extras-Devel. I somehow always assumed you need to get enough votes first, before the promotion to Testing. You are much more experienced. I will just shut up.
__________________
Русский военный корабль, иди нахуй!
 
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#1279
Originally Posted by pichlo View Post
I somehow always assumed you need to get enough votes first, before the promotion to Testing.
Well, I've only done it once before (for Pierogi), and that was a very, very long time ago (as folks have been pointing out to me ). So I don't know if the process is still the same...
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#1280
Propagating from devel to testing is purely based on developers decision (release candidate for testers/masses first).
There it should be tested and upvoted by at least 6 positive votes, then it will hit extras a few (quarantine) days later.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Reply

Tags
infrared, pasta, remote, remote control


 
Forum Jump


All times are GMT. The time now is 07:39.