Next thing I tried with the Mini was remote control. I installed Lirc and tried to record ir-commands with following command:
irrecord -H macmini -d /dev/hiddev0 appleremote.conf
After teaching the buttons I could start lirc with following command:
/usr/sbin/lircd --driver=macmini -d /dev/hiddev0 appleremote.conf
Apple remote worked fine, but Satelco remote didn't give any event for button presses. I googled around and found out that Mac Mini's ir-receiver doesn't support any other remotes than Apple's own! Solution is to use learning remote, like Logitech Harmony 525 which I happen to own, to learn many Apple remote codes to one set of keys.
Next thing I decided to try was to get the Satelco's USB ir-receiver to work. After some more googling around I found out that Fedora 9 would already support the receiver. The patch needed for the ir-receiver, which is reported as Samsung IrDA remote controller, is included in the kernel 2.6.25 and the Lirc version 0.8.3 also includes driver for the Samsung. But there is one crucial constraint: "Minor constraint: Repeat events are not supported." This is not acceptable with my system as for example setting the volume is very hard without key-repeats. Anyway I tested the remote with lirc's conf file for samsung, note that when Satelco's ir-receiver was plugged in, it was the first hiddev device and Mini's own was mapped to hiddev1 (This took some time to notice):
/usr/sbin/lircd --driver=samsung -d /dev/hiddev0 lirc.conf.samsung
The remote worked fine except for the key-repeats. Arrow buttons were mapped to keyboard's cursor keys, Ok button was mapped to Enter. Power button was mapped to power key of the system, so it put the Mac Mini to standby immediately, which isn't so great as VDR should be the one which initiates the standby command, otherwise the timer wakeup wouldn't work.
So now I need to use my Harmony 525 to learn different Apple Remote ir-codes and test that with Lirc. If it works flawlessy I then need to find out second affordable unit of that remote type so that my budget won't go too high.
irrecord -H macmini -d /dev/hiddev0 appleremote.conf
After teaching the buttons I could start lirc with following command:
/usr/sbin/lircd --driver=macmini -d /dev/hiddev0 appleremote.conf
Apple remote worked fine, but Satelco remote didn't give any event for button presses. I googled around and found out that Mac Mini's ir-receiver doesn't support any other remotes than Apple's own! Solution is to use learning remote, like Logitech Harmony 525 which I happen to own, to learn many Apple remote codes to one set of keys.
Next thing I decided to try was to get the Satelco's USB ir-receiver to work. After some more googling around I found out that Fedora 9 would already support the receiver. The patch needed for the ir-receiver, which is reported as Samsung IrDA remote controller, is included in the kernel 2.6.25 and the Lirc version 0.8.3 also includes driver for the Samsung. But there is one crucial constraint: "Minor constraint: Repeat events are not supported." This is not acceptable with my system as for example setting the volume is very hard without key-repeats. Anyway I tested the remote with lirc's conf file for samsung, note that when Satelco's ir-receiver was plugged in, it was the first hiddev device and Mini's own was mapped to hiddev1 (This took some time to notice):
/usr/sbin/lircd --driver=samsung -d /dev/hiddev0 lirc.conf.samsung
The remote worked fine except for the key-repeats. Arrow buttons were mapped to keyboard's cursor keys, Ok button was mapped to Enter. Power button was mapped to power key of the system, so it put the Mac Mini to standby immediately, which isn't so great as VDR should be the one which initiates the standby command, otherwise the timer wakeup wouldn't work.
So now I need to use my Harmony 525 to learn different Apple Remote ir-codes and test that with Lirc. If it works flawlessy I then need to find out second affordable unit of that remote type so that my budget won't go too high.
Ei kommentteja:
Lähetä kommentti