Gotview remote support

Ask for new features here.

Moderator: Pablo

Post Reply
bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Gotview remote support

Post by bam » Mon Nov 02, 2009 11:51 pm

Hi Pablo!
I have a Gotview remote control that appears as keyboard. This is it:

Code: Select all

root@mm:~ # lsusb -d 419:
Bus 002 Device 002: ID 0419:0001 Samsung Info. Systems America, Inc. IrDA Remote Controller
And this is how it exposes through sysfs:

Code: Select all

root@mm:~ # find /sys/ -name moda* -exec grep -Hi 419 {} \;
/sys/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.0/modalias:usb:v0419p0001d0000dc00dsc00dp00ic03isc01ip01
/sys/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.0/input/input4/modalias:input:b0003v0419p0001e0100-e0,1,4,11,14,k77,7D,7E,7F,ram4,l0,1,2,3,4,sfw
/sys/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.1/modalias:usb:v0419p0001d0000dc00dsc00dp00ic03isc01ip02
/sys/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.1/input/input5/modalias:input:b0003v0419p0001e0110-e0,1,2,4,k71,72,73,74,8E,8F,90,9B,9C,9E,9F,A3,A4,A5,A6,AB,AC,100,101,102,103,104,110,111,112,r0,1,8,am4,lsfw
I had added the following line to the appropriate place of the /lib/udev/rules.d/05-minimyth-detect-lirc.rules.disabled file to make it work:

Code: Select all

ENV{MODALIAS}=="input:b0003v0419p0001e*", ENV{mm_detect_state_lirc}="devinput,"
Don't sure about it's correctness, but it works.
And

Code: Select all

ENV{MODALIAS}=="usb:v0419p0001d*dc*dsc*dp*ic*isc*ip*", ENV{mm_detect_state_lirc}="devinput,"
doesn't works, though I tried it first.
Yep, and hid-samsung.ko module is needed for this remote. Corresponding kernel's .config file line:

Code: Select all

CONFIG_HID_SAMSUNG=m
Could you add the remote support as well? I'll post a lircrc.mythtv config file for certain keys of the remote to work as soon as it will be ready.
Thank you.

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

Re: Gotview remote support

Post by Pablo » Tue Nov 03, 2009 1:33 am

Thank you for the information.

I have added the hid-samsung.ko module to the default image. The change has been committed to SVN so it will be in the next build.

What are the devices that are created (i.e. /dev/usb/hidev* or /dev/input/event*)?
What files are there in /var/cache/minimyth/detect/lirc and what are their contents?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Re: Gotview remote support

Post by bam » Tue Nov 03, 2009 10:15 pm

Pablo wrote:What are the devices that are created (i.e. /dev/usb/hidev* or /dev/input/event*)?
What files are there in /var/cache/minimyth/detect/lirc and what are their contents?
Loading the hid_samsung module adds devises:
  • event4
    event5
    mouse0
in /dev/input/.
There is no /dev/usb/ directory at all.

Code: Select all

root@mm:~ # ls -1 /var/cache/minimyth/detect/lirc/
event4
event5
root@mm:~ # cat /var/cache/minimyth/detect/lirc/event4
/dev/input/event4,devinput,
root@mm:~ # cat /var/cache/minimyth/detect/lirc/event5
/dev/input/event5,devinput,
By the way, the MM_LIRC_WAKEUP_ENABLED=yes config variable do not enables wake up from the remote. I guess this is due to the absence of a /dev/lircN device for it.

bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Re: Gotview remote support

Post by bam » Sun Nov 08, 2009 4:00 pm

Pablo, how about committing according changes to the /lib/udev/rules.d/05-minimyth-detect-lirc.rules.disabled file for the remote support?

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

Re: Gotview remote support

Post by Pablo » Sun Nov 08, 2009 7:23 pm

bam wrote:Pablo, how about committing according changes to the /lib/udev/rules.d/05-minimyth-detect-lirc.rules.disabled file for the remote support?
I have committed the change to SVN.
bam wrote:By the way, the MM_LIRC_WAKEUP_ENABLED=yes config variable do not enables wake up from the remote. I guess this is due to the absence of a /dev/lircN device for it.
I have modified init's enabling of wake-on-usb so that it should now enable wake-on-usb if the LIRC device is connected through USB not just if the LIRC device creates a device in the lirc class.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Re: Gotview remote support

Post by bam » Mon Nov 09, 2009 12:57 am

Cool. Thank you.

bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Re: Gotview remote support

Post by bam » Mon Dec 21, 2009 12:26 pm

Hi Pablo.
Are you dropped gotview remote support?
If there are any problems I'm ready to supply needed information.

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

Re: Gotview remote support

Post by Pablo » Mon Dec 21, 2009 5:17 pm

bam wrote:Hi Pablo.
Are you dropped gotview remote support?
If there are any problems I'm ready to supply needed information.
I assume that you referring to 73b1. I dropped it by accident when converting from using lircd to eventlircd. I have added it back.

By the way, does this remote generate keyboard shortcuts (e.g. ctrl+alt+B) when you press one key? If so, could you let me know the mapping of key name to keyboard shortcut sequence? One of the things that eventlircd allows me to do easily is convert keyboard shortcuts into single events, making it work more cleanly with lircrc files.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Re: Gotview remote support

Post by bam » Mon Dec 21, 2009 5:46 pm

Pablo wrote: By the way, does this remote generate keyboard shortcuts (e.g. ctrl+alt+B) when you press one key? If so, could you let me know the mapping of key name to keyboard shortcut sequence?
Of course I could, Pablo.
This is what I initially intended to inform.
It was composed by one of the russian gay:
http://www.gotview.ru/olimp/viewtopic.p ... 613#p24613
The pic: http://www.ixbt.com/peripheral/pdu/gotview/pult-b.jpg
Image
I will wait for the next build to test it all :)
Thank you!
PS: heh, good test-case for probe your new shiny mega-super eventlircd :wink:
Last edited by bam on Tue Dec 22, 2009 5:15 pm, edited 1 time in total.

bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Re: Gotview remote support

Post by bam » Mon Dec 21, 2009 9:53 pm

By the way, Pablo - could you read my post http://www.minimyth.org/forum/viewtopic ... 718#p12718 about reconnecting frontend?

bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Re: Gotview remote support

Post by bam » Mon Jan 04, 2010 12:18 am

I'm glad to greet everyone on this forum in the New Year!
Pablo, you didn't include 03_0419_0001.keymap file in eventlircd's svn/trunk/etc/Makefile.am :cry:

bam
Contributor
Posts: 65
Joined: Sat May 23, 2009 10:02 pm
Location: Russia, Moscow

Re: Gotview remote support

Post by bam » Tue Jan 05, 2010 4:37 pm

Gotview remote works with the following patch:

Code: Select all

--- lib/udev/rules.d/06-minimyth-hotplug-02-eventlircd.rules.disabled.orig      2010-01-04 22:02:52.000000000 +0300
+++ lib/udev/rules.d/06-minimyth-hotplug-02-eventlircd.rules.disabled   2010-01-04 21:51:55.000000000 +0300
@@ -21,11 +21,11 @@
 GOTO="end-usb"
 LABEL="begin-usb"
 ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
-ENV{ID_VENDOR}=="0419", ENV{ID_MODEL}=="0001", ENV{eventlircd_enable}="true"
+ENV{ID_VENDOR_ID}=="0419", ENV{ID_MODEL_ID}=="0001", ENV{eventlircd_enable}="true"
 ENV{ID_VENDOR}=="05a4", ENV{ID_MODEL}=="9881", ENV{eventlircd_enable}="true"
 ENV{ID_VENDOR}=="0766", ENV{ID_MODEL}=="0204", ENV{eventlircd_enable}="true"
 ENV{ID_VENDOR}=="147a", ENV{ID_MODEL}=="e02d", ENV{eventlircd_enable}="true"
-ENV{eventlircd_enable}=="true", ENV{eventlircd_keymap}="03_$env{ID_VENDOR}_$env{ID_MODEL}.keymap"
+ENV{eventlircd_enable}=="true", ENV{eventlircd_keymap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.keymap"
 GOTO="begin-generic"
 LABEL="end-usb"

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

Re: Gotview remote support

Post by Pablo » Fri Jan 08, 2010 8:38 pm

Thanks. I have fixed both and committed the fixes. The fixes will be in the next build.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply