Zotac ZBOXHD-ID11 : Success

Talk about successully using hardware here.

Moderator: Pablo

Post Reply
ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Tue Nov 09, 2010 11:50 pm

Hi,

I successfull add a new Minimyth Box to my network : a Zotac ZBOX HD-ID11 (http://www.zotac.com/index.php?option=c ... 83&lang=en)
A Mini PC (188 x 188 x 44 mm) with a Atom D510 1,66Ghz, NVIDIA ION 2, no RAM and no hard driver. I add 2 GB RAM SODIMM.

I use a LED TV SAMSUNG connected with a HDMI cable. This was the hard part : the LCD is connected to the DFP-1, and MM_X_OUTPUT_HDMI in auto mode put DFP in xorg.conf :
MM_X_OUTPUT_HDMI='1'
MM_VIDEO_DECODER='vdpau'

Another hard part was the sound with HDMI. I made a
aplay -L
and found there is 2 card : an intel one, and a NVIDIA HDMI (numbered two)
And found that :
cat /proc/asound/devices
Show the card number 2 has 4 devices : 3, 7, 8 and 9
Try with there until it work, and it work with 7 :
MM_AUDIO_CARD_NUMBER=1
MM_AUDIO_DEVICE_NUMBER=7

That's it !!!
I alsa have a KONIG remote, work like a charm (except it is recognized as a keyboard, so have to map the key in the myth configuration)
For the record, i use nfs-minimyth-0.23.1-74
As the TV is Full HD (aka 1080p), i try a x264 1080p film (15gb) and with vdpau, cpu utilization is at 15%

Regards,
Camousse

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Zotac ZBOXHD-ID11 : Success

Post by Pablo » Wed Nov 10, 2010 3:34 am

I am glad that you were able to get it to work.

By the way, MiniMyth can handle input devices (e.g. devices that show up as keyboards) as remote controls. If you set MM_LIRC_DRIVER to 'devinput' and you set 'MM_LIRC_DEVICE to the device's name persistent symlink '/dev/persistent/???', then the device will be handled by eventlircd (as a remote) rather than xorg (as a keyboard). Also, if you post the USB vendor and device IDs for the remote receiver, then I can make this automatic.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Re: Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Fri Nov 12, 2010 2:02 am

I forget to thank you for Minimyth, Pablo. Thanks, this is a great software

For the LIRC device, this is a KONIG Remote Control. The device reported by lsusb is :
Bus 003 Device 002: ID 1241:e000 Belkin

I try to make an evmap, but i break everything. How can i make one ?

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Zotac ZBOXHD-ID11 : Success

Post by Pablo » Fri Nov 12, 2010 3:46 am

You can make one by running evtest and the /dev/input/event* device that corresponds to your remote and looking at the output when you press each button on the remote. However, given that this device is marketed as an MCE remote and appears as a keyboard, there is a reasonable chance that it use the standard MCE keyboard shortcuts. If so, then you can just copy /etc/eventlircd.d/mcekbd.evmap from you frontend. If that works, then let me know and I can make it automatic for your remote.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Re: Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Fri Nov 12, 2010 5:23 pm

OK in fact there is 2 input device :
event-usb:1241:e000::00 -> ../input/event2
event-usb:1241:e000::01 -> ../input/event3

Those two device are used : some keys go to event2, another to event3 (example : volume up / down)

I don't know how to put the two device in the MM_LIRC_DEVICE parameters...

For the evmap file, seems it is different from the mce.evmap...

As i have some trouble with mythtv internal video player (for external .srt file), i need mplayer, so i need lirc...

Thanks
Regards
Camousse

ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Re: Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Fri Nov 12, 2010 6:15 pm

Ok i write :
MM_LIRC_DEVICE='/dev/persistent/event-usb:1241:e000:*'
And put a blank file in place of my devinput.evmap
The command irw report me the keys (there are not translated : i have some KEY_F instead of KEY_FORWARD), but it reports me all the key of the remote
I have some trouble as i have 2 key reporting the same KEYS (ENTER)
I don't understand anything with all those mapping....
My devinput.evmap seems to do nothing...

Regards
Camousse

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Zotac ZBOXHD-ID11 : Success

Post by Pablo » Fri Nov 12, 2010 6:28 pm

Could you send me a URL with a picture of the actual remote?

I an Adesso ARC-1100 that creates two event devices. It uses /etc/eventlircd.d/03_05a4_9881.evmap for its evmap. It it does not work for your remote, then run

Code: Select all

evtest /dev/persistent/event-usb:1241:e000::00
press each button and record the corresponding key names that result.
After, run

Code: Select all

evtest /dev/persistent/event-usb:1241:e000::01
press each button and record the corresponding key names that result.
Then, post the information and I can create an evmap for your device.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Re: Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Fri Nov 12, 2010 6:40 pm

Ok i think i have only one trouble
If i use evtest,
key enter report alt+meta+Enter
key menu report Enter

If i use irw,
key enter report Enter
key menu report Enter

If i manage to have a mapping that correct this issue, i think i'm good ;-)

Regards,
Camousse

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Zotac ZBOXHD-ID11 : Success

Post by Pablo » Fri Nov 12, 2010 6:42 pm

ca_mousse wrote:Ok i write :
MM_LIRC_DEVICE='/dev/persistent/event-usb:1241:e000:*'
And put a blank file in place of my devinput.evmap
The command irw report me the keys (there are not translated : i have some KEY_F instead of KEY_FORWARD), but it reports me all the key of the remote
I have some trouble as i have 2 key reporting the same KEYS (ENTER)
The duplicate ENTER keys is likely due to one of the keys having modifier. For instance, on my remote, when I press the "OK" button the remote outputs ENTER, but when I press the "Windows Start" button the remote outputs CTRL+ENTER.
I don't understand anything with all those mapping....
My devinput.evmap seems to do nothing...
This is likely due to the file not containing the modifiers. For example, on my remote when I press the ">>" button, my the remote outputs CTRL+SHIFT+KEY_F. Therefore, the evmap file for this button needs to contain the line

Code: Select all

ctrl+shift+KEY_F = KEY_FORWARD
not just

Code: Select all

KEY_F = KEY_FORWARD
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Re: Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Sat Nov 13, 2010 1:41 am

This is an image from the website i bought it : http://media.ldlc.com/ld/products/00/00 ... 7174_1.jpg
I will take a better picture than that, but in sunday
I already try to have an evmap file with the modifiers, but it doesn't work : irw always return Enter for the two keys.
Also try with "leftalt" as modifier (as reported by evtest), didn't work either
I put some # for commentary at the end of the line, this is the only difference between your post.

I will post an url sunday, and try without commentary.
If it works, i will post my evmap...

Thanks again.

ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Re: Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Sun Nov 14, 2010 4:21 pm

Ok i think the problem is that my devinput.evmap is not used...
I try to map KEY_ENTER to KEY_D, and irw always report KEY_ENTER... (and i use the key evtest report as KEY_ENTER, without modifiers...)
Where does the problem come from ? my * in the LIRC_DEVICE ?

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Zotac ZBOXHD-ID11 : Success

Post by Pablo » Wed Nov 17, 2010 1:52 pm

I have attempted to add auto-detection of your remote to MiniMyth. Could you give 0.23.1-75b5 a try?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Re: Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Wed Nov 17, 2010 9:07 pm

Thanks, i download it and try it.

This is the evmap i done, but it doesn't work (i do not mal all the keys) :

Code: Select all

ctrl+KEY_T	= KEY_ESCAPE	# First Shutdown
alt+KEY_F4	= KEY_SLEEP	# Second Shutdown
ctrl+KEY_R	= KEY_RECORD	# Record
shift+ctrl+KEY_S= KEY_STOP	# Stop
ctrl+KEY_P	= KEY_PAUSE	# Pause
shift+ctrl+KEY_B= KEY_REWIND	# Rewind
shift+ctrl+KEY_P= KEY_PLAY	# Play
shift+ctrl+KEY_F= KEY_FORWARD	# Forward
ctrl+KEY_B	= KEY_PREVIOUS	# Replay
ctrl+KEY_F	= KEY_NEXT	# Skip
KEY_BACKSPACE	= KEY_BACK	# Back
KEY_MENU	= KEY_INFO	# More
KEY_UP		= KEY_UP	# Up
KEY_DOWN	= KEY_DOWN	# Down
KEY_RIGHT	= KEY_RIGHT	# Right
KEY_LEFT	= KEY_LEFT	# Left
KEY_RETURN	= KEY_ENTER	# OK
ctrl+KEY_E	= KEY_VIDEO	# Video (RED)
ctrl+KEY_M	= KEY_MUSIC	# Music (YELLOW)
ctrl+KEY_I	= KEY_MEDIA	# Picture (BLUE)
ctrl+shift+KEY_T= KEY_TV	# MyTV (GREEN)
KEY_VOLUMEUP	= KEY_VOLUMEUP	# Volume UP
KEY_VOLUMEDOWN	= KEY_VOLUMEDOWN	# Volume DOWN
KEY_VOLUMEMUTE	= KEY_VOLUMEMUTE	# Volume MUTE
KEY_PAGEUP	= KEY_CHANNELUP	# Channel UP
KEY_PAGEDOWN	= KEY_CHANNELDOWN	# Channel DOWN
alt+meta+KEY_RETURN= KEY_MENU	# Start (Green Home)
KEY_1              = KEY_NUMERIC_1
KEY_2              = KEY_NUMERIC_2
KEY_3              = KEY_NUMERIC_3
KEY_4              = KEY_NUMERIC_4
KEY_5              = KEY_NUMERIC_5
KEY_6              = KEY_NUMERIC_6
KEY_7              = KEY_NUMERIC_7
KEY_8              = KEY_NUMERIC_8
KEY_9              = KEY_NUMERIC_9
KEY_0              = KEY_NUMERIC_0
KEY_KPASTERISK  =	# KEY_KPASTERISK
#KEY_#		=	# #
ctrl+KEY_O	= KEY_VCR	# RTV
ctrl+KEY_G	= KEY_PROGRAM	# GUIDE
ctrl+KEY_A	= KEY_RADIO	# RADIO
shift+ctrl+KEY_M= KEY_DVD	# DVD
shift+ctrl+KEY_A= KEY_LANGUAGE	# AUDIO
ctrl+KEY_U	= KEY_SUBTITLE	# TITLE
shift+ctrl+KEY_Z= KEY_ANGLE	# ASPECT
#ctrl+KEY_N	= KEY_TEXT	# MSN
#KEY_F1		=	# HELP
KEY_DELETE	= KEY_CLEAR	# CLEAR
KEY_RETURN	=	# ENTER

ca_mousse
Member
Posts: 20
Joined: Thu Jun 05, 2008 7:13 pm

Re: Zotac ZBOXHD-ID11 : Success

Post by ca_mousse » Wed Nov 17, 2010 10:28 pm

It works !!!

Thank you so much Pablo !!!

I modify the evmap file (03_1241_e000.evmap 03_147a_e02d.evmap) and the udev rules in order it loads it instead of mcekbd.evmap :

Code: Select all

ctrl+KEY_T	= KEY_POWER	# First Shutdown
alt+KEY_F4	= KEY_CLOSE	# Second Shutdown
ctrl+KEY_R	= KEY_RECORD	# Record
shift+ctrl+KEY_S= KEY_STOP	# Stop
ctrl+KEY_P	= KEY_PAUSE	# Pause
shift+ctrl+KEY_B= KEY_REWIND	# Rewind
shift+ctrl+KEY_P= KEY_PLAY	# Play
shift+ctrl+KEY_F= KEY_FORWARD	# Forward
ctrl+KEY_B	= KEY_PREVIOUS	# Replay
ctrl+KEY_F	= KEY_NEXT	# Skip
KEY_BACKSPACE	= KEY_BACK	# Back
KEY_COMPOSE	= KEY_INFO	# More
KEY_UP		= KEY_UP	# Up
KEY_DOWN	= KEY_DOWN	# Down
KEY_RIGHT	= KEY_RIGHT	# Right
KEY_LEFT	= KEY_LEFT	# Left
KEY_ENTER	= KEY_ENTER	# OK
ctrl+KEY_E	= KEY_VIDEO	# Video (RED)
ctrl+KEY_M	= KEY_MP3	# Music (YELLOW)
ctrl+KEY_I	= KEY_MEDIA	# Picture (BLUE)
ctrl+shift+KEY_T= KEY_TV	# MyTV (GREEN)
KEY_VOLUMEUP	= KEY_VOLUMEUP	# Volume UP
KEY_VOLUMEDOWN	= KEY_VOLUMEDOWN	# Volume DOWN
KEY_VOLUMEMUTE	= KEY_MUTE	# Volume MUTE
KEY_PAGEUP	= KEY_CHANNELUP	# Channel UP
KEY_PAGEDOWN	= KEY_CHANNELDOWN	# Channel DOWN
alt+meta+KEY_RETURN= KEY_MENU	# Start (Green Home)
KEY_1           = KEY_NUMERIC_1
KEY_2           = KEY_NUMERIC_2
KEY_3           = KEY_NUMERIC_3
KEY_4           = KEY_NUMERIC_4
KEY_5           = KEY_NUMERIC_5
KEY_6           = KEY_NUMERIC_6
KEY_7           = KEY_NUMERIC_7
KEY_8           = KEY_NUMERIC_8
KEY_9           = KEY_NUMERIC_9
KEY_0           = KEY_NUMERIC_0
KEY_KPASTERISK	= KEY_KPASTERISK # *
shift+KEY_3	= KEY_POUND	# #
ctrl+KEY_O	= KEY_VCR	# RTV
ctrl+KEY_G	= KEY_PROGRAM	# GUIDE
ctrl+KEY_A	= KEY_RADIO	# RADIO
shift+ctrl+KEY_M= KEY_DVD	# DVD
shift+ctrl+KEY_A= KEY_AUDIO	# AUDIO
ctrl+KEY_U	= KEY_SUBTITLE	# TITLE
shift+ctrl+KEY_Z= KEY_ZOOM	# ASPECT
ctrl+KEY_N	= KEY_TEXT	# MSN
KEY_F1		= KEY_F1	# HELP
KEY_DELETE	= KEY_CLEAR	# CLEAR
KEY_ENTER	= KEY_ENTER	# ENTER
All keys work, except #, i don't know why...

I still don't understand why my devinput.evmap wasn't loaded (it was downloader from the tftpserver, but not used by eventlircd)

Thanks again
Camousse

Post Reply