Difference between revisions of "Talk:Futaba"

From MythTV Official Wiki
Jump to: navigation, search
(Test results)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This page tells about USB problems:
+
{{SUSE_head|FRONT PANEL KEYS:}}
"If you don't have any USB port 3 problems you should see this in your hardware list as two devices, the VFD and the panel buttons..."
 
Is this a problem that can be fixed by the user? [[User:Maniacxs|Maniacxs]] 15:18, 16 August 2007 (UTC)
 
  
Hi the reference to the USB port 3 error originated from the Ubuntu wiki. Several guys reported this problem with the Hyper barebone.
+
(10:21:14 PM) moosylog: mythTV seems to uses Qt key constants, 
Maybe the problem is either in the specific hyper module or in the kernel 2.6.22
 
for info check the bug report:
 
https://bugs.launchpad.net/linux/+bug/122102/+activity
 
  
or on mythtv wiki
+
(10:21:14 PM) moosylog: which doesn't include all X key constants. Maybe some MythTV developer can  confirm it.
  
http://mythtv.org/wiki/index.php?title=Hiper_HMC-2K53A&printable=yes
+
(10:21:14 PM) moosylog: (i'm trying to define frontpanel buttons on my pc..they work in X....but not in mythfrontend)
  
--[[User:Hans B|Hans B]] 19:22, 16 August 2007 (UTC)
+
(10:31:27 PM) gbee: moosylog: correct
  
The issue with the broken USB port is fixed in kernels >= 2.6.22-git16. I am currently at 2.6.23-rc3 and it works like a charm. -[[User:Mat|Mat]]
+
(10:31:55 PM) gbee: you can use xmodmap to remap those buttons to something that mythtv understands
  
Hi Mat,
+
(10:32:53 PM) gbee: http://doc.trolltech.com/3.3/qt.html#Key-enum
i tried to search, where you downloaded the sourcecode from pluto, but i really was not able to find it. The FTP-Servers at pluto site are full of ?Movies? nothing that may help. Maybe you can post a link or download some more files ;)
 
[[User:Maniacxs|Maniacxs]] 07:54, 22 August 2007 (UTC)
 
  
Hi Maniacxs you can download the pluto source here [http://images.ibvs.se/Media_Live_LCDButtons.src.tar.bz2 Media_Live_LCDButtons.src.tar.bz2] --[[User:Hans B|Hans B]] 09:01, 22 August 2007 (UTC)
+
(10:33:49 PM) gbee: QT understands most multimedia keys, but there are still a few that aren't supported in QT3 (possibly QT4 but I haven't checked)
  
Sorry but this the link from the article.
+
(10:35:15 PM) gbee: the F21-30 range is pretty useful for remapping keys, since it's unlikely to be used by anything else
There are some files included. The "testapp" e.g. needs a headerfile from the package pluto_main. I hoped, that there, where the tarball comes from the other files can be found, too. [[User:Maniacxs|Maniacxs]] 10:25, 22 August 2007 (UTC)
 
  
'''lcdproc'''
+
(10:35:53 PM) janneg: qt4 does look so much different: http://doc.trolltech.com/4.3/qt.html#Key-enum
  
<s>Lcdproc with driver serialvfd and Display set to Futaba powers the Display on here, but nothing more. [[User:Maniacxs|Maniacxs]] 10:16, 25 August 2007 (UTC)</s>
+
(10:38:32 PM) gbee: looks like it supports some additional multimedia keys, the stuff from Key_Call to Key_Cancel is all new
Sorry wrong information. After running the pluto source, the VFD powered on even without running lcdproc
 
  
----
+
(10:40:34 PM) moosylog: Ok, understand...thanks guys
  
'''Pluto source code'''
 
  
I updated the Futaba Wiki with a Pluto-site that contains all the source code. It's the development site I got the Media_Live_LCDbuttons from. Feel free to poke around and I am sure you will find what you need. [http://deb.plutohome.com/debian/dists/20dev/main/binary-i386/ deb.plutohome.com].
+
;Please test
 +
''I don't have a Futaba device, so I can not test for you. Please test and report your findings.''
  
-[[User:Mat|Mat]]
+
You need to look at remap the key to a function mythfrontend understand !
  
 +
Because I don't have the box, you need to test things for us.
  
 +
*Create ~/.Xmodmap
  
'''4 sept - James''': [http://elancup.emc.com.tw/VFD/DM140GINK.zip Here is an attached zip] containing the MSI Live Media header and sample
+
create line
file with all commands for the DM-140GINK (tested on the HMC-2K53A. It contains a test app that displays a logo, then after each keypress it
 
shows another message and turns on each icon on the display. It compiled on kernel 2.6 with the DM-140GINK. You may have to tweak the code if you
 
are running a 2.4 kernel because the HID device changed locations. It has all the functions that would be needed for an LCDProc driver but I
 
have never written one and am not sure what the requirements as far as functions go for LCDProc. This is a good starting point since it has the
 
defines for the functions and examples.
 
  
----
+
*keycode 162 = P
  
The zip file in the link above contains a PDF-file, but you are right James; if you compile led.c contained in the  Media_Live_LCDButtons file further above it will light the display up and allow you to see all the functions on the display by pressing enter.
+
This example maps key 162 (think Audio Play) to mythTV function P (think play in mythfrontend)
  
This should make it easy to map into the requirements for a LCDproc driver that MythLCDserver can interact with. I am not very used to c-code though so I probably will not be able to do this myself.
+
''Other keyvalues are described on the [[Futaba]] page.''
  
--[[User:Mat|Mat]] 11:16, 5 September 2007 (UTC)
+
;Test Results
 +
(Feb 2008) KvZ: I've tested this idee and it works perfectly. I'm using a MSI Media Live with Mythbuntu.
 +
 
 +
My ~/.Xmodmap file:
 +
keycode 162 = p
 +
keycode 164 = Escape
 +
keycode 144 = q
 +
keycode 153 = z
 +
keycode 152 = less
 +
keycode 180 = greater
 +
 
 +
Mythbuntu does not seem to use the user .Xmodmap. So I've just added the following line to the MythTV startup script.
 +
/usr/X11R6/bin/xmodmap $HOME/.Xmodmap
 +
 
 +
Thanks moosylog
 +
KvZ

Latest revision as of 16:12, 16 February 2008

FRONT PANEL KEYS

(10:21:14 PM) moosylog: mythTV seems to uses Qt key constants,

(10:21:14 PM) moosylog: which doesn't include all X key constants. Maybe some MythTV developer can confirm it.

(10:21:14 PM) moosylog: (i'm trying to define frontpanel buttons on my pc..they work in X....but not in mythfrontend)

(10:31:27 PM) gbee: moosylog: correct

(10:31:55 PM) gbee: you can use xmodmap to remap those buttons to something that mythtv understands

(10:32:53 PM) gbee: http://doc.trolltech.com/3.3/qt.html#Key-enum

(10:33:49 PM) gbee: QT understands most multimedia keys, but there are still a few that aren't supported in QT3 (possibly QT4 but I haven't checked)

(10:35:15 PM) gbee: the F21-30 range is pretty useful for remapping keys, since it's unlikely to be used by anything else

(10:35:53 PM) janneg: qt4 does look so much different: http://doc.trolltech.com/4.3/qt.html#Key-enum

(10:38:32 PM) gbee: looks like it supports some additional multimedia keys, the stuff from Key_Call to Key_Cancel is all new

(10:40:34 PM) moosylog: Ok, understand...thanks guys


Please test

I don't have a Futaba device, so I can not test for you. Please test and report your findings.

You need to look at remap the key to a function mythfrontend understand !

Because I don't have the box, you need to test things for us.

  • Create ~/.Xmodmap

create line

  • keycode 162 = P

This example maps key 162 (think Audio Play) to mythTV function P (think play in mythfrontend)

Other keyvalues are described on the Futaba page.

Test Results

(Feb 2008) KvZ: I've tested this idee and it works perfectly. I'm using a MSI Media Live with Mythbuntu.

My ~/.Xmodmap file:

keycode 162 = p
keycode 164 = Escape
keycode 144 = q
keycode 153 = z
keycode 152 = less
keycode 180 = greater

Mythbuntu does not seem to use the user .Xmodmap. So I've just added the following line to the MythTV startup script.

/usr/X11R6/bin/xmodmap $HOME/.Xmodmap

Thanks moosylog KvZ