macid
January 12th, 2011, 09:32 PM
Hello World,
at first a warning: My english is very bad! I hope anyone understand, what I am trying to say.
So, normally, I only get information from these forums, but now I can give back some (hopefully usual) information.
Some time agoe, I decided to build my own HTPC, based on a linux system. I have a Thermaltake DH 101 Case, with the IMon LCD/IR Panel built in. I have downloaded the Mythbuntu CD/DVD and installed it.
And I recognized, that the remote does not work at all, only some rudimentary functions available.
Spended much (really much) time to search the web, and readed many manuals and how-to's. But no manual fit 100% and so, the IMon won't work with lirc.
But now, it did, and I will explain, how i did:
1. Install lirc (only if not done until)
sudo apt-get install lirc
2. What files are needed to check / change?
/etc/lirc/hardware.conf
/etc/lirc/lircd.conf
/home/<username>/.mythtv/lircrc
2.1 hardware.conf:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="devinput/eventx"
REMOTE_MODULES="lirc_dev"
REMOTE_DRIVER="devinput"
#REMOTE_DEVICE="/dev/lirc0"
REMOTE_DEVICE="/dev/input/event4"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/usr/share/lirc/remotes/devinput/lircd.conf.devinput"
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF=""
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
Modify the following line to your requirements:
REMOTE_DEVICE="/dev/input/event4"
What device do you have?
Type in termninal:
lsusb
and you will get somthing like that:
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 15c2:0038 SoundGraph Inc. GD01 MX VFD Display/IR Receiver
Bus 005 Device 002: ID 04f3:01a4 Elan Microelectronics Corp.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Now you've got the Vendor and the proct-Id: 15c2:0038
Type in terminal following command:
ls -l /dev/input/by-id/
and you will get somthing similar to:
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-04f3_2.4G_RF_Keyboard___Mouse-event-kbd -> ../event2
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-04f3_2.4G_RF_Keyboard___Mouse-event-mouse -> ../event3
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-04f3_2.4G_RF_Keyboard___Mouse-mouse -> ../mouse0
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-15c2_0038-event-mouse -> ../event4
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-15c2_0038-mouse -> ../mouse1
You can see, by selecting the right vendor and id, that we have got two entries. We will take the event-mouse.
(It is linked to the event4 in my case).
So you have to put in the hardware.conf the /dev/input/event4
(normally you can also write in the link to event4)
2.2 Now modify the /etc/lircd.conf
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.
#Configuration for devinput:
include "/usr/share/lirc/remotes/devinput/lircd.conf.devinput"
The include-file is the same as wrote down in the hardware.conf.
2.3 Now we have to modify the /home/etc/<username>/.mythtv/lircrc
# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox, John Baab
# Created for use with Mythbuntu
begin
remote = devinput
prog = mythtv
button = KEY_RECORD
config = R
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_PLAY
config = P
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_REWIND
config = <
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_PAUSE
config = P
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_FASTFORWARD
config = >
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_STOP
config = Escape
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_ESC
config = Escape
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_DASHBOARD
config = S
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_CYCLEWINDOWS
config = I
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_MUTE
config = |
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_VOLUMEUP
config = ]
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_VOLUMEDOWN
config = [
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_CHANNELUP
config = Up
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_CHANNELDOWN
config = Down
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_1
config = 1
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_2
config = 2
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_3
config = 3
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_4
config = 4
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_5
config = 5
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_6
config = 6
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_7
config = 7
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_8
config = 8
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_9
config = 9
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_0
config = 0
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_SCREEN
config = F
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_MENU
config = M
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_SPACE
config = Return
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_ENTER
config = Return
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_ESC
config = Escape
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_UP
config = Up
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_LEFT
config = Left
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_DOWN
config = Down
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_RIGHT
config = Right
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_POUND
config = D
repeat = 0
delay = 0
end
3. How do I get these remote codes?
First, please restart your machine, after the modifcation of the config-files.
Some-Times
service lirc restart does not refresh the configuration.
After the restart, irw should put some output to you, if you are pressing a button on the remote. Like this:
root@SSMB:/home/michael/.mythtv# irw
0000000080010073 00 KEY_VOLUMEUP devinput
0000000080010072 00 KEY_VOLUMEDOWN devinput
000000008001006a 00 KEY_RIGHT devinput
000000008001006a 00 KEY_RIGHT devinput
000000008001006a 00 KEY_RIGHT devinput
00000000800100cf 00 KEY_PLAY devinput
0000000080010201 00 KEY_NUMERIC_1 devinput
0000000080010202 00 KEY_NUMERIC_2 devinput
0000000080010205 00 KEY_NUMERIC_5 devinput
0000000080010204 00 KEY_NUMERIC_4 devinput
0000000080010189 00 KEY_VIDEO devinput
0000000080010188 00 KEY_AUDIO devinput
With this method, you can get any lirc-supported button-code of your remote.
4. Finally configure Mythtv to the right lirc-device
Start your Frontend, go to setup, basic-setting (I think, not sure)
(In German: Konfiguration/Konfiguration/Grundeinstellungen)
Set the Lirc-Soket to: /dev/lircd
5. Now you should have a working IMON-Remote working with your PC!
6. The LCD is working very fine, using lcdproc. Install it, and configure it, just as is explained on the developers website, it works out of the box. Great.
So, i hope anyone can use this information, and I am glad, that i've got the chance, to give back some information to the great linux community.
Goog night and greetings from germany.
at first a warning: My english is very bad! I hope anyone understand, what I am trying to say.
So, normally, I only get information from these forums, but now I can give back some (hopefully usual) information.
Some time agoe, I decided to build my own HTPC, based on a linux system. I have a Thermaltake DH 101 Case, with the IMon LCD/IR Panel built in. I have downloaded the Mythbuntu CD/DVD and installed it.
And I recognized, that the remote does not work at all, only some rudimentary functions available.
Spended much (really much) time to search the web, and readed many manuals and how-to's. But no manual fit 100% and so, the IMon won't work with lirc.
But now, it did, and I will explain, how i did:
1. Install lirc (only if not done until)
sudo apt-get install lirc
2. What files are needed to check / change?
/etc/lirc/hardware.conf
/etc/lirc/lircd.conf
/home/<username>/.mythtv/lircrc
2.1 hardware.conf:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="devinput/eventx"
REMOTE_MODULES="lirc_dev"
REMOTE_DRIVER="devinput"
#REMOTE_DEVICE="/dev/lirc0"
REMOTE_DEVICE="/dev/input/event4"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/usr/share/lirc/remotes/devinput/lircd.conf.devinput"
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF=""
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
Modify the following line to your requirements:
REMOTE_DEVICE="/dev/input/event4"
What device do you have?
Type in termninal:
lsusb
and you will get somthing like that:
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 15c2:0038 SoundGraph Inc. GD01 MX VFD Display/IR Receiver
Bus 005 Device 002: ID 04f3:01a4 Elan Microelectronics Corp.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Now you've got the Vendor and the proct-Id: 15c2:0038
Type in terminal following command:
ls -l /dev/input/by-id/
and you will get somthing similar to:
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-04f3_2.4G_RF_Keyboard___Mouse-event-kbd -> ../event2
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-04f3_2.4G_RF_Keyboard___Mouse-event-mouse -> ../event3
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-04f3_2.4G_RF_Keyboard___Mouse-mouse -> ../mouse0
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-15c2_0038-event-mouse -> ../event4
lrwxrwxrwx 1 root root 9 2011-01-11 21:05 usb-15c2_0038-mouse -> ../mouse1
You can see, by selecting the right vendor and id, that we have got two entries. We will take the event-mouse.
(It is linked to the event4 in my case).
So you have to put in the hardware.conf the /dev/input/event4
(normally you can also write in the link to event4)
2.2 Now modify the /etc/lircd.conf
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.
#Configuration for devinput:
include "/usr/share/lirc/remotes/devinput/lircd.conf.devinput"
The include-file is the same as wrote down in the hardware.conf.
2.3 Now we have to modify the /home/etc/<username>/.mythtv/lircrc
# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox, John Baab
# Created for use with Mythbuntu
begin
remote = devinput
prog = mythtv
button = KEY_RECORD
config = R
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_PLAY
config = P
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_REWIND
config = <
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_PAUSE
config = P
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_FASTFORWARD
config = >
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_STOP
config = Escape
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_ESC
config = Escape
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_DASHBOARD
config = S
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_CYCLEWINDOWS
config = I
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_MUTE
config = |
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_VOLUMEUP
config = ]
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_VOLUMEDOWN
config = [
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_CHANNELUP
config = Up
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_CHANNELDOWN
config = Down
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_1
config = 1
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_2
config = 2
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_3
config = 3
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_4
config = 4
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_5
config = 5
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_6
config = 6
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_7
config = 7
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_8
config = 8
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_9
config = 9
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_0
config = 0
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_SCREEN
config = F
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_MENU
config = M
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_SPACE
config = Return
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_ENTER
config = Return
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_ESC
config = Escape
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_UP
config = Up
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_LEFT
config = Left
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_DOWN
config = Down
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_RIGHT
config = Right
repeat = 0
delay = 0
end
begin
remote = devinput
prog = mythtv
button = KEY_NUMERIC_POUND
config = D
repeat = 0
delay = 0
end
3. How do I get these remote codes?
First, please restart your machine, after the modifcation of the config-files.
Some-Times
service lirc restart does not refresh the configuration.
After the restart, irw should put some output to you, if you are pressing a button on the remote. Like this:
root@SSMB:/home/michael/.mythtv# irw
0000000080010073 00 KEY_VOLUMEUP devinput
0000000080010072 00 KEY_VOLUMEDOWN devinput
000000008001006a 00 KEY_RIGHT devinput
000000008001006a 00 KEY_RIGHT devinput
000000008001006a 00 KEY_RIGHT devinput
00000000800100cf 00 KEY_PLAY devinput
0000000080010201 00 KEY_NUMERIC_1 devinput
0000000080010202 00 KEY_NUMERIC_2 devinput
0000000080010205 00 KEY_NUMERIC_5 devinput
0000000080010204 00 KEY_NUMERIC_4 devinput
0000000080010189 00 KEY_VIDEO devinput
0000000080010188 00 KEY_AUDIO devinput
With this method, you can get any lirc-supported button-code of your remote.
4. Finally configure Mythtv to the right lirc-device
Start your Frontend, go to setup, basic-setting (I think, not sure)
(In German: Konfiguration/Konfiguration/Grundeinstellungen)
Set the Lirc-Soket to: /dev/lircd
5. Now you should have a working IMON-Remote working with your PC!
6. The LCD is working very fine, using lcdproc. Install it, and configure it, just as is explained on the developers website, it works out of the box. Great.
So, i hope anyone can use this information, and I am glad, that i've got the chance, to give back some information to the great linux community.
Goog night and greetings from germany.