ALT Linux hardware support
 help / color / mirror / Atom feed
From: "Алексей Шенцев" <ashen@nsrz.ru>
To: hardware@lists.altlinux.org
Subject: Re: [Hardware] TV tuner AverTV 507
Date: Tue, 14 Oct 2008 16:22:20 +0400
Message-ID: <200810141622.20530.ashen@nsrz.ru> (raw)
In-Reply-To: <48F480D5.5080604@rambler.ru>

On Tuesday 14 October 2008 15:21:57 Yury Aliaev wrote:
> Всем доброго времени суток!
Взаимно.

> Хочу спросить, использует ли кто под Альтом ТВ приёмник AverTV 507?
Использую с весны прошлого года.

> Планирую купить себе сабжик, интересуют отзывы о его работе (гуглил на
> эту тему, но картина скадывается противоречивая... и ни слова про Альт).
Плохо искали: 
http://lists.altlinux.org/pipermail/community/2007-November/400200.html

Тюнером вполне доволен. Прекрасно себя зарекомендовал, если правильно 
настроить, на ALD4.0.* и ядрах вплоть до 2.6.24 (его поддержку в наши ядра 
2.6.18 запихивал зубилом и кувалдой), а вот на ALD4.1/sisyphus и ядрах 
2.6.25/2.6.26 был с ним прикол - ядро отказывалось работать с параметром 
tuner=38. Правильней указывать было tuner=51, но в таком случае не работает 
радио. Но через какое то обновление сизифа и отката на ядро .24 и снова 
возврат на ядро .26 параметр tuner=38 стал подхватываться ядром.
Нарвался ещё и на такое, не знаю с чем связано, то ли с сизифом, то ли с 
ядрами .25 .. .26, но наименование ссылки на ИК-порт изменилось с
вида "/dev/input/by-path/pci-0000:02:02.0--event-ir"
на вид
"/dev/input/by-path/pci-0000:02:02.0-event-ir", т.е.
вместо "--event" стало "-event".

На всякий случай прилагаю содержимое /etc/init.d/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}

и содержимое /etc/lircd

# This config file describes remote control with Avermedia AverTV Studio 507 
card.
begin remote
    name            AverTVStudio507
    bits            16
    eps             30
    aeps            100
    one             0     0
    zero            0     0
    gap             135993
    pre_data_bits   16
    pre_data        0x8001
    begin codes
        tv/fm           0x0179
        power           0x0074
        1               0x0002
        2               0x0003
        3               0x0004
        4               0x0005
        5               0x0006
        6               0x0007
        7               0x0008
        8               0x0009
        9               0x000a
        0               0x000b
        display         0x0172
        ch_rtn          0x00A8
        snapshot        0x019a
        16_ch_preview   0x00D2
        voldown         0x0072
        volup           0x0073
        chup            0x0192
        chdown          0x0193
        fullscreen      0x0174
        mute            0x0071
        audio           0x0188
        record          0x00A7
        play            0x00cf
        stop            0x0080
        pause           0x0077
        backward        0x018e
        forward         0x0190
        prev            0x018f
        next            0x0191
        teletext        0x0184
        source          0x0189
        autoscan        0x00D9
    end codes
end remote
#EOF

-- 
С уважением Шенцев Алексей Владимирович.
E-mail: ashen@nsrz.ru
XMPP: ashen@altlinux.org, AlexShen@jabber.ru
ICQ: 271053845


      parent reply	other threads:[~2008-10-14 12:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14 11:21 Yury Aliaev
2008-10-14 11:52 ` Хихин Руслан
2008-10-14 12:27   ` Алексей Шенцев
2008-10-14 13:03     ` Хихин Руслан
2008-10-14 13:18       ` Алексей Шенцев
2008-10-14 13:48         ` Хихин Руслан
2008-10-14 13:56           ` [Hardware] multimedia centr & AL4.* Алексей Шенцев
2008-10-14 12:22 ` Алексей Шенцев [this message]

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=200810141622.20530.ashen@nsrz.ru \
    --to=ashen@nsrz.ru \
    --cc=hardware@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 hardware support

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/hardware/0 hardware/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 hardware hardware/ http://lore.altlinux.org/hardware \
		hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
	public-inbox-index hardware

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.hardware


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git