#34893 - 24/07/2001 00:20
emptris + irhack = broken?
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
I ran emptris (bottom of page) again for the first time in awhile tonight. It seems like the app does not respond to any of the remote buttons. My remote works ok in the player software. I have one of Drakino's kernals installed with the irhack for displayserver and custom remotes. Could this be causing the problem?
|
Top
|
|
|
|
#34894 - 24/07/2001 01:26
Re: emptris + irhack = broken?
[Re: charcoalgray99]
|
journeyman
Registered: 23/05/2001
Posts: 53
|
I have found this problem too and have reported it to the developer (sorry, forgotten your name!). I've got a standard 1.03 developer image with the old Kenwood remote. I think this must be something to do with 1.03.
Andy
26GB MKII Blue #090000727
_________________________
26GB MKII Blue #090000727
|
Top
|
|
|
|
#34895 - 24/07/2001 02:17
Re: emptris + irhack = broken?
[Re: Andrew]
|
member
Registered: 29/08/2000
Posts: 153
Loc: Berkshire, UK
|
It was Brian Mihulka who wrote it, wasn't it?
Anyway, I found this too. It appears that the 1.03 release remaps the keycodes of the Kenwood remote to a new set, hence the way Emptris stops responding.
You can get round it by temporarily remapping the remote presses to a new set, by sending the new codes to /proc/empeg_ir, then return the remote to normal operation by sending the original mapping when Emptris exits. I think you may need Frank's irhack kernel installed to be able to do this.
The appropriate codes are in the attached file. They only include the buttons needed for Emptris.
However, another problem is that it appears that the remote now sends "Button Down" then "Button Up", for example:
Down = 0x00B94601
Up = 0x80B94601
Emptris, by the look of the code, only checks the last two bytes of the code, so each button press registers twice, which means that moving and rotating don't work properly.
That's about as far as I got into looking into this before getting distracted by something else!
Bryan.
Mark 2 #080000515
Was 12GB Blue, now 42GB Green!
_________________________
Bryan.
|
Top
|
|
|
|
#34896 - 24/07/2001 07:49
Re: emptris + irhack = broken?
[Re: BryanR]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
I'm glad it wasn't something I did. I guess we have to wait for Brian or someone else to make emptris work with the new 1.03 keycodes.
Tom
|
Top
|
|
|
|
#34897 - 24/07/2001 08:28
Re: emptris + irhack = broken?
[Re: charcoalgray99]
|
enthusiast
Registered: 15/06/1999
Posts: 259
Loc: Lincoln, NE
|
I've been busy with other work and haven't really looked into it yet. But with some info from the earlier post it should be a simple fix. I'll try and take a look later today. Brian -See my empeg here-
_________________________
Brian
-See my empeg <a href="www.hulkster.net/empeg" target="_blank">here</a>-
|
Top
|
|
|
|
#34898 - 24/07/2001 20:42
New emptris
[Re: charcoalgray99]
|
enthusiast
Registered: 15/06/1999
Posts: 259
Loc: Lincoln, NE
|
I have a new version of emptris that will work with version 1.03 of empeg software. Just click on the link in my sig and go to the bottom of the programing page. Brian -See my empeg here-
_________________________
Brian
-See my empeg <a href="www.hulkster.net/empeg" target="_blank">here</a>-
|
Top
|
|
|
|
#34899 - 24/07/2001 23:56
Re: New emptris
[Re: bmihulka]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
|
Top
|
|
|
|
#34900 - 25/07/2001 01:58
Re: New emptris
[Re: charcoalgray99]
|
member
Registered: 29/08/2000
Posts: 153
Loc: Berkshire, UK
|
Yes - thanks! Something else to occupy passengers when they get sick of my taste in music!
Bryan.
Mark 2 #080000515
Was 12GB Blue, now 42GB Green!
_________________________
Bryan.
|
Top
|
|
|
|
#34901 - 25/07/2001 08:02
Re: New emptris
[Re: BryanR]
|
enthusiast
Registered: 24/11/2000
Posts: 316
|
how do you launch the executable in teh car? is it in a playlist or something,
sorry= never heard of it :)
|
Top
|
|
|
|
#34902 - 25/07/2001 09:38
Re: New emptris
[Re: rockstar]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
If you look at my Picker instructions, you'll see that it's possible to launch any program from within a modified init script.
The example that I give contains a 4-selection bootup menu. Only two of those selections are used in the example, there are blank spaces for two more. If you modify the selection file, you can add emptris to one of those blank spaces.
In fact, I'm just about to put Emptris on my empeg for the first time right now. ___________
Tony Fabris
|
Top
|
|
|
|
#34903 - 25/07/2001 10:00
Re: New emptris
[Re: bmihulka]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Brian, this version doesn't seem to work with my Rio remote.
Understandable, if you've only got the Kenwood remote to test against. Can anyone give Brian the necessary codes to make it work on the Rio remote as well?
How about making it work with the knob and front panel buttons, too?
Rotating pieces with the knob, then dropping the pieces by pressing the knob, would be awesome. ___________
Tony Fabris
|
Top
|
|
|
|
#34904 - 25/07/2001 11:16
Re: New emptris
[Re: tfabris]
|
enthusiast
Registered: 15/06/1999
Posts: 259
Loc: Lincoln, NE
|
I pretty much figured that. I'm attaching a program that will show the codes from the remote. If someone with a rio remote will run it and send me the codes or post them here I'll add them. As for buttons and the knob, I think that will be in the new version if I get it done.
Brian
-See my empeg here-
The attachment did not work I'll try again. Edited by bmihulka on 25/07/01 07:18 PM.
Attachments
34282-/home/bmihulka/ircat (129 downloads)
_________________________
Brian
-See my empeg <a href="www.hulkster.net/empeg" target="_blank">here</a>-
|
Top
|
|
|
|
#34905 - 25/07/2001 11:19
Re: New emptris
[Re: bmihulka]
|
enthusiast
Registered: 15/06/1999
Posts: 259
Loc: Lincoln, NE
|
Second try.
Brian
-See my empeg here-
Forget the attachment click hereEdited by bmihulka on 25/07/01 07:22 PM.
Attachments
34283-/home/bmihulka/ircat (118 downloads)
_________________________
Brian
-See my empeg <a href="www.hulkster.net/empeg" target="_blank">here</a>-
|
Top
|
|
|
|
#34906 - 25/07/2001 12:26
Re: New emptris
[Re: bmihulka]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Okay, I ran IRCAT and the output was very very simple to decipher. Here's how it breaks down:
The output is always as follows:
Key down: XX df 20 0
Key up: XX df 20 80
Where XX is different for each key. The key layout is mapped according to the button position on the remote, running from left to right, starting at 0 on the upper-left corner and ending at 17 on the lower-right corner.
The actual key-to-value maps are as follows:
0: The number 1 key.
1: The number 2 key.
2: The number 3 key.
3: Source/Power.
4: The number 4 key.
5: The number 5 key.
6: The number 6 key.
7: Tuner/Bank.
8: The number 7 key.
9: The number 8 key.
a: The number 9 key.
b: Select Mode.
c: Cancel.
d: The number 0 key.
e: Search.
f: Sound/Equalizer.
10: Rewind/>|.
11: Fast Forward/|<.
12: Menu/OK.
13: Volume Up.
14: Info.
15: Visual.
16: Play/Pause/Hush.
17: Volume down.
It may look a little confusing now, but if you look at a picture of the Rio Remote (anyone have a link?) it'll all make sense.
___________
Tony Fabris
|
Top
|
|
|
|
#34907 - 25/07/2001 12:31
Re: New emptris
[Re: tfabris]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Oh, I forgot to give the front-panel-button commands.
Up button:
Key down: 0 0 0 0
Key up: 1 0 0 0 followed by 1 0 0 0 again.
Right button:
Key down: 2 0 0 0
Key up: 3 0 0 0 followed by 3 0 0 0 again.
Left button:
Key down: 4 0 0 0
Key up: 5 0 0 0 followed by 5 0 0 0 again.
Down button:
Key down: 6 0 0 0
Key up: 7 0 0 0 followed by 7 0 0 0 again.
Rotary knob press-in button:
Key down: 8 0 0 0
Key up: 9 0 0 0 followed by 9 0 0 0 again.
Rotary knob rotate left (counterclockwise):
b 0 0 0 for each click
Rotary knob rotate right (clockwise):
a 0 0 0 for each click
And th-th-th-that's all folks!
Wait. How do I exit this program!?!?!?! My drives are RW and I don't want to reboot the empeg! HELP! ___________
Tony Fabris
|
Top
|
|
|
|
#34908 - 25/07/2001 12:34
Re: New emptris
[Re: tfabris]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
And I just realized. I think I'm running an IRHACK version of the kernel. Would that affect the output?
Still: Someone help me exit this IRCAT program so I can RWM my drives before rebooting! ___________
Tony Fabris
|
Top
|
|
|
|
#34909 - 25/07/2001 12:52
Re: New emptris
[Re: bmihulka]
|
enthusiast
Registered: 11/11/2000
Posts: 202
Loc: Boston, MA
|
Does this have to be downloaded to a Lynux environment to decompress it? When I pull it down and try to open it on the empeg, it says 'invalid gzip file" when I try and open it with my gzip opener for windows it says the same thing. The downloaded file is abotu 80K in size.
|
Top
|
|
|
|
#34910 - 25/07/2001 12:53
Re: New emptris
[Re: kazama]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
I used WinZip on the PC to extract the emptris file before sending it to the empeg. No problems. ___________
Tony Fabris
|
Top
|
|
|
|
#34911 - 25/07/2001 12:55
Re: New emptris
[Re: tfabris]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Okay, i pressed a bunch of CTRL-letter keys trying to exit IRCAT and now the shell prompt is locked up and won't respond. I may have to reboot the unit.
Anyone have any tips on what I should type at the shell prompt after the reboot? I did a RW and an RWM before installing and running IRCAT. I want to make sure the unit doesn't FSCK every time now. ___________
Tony Fabris
|
Top
|
|
|
|
#34913 - 25/07/2001 13:54
Re: New emptris
[Re: tfabris]
|
old hand
Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
|
Hi Tony.
Sounds like you pressed CTRL-S on the console, which equals to Scroll-Lock. Undo that lock with CTRL-Q.
You probably need to do an fsck anyway, if you reboot the machine while having the partitions r/w mounted. Just quit the player after reboot and do an "fsck /dev/hda5; fsck /dev/hda4; fsck /dev/hdc4" (you have two drives, don't you? If not just omit the hdc4 part). But I think you knew how to do an fsck manually, right?
cu,
sven
proud MkII owner (12GB blue/green/smoked, #080000113)
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord
|
Top
|
|
|
|
#34914 - 25/07/2001 14:34
Re: New emptris
[Re: smu]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Yeah, ctrl-Q got me out of the freeze, but I still had no way to exit the program.
I just rebooted and forced an FSCK by running Emplode and synching. ___________
Tony Fabris
|
Top
|
|
|
|
#34915 - 25/07/2001 21:20
Re: New emptris
[Re: tfabris]
|
enthusiast
Registered: 15/06/1999
Posts: 259
Loc: Lincoln, NE
|
Ctrl-c should have got you out, unless windoze captures that. I'll admit I use minicom under linux and Ctrl-c works. Brian -See my empeg here-
_________________________
Brian
-See my empeg <a href="www.hulkster.net/empeg" target="_blank">here</a>-
|
Top
|
|
|
|
#34916 - 25/07/2001 21:24
Re: New emptris
[Re: tfabris]
|
enthusiast
Registered: 15/06/1999
Posts: 259
Loc: Lincoln, NE
|
Does anyone have a preference for the buttons? The current version and update for the rio remote will not have programable keys but I was planning on it for the new version to come out at a later date. Brian -See my empeg here-
_________________________
Brian
-See my empeg <a href="www.hulkster.net/empeg" target="_blank">here</a>-
|
Top
|
|
|
|
#34917 - 26/07/2001 09:19
Re: New emptris
[Re: bmihulka]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Ctrl-c should have got you out, unless windoze captures that. I'll admit I use minicom under linux and Ctrl-c works.
Heh. Ctrl-C was the first thing I tried. And of course, Hyperterminal uses that as the "Copy to clipboard" function and doesn't offer any way to actually send a Ctrl-C to the unit.
I tried putting a Ctrl-C into a TXT file (I think it's an ascii 03?) and sending that, but it didn't work either.
Next time I'll make sure my drives are RO before I run a new piece of software.
___________
Tony Fabris
|
Top
|
|
|
|
#34918 - 26/07/2001 09:29
Re: New emptris
[Re: bmihulka]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Does anyone have a preference for the buttons?
Front panel:
Rotate knob left: Rotate piece left.
Rotate knob right: Rotate piece right.
Press knob: Drop piece.
Up button: Move piece up.
Down button: Move piece down.
Right button: Drop piece.
Left button: nothing.
Rio remote:
Volume up/down: Rotate piece.
Menu-OK/Hush: Move piece up/down.
Rew/Info: Also rotate piece.
FF/Visual: Also move piece up/down.
Cancel/0/Search/Sound: Drop piece.
This scheme allows for you to have the rotation and movement be on whichever side of each other that's most comfortable. It allows either one-handed or two-handed play. And the "Drop" buttons are within easy reach of every other button. ___________
Tony Fabris
|
Top
|
|
|
|
#34919 - 26/07/2001 09:57
Re: New emptris
[Re: tfabris]
|
veteran
Registered: 25/04/2000
Posts: 1529
Loc: Arizona
|
Left button: nothing.
How about making the Left Button rotate right? I think thats how it was on the //c...
|
Top
|
|
|
|
#34920 - 26/07/2001 10:07
Re: New emptris
[Re: Tim]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Sure, whatever. I guess that would allow it to work on the Mark1's, huh? My design would have only worked on the Mk2s... you're right. ___________
Tony Fabris
|
Top
|
|
|
|
#34921 - 26/07/2001 10:10
Re: New emptris
[Re: tfabris]
|
pooh-bah
Registered: 13/09/1999
Posts: 2401
Loc: Croatia
|
File->Properties->Settings->Function, arrow and ctrl keys act as Terminal
Dragi "Bonzi" Raos
Zagreb, Croatia
Q#5196, MkII#80000376, 18GB green
_________________________
Dragi "Bonzi" Raos
Q#5196
MkII #080000376, 18GB green
MkIIa #040103247, 60GB blue
|
Top
|
|
|
|
#34922 - 26/07/2001 10:27
Re: New emptris
[Re: bonzi]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
File->Properties->Settings->Function, arrow and ctrl keys act as Terminal
It was already set that way. It still ate Ctrl-C. Or at least Ctrl-C did nothing to the program running on the empeg. ___________
Tony Fabris
|
Top
|
|
|
|
|
|