From: Denis Nazarov <marsden@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] принтер Canon LBP-1120 не работает на 4.0.X
Date: Sun, 7 Mar 2010 22:19:09 +0500
Message-ID: <201003072219.09671.marsden@mail.ru> (raw)
In-Reply-To: <89eb42f1003070752q5274ea1r5deb55c9afb10b26@mail.gmail.com>
В сообщении от Воскресенье 07 марта 2010 20:52:55 автор vx 8400 написал:
> Доброго времени суток, All,
>
> Прошу помочь запустить USB-принтер Canon LBP-1120 на ALT 4.0:
>
> ядро: 2.6.18-std-smp-alt10 #1 SMP Wed Dec 12 23:42:05 MSK 2007 i686
> GNU/Linux
>
> принтер распознается как:
>
> drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 5 if
> 0 alt 0 proto 2 vid 0x04A9 pid 0x262B
> usbcore: registered new driver usblp
> drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
>
> Запускал по инструкции:
> http://faq.altlinux.ru/index.php?action=single&nf=1&qid=891
>
> Принтер зарегистрирован в CUPS как 'lp',
> lpq -P lp показывает:
>
> lp is ready
> no entries
>
> Запущены процессы:
>
> root 5097 1 0 19:20 ? /usr/sbin/cupsd
> .....
> root 5060 1 0 19:20 ? /usr/sbin/ccpd
> root 5105 5060 0 19:20 ? /usr/sbin/ccpd
> root 5108 5105 0 19:20 ? captmon --data-write-fd=9
> --data-read-fd=12 --cmd-write-fd=13 --cmd-read-fd=16 --output-fd=3
> --input-fd=3
>
> Из-под root делаем echo '123' | lpr -P lp.
> Отрабатывает gs -r600 -q -dNOPROMPT -dSAFER -sDEVICE=pgmraw -sOutputFile=-
> - Запускается ccp:
>
> lp 16965 5097 0 18:10 ? ccp:/var/ccpd/fifo0 66 root (stdin)
> 1 job-uuid=urn:uuid:....
>
> ccp пишет в /var/ccpd/fifo0, завершается без ошибок:
> http://sites.google.com/site/strgko/lbp-1120/cups.error_log
>
> В dmesg, /var/log/messages ошибок тоже нет
>
> НО: принтер ничего видимого невооруженным глазом не делает.
>
> strace -p `/sbin/pidof captmon` показывает, что captmon гонит
> бесконечный цикл вида:
>
> sigreturn() = ? (mask now [CHLD])
> alarm(0) = 0
> write(12, "\0", 1) = 1
> time(NULL) = 1267974576
> time(NULL) = 1267974576
> alarm(2) = 0
> write(3, "\240\240\4\0", 4) = -1 EINTR (Interrupted system
> call)
>
> ^^^ в /dev/usb/lp0 это отправляется для запроса "есть бумага?"
> (см. waitforpaper() {...} в capt.c из открытого драйвера
> http://www.boichat.ch/nicolas/capt/capt-0.1.tar.gz)
>
> То же самое с cndrvcups 1.60, 1.80.
>
> С открытым драйвером capt-0.1
> (http://www.boichat.ch/nicolas/capt/capt-0.1.tar.gz)
> в /dev/usb/lp0 пишется \241\241\4\0, но прочесть из lp0 ничего не
> получается. Вывод strace:
> http://sites.google.com/site/strgko/lbp-1120/capt.strace
>
> Куда копать?
а это читали?
http://www.freesource.info/wiki/HCL/Periferija/Printery/Canon
next prev parent reply other threads:[~2010-03-07 17:19 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-07 15:52 vx 8400
2010-03-07 17:19 ` Denis Nazarov [this message]
2010-03-07 19:16 ` vx 8400
2010-03-09 22:49 ` Michael Shigorin
2010-03-09 23:42 ` vx 8400
2010-03-10 5:17 ` Денис Назаров
2010-03-10 12:28 ` vx 8400
2010-03-10 19:44 ` vx 8400
2010-03-11 18:57 ` [Comm] удалённо передёрнуть питание (was: принтер Canon LBP-1120 не работает на 4.0.X) Michael Shigorin
2010-03-11 19:25 ` [Comm] [JT] " vx 8400
2010-03-11 21:29 ` [Comm] [JT] удалённо передёрнуть питание Michael Shigorin
2010-03-12 13:44 ` vx 8400
2010-03-12 13:48 ` Michael Shigorin
2010-03-12 13:57 ` vx 8400
2010-03-12 9:40 ` [Comm] " Michael Shigorin
2010-03-14 8:40 ` Jurij Bogaevs'kyj
2010-03-20 12:37 ` Jurij Bogaevs'kyj
2010-03-14 13:42 ` [Comm] удалённо передёрнуть питание (was: принтер Canon LBP-1120 не работает на 4.0.X) Sergey
2010-03-10 13:47 ` [Comm] принтер Canon LBP-1120 не работает на 4.0.X Michael Shigorin
2010-03-11 4:31 ` Kharitonov A. Dmitry
2010-03-11 10:53 ` vx 8400
2010-03-11 11:01 ` vx 8400
2010-03-11 16:24 ` Kharitonov A. Dmitry
2010-03-11 18:58 ` Michael Shigorin
2010-03-11 19:13 ` vx 8400
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=201003072219.09671.marsden@mail.ru \
--to=marsden@mail.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