criggie.org.nz

News Images MP3 Humour Email Us Webmail Links
Poem Debbie Criggie Daniel Luke Katherine Gladys
PC Remote this page is in progreesss

PC Remote

Images

Click for larger images

Product images




Links

Not Working Yet

These are the niggles I haven't fixed yet... Always work in progress

    Mute does not work, even though it sends a pipe / bar character    |
    
    

Output codes

The remote shows up as a USB attached keyboard, and it can also send mouse events. You cannot change the keycodes that the remote sends, you can only change what your computer does when it receives the keystroke. Here's a full list of the keystrokes it sends. Please remember Keycodes aren't ascii or hex or anything, they're just numbers for your xserver to respond to.

Row Button Keycodes with meaning Unknown Comments Mythtv Use
1 Power Does Nothing
Nothing None
1 Email
163 236
Spare
1 WWW
180 178
Spare
1 Close 64+70 "Left Alt + F4"

Spare
2 A Lcontrol + Lalt + a
Lcontrol + Lalt + 1
Lcontrol + Lalt + F1

Useless
2 B Lcontrol + Lalt + b
Lcontrol + Lalt + 2
Lcontrol + Lalt + F2

Useless
2 C Lcontrol + Lalt + c
Lcontrol + Lalt + 3
Lcontrol + Lalt + F3

Useless
2 D Lcontrol + Lalt + d
Lcontrol + Lalt + 4
Lcontrol + Lalt + F4

Useless
3 Mouse Knob

Mouse events
4 Left Click

Mouse events
4 Left Hold

Mouse events
4 Right Click

Mouse events
5 Beginning of track
144 173
Spare
5 Play / Pause
172 162
p
5 End of track
171 153
Spare
6 Rewind 37+100 "Left Control + left arrow" AND 56 "B"


6 Stop
164 174
same as play/pause
6 Fast Forward 37+102 "Left control + right arrow" AND 41 "F"


7 Vol +
123 176
]
7 Page + 112+99, "KP Divide" and "Prior"

10 min back
8 Full Screen 64+37+36 "left alt +left control + return" AND 12 "3"

Spare
9 Vol -
122 174
[
9 Page - 117 "Menu" and 105 "Next"

10 min forward
10 Mute
121 160
| Pipe char, doesn't work
10
115+26 (windows+e) 133
Spare
10 Backspace 22 backspace

Spare
11 Tab 23 TAB

Spare
11 Up 111 "print" and 98 "up"

Arrow
11 Windows key 115 "Left windows" 133
Spare
12 Left 113+100 "Ralt + leftarrow"

Arrow
12 Enter 36 "Return"

Save/Clear position
12 Right 102 "Rightarrow" 114
Arrow
13 Open 37+32 "Lcontrol + o"

Spare
13 Down 116+104 "Rwindows + Downarrow"

Arrow
13 Esc 9 "Escape"

Escape
14 Numlock Does Nothing
No effect, internal only None
14 Switch Windows 64+23 "Alt + Tab"

Spare
14 Desktop 115+40 "Lwindows + d" 133
Delete

I've listed which key is pressed as far as I can see, including if its the left or the right key. Mythtv makes no use of the windows key, so you can use "Desktop" to delete because win+D is treated the same as a D on its own.

Xmodmap content

  1. Just put this file in ~/.Xmodmap
    ! volume down
    keycode 122 = bracketleft
    
    ! volume up
    keycode 123 = bracketright
    
    ! Play/Pause
    keycode 172 = p
    
    ! Stop key
    keycode 164 = p
    
    ! Mute 
    keycode 160 = bar
    
    
    
  2. Then add a line to ~/.Xsession to call
    /usr/bin/xmodmap ~/.Xmodmap 
    
    which will load the modified keymap.

The Other Way

The other way to do this is to modify the key bindings in mythfrontend so that the key combo sent by the remote does what you expect. I have not persued this line.

The main drawback of this is that the frontend's regular keyboard would be affected, if you assigned a key to do something else.


Output of lsusb -v

Bus 003 Device 003: ID 073a:2230 Chaplet Systems, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x073a Chaplet Systems, Inc.
  idProduct          0x2230 
  bcdDevice            2.00
  iManufacturer           0 
  iProduct                0 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     239
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
Device Status:     0x0002
  (Bus Powered)
  Remote Wakeup Enabled


Output of dmesg

[553793.104050] usb 3-2: new low speed USB device using uhci_hcd and address 3
[553794.403024] usb 3-2: config 1 interface 0 altsetting 0 has 2 endpoint descriptors, different from the interface descriptor's value: 1
[553794.403032] usb 3-2: New USB device found, idVendor=073a, idProduct=2230
[553794.403036] usb 3-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[553794.445816] input: HID 073a:2230 as /devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/input/input6
[553794.445993] generic-usb 0003:073A:2230.0004: input,hidraw2: USB HID v1.10 Keyboard [HID 073a:2230] on usb-0000:00:1d.1-2/input0


Other Interesting Stuff

More details will be added over time. Any queries - email me from this mailer page


This file last modified Friday July 14, 2017

If you find something here useful, feel free to donate bitcoin: Donations address: 14LHst9s1UEh8NMem87qaEd9tJWSCiNt1x

Valid HTML 4.01!

.