Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Terratec Cinergy T2 remote with lirc HOWTO (updated)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Sun Jul 17, 2005 9:24 pm    Post subject: Terratec Cinergy T2 remote with lirc HOWTO (updated) Reply with quote

11/Apr/2006:

This Howto is updates in setp E) : there's finally a better way to hook in udev so I modified the howto.
(need kernel 2.6.16 or newer!!!!!!!!!!!!!!!!!! )
(scroll to the end of the post to the E) step )
the Alternative is now outdated by this one.


A) have loaded all modules u needed to view dvb-t channels +evdev +ir_common
(ir_common was my problem, I just compiled kernel
with all v4l and dvb modules to get it... )

B) have read another lirc tutorial: https://forums.gentoo.org/viewtopic-t-301080-highlight-avermedia.html
and followed from step 7) to 10)

C) for step 11) use this lircd.conf:
Code:

begin remote
        name terratec cinergy T2
        bits   16
   eps   30
   aeps   100

   pre_data_bits   16
   pre_data   0x1
   gap   199695
   toggle_bit   3
        begin codes
                1                    0x0002
                2                    0x0003
                3                    0x0004
                4                    0x0005
                5                    0x0006
                6                    0x0007
                7                    0x0008
                8                    0x0009
                9                    0x000a
                0                    0x000b
                UP                   0x0067
                LEFT                 0x0069
                RIGHT                0x006a
                DOWN                 0x006c
                MUTE                 0x0071
                VOLUMEDOWN           0x0072
                VOLUMEUP             0x0073
                POWER                0x0074
                PAUSE                0x0077
                STOP                 0x0080
                RECORD               0x00a7
                REFRESH              0x00ad
                PLAY                 0x00cf
                OK                   0x0160
                OSD                  0x0161
                INFO                 0x0166
                EPG                  0x016d
                TEXT                 0x0184
                VIDEO                0x0189
                RED                  0x018e
                GREEN                0x018f
                YELLOW               0x0190
                BLUE                 0x0191
                CHANNELUP            0x0192
                CHANNELDOWN          0x0193
                NEXT                 0x0197
                PREVIOUS             0x019c
   end codes
end remote


D) follow step 12) to end of the other, avermedia HOWTO

(eventually u will find that irw repeat your keys 4 times as me, I returned in kernel
and moved the cinergy T2 remote delay from 100 (default) to 25....)

Enjoy.

*NEW* E) step: hooking the device with udev:
(need 2.6.16 or newer kernel)


2) add a rule AFTER 50-udev-rules (/etc/udev/rules.d/91-local.rules , create if not existing):
Code:

KERNEL=="event*", SYSFS{name}=="TerraTec/qanu USB2.0 Highspeed DVB-T Receiver remote control", SYMLINK+="input/remcon"


(this way is much less hackish than the previous one, and faster too. Thanks to linuxtv writer for having added a name to the device).
then u can tell your lirc to use /dev/input/remcon instead of /dev/input/eventX inside /etc/conf.d/lircd.

This is less hackish and more fast and compliant than older way using evrem.sh script, and it's the exact way
udev is meant to be used (when possible).....
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/


Last edited by Matteo Azzali on Fri May 12, 2006 8:59 am; edited 20 times in total
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Mon Jul 25, 2005 10:56 am    Post subject: Reply with quote

Does No-one found it useful?
However, I discovered a little "drawback" :
using a joypad (which you can have inserted or not)
the number of the event driver (/dev/input/eventX)
change, with the risk lircd pointing the joypad....
Solution just when I figure how to symlink the eventX
using udev (that chooses the right number automatically).
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Tue Jul 26, 2005 10:13 pm    Post subject: Reply with quote

At present time, the kernel module for Cinergy T2 does not
export information for the device in sysfs,
so I can't find a way to create a symlink to make lirc pointing at it.

maybe later on, for now the one above is the max we can reach....
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Sun Aug 14, 2005 9:58 pm    Post subject: Reply with quote

I have not yet tested your tutorial, but I think it is a nice one. I investigate how to use the remote with lirc some time ago and did not find any useful documentation. So this is rather useful to me. The only thing that bothers me is that there is not a nice GNOME ui to lirc like there is on kde.
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Sun Aug 21, 2005 10:37 am    Post subject: Reply with quote

It seems that dvb-core is now corrected and kernels >=2.6.13 will handle the remote with kbd driver a little better,
but this configuration will need to change the "keybond" in a .c file in the kernel to use all the keys (eg: u will bound
"channelup" key on the remote with the "a"key on the keyboard) this will be the only other solution until the kbd
driver inside X will accept only 150 keycodes (dunno if newer, x.org-6.8.99 already modified that).At present time using this
way without modifying the kernel "dvb-core" files u will get only number and, with right keyboard configuration, volume keys working.
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Tue Aug 23, 2005 6:21 pm    Post subject: Reply with quote

Added a "patch" to avoind the moving of device used by lirc.
Works only with sysvinit(default), initng user WARNED: will not works.
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Thu Aug 25, 2005 8:57 pm    Post subject: Reply with quote

Ok, check this tutorial
to configure dvb-remotes without using lirc, they will be recognized as keyboard buttons (even extended/multimedia).

Hope this help configuring under gnome, shortcuts are there too, I think.
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Tue Nov 08, 2005 2:58 pm    Post subject: Reply with quote

Up, final version with stable symlink (remcon), to avoid lirc to point joypads/usb devices.
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
MixMax
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: Finland

PostPosted: Mon Dec 19, 2005 1:14 pm    Post subject: Reply with quote

First of all Thank you for the tutorial.

I'm having some trouble thou, would you have anyidea for why my cinergyT2 card isn't working with mouse?

here is some more info what happends here.
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Mon Jan 09, 2006 8:16 pm    Post subject: Reply with quote

Updated to reflect changes in devices file, grep -A3 instead of -A 2:

#! /bin/sh
nox=`grep -A 3 TerraTec /proc/bus/input/devices`
noxa=${nox##*kbd }
nox=${noxa%% *}
if [ "x$nox" = "xevent2" ] || [ "x$nox" = "xevent3" ] || [ "x$nox" = "xevent4" ] \
|| [ "x$nox" = "xevent5" ] || [ "x$nox" = "xevent6" ] || [ "x$nox" = "xevent7" ];then
#echo "$nox"
rm /dev/input/remcon 2>/dev/null
ln -s "$nox" /dev/input/remcon
exit 1
else
exit 0
fi
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Thu May 11, 2006 6:26 pm    Post subject: Reply with quote

Finally with 2.6.16 kernels there's a name for the remote control device to use for udev hook... updated
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Thu May 11, 2006 6:59 pm    Post subject: Reply with quote

I am still following your thread. Thanks for this update.
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Thu May 11, 2006 7:20 pm    Post subject: Reply with quote

You're welcome, this should be the end of the thread,in my hopes:
finally the evrem.sh/evremote.sh script is no more necessary,and the remote is hooked as it should.
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
ziererk
n00b
n00b


Joined: 26 Mar 2004
Posts: 32
Location: Germany

PostPosted: Wed Dec 27, 2006 9:18 pm    Post subject: Reply with quote

Very much big thanks,
your lircd.conf helped me. irrecord sayed always something about gap not found and the original terratec t2-configuration didn't work too, but your's worked.

Thanks.
Klaus
Back to top
View user's profile Send private message
schitthoch3
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2004
Posts: 94

PostPosted: Wed Feb 21, 2007 12:59 am    Post subject: Reply with quote

Quote:
(ir_common was my problem, I just compiled kernel
with all v4l and dvb modules to get it... )

does anyone know, which modules have to get compiled exactly...

i followed your guide, but cat /dev/input/remcon gives me no output while pressing remote-keys. neither does irw nor xev. watching TV with xine works.
lirc starts from initscript without giving any errors in syslog and seems to connect fine to /dev/input/remcon .
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Mon Feb 26, 2007 11:59 am    Post subject: Reply with quote

My lsmod shows just ir_common and ir_kbd_i2c (other than Cinergy T2) ,
are you configuring a T2?
Did you emerged lirc with devinput devices support?
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
schitthoch3
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2004
Posts: 94

PostPosted: Mon Feb 26, 2007 3:38 pm    Post subject: Reply with quote

:oops: ok, sorry mate. it was 2 am and i thought i have put some batteries in the remote, but i didn't. it's a cinergyT2. I have put the kernel setting for the remote responsiveness to 20, but it still takes long until the command is executed, and it is not really reliable (keypresses are often not detected).
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3169
Location: Paris

PostPosted: Fri May 11, 2007 5:10 pm    Post subject: Reply with quote

Thx for your work. I followed your howto and I got irw showing exactly wich button is pressed.
However, I didn't find the ir_common module (gentoo-sources 2.6.20-r7), and it seems that finally I didn't need it?

Well, thanks again, now I'm looking after the software part (freevo or ??) :)
_________________
-TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum