On Tue, Nov 07, 2006 at 18:38:48 -0800, Jon Woffenden wrote:
> Hello everyone.  I searched far and wide trying to find a way to use my 
> Apple IR Remote under Linux to control my music.  I found mention here 
> and there about a kernel patch, but I couldn't find the patch and I 
> didn't hear anything about versions of it for newer kernels.
> 
> I finally just gave it a crack myself and wrote up a ruby script that 
> controls Amarok with the remote, but I was wondering if there was a 
> better way to do this - something more generic so it would work on 
> things other than Amarok.  Also, I have to start it up manually when I 
> reboot with "sudo cat /dev/hiddev0 | ruby remote.rb" because it has to 
> have root permissions to cat from /dev/hiddev0, but if I run it in a 
> startup script it actually runs AS root - and I'd rather not run my 
> music player as root.
> 
> Other than that it works great on my machine (1.6 Ghz Intel Mini running 
> Ubuntu 6.10). What do you think? Are there ways to improve this?  Does 
> it work on your distro/machine?  I'd like to know how I can make it 
> better and hopefully set up a package that's easy to distribute/configure.

Hi,

I simply use lirc. Sample lircd config is attached.

In your .lircrc, just use something like
"config = dcop amarok player play" to control amarok.

Your lircd command line should look like this:

lircd -n -H dev/input -d <path to the input device> /etc/lirc/lircd.conf-apple

Regards,
Tino
# Please make this file available to others
# by sending it to <[EMAIL PROTECTED]>
#
# this config file was automatically generated
# using lirc-0.8.0(devinput) on Fri Aug 25 23:48:04 2006
#
# contributed by 
#
# brand:                       lircd.conf
# model no. of remote control: 
# devices being controlled by this remote:
#

begin remote

  name  apple-frontrow
  bits            8
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   24
  pre_data       0x800100
  gap          135862
  toggle_bit      0


      begin codes
          menu                     0x8B
          plus                     0x73
          minus                    0x72
          back                     0xA5
          forward                  0xA3
          play                     0xA4
      end codes

end remote

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mactel-linux-devel mailing list
Mactel-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel

Reply via email to