in /etc/conf.d/lircd there is an example for specifying a device by it's name: # Maybe this works (untested): # LIRCD_OPTS="-H devinput name='*DVB*'" trying to use this option, the init script starts lircd like this: start-stop-daemon --start --quiet --pidfile /var/run/lircd.pid --exec /usr/sbin/lircd -- -P /var/run/lircd.pid -H devinput 'name='\''*DVB*'\''' that weird quoting leads to lircd recognizing the 'name=' parameter as a config file name and using the first input device in /dev/input. lircd-0.8.3[14175]: could not open config file 'name=*DVB*' after changing the line in /etc/conf.d/lircd to LIRCD_OPTS="-H devinput -d name=*DVB*" everything works fine. Reproducible: Always emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo i686) ================================================================= System uname: 2.6.26-gentoo i686 AMD Athlon(TM) XP Timestamp of tree: Fri, 15 Aug 2008 11:15:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.3.6-r2, 2.4.4-r4, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -m3dnow -mmmx -Wall" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3 .5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/ap ache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/termi nfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.muntinternet.net/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mir ror/ http://gentoo.tiscali.nl/" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1,--enable-new-dtags" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --s tats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/cwiid /usr/local/portag e /usr/local/x4x-portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acl acpi alsa apache2 avi berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups curl dba se dbus divx4linux dri dvb dvd dvdr dvdread eds emboss encode esd evo faac fam ffmpeg firefox fortran ftp gd gdbm gif glitz gnome gpgme gpm gstreamer hal iconv imlib ipod ipv6 irc isdnlog jpeg kde kerberos kqemu ldap libnotify mad mbox midi mikmod mmx mmxext mp3 mpeg msn mudflap mysql ncurses nls nowin nptl nptlonly ogg opengl openmp pam pcre pdf perl php png pop postgres ppds pppd python qt3 qt3support qt4 quicktime readline reflection ruby sdl se ssion smtp spell spl ssl startup-notification svg sysfs tagwriting tcpd tiff truetype unicode usb v4l vorbis win3 2codecs x86 xinerama xml xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug f ile hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm aut hz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk _cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic n egotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES=" keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurse s text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident v esa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS _FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Fixed example config file in CVS.
The bug is not fixed. The patch missed the important part. You need a '-d' before the name='=*DVB'".
The "-d name=" option does not work using single quotes or any spaces. When using LIRCD_OPTS="-H devinput -d name="*WinTV HVR-1950 Model 75"", the spaces will pass the next text as a command. (ie. HVR-1950: command not found) Also, using long strings fails such as "name=WinTV?HVR-1950?Model?75" or "name=WinTV*HVR-1950*Model*75", but "name=*HVR-1950*" works. No error is reported using the longer strings and "ps ax" shows the exact string as typed. A separate issue, the rc script should remove an existing /dev/lircd link if a lircd process does not exist. IE. lircd service is stopped, but a stale/old /dev/lircd remains and it does not appear to be a critical issue to me. Otherwise, lircd service will fail to start over such a miniscule issue. If I get a little time, I'll try to tend to the issues -- filing the fixes here or on a new bug.