Archive:MS-Tech MC-1200 Remote: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(subst:)
(section page content)
Line 1: Line 1:
<section begin="summary" />
== MS-Tech MC-1200 Remote ==
== MS-Tech MC-1200 Remote ==
[[File:Mc-1200 gross.jpg{{!}}300px|thumb]]
[[File:Mc-1200 gross.jpg|300px|thumb]]


Remote from the MS-Tech MC-1200 case.
Remote from the MS-Tech MC-1200 case.
{{-}}
<section end="summary" />


{{#if: '''How to set up in Linux:'''
= How to set up in Linux =
== UDev rule ==
== UDev rule ==
First you have to create an own udev rule to ensure, that your device nodes are always the same.
First you have to create an own udev rule to ensure, that your device nodes are always the same.
Line 82: Line 85:
The entries unter EVENTS are the devices we created via udev.
The entries unter EVENTS are the devices we created via udev.
The OPTION entries mean the following:
The OPTION entries mean the following:
{ |
{{#ifeq: {{PAGENAME}} | MS-Tech MC-1200 Remote | | {{{!}} class="collapsible collapsed" width="100%"
! style="text-align: left; background:#CADCFB;" {{!}} '''More info'''
{{!}}-
{{!}} }}
'''How to set up in Linux:'''
== UDev rule ==
First you have to create an own udev rule to ensure, that your device nodes are always the same.
We get the physical address from ''/proc/bus/input/devices'':
cat /proc/bus/input/devices
the output is something like this:
<pre>
...
I: Bus=0003 Vendor=04b4 Product=0101 Version=0100
N: Name="Cypress Cypress USB Keyboard / PS2 Mouse"
P: Phys=usb-0000:00:06.0-3/input0
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-3/4-3:1.0/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=120013
B: KEY=800000 0 e0b0ffdf 1cfffff ffffffff fffffffe
B: MSC=10
B: LED=1f
I: Bus=0003 Vendor=04b4 Product=0101 Version=0100
N: Name="Cypress Cypress USB Keyboard / PS2 Mouse"
P: Phys=usb-0000:00:06.0-3/input1
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-3/4-3:1.1/input/input5
U: Uniq=
H: Handlers=kbd mouse1 event5
B: EV=17
B: KEY=70000 0 2010000 3978 d840d000 1e0000 0 0 0
B: REL=103
B: MSC=10 
...
</pre>
What we need are the values behind ''Phys=''. In my case '''usb-0000:00:06.0-3/input0''' and '''usb-0000:00:06.0-3/input1'''.
Now we write a new rules file for udev:
sudo nano /etc/udev/rules.d/10-irremote.rules
and put the following content in:
<pre>
SUBSYSTEM=="input",ATTRS{phys}=="usb-0000:00:06.0-3/input0",SYMLINK="input/irremote0"
SUBSYSTEM=="input",ATTRS{phys}=="usb-0000:00:06.0-3/input1",SYMLINK="input/irremote1"
</pre>
Now restart udev and trigger a new discovery:
sudo restart udev
sudo udevadm trigger
Under /dev/input should now be two more symlinks; irremote0 and irremote1:
ls /dev/input
== Inputlirc installation ==
First you have to install inputlirc and lirc:
sudo apt-get update
sudo apt-get install inputlirc lirc
Then you need to configure it properly:
sudo nano /etc/default/inputlirc
and put the following content in:
<pre>
EVENTS="/dev/input/irremote0 /dev/input/irremote1"
OPTIONS="-g -m0 -c -d /dev/lircd"
</pre>
(The location of lircd is different per distro/version that I've tried, for Ubuntu 10.04 it's /dev/lircd)
The entries unter EVENTS are the devices we created via udev.
The OPTION entries mean the following:
{
{{#ifeq: {{PAGENAME}} | MS-Tech MC-1200 Remote | | {{!}}} }}
}}
[[Category:Remotes]]
[[Category:Remotes]]

Revision as of 21:46, 1 March 2014

MS-Tech MC-1200 Remote

Mc-1200 gross.jpg

Remote from the MS-Tech MC-1200 case.


How to set up in Linux

UDev rule

First you have to create an own udev rule to ensure, that your device nodes are always the same.

We get the physical address from /proc/bus/input/devices:

cat /proc/bus/input/devices

the output is something like this:

...

I: Bus=0003 Vendor=04b4 Product=0101 Version=0100
N: Name="Cypress Cypress USB Keyboard / PS2 Mouse"
P: Phys=usb-0000:00:06.0-3/input0
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-3/4-3:1.0/input/input4
U: Uniq=
H: Handlers=kbd event4 
B: EV=120013
B: KEY=800000 0 e0b0ffdf 1cfffff ffffffff fffffffe
B: MSC=10
B: LED=1f

I: Bus=0003 Vendor=04b4 Product=0101 Version=0100
N: Name="Cypress Cypress USB Keyboard / PS2 Mouse"
P: Phys=usb-0000:00:06.0-3/input1
S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-3/4-3:1.1/input/input5
U: Uniq=
H: Handlers=kbd mouse1 event5 
B: EV=17
B: KEY=70000 0 2010000 3978 d840d000 1e0000 0 0 0
B: REL=103
B: MSC=10  

...

What we need are the values behind Phys=. In my case usb-0000:00:06.0-3/input0 and usb-0000:00:06.0-3/input1.

Now we write a new rules file for udev:

sudo nano /etc/udev/rules.d/10-irremote.rules

and put the following content in:

SUBSYSTEM=="input",ATTRS{phys}=="usb-0000:00:06.0-3/input0",SYMLINK="input/irremote0"
SUBSYSTEM=="input",ATTRS{phys}=="usb-0000:00:06.0-3/input1",SYMLINK="input/irremote1"

Now restart udev and trigger a new discovery:

sudo restart udev
sudo udevadm trigger

Under /dev/input should now be two more symlinks; irremote0 and irremote1:

ls /dev/input

Inputlirc installation

First you have to install inputlirc and lirc:

sudo apt-get update
sudo apt-get install inputlirc lirc

Then you need to configure it properly:

sudo nano /etc/default/inputlirc

and put the following content in:

EVENTS="/dev/input/irremote0 /dev/input/irremote1"
OPTIONS="-g -m0 -c -d /dev/lircd"

(The location of lircd is different per distro/version that I've tried, for Ubuntu 10.04 it's /dev/lircd)

The entries unter EVENTS are the devices we created via udev. The OPTION entries mean the following: