2008-10-31, 22:44
Code:
Bus 004 Device 002: ID 0766:0204 Jess-Link Products Co., Ltd
Pvt_Ryan Wrote:Code:Bus 004 Device 002: ID 0766:0204 Jess-Link Products Co., Ltd
carl@carl-desktop:~/cyberlinkusb-20080924$ sudo make
cc -Wall -Wextra -O3 -c -o cyberlinkusb.o cyberlinkusb.cc
cyberlinkusb.cc:25:17: error: usb.h: No such file or directory
cyberlinkusb.cc:44: error: ISO C++ forbids declaration of ‘usb_dev_handle’ with no type
cyberlinkusb.cc:44: error: expected ‘;’ before ‘*’ token
cyberlinkusb.cc: In function ‘void* watchInterface(void*)’:
cyberlinkusb.cc:95: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:95: error: ‘usb_open’ was not declared in this scope
cyberlinkusb.cc:97: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:98: error: ‘usb_strerror’ was not declared in this scope
cyberlinkusb.cc:104: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:106: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:106: error: ‘usb_close’ was not declared in this scope
cyberlinkusb.cc:110: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:112: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:114: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:114: error: ‘usb_close’ was not declared in this scope
cyberlinkusb.cc:118: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:122: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:122: error: ‘usb_get_driver_np’ was not declared in this scope
cyberlinkusb.cc:123: error: ‘usb_strerror’ was not declared in this scope
cyberlinkusb.cc:128: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:128: error: ‘usb_detach_kernel_driver_np’ was not declared in this scope
cyberlinkusb.cc:129: error: ‘usb_strerror’ was not declared in this scope
cyberlinkusb.cc:132: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:132: error: ‘usb_claim_interface’ was not declared in this scope
cyberlinkusb.cc:133: error: ‘usb_strerror’ was not declared in this scope
cyberlinkusb.cc:134: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:134: error: ‘usb_close’ was not declared in this scope
cyberlinkusb.cc:137: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:137: error: ‘usb_set_altinterface’ was not declared in this scope
cyberlinkusb.cc:144: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:144: error: ‘usb_release_interface’ was not declared in this scope
cyberlinkusb.cc:145: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:145: error: ‘usb_close’ was not declared in this scope
cyberlinkusb.cc:156: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:156: error: ‘usb_interrupt_read’ was not declared in this scope
cyberlinkusb.cc:161: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:161: error: ‘usb_interrupt_read’ was not declared in this scope
cyberlinkusb.cc:189: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:193: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:198: error: ‘usb_strerror’ was not declared in this scope
cyberlinkusb.cc:201: error: ‘usb_strerror’ was not declared in this scope
cyberlinkusb.cc:206: error: ‘usb_strerror’ was not declared in this scope
cyberlinkusb.cc:211: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:211: error: ‘usb_release_interface’ was not declared in this scope
cyberlinkusb.cc:215: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc:215: error: ‘usb_close’ was not declared in this scope
cyberlinkusb.cc: In function ‘int runthreads(usb_device*)’:
cyberlinkusb.cc:224: error: ‘struct watchInterfaceArg’ has no member named ‘handle’
cyberlinkusb.cc: In function ‘usb_device* lookup()’:
cyberlinkusb.cc:247: error: ‘usb_get_busses’ was not declared in this scope
cyberlinkusb.cc:247: error: invalid use of incomplete type ‘struct usb_bus’
cyberlinkusb.cc:244: error: forward declaration of ‘struct usb_bus’
cyberlinkusb.cc:248: error: invalid use of incomplete type ‘struct usb_bus’
cyberlinkusb.cc:244: error: forward declaration of ‘struct usb_bus’
cyberlinkusb.cc:250: error: invalid use of incomplete type ‘struct usb_bus’
cyberlinkusb.cc:244: error: forward declaration of ‘struct usb_bus’
cyberlinkusb.cc:250: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:252: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:253: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:254: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:257: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:257: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc: At global scope:
cyberlinkusb.cc:267: warning: unused parameter ‘sig’
cyberlinkusb.cc: In function ‘int main(int, char**)’:
cyberlinkusb.cc:321: error: ‘usb_set_debug’ was not declared in this scope
cyberlinkusb.cc:324: error: ‘usb_init’ was not declared in this scope
cyberlinkusb.cc:326: error: ‘usb_find_busses’ was not declared in this scope
cyberlinkusb.cc:331: error: ‘usb_find_devices’ was not declared in this scope
cyberlinkusb.cc:344: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:345: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:349: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
cyberlinkusb.cc:350: error: invalid use of incomplete type ‘struct usb_device’
cyberlinkusb.cc:45: error: forward declaration of ‘struct usb_device’
make: *** [cyberlinkusb.o] Error 1
kamistukai Wrote:I am also trying to get this remote working but I'm getting erros after typing make (ubuntu 8.10 32bit)
README Wrote:By default, the CyberLink IR receiver is recognized as a USB keyboard (buttons 0-9, Clear, Enter) and a USB Mouse (the rest).
Kernel Log:
kernel: input: TopSeed Tech Corp. USB IR Combo Device as /class/input/input3
kernel: input,hidraw0: USB HID v1.00 Keyboard [TopSeed Tech Corp. USB IR Combo Device ] on usb-0000:00:02.1-3
kernel: input: TopSeed Tech Corp. USB IR Combo Device as /class/input/input4
kernel: input,hiddev96,hidraw1: USB HID v1.00 Mouse [TopSeed Tech Corp. USB IR Combo Device ] on usb-0000:00:02.1-3
crasam Wrote:i have one of these cyberlink remotes working with lirc on a mythfrontend. I also previously had it working on xbmc on the ubuntu platform.
As you know the output of lsusb shows two events. You want to confiure lirc to use the second one marked as a mouse input.
Also you need to tell lirc to use the devinput driver, for usb keyboards (which this is).
you need lircd.conf for standard keyboards
pop this in usual /etc/lircd.conf, reboot your box and type irw in terminal, press some buttons on your remote and you should have some output. You may need to remap some keys by creating lircrc file.
You will notice that 0-9 up, down, left right buttins produce no output after typing irw, however on my ubuntu box, X interacts with those and they still work but just not with lirc.
Hope this helps someone, i never bothered with that program to change keys.
Pvt_Ryan Wrote:if you read earlier you will see the program you can use and the config for it. you need to run the program as root.
#include <X11/XF86keysym.h>
#include <X11/keysymdef.h>
// !! DO NOT CHANGE THE ORDER !!
// for valid XK values look in X11/keysym.h
// 0 disables the key
const int KeyToXK[] = {
XK_Escape, // KEY_HOME
XK_s, // KEY_POWEROFF
XK_F2, // KEY_RED
XK_F3, // KEY_GREEN
XK_F4, // KEY_YELLOW
XK_F5, // KEY_BLUE
XK_Tab, // KEY_LiveTV
XK_F6, // KEY_Record
XK_F7, // KEY_Radio
XK_F8, // KEY_SAP
XK_s, // KEY_Teletext
XK_Tab, // KEY_LastCH
XK_t, // KEY_Subtitle
XK_l, // KEY_Language
XK_z, // KEY_Angle
XK_BackSpace, // KEY_Back
XK_i, // KEY_Info
XK_c, // KEY_DVDMenu
XK_plus, // KEY_VolUp
XK_minus, // KEY_VolDown
XK_u, // KEY_VolMute
XK_Page_Up, // KEY_PageUp
XK_Page_Down, // KEY_PageDown
XK_Up, // KEY_Up
XK_Left, // KEY_Left
XK_Return, // KEY_Enter
XK_Right, // KEY_Right
XK_Down, // KEY_Down
XK_p, // KEY_Play Works
XK_r, // KEY_Rewind Works
XK_p, // KEY_Pause Works
XK_f, // KEY_Forward Works
XK_comma, // KEY_FastRewind
XK_x, // KEY_Stop Works
XK_period, // KEY_FastForward
XK_1, // KEY_1
XK_2, // KEY_2
XK_3, // KEY_3
XK_4, // KEY_4
XK_5, // KEY_5
XK_6, // KEY_6
XK_7, // KEY_7
XK_8, // KEY_8
XK_9, // KEY_9
XK_0, // KEY_0
XK_d, // KEY_Clear
};
#define MICRO_IN_SEC 1000000.00
#define MICRO_IN_MILLI 1000.00
#define KEY_DELAY1 500000.00 / MICRO_IN_MILLI
#define KEY_DELAY2 100000.00 / MICRO_IN_MILLI
mdalacu Wrote:interface 0: Driver name: usbhid
interface 0: Cannot open X display
interface 1: Driver name: usbhid
interface 1: Cannot open X display
This doesn't sound to good
P.S. My kernel version : 2.6.24-19-generic (XBMC Live CD Beta 2)