Hi Linux/IR Gurus,

I have a ThinkPad 600E with redhat 6.1 installed and try to get
printing via IR working. However, i don't understand what exactly i
should do to got it operational. Unfortunatly the status of LinuxIR
seems to be in a state of change and the HowTo doesn't reflect this
completely (e.g., it seems to me it's partially referrs to the new
setup (major dev-number 161) and partially to the old (major dev-name
60)). I also tried to find further information in the mailing list but
didn't get much further. So any clarification are welcome.

Before going into the depth of what i did a summary of my major
problems:

- with the old vanilla 2.2.13 i get this weird
  "irmanager: executing: './printer start irlpt0 -19'" (see below) and
  i cannot figure out the correct dev name for irlpt0 rsp the proper
  loading. Maybe i also have to do some special setserials on some
  devices?

- with the latest patch for 2.2.13 where the irlpt* modules
  disappeared i don't know what exactly have to do and i'm not sure if
  printing is actually supposed to work with that version at all.

Note that i can interact with a pilot without any (appearant) problems
(e.g, the base setup should be ok?) and the printer is also discovered
(IrLMP: Discovery log: nickname: DeskJet 340, hint: 0x0800, saddr:
0x531a3b57, daddr: 0x00005263)

Following a brief summary what i did so far (always starting from
kernel 2.2.13 and using irda-utils 0.9.5):

- first i tried with patch-2.2.13-irda12.gz but i couldn't get
  communication to the pilot working. As i later discovered i
  unfortunatly was using the 0.9.4 irmanager/irattach from the RedHat
  rpm. Maybe that explains that failure.

- then i went back to vanilla 2.2.13 and got the communication with
  the pilot working (using 'alias tty-ldisc-11 irtty\nalias
  char-major-60 ircomm_tty', mknod /dev/irnine c 60 64).
  to get printing i tried a modprobe irlpt_client. Looking at the
  logfile i noticed 
    Jan  2 13:48:39 bppc2 irmanager: executing: './printer start irlpt_server 62'
    Jan  2 13:48:39 bppc2 irmanager: + sh: ./printer: No such file or directory
  and after some investigation figured out that irda-utils 0.9.4 contained a
  etc/printer which appearantly got lost in 0.9.5 (rsp doesn't seem to
  be necessary for newer kernel-patches). I copied that to /etc/irda
  and now i got
    Jan  2 14:11:49 bppc2 irmanager: executing: './printer start irlpt0 -19'
    Jan  2 14:11:49 bppc2 irmanager: + mknod: invalid option -- 1
  This looked like a unsigned vs signed problem and indeed in
  irmanager.c the minor device number was declared as int. However,
  changing all int minor or similar to unsigned int failed completly
  (e.g., irmanager didn't start and afterwards there was the module st
  but no irda modules loaded ..).

  modprobing irlpt_server instead of irlpt_client resulted in a ok
    Jan  2 13:50:08 bppc2 irmanager: executing: './printer start irlpt_server 62'
  but a following modprobe irlpt_client gave a 
    Jan  2 13:51:17 bppc2 irmanager: executing: './printer start irlpt0 62'
  which looked somewhat strange as they use the sem minor device
  number.

  In any case printing didn't work, i just got immediatly an error
  back from lpd (which was pointed to /dev/irlpt0). Also with some
  manual 'mknod  /dev/irlpt0 c 60 61' or 'mknod /dev/irlpt0 c 60 62'
  given that the automatic with /etc/irda/printer didn't help.

- finally i went to the latest patch-2.2.13-irda23.gz and compiled it
  (irda options: cache lsap yes, fast rr no, debug yes, compression y,
   rest as module).
  btw: there seems to be a small problem in the patch however as i
  don't use dongle i ignored the skipped patch
    # Reversed (or previously applied) patch detected!  Assume -R? [n] 
    # Apply anyway? [n]
    # Skipping patch.
    # 1 out of 1 hunk ignored -- saving rejects to include/net/irda/dongle.h.rej

  after changing /etc/conf.modules and the corresponding devices
  (mknod /dev/ircomm0 c 161 0, mknod /dev/ircomm1 c 161 1,
   mknod /dev/irlpt0 c 161 16, mknod /dev/irlpt1 c 161 17)
  i got the pilot communication running but got again stuck with
  printing. Now the print-job somewhat hang but nothing happend on the
  printer. via syslog i got messages such as 
    Jan  2 15:41:58 bppc2 kernel: IrLAP, no activity on link! 
  and in debug messages showed
    Jan  2 15:22:57 bppc2 kernel: ircomm_open_lsap() 
    Jan  2 15:22:57 bppc2 kernel: ircomm_tty_attach_cable() 
    Jan  2 15:22:57 bppc2 kernel: ircomm_tty_ias_register() 
    Jan  2 15:22:57 bppc2 kernel: irlap_change_speed(), setting speed to 115200 
    Jan  2 15:23:02 bppc2 kernel: irlmp_state_setup() WATCHDOG_TIMEOUT! 
    Jan  2 15:23:02 bppc2 kernel: irlmp_state_setup() WATCHDOG_TIMEOUT! 
    Jan  2 15:23:10 bppc2 kernel: irlap_change_speed(), setting speed to 9600 
    Jan  2 15:23:12 bppc2 kernel: irlap_change_speed(), setting speed to 115200 
    Jan  2 15:23:23 bppc2 kernel: irlap_change_speed(), setting speed to 9600 
    Jan  2 15:23:27 bppc2 kernel: irlap_change_speed(), setting speed to 115200 
    Jan  2 15:23:31 bppc2 kernel: irlmp_state_setup() WATCHDOG_TIMEOUT! 
    Jan  2 15:23:31 bppc2 kernel: irlmp_state_setup() WATCHDOG_TIMEOUT! 
    Jan  2 15:23:39 bppc2 kernel: irlap_change_speed(), setting speed to 9600 
    Jan  2 15:23:42 bppc2 kernel: irlap_change_speed(), setting speed to 115200 
    Jan  2 15:23:46 bppc2 kernel: irlmp_state_setup() WATCHDOG_TIMEOUT! 
  with higher debug level i also get messages such as
    Jan  2 15:42:19 bppc2 kernel: irlmp_disconnect_indication(), 
reason=LM_CONNECT_FAILURE 
  and
    Jan  2 15:42:20 bppc2 kernel: ircomm_tty_watchdog_timer_expired() 
    Jan  2 15:42:20 bppc2 kernel: ircomm_tty_do_event: state=IRCOMM_TTY_SEARCH, 
event=IRCOMM_TTY_WD_TIMER_EXPIRED 
    Jan  2 15:42:20 bppc2 kernel: ircomm_tty_state_search: state=IRCOMM_TTY_SEARCH, 
event=IRCOMM_TTY_WD_TIMER_EXPIRED 
    Jan  2 15:42:20 bppc2 kernel: irlap_do_event(), event = FINAL_TIMER_EXPIRED, state 
= LAP_NRM_P 

  i read somewhere that one might have to do setserials (e.g., for the
  Sony Vajo) but playing around with setserial speed on /dev/irlpt0 or 
  /dev/ircomm0 didn't seem to help. (i already had 'setserial
  /dev/ttyS1 spd_vhi' and 'setserial /dev/ircomm0 spd_vhi' in
  /etc/irda/drivers but also commenting this out didn't change
  anything).
  BT: i also run irdadump but i did'nt find anything
  peculiar. Actually, i just doesn't know how to interpret the data
  but in any case not too much activity showed up.

So any help is welcome! Thanks!

-michael-

===============================================================================
Michael Steiner                                           Uni Saarbruecken
Scheidterstrasse 61                                       Lehrstuhl Pfitzmann 
D-66123 Saarbruecken              ___________             D-66123 Saarbruecken
+49 681 390 47 14                      |                  +49 681 302 4164
<[EMAIL PROTECTED]>                      ^                  <[EMAIL PROTECTED]>
     ---------------------------------(_)---------------------------------
learning the art of flying:                 
        "throwing yourself at the ground and miss"
        (Douglas Adams, "Life, the Universe and Everything")

PS: <a href="http://www.zurich.ibm.com/~sti/">my gate to the internet</a>
    <a href="http://www.zurich.ibm.com/~sti/more-info.html#PGP">PGP key</a>
===============================================================================

_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to