From: "Алексей Шенцев" <ashen@nsrz.ru> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: Re: [Comm] AL4 & kernel-2.6.22 & AverTV 50x Date: Fri, 16 Nov 2007 11:54:34 +0300 Message-ID: <200711161154.35350.ashen@nsrz.ru> (raw) In-Reply-To: <473D5432.9040809@mont-spb.ru> В сообщении от Friday 16 November 2007 11:26:26 Maxim Ivanov написал(а): > У меня абсолютно тоже самое. Угу ... > Запустился! > lircd-0.8.2[4914]: lircd(userspace) ready Для начала хорошо. А теперь пробуйте в другой консоле запустить irw и по нажимать кнопки на пульте. Все 34 кнопки у вас отображаются? У меня пульт RM-HA > Так-с... Его что, в /etc/rc.d засунуть может? А он там и есть: [root@oasu3 /]# ls /etc/rc.d/init.d/lir* /etc/rc.d/init.d/lircd [root@oasu3 /]# Вот здесь http://linux.org.ua/cgi-bin/yabb/YaBB.pl?num=1193373582 предлагается переписать оригинальный /etc/rc.d/init.d/lircd, сохранив права оригинального файла. Утверждается, что по неизвестным автору причинам оригинальный /etc/rc.d/init.d/lircd не работает. Я его поправил следующим образом: [root@oasu3 init.d]# cat lircd #!/bin/sh # # lircd Linux Infrared Remote Control daemon # # chkconfig: 2345 65 35 # description: LIRC is a package that allows you to decode and send # infrared signals of many (but not all) commonly used # remote controls. # # processname: lircd # pidfile: /var/run/lircd.pid # config: /etc/lircd.conf # config: /etc/sysconfig/lircd ### BEGIN INIT INFO # Provides: lircd # Should-Start: $syslog # Should-Stop: $syslog # Default-Start: 2 3 4 5 # Short-Description: Linux Infrared Remote Control daemon # Description: LIRC is a package that allows you to decode and send # infrared signals of many (but not all) commonly used # remote controls. ### END INIT INFO # Source function library . /etc/rc.d/init.d/functions # Get service config [ -f /etc/sysconfig/lircd ] && . /etc/sysconfig/lircd # See how we were called. case "$1" in start) # Check if the service is already running? if [ ! -f /var/lock/subsys/lircd ]; then # Release serial port. if [ "${HWMOD}" = "lirc_serial" ]; then if lsmod | grep -q ^serial; then modprobe -r serial else setserial ${COM_PORT} uart none fi fi # Load the hardwaredriver #if [ -z "$HWMOD" ] || lsmod | grep -q ${HWMOD} ; then # true #else # modprobe ${HWMOD} ${DRIVER_OPTS} > /dev/null #fi gprintf "Starting Linux Infrared Remote Control daemon:" OPTIONS="" DRIVER="dev/input" # DEVICE="/dev/input/event2" DEVICE="/dev/input/by-path/pci-0000:02:02.0--event-ir" [ -n "${DRIVER}" ] && OPTIONS="--driver=${DRIVER}" [ -n "${DEVICE}" ] && OPTIONS="${OPTIONS} --device=${DEVICE}" daemon lircd ${OPTIONS} RETVAL=$? [ ${RETVAL} -eq 0 ] && touch /var/lock/subsys/lircd else gprintf "Starting Linux Infrared Remote Control daemon:" failure fi echo ;; stop) # Stop daemons. if [ -f /var/lock/subsys/lircd ]; then gprintf "Stopping Linux Infrared Remote Control daemon:" killproc lircd rm -f /var/lock/subsys/lircd >/dev/null 2>&1 # Unload the hardwaredriver if [ -z "$HWMOD" ] || lsmod | grep -q ${HWMOD} ; then modprobe -r ${HWMOD} > /dev/null fi echo else gprintf "Stopping Linux Infrared Remote Control daemon:" failure echo exit 1 fi ;; status) status lircd ;; restart) test -f /var/lock/subsys/irexec && RESTART_IREXEC=yes test -n "${RESTART_IREXEC}" && /etc/rc.d/init.d/irexec stop test -f /var/lock/subsys/lircmd && RESTART_LIRCMD=yes test -n "${RESTART_LIRCMD}" && /etc/rc.d/init.d/lircmd stop $0 stop $0 start test -n "${RESTART_LIRCMD}" && /etc/rc.d/init.d/lircmd start test -n "${RESTART_IREXEC}" && /etc/rc.d/init.d/irexec start ;; reload) gprintf "Reloading Linux Infrared Remote Control daemon:" killproc lircd -HUP echo ;; *) gprintf "$0 {start|stop|status|restart|reload}\n" exit 1 ;; esac exit ${RETVAL} Вроде стартанул, но с руганью: [root@oasu3 init.d]# service lircd restart /etc/init.d/lircd: line 91: gprintf: command not found [ DONE ] /etc/init.d/lircd: line 64: gprintf: command not found [ DONE ] [root@oasu3 init.d]# service lircd status lircd is running [root@oasu3 init.d]# В этом я не силён, кто бы подсказал в чём косяк? PS: мне не нравится такое решение, может расскажут более изящное и элегантное решение? Буду пре много благодарен. -- С уважением Шенцев Алексей Владимирович. E-mail: ashen@nsrz.ru XMPP: ashen@altlinux.org, AlexShen@jabber.ru ICQ: 271053845
next prev parent reply other threads:[~2007-11-16 8:54 UTC|newest] Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-11-15 8:35 [Comm] [JT] Попробовал OpenSUSE 10.3 Maxim Ivanov 2007-11-15 9:23 ` Алексей Шенцев 2007-11-15 11:57 ` Tiurin Alexander 2007-11-15 12:07 ` Tiurin Alexander 2007-11-15 12:48 ` Алексей Шенцев 2007-11-15 13:20 ` Maxim Ivanov 2007-11-15 13:43 ` Pavlov Konstantin 2007-11-15 13:46 ` [Comm] AL4 & kernel-2.6.22 & AverTV 50x Алексей Шенцев 2007-11-15 14:31 ` Maxim Ivanov 2007-11-15 14:39 ` Алексей Шенцев 2007-11-15 14:45 ` Maxim Ivanov 2007-11-15 15:15 ` Алексей Шенцев 2007-11-16 8:12 ` Maxim Ivanov 2007-11-16 8:22 ` Алексей Шенцев 2007-11-16 8:26 ` Maxim Ivanov 2007-11-16 8:54 ` Алексей Шенцев [this message] 2007-11-16 9:34 ` Maxim Ivanov 2007-11-16 9:48 ` Алексей Шенцев 2007-11-16 10:35 ` Maxim Ivanov 2007-11-16 10:55 ` Алексей Шенцев 2007-11-21 13:53 ` Maxim Ivanov 2007-11-22 7:13 ` Алексей Шенцев 2007-11-23 14:34 ` Maxim Ivanov 2007-11-23 15:04 ` Алексей Шенцев 2007-11-23 15:25 ` Maxim Ivanov 2007-11-28 8:07 ` Maxim Ivanov 2007-11-28 11:11 ` Алексей Шенцев 2007-11-29 7:40 ` Maxim Ivanov 2007-11-29 7:49 ` Шишков Евгений 2007-11-29 7:55 ` Алексей Шенцев 2007-11-29 8:18 ` Maxim Ivanov 2007-11-29 8:28 ` Алексей Шенцев 2007-11-29 10:01 ` Алексей Шенцев 2007-11-29 10:16 ` Алексей Шенцев 2007-11-28 11:17 ` Алексей Шенцев 2007-11-28 11:38 ` Алексей Шенцев 2007-11-28 12:05 ` Kostarev Alexey 2007-11-28 12:00 ` Алексей Шенцев 2007-11-28 12:32 ` HAW 2007-11-28 13:06 ` Алексей Шенцев 2007-11-28 13:11 ` HAW 2007-11-28 13:41 ` Алексей Шенцев 2007-11-28 14:13 ` Slava Dubrovskiy 2007-11-28 14:20 ` Алексей Шенцев 2007-12-03 17:30 ` Евгений 2007-12-04 7:09 ` Алексей Шенцев 2007-12-04 8:36 ` [Comm] AL4 & kernel-2.6.18 & Beholder 50x Шишков Евгений 2007-11-28 14:17 ` [Comm] AL4 & kernel-2.6.22 & AverTV 50x Bogaevskiy Jurij 2007-11-28 14:27 ` Алексей Шенцев 2007-11-29 5:27 ` Шишков Евгений 2007-11-29 6:12 ` Алексей Шенцев 2007-11-29 6:24 ` Шишков Евгений 2007-11-29 6:52 ` Алексей Шенцев 2007-11-29 7:50 ` Шишков Евгений 2007-11-28 15:35 ` Vyatcheslav Perevalov 2007-11-29 6:25 ` Алексей Шенцев 2007-11-29 6:48 ` Vyatcheslav Perevalov 2007-11-29 6:54 ` Алексей Шенцев 2007-11-29 7:04 ` Vyatcheslav Perevalov 2007-11-29 7:40 ` Алексей Шенцев 2007-11-30 8:24 ` Алексей Шенцев 2007-11-30 8:30 ` Vyatcheslav Perevalov 2007-11-30 8:39 ` Алексей Шенцев 2007-11-28 14:31 ` Алексей Шенцев 2007-11-28 14:45 ` Алексей Шенцев
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200711161154.35350.ashen@nsrz.ru \ --to=ashen@nsrz.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git