I've got the knob to work. At least, I can get it to work once I've booted my computer. But I wasn't able to do it automatically during boot, but perhaps there's somebody here who can help me with that.
Here's how I did it.
I assume that you've got the VFD already working. I used the lirc_imon module for that. You can compile it from the lirc sources. During configuration choose the IMON Multimedian IR/VFD driver. (There's also a IMON Knob driver, but that did strange things to my sound).
Next, add the following to your lird.conf file: (source)
Code:
begin remote
name ClickWheel
bits 24
eps 30
aeps 100
one 0 0
zero 0 0
post_data_bits 8
post_data 0xFF
gap 131993
toggle_bit 0
begin codes
WheelCC 0x010000
WheelCW 0x000100
WheelClick 0x000008
end codes
end remote
The line "WheelClick 0x000008" isn't necessary for the Antec Fusion, since that knob isn't a clickwheel, but it doesn't hurt to leave in there.
Now since we have two lirc devices (your remote and the Antec volume knob) we have to have two instances of lircd running. In my case, my PVR-350 remote is on /dev/lirc0 and my volume knob is on /dev/lirc1. You can determine which lirc device you have by doing:
Code:
cd /dev
ls | grep lirc
You're output will look something like:
Code:
lirc
lirc0
lirc1
lircd
To determine which lirc is which device type:
You will now get (amongst others) a line like:
Code:
4820 ? Ss 0:00 /usr/sbin/lircd --device=/dev/lirc0
This will be the device you've already got working, probably your remote.
Now, stop lircd by doing:
Or on not Debian-like distro's:
Now start the two lircd instances in the following way:
Code:
# First use the lirc device for the volume knob, in my case /dev/lirc1
lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid --listen
# Now use the lirc device for your remote
lircd --driver=default --device=/dev/lirc0 --output=/dev/lircd --pidfile=/var/run/lircd.pid --connect=localhost:8765
If everything went well, you're volume knob is now working. You can test this by doing:
Now turn the knob and press some buttons on your remote. You will see an output similar to the one below.
Code:
#Output for the volume knob
00000000000100ff 00 WheelCW ClickWheel
00000000000100ff 01 WheelCW ClickWheel
00000000000100ff 02 WheelCW ClickWheel
00000000010000ff 00 WheelCC ClickWheel
00000000010000ff 01 WheelCC ClickWheel
#Output for the remote
0000000000001790 00 Vol+ Hauppauge_350
0000000000001790 00 Vol+ Hauppauge_350
00000000000017a0 00 Ch+ Hauppauge_350
00000000000017a0 01 Ch+ Hauppauge_350
00000000000017a1 00 Ch- Hauppauge_350
To make the knob actually do something you have to add entries to your .lircrc file.
This is how far I got it to work. If anyone here knows how start lircd in this way during boot, I would really appriciate it if you could let me know.
Bookmarks