ALT Linux hardware support
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: hardware@lists.altlinux.org
Subject: Re: [Hardware] irda
Date: Tue, 28 Nov 2006 20:45:29 +0300
Message-ID: <20061128174529.GA7925@procyon.home> (raw)
In-Reply-To: <20061128052256.GA17233@csm.amur.ru>

[-- Attachment #1: Type: text/plain, Size: 2105 bytes --]

On Tue, Nov 28, 2006 at 02:22:56PM +0900, metrol@amur.ru wrote:
> 2. Кто виноват, что при загрузку этого модуля в /dev появляется аж 32
>    ircomm устройства и ни одного irlpt (как положено):
>    # ls /dev/ir*
>    /dev/ircomm0   /dev/ircomm12  /dev/ircomm16  /dev/ircomm2
>    /dev/ircomm23  /dev/ircomm27  /dev/ircomm30  /dev/ircomm6
>    /dev/ircomm1   /dev/ircomm13  /dev/ircomm17  /dev/ircomm20
>    /dev/ircomm24  /dev/ircomm28  /dev/ircomm31  /dev/ircomm7
>    /dev/ircomm10  /dev/ircomm14  /dev/ircomm18  /dev/ircomm21
>    /dev/ircomm25  /dev/ircomm29  /dev/ircomm4   /dev/ircomm8
>    /dev/ircomm11  /dev/ircomm15  /dev/ircomm19  /dev/ircomm22
>    /dev/ircomm26  /dev/ircomm3   /dev/ircomm5   /dev/ircomm9
> 
>    Хотя в документации к ядру
>    (/usr/share/doc/kernel-doc-2.6.11/devices.txt) пишут такое:
> 
> 161 char        IrCOMM devices (IrDA serial/parallel emulation)
>                   0 = /dev/ircomm0      First IrCOMM device
>                   1 = /dev/ircomm1      Second IrCOMM device
> 		  ...
> 		  16 = /dev/irlpt0      First IrLPT device
>                   17 = /dev/irlpt1      Second IrLPT device
> 		  ...
> 
>      Собственно я хотел настроить cups для печати на принтер ч/з
>      инфракрасник. Методом дедукции пришлось определять, что порт
>      для него: /dev/ircomm16, а не /dev/irlpt0 - как пишут во
>      всех HOWTO.

Модуль ircomm-tty регистрирует все 32 устройства единым блоком в
количестве IRCOMM_TTY_PORTS == 32.  Однако в нескольких местах кода
гвоздями прибита константа 0x10, определяющая номер порта, с которого
начинается irlpt.

В принципе эту ситуацию можно попытаться исправить через правила udev,
но делать это будет не совсем удобно из-за необходимости
арифметических действий (что в udev придётся делать через вызов
shell).  Кроме того, есть мнение, что эту ошибку следует исправлять со
стороны ядра; в Debian соответствующий баг висит с 2004 года:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=277391

На http://news.gmane.org/gmane.linux.irda.general никаких вопросов про
это не обнаружено...

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2006-11-28 17:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-28  5:22 metrol
2006-11-28 16:58 ` Victor
2006-11-29  1:32   ` metrol
2006-11-28 17:45 ` Sergey Vlasov [this message]
2006-11-29  2:14   ` metrol
2006-11-29 13:42     ` Michael Shigorin

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=20061128174529.GA7925@procyon.home \
    --to=vsu@altlinux.ru \
    --cc=hardware@altlinux.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