mounting linux partitions

2008-05-09 Thread Isaac Mushinsky
I have installed a linux distro on a partition of my machine (latest
Mandriva i686, default installation). I only need it to use a piece of
software for Nikon Coolscan IV film scanner (yes, sane works, but a cheap
commercial package called vuescan has better interface and uses some
hardware features like infrared channel that sane does not support, at least
in current stable version).

Now I would like to mount ext3 partition from FreeBSD at least for reading,
or vice versa, UFS2 from linux for writing. With kernel option EXT2FS, I can


$ mount -t etx2fs /dev/ad12s7 /linux

but then if I do

$ ls /linux

I get a 'Bad file descriptor' for directory /linux. e2fsprogs are installed,
and fsck.ext2 or fsck.ext3 think well of the partition. Also, df seems to
show it correctly, with size and free space.

I have FreeBSD 7.0 for amd64, Linux is 32-bit version. Also the partition is
'extended', i.e. fdisk on FreeBSD shows a DOS partition, but linux's fdisk
shows a couple of ext3 partitions. However, /dev/ad12s7 does correspond to
the correct linux partition and, when mounted, df shows the right size and
utilization.

Any advice how to share a partition between these 2 systems? I only want to
use linux to scan the film and store the pictures on disk, then boot into
FreeBSD where I spend most of my life as a user. I feel more comfortable
pulling from FreeBSD rather than pushing to it because (1) it is easier for
me to recompile FreeBSD kernel or install packages if necessary, and (2) I
would mind much less a corruption on the linux partition than on UFS; I can
simply reinstall the default installation for Linux, but FreeBSD has
important data and is finely tuned for me over the years.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-31 Thread Isaac Mushinsky
Since this problem is most probably not FreeBSD-specific, I filed a bug
(209721) with hplip:  https://bugs.launchpad.net/hplip/+bug/209721. The
patch is attached there too.

So my ordeal with this issue is finally closed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-30 Thread Isaac Mushinsky
On Wednesday 26 March 2008 00:21:12 Isaac Mushinsky wrote:
 I am close to assasinating my HP Photosmart C4280 in frustration.

 1. This is an all-in-one device. (I did not try the scanner setup yet)
 2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.
 3. Machine is FreeBSD 7-stable/amd64.
 4. hplip is 2.8.2

 $ usbdevs
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: EHCI root hub, Intel
  addr 2: Photosmart C4200 series, HP
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: EHCI root hub, Intel

 There is a ppd file for these series with the hplip distribution.

 hpssd, cups started in the order needed. hp-setup detects the printer, and
 then says 'Unable to create queue'. CUPS web interface actually adds the
 printer, but then cannot print test page to it. cups user runs hpssd (I
 tried root too).

 /var/log/messages has:
 Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
 get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk python:
 io/hpmud/musb.c 1951: invalid serial id string ret=-5

 Here is all relevant output:
 http://omsk.mushinsky.net/hplip-trouble

 Any help is appreciated. Thanks.


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Here is a patch that seems to work:

--- /home/itz/hplip-2.8.2/io/hpmud/musb.c   2008-03-30 06:44:01.0 
-0400
+++ work/hplip-2.8.2/io/hpmud/musb.c2008-01-22 19:27:15.0 -0500
@@ -121,12 +121,10 @@
{
   ret = usb_control_msg(dev, USB_ENDPOINT_IN, USB_REQ_GET_DESCRIPTOR, 
(USB_DT_STRING  8) + index, 
0x409, tbuf, sizeof(tbuf), LIBUSB_CONTROL_REQ_TIMEOUT);
-  if (ret =0 )
+  if (ret==0)
   {
- /* This retry is necessary for lj1000 and lj1005. des 12/12/07
- Also HP Photosmart 42xx seems to suffer transient errors with serial 
id */
-BUG(get_string_descriptor error result %d, retrying in 2 secs..., 
ret);
-sleep(2);
+ /* This retry is necessary for lj1000 and lj1005. des 12/12/07 */
+ BUG(get_string_descriptor zero result, retrying...);
  continue;
   }
   break;
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-28 Thread Isaac Mushinsky
On Thursday 27 March 2008 10:37:48 you wrote:
 On Thursday 27 March 2008, Isaac Mushinsky wrote:
  Anish Mistry (the port maintainer) has answered below. It seems
  that this is a printer defect after all then. I'll try to patch the
  code to fill in the missing serial id with some fake string, and
  shall report if I get the thing to work.
 
  Is the hp backend the only entry point to libusb, or should I have
  to patch libusb? e.g. cups or sane apps, can they call libusb
  directly, or only through hpaio backend? I would rather have a
  patch to hplip distribution only, because libusb correctly throws
  an error code for the missing serial id. But if some apps query the
  device directly, the missing serial id may be a problem, they will
  all have to all be patched separately.

 See what you can get to work, and then we can decide on what the
 proper fix entails.

It looks like there is some problem with the C42XX printers that
   is causing the serial numbers to no be reported.  I got a similar
   report about a HP Photosmart C4200 series a couple weeks ago.
   Unfortunately I'm VERY busy right now.  It will be a couple of
   week before I can dive into the issue.  If you do happen to find
   a solution, please let me know so I can integrate it into the
   port and notify others. Thanks,
--
   Anish Mistry
   [EMAIL PROTECTED]
   AM Productions http://am-productions.biz/


I tried to load hplip into debugger, but if I try to trace the problem, it 
works! Serial number is read correctly. It also seems to work with a non-SMP 
kernel (at least the race does not show). The printer has the serial number 
after all.

There appears to be some sort of race condition when calling usb_control_msg 
for product id and then serial id strings in rapid succession in musb.c. I am 
not sure how to deal with that yet, but pausing in between the calls is a 
workaround for now. What can be done in between  the calls other than close 
and reopen the device? 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-28 Thread Isaac Mushinsky
Yes, of course sleep() works. But I am looking for the *proper* way to fix
it.

My questions at this point are:

1. Does USB standard permit these sequential requests, or there should  be
some reset/synch mechanism utilized in between? I could also usb_close() and
reopen the device, but is there a softer reset than that? Is the bug really
in hplip, or libusb, or sys/dev/usb?

2. If the driver, libusb and hplip are acting properly, then perhaps the
race condition is inside the device? i.e. it should be ready to accept the
second control msg after the 1st one returned, but for some reason is not
really ready. So then it is the printer that violates the protocol, and
there is nothing to do on our side but sleep(). Or usb_close(), and reopen,
hopefully that will bring the Photosmart to its senses.

I am posting this to freebsd-usb as well, people there are probably better
equipped to answer this.

On Fri, Mar 28, 2008 at 11:42 AM, Anish Mistry [EMAIL PROTECTED]
wrote:

  On Friday 28 March 2008, you wrote:
  On Thursday 27 March 2008 10:37:48 you wrote:
   On Thursday 27 March 2008, Isaac Mushinsky wrote:
Anish Mistry (the port maintainer) has answered below. It seems
that this is a printer defect after all then. I'll try to patch
the code to fill in the missing serial id with some fake
string, and shall report if I get the thing to work.
   
Is the hp backend the only entry point to libusb, or should I
have to patch libusb? e.g. cups or sane apps, can they call
libusb directly, or only through hpaio backend? I would rather
have a patch to hplip distribution only, because libusb
correctly throws an error code for the missing serial id. But
if some apps query the device directly, the missing serial id
may be a problem, they will all have to all be patched
separately.
  
   See what you can get to work, and then we can decide on what the
   proper fix entails.
  
  It looks like there is some problem with the C42XX printers
 that is causing the serial numbers to no be reported.  I got
 a similar report about a HP Photosmart C4200 series a couple
 weeks ago. Unfortunately I'm VERY busy right now.  It will be
 a couple of week before I can dive into the issue.  If you do
 happen to find a solution, please let me know so I can
 integrate it into the port and notify others. Thanks,
  --
 Anish Mistry
 [EMAIL PROTECTED]
 AM Productions http://am-productions.biz/
 
  I tried to load hplip into debugger, but if I try to trace the
  problem, it works! Serial number is read correctly. It also seems
  to work with a non-SMP kernel (at least the race does not show).
  The printer has the serial number after all.
 
  There appears to be some sort of race condition when calling
  usb_control_msg for product id and then serial id strings in rapid
  succession in musb.c. I am not sure how to deal with that yet, but
  pausing in between the calls is a workaround for now. What can be
  done in between  the calls other than close and reopen the device?
 You could try to call sleep() to see if that fixes it.
 man 3 sleep


 --
  Anish Mistry
 [EMAIL PROTECTED]
 AM Productions http://am-productions.biz/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-27 Thread Isaac Mushinsky
Anish Mistry (the port maintainer) has answered below. It seems that this is
a printer defect after all then. I'll try to patch the code to fill in the
missing serial id with some fake string, and shall report if I get the thing
to work.

Is the hp backend the only entry point to libusb, or should I have to patch
libusb? e.g. cups or sane apps, can they call libusb directly, or only
through hpaio backend? I would rather have a patch to hplip distribution
only, because libusb correctly throws an error code for the missing serial
id. But if some apps query the device directly, the missing serial id may be
a problem, they will all have to all be patched separately.


  It looks like there is some problem with the C42XX printers that is
 causing the serial numbers to no be reported.  I got a similar report
 about a HP Photosmart C4200 series a couple weeks ago.  Unfortunately
 I'm VERY busy right now.  It will be a couple of week before I can
 dive into the issue.  If you do happen to find a solution, please let
 me know so I can integrate it into the port and notify others.
  Thanks,
  --
 Anish Mistry
 [EMAIL PROTECTED]
 AM Productions http://am-productions.biz/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wednesday 26 March 2008 00:21:12 Isaac Mushinsky wrote:
 I am close to assasinating my HP Photosmart C4280 in frustration.

 1. This is an all-in-one device. (I did not try the scanner setup yet)
 2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.
 3. Machine is FreeBSD 7-stable/amd64.
 4. hplip is 2.8.2

 $ usbdevs
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: EHCI root hub, Intel
  addr 2: Photosmart C4200 series, HP
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: EHCI root hub, Intel

 There is a ppd file for these series with the hplip distribution.

 hpssd, cups started in the order needed. hp-setup detects the printer, and
 then says 'Unable to create queue'. CUPS web interface actually adds the
 printer, but then cannot print test page to it. cups user runs hpssd (I
 tried root too).

 /var/log/messages has:
 Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
 get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk python:
 io/hpmud/musb.c 1951: invalid serial id string ret=-5

 Here is all relevant output:
 http://omsk.mushinsky.net/hplip-trouble

 Any help is appreciated. Thanks.


Here are debug msgs from libusb:

usb_os_find_devices: Found /dev/ugen0 on /dev/usb3
usb_control_msg: 128 6 512 0 0x7fffdea0 8 1000
usb_control_msg: 128 6 512 0 0x800d80100 124 1000
usb_control_msg: 128 6 770 1033 0x7fffde10 255 5000
usb_control_msg: 128 6 771 1033 0x7fffde10 255 5000
USB error: error sending control message: Input/output error
error: Unable to communicate with device (code=12): 
hp:/usb/Photosmart_C4200_series?serial=0



 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wednesday 26 March 2008 02:49:52 you wrote:
 fOn Wed, 26 Mar 2008, Isaac Mushinsky wrote:
  I am close to assasinating my HP Photosmart C4280 in frustration.
 
  1. This is an all-in-one device. (I did not try the scanner setup yet)
  2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.

 So far as I can determine, there is no reason to avoid uscanner in
 the kernel --- uscanner does not/should not grab the scanner function
 of your all-in-one.  It should then be possible to attach your single
 function scanner with sane --- although it is sensible to get hplip up
 without that complication first.

  3. Machine is FreeBSD 7-stable/amd64.
  4. hplip is 2.8.2
 
  $ usbdevs
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
  addr 2: Photosmart C4200 series, HP
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
 
  There is a ppd file for these series with the hplip distribution.
 
  hpssd, cups started in the order needed. hp-setup detects the printer,
  and then says 'Unable to create queue'. CUPS web interface actually adds
  the printer, but then cannot print test page to it. cups user runs hpssd
  (I tried root too).
 
  /var/log/messages has:
  Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
  get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk python:
  io/hpmud/musb.c 1951: invalid serial id string ret=-5
 
  Here is all relevant output:
  http://omsk.mushinsky.net/hplip-trouble

 A lot of stuff advertised here doesn't seem to be visible/existent to lynx.

 devfd.rules looks right
 check group --- have you added whoever is using the printer to group cups
 (at least root and/or toor to print the test page)?
yes

 since you say you cannot print the test page, I assume you ran hp-setup
 from a gui and can get into cups admin afterwards --- have you set the
 printer you defined in hp-setup as the default printer in cups admin?

 Is the printer ready (accepting jobs) according to cups admin?
yes, cups thinks the printer is up and  'ready', and accepts jobs for it.


 if your failed test pages are showing up in the job queue, it may be
 desirable to kill some of them in case you do something that does make it
 work.

  Any help is appreciated. Thanks.

 That's all I can think of off the top of my head.

I think the trouble is somewhere in usb or libusb: 
hp:/usb/Photosmart_C4200_series?serial=0 does not look right. The libusb 
exception seems to occur while trying to obtain the 'serial number'. Whatever 
that means -- is the device expected to provide it?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wednesday 26 March 2008 04:29:45 you wrote:
 Isaac Mushinsky wrote:
  On Wednesday 26 March 2008 02:49:52 you wrote:
  fOn Wed, 26 Mar 2008, Isaac Mushinsky wrote:
  I am close to assasinating my HP Photosmart C4280 in frustration.
 
  1. This is an all-in-one device. (I did not try the scanner setup yet)
  2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.
 
  So far as I can determine, there is no reason to avoid uscanner in
  the kernel --- uscanner does not/should not grab the scanner function
  of your all-in-one.  It should then be possible to attach your single
  function scanner with sane --- although it is sensible to get hplip up
  without that complication first.
 
  3. Machine is FreeBSD 7-stable/amd64.
  4. hplip is 2.8.2
 
  $ usbdevs
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
  addr 2: Photosmart C4200 series, HP
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
 
  There is a ppd file for these series with the hplip distribution.
 
  hpssd, cups started in the order needed. hp-setup detects the printer,
  and then says 'Unable to create queue'. CUPS web interface actually
  adds the printer, but then cannot print test page to it. cups user runs
  hpssd (I tried root too).
 
  /var/log/messages has:
  Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
  get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk
  python: io/hpmud/musb.c 1951: invalid serial id string ret=-5
 
  Here is all relevant output:
  http://omsk.mushinsky.net/hplip-trouble
 
  A lot of stuff advertised here doesn't seem to be visible/existent to
  lynx.
 
  devfd.rules looks right
  check group --- have you added whoever is using the printer to group
  cups (at least root and/or toor to print the test page)?
 
  yes
 
  since you say you cannot print the test page, I assume you ran hp-setup
  from a gui and can get into cups admin afterwards --- have you set the
  printer you defined in hp-setup as the default printer in cups admin?
 
  Is the printer ready (accepting jobs) according to cups admin?
 
  yes, cups thinks the printer is up and  'ready', and accepts jobs for it.
 
  if your failed test pages are showing up in the job queue, it may be
  desirable to kill some of them in case you do something that does make
  it work.
 
  Any help is appreciated. Thanks.
 
  That's all I can think of off the top of my head.
 
  I think the trouble is somewhere in usb or libusb:
  hp:/usb/Photosmart_C4200_series?serial=0 does not look right. The libusb
  exception seems to occur while trying to obtain the 'serial number'.
  Whatever that means -- is the device expected to provide it?

 My understanding is that you didn't succeed to print from that printer.
 You have to get printing function first
 before you can get scanning.
 It is easily to use your device as only printer if you live ulpt driver
 inside the kernel but ugen driver is used to communicate and give you
 information as the ink level for instance. If you live ulpt driver you
 will not be able to scan
 libusb is used to communicate with the scanner. That is one of two ways
 that scanners talk to kernel.


 Could you give me the output of

All of these things I posted on http://omsk.mushinsky.net/hplip-trouble

 # /usr/local/libexec/cups/backend/hp  (make sure you have the right path
 this is mine on OpenBSD 4.3 current)
You already saw that: doesn't hp-setup call it? Added it to exhibit page too:

$  /usr/local/libexec/cups/backend/hp
usb_set_debug: Setting debugging level to 4 (on)
usb_os_find_busses: Found /dev/usb0
usb_os_find_busses: Found /dev/usb1
usb_os_find_busses: Found /dev/usb2
usb_os_find_busses: Found /dev/usb3
usb_os_find_busses: Found /dev/usb4
usb_os_find_busses: Found /dev/usb5
usb_os_find_busses: Found /dev/usb6
usb_os_find_busses: Found /dev/usb7
usb_os_find_devices: Found /dev/ugen0 on /dev/usb3
usb_control_msg: 128 6 512 0 0x7fff8600 8 1000
usb_control_msg: 128 6 512 0 0x802213080 124 1000
usb_control_msg: 128 6 770 1033 0x7fff8570 255 5000
usb_control_msg: 128 6 771 1033 0x7fff8570 255 5000
USB error: error sending control message: Input/output error
direct hp:/usb/Photosmart_C4200_series?serial=0 HP Photosmart C4200 
series HP Photosmart C4200 series USB 0 HPLIP MFG:HP;MDL:Photosmart C4200 
series;CLS:PRINTER;DES:Photosmart C4200 series;SN:;
You have new mail in /var/mail/root


 If you get something like
 direct hp Unknown HP printer (*HPLIP*)

 means that ugen driver cannot get VedorName and Product ID

  Give me also outputs of

 #hp-info

~ hp-info

HP Linux Imaging and Printing System (ver. 2.8.2)
Device Information Utility ver. 3.4

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See

Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wednesday 26 March 2008 04:29:45 you wrote:
 Isaac Mushinsky wrote:
  On Wednesday 26 March 2008 02:49:52 you wrote:
  fOn Wed, 26 Mar 2008, Isaac Mushinsky wrote:
  I am close to assasinating my HP Photosmart C4280 in frustration.
 
  1. This is an all-in-one device. (I did not try the scanner setup yet)
  2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.
 
  So far as I can determine, there is no reason to avoid uscanner in
  the kernel --- uscanner does not/should not grab the scanner function
  of your all-in-one.  It should then be possible to attach your single
  function scanner with sane --- although it is sensible to get hplip up
  without that complication first.
 
  3. Machine is FreeBSD 7-stable/amd64.
  4. hplip is 2.8.2
 
  $ usbdevs
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
  addr 2: Photosmart C4200 series, HP
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
 
  There is a ppd file for these series with the hplip distribution.
 
  hpssd, cups started in the order needed. hp-setup detects the printer,
  and then says 'Unable to create queue'. CUPS web interface actually
  adds the printer, but then cannot print test page to it. cups user runs
  hpssd (I tried root too).
 
  /var/log/messages has:
  Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
  get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk
  python: io/hpmud/musb.c 1951: invalid serial id string ret=-5
 
  Here is all relevant output:
  http://omsk.mushinsky.net/hplip-trouble
 
  A lot of stuff advertised here doesn't seem to be visible/existent to
  lynx.
 
  devfd.rules looks right
  check group --- have you added whoever is using the printer to group
  cups (at least root and/or toor to print the test page)?
 
  yes
 
  since you say you cannot print the test page, I assume you ran hp-setup
  from a gui and can get into cups admin afterwards --- have you set the
  printer you defined in hp-setup as the default printer in cups admin?
 
  Is the printer ready (accepting jobs) according to cups admin?
 
  yes, cups thinks the printer is up and  'ready', and accepts jobs for it.
 
  if your failed test pages are showing up in the job queue, it may be
  desirable to kill some of them in case you do something that does make
  it work.
 
  Any help is appreciated. Thanks.
 
  That's all I can think of off the top of my head.
 
  I think the trouble is somewhere in usb or libusb:
  hp:/usb/Photosmart_C4200_series?serial=0 does not look right. The libusb
  exception seems to occur while trying to obtain the 'serial number'.
  Whatever that means -- is the device expected to provide it?

 My understanding is that you didn't succeed to print from that printer.
 You have to get printing function first
 before you can get scanning.
 It is easily to use your device as only printer if you live ulpt driver
 inside the kernel but ugen driver is used to communicate and give you
 information as the ink level for instance. If you live ulpt driver you
 will not be able to scan
 libusb is used to communicate with the scanner. That is one of two ways
 that scanners talk to kernel.


 Could you give me the output of

All of these things I posted on http://omsk.mushinsky.net/hplip-trouble

 # /usr/local/libexec/cups/backend/hp  (make sure you have the right path
 this is mine on OpenBSD 4.3 current)
You already saw that: doesn't hp-setup call it? Added it to exhibit page too:

$  /usr/local/libexec/cups/backend/hp
usb_set_debug: Setting debugging level to 4 (on)
usb_os_find_busses: Found /dev/usb0
usb_os_find_busses: Found /dev/usb1
usb_os_find_busses: Found /dev/usb2
usb_os_find_busses: Found /dev/usb3
usb_os_find_busses: Found /dev/usb4
usb_os_find_busses: Found /dev/usb5
usb_os_find_busses: Found /dev/usb6
usb_os_find_busses: Found /dev/usb7
usb_os_find_devices: Found /dev/ugen0 on /dev/usb3
usb_control_msg: 128 6 512 0 0x7fff8600 8 1000
usb_control_msg: 128 6 512 0 0x802213080 124 1000
usb_control_msg: 128 6 770 1033 0x7fff8570 255 5000
usb_control_msg: 128 6 771 1033 0x7fff8570 255 5000
USB error: error sending control message: Input/output error
direct hp:/usb/Photosmart_C4200_series?serial=0 HP Photosmart C4200 
series HP Photosmart C4200 series USB 0 HPLIP MFG:HP;MDL:Photosmart C4200 
series;CLS:PRINTER;DES:Photosmart C4200 series;SN:;
You have new mail in /var/mail/root


 If you get something like
 direct hp Unknown HP printer (*HPLIP*)

 means that ugen driver cannot get VedorName and Product ID

  Give me also outputs of

 #hp-info

~ hp-info

HP Linux Imaging and Printing System (ver. 2.8.2)
Device Information Utility ver. 3.4

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See

Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wednesday 26 March 2008 00:21:12 Isaac Mushinsky wrote:
 I am close to assasinating my HP Photosmart C4280 in frustration.

 1. This is an all-in-one device. (I did not try the scanner setup yet)
 2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.
 3. Machine is FreeBSD 7-stable/amd64.
 4. hplip is 2.8.2

 $ usbdevs
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: EHCI root hub, Intel
  addr 2: Photosmart C4200 series, HP
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: EHCI root hub, Intel

 There is a ppd file for these series with the hplip distribution.

 hpssd, cups started in the order needed. hp-setup detects the printer, and
 then says 'Unable to create queue'. CUPS web interface actually adds the
 printer, but then cannot print test page to it. cups user runs hpssd (I
 tried root too).

 /var/log/messages has:
 Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
 get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk python:
 io/hpmud/musb.c 1951: invalid serial id string ret=-5

 Here is all relevant output:
 http://omsk.mushinsky.net/hplip-trouble

 Any help is appreciated. Thanks.


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

What is interesting is that the failure of usb_control_msg happens only 
when 'serial number' is requested. The function had been called successfully 
before that.

# export USB_DEBUG=4
# hp-info

HP Linux Imaging and Printing System (ver. 2.8.2)
Device Information Utility ver. 3.4

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

usb_set_debug: Setting debugging level to 4 (on)
usb_os_find_busses: Found /dev/usb0
usb_os_find_busses: Found /dev/usb1
usb_os_find_busses: Found /dev/usb2
usb_os_find_busses: Found /dev/usb3
usb_os_find_busses: Found /dev/usb4
usb_os_find_busses: Found /dev/usb5
usb_os_find_busses: Found /dev/usb6
usb_os_find_busses: Found /dev/usb7
usb_os_find_devices: Found /dev/ugen0 on /dev/usb3
usb_control_msg: 128 6 512 0 0x7fff5a20 8 1000
usb_control_msg: 128 6 512 0 0x800d80100 124 1000
usb_control_msg: 128 6 770 1033 0x7fff5990 255 5000
usb_control_msg: 128 6 771 1033 0x7fff5990 255 5000
USB error: error sending control message: Input/output error
Using device: hp:/usb/Photosmart_C4200_series?serial=0

hp:/usb/Photosmart_C4200_series?serial=0

usb_set_debug: Setting debugging level to 4 (on)
usb_os_find_busses: Found /dev/usb0
usb_os_find_busses: Found /dev/usb1
usb_os_find_busses: Found /dev/usb2
usb_os_find_busses: Found /dev/usb3
usb_os_find_busses: Found /dev/usb4
usb_os_find_busses: Found /dev/usb5
usb_os_find_busses: Found /dev/usb6
usb_os_find_busses: Found /dev/usb7
usb_os_find_devices: Found /dev/ugen0 on /dev/usb3
usb_control_msg: 128 6 770 1033 0x7fffde60 255 5000
usb_control_msg: 128 6 771 1033 0x7fffde60 255 5000
USB error: error sending control message: Input/output error
error: Unable to communicate with device (code=12): 
hp:/usb/Photosmart_C4200_series?serial=0
error: Error opening device (Device not found). Exiting.


/var/log/messages:
Mar 26 09:17:14 omsk kernel: ugen0: HP Photosmart C4200 series, class 0/0, 
rev 2.00/1.00, addr 2 on uhub3
Mar 26 09:17:23 omsk python: io/hpmud/musb.c 135: unable 
get_string_descriptor -5: Input/output error
Mar 26 09:17:23 omsk python: io/hpmud/musb.c 1951: invalid serial id string 
ret=-5
Mar 26 09:17:23 omsk python: io/hpmud/musb.c 135: unable 
get_string_descriptor -5: Input/output error
Mar 26 09:17:23 omsk python: io/hpmud/musb.c 615: invalid serial id string 
ret=-5
Mar 26 09:17:23 omsk python: io/hpmud/musb.c 1057: unable to open 
hp:/usb/Photosmart_C4200_series?serial=0
Mar 26 09:17:23 omsk python: hp-info[1074]: error: Unable to communicate with 
device (code=12): hp:/usb/Photosmart_C4200_series?serial=0
Mar 26 09:17:23 omsk python: hp-info[1074]: error: Error opening device 
(Device not found). Exiting.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wed, Mar 26, 2008 at 3:49 PM, Predrag Punosevac 
[EMAIL PROTECTED] wrote:

 Isaac Mushinsky wrote:
 Obviously the device can not communicate with the kernel. My first hunch
 would be to blame on ugen driver
 of BSD but look at this lines from hp-check that I copied from you
 message.
 You are missing slue of REQUIRED libraries.


Well, hp-check seems broken, so I wouldn't take it all that seriously. It
probably only works on linux. How can it complain of missing libusb and then
proceed to use it?

hplip finds the device correctly, and gets the vendor/product id. The
immediate show stopper is failure to get serial number of the device. Or is
it? it seems to be the only place where a libusb call fails. I am not sure
if it is HP's fault or an hplip/io/hpmud problem, though.

 Are you running CUPS development version.

I am running on a standard cups from ports. It was installed as requirement
by KDE or something. Besides, there seems to be no problem with cups itself.


 You are not supposed to do that. You can try to install
 each of the missing libraries by hand and then try hp-setup. Something
 is very WRONG with your installation.
 Even better. If you have a spare machine to for testing. Try one more
 time to install things. Install firstly CUPS and SANE-backends and then
 install HPLIP (nothing else). If you see the same output from hp-check
 try installing
 missing libraries by hand. If after all everything works I would reports
 HPLIP port as broken as the required libraries
 should be installed as dependencies.  On the positive side SANE seems
 see the scanner. Can you scan?


Didn't even try to scan yet. It doesn't matter at this point. I have another
(film) scanner that works, though.
hplip printer driver seems to see the printer too, seeing is clearly not the
problem.



 Checking output of 'scanimage -L'...
 device `hpaio:/usb/Photosmart_C4200_series?serial=0' is a Hewlett-Packard
 Photosmart_C4200_series all-in-one

 found USB scanner (vendor=0x03f0 [HP], product=0x5c11 [Photosmart C4200
 series]) at libusb:/dev/usb3:/dev/ugen0



 Checking for dependency: cups-devel- Common Unix Printing System
 development
 files...
 error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please
 make
 sure that this dependency is installed before installing or running HPLIP.


 Checking for dependency: libcrypto - OpenSSL cryptographic library...
 error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
 this
 dependency is installed before installing or running HPLIP.


 Checking for dependency: libjpeg - JPEG library...
 error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
 this
 dependency is installed before installing or running HPLIP.

 Checking for dependency: libnetsnmp-devel - SNMP networking library
 development files...
 error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
 this
 dependency is installed before installing or running HPLIP.

 Checking for dependency: libpthread - POSIX threads library...
 error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
 this

 Checking for dependency: libusb - USB library...
 error: NOT FOUND! This is a REQUIRED dependency. Please make sure that
 this
 dependency is installed before installing or running HPLIP.

 Checking for dependency: make - GNU make utility to maintain groups of
 programs...
 error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please
 make
 sure that this dependency is installed before installing or running HPLIP.
 dependency is installed before installing or running HPLIP.

  Checking for dependency: python-devel - Python development files...
 error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please
 make
 sure that this dependency is installed before installing or running HPLIP.






  On Wednesday 26 March 2008 04:29:45 you wrote:
 
  Isaac Mushinsky wrote:
 
  On Wednesday 26 March 2008 02:49:52 you wrote:
 
  fOn Wed, 26 Mar 2008, Isaac Mushinsky wrote:
 
  I am close to assasinating my HP Photosmart C4280 in frustration.
 
  1. This is an all-in-one device. (I did not try the scanner setup
 yet)
  2. ulpt, umass, uscanner modules are not in kernel and not
 kld-loaded.
 
  So far as I can determine, there is no reason to avoid uscanner in
  the kernel --- uscanner does not/should not grab the scanner function
  of your all-in-one.  It should then be possible to attach your single
  function scanner with sane --- although it is sensible to get hplip
 up
  without that complication first.
 
 
  3. Machine is FreeBSD 7-stable/amd64.
  4. hplip is 2.8.2
 
  $ usbdevs
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
  addr 2: Photosmart C4200 series, HP
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
 
  There is a ppd file for these series with the hplip distribution.
 
  hpssd

Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wednesday 26 March 2008 00:21:12 Isaac Mushinsky wrote:
 I am close to assasinating my HP Photosmart C4280 in frustration.

 1. This is an all-in-one device. (I did not try the scanner setup yet)
 2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.
 3. Machine is FreeBSD 7-stable/amd64.
 4. hplip is 2.8.2

 $ usbdevs
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: EHCI root hub, Intel
  addr 2: Photosmart C4200 series, HP
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: EHCI root hub, Intel

 There is a ppd file for these series with the hplip distribution.

 hpssd, cups started in the order needed. hp-setup detects the printer, and
 then says 'Unable to create queue'. CUPS web interface actually adds the
 printer, but then cannot print test page to it. cups user runs hpssd (I
 tried root too).

 /var/log/messages has:
 Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
 get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk python:
 io/hpmud/musb.c 1951: invalid serial id string ret=-5

 Here is all relevant output:
 http://omsk.mushinsky.net/hplip-trouble

 Any help is appreciated. Thanks.


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

final piece of information: sane cannot open the HP all-in-one as a scanner 
with same error (getting serial id). However, my Nikon LS40-ED (a 35mm film 
scanner) works fine. So the problem is apparently not my installation or 
libusb.

~ sane-find-scanner 

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure 
that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04b0 [Nikon], product=0x4000 [LS-40 ED]) at 
libusb:/dev/usb2:/dev/ugen1
found USB scanner (vendor=0x03f0 [HP], product=0x5c11 [Photosmart C4200 
series]) at libusb:/dev/usb3:/dev/ugen0
  # Your USB scanner was (probably) detected. It may or may not be supported 
by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.

The Nikon scanner works, the HP device fails to return serial id as above.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wednesday 26 March 2008 23:31:26 you wrote:
 Isaac Mushinsky wrote:
  On Wednesday 26 March 2008 00:21:12 Isaac Mushinsky wrote:
  I am close to assasinating my HP Photosmart C4280 in frustration.
 
  1. This is an all-in-one device. (I did not try the scanner setup yet)
  2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.
  3. Machine is FreeBSD 7-stable/amd64.
  4. hplip is 2.8.2
 
  $ usbdevs
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
   addr 2: Photosmart C4200 series, HP
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
 
  There is a ppd file for these series with the hplip distribution.
 
  hpssd, cups started in the order needed. hp-setup detects the printer,
  and then says 'Unable to create queue'. CUPS web interface actually adds
  the printer, but then cannot print test page to it. cups user runs hpssd
  (I tried root too).
 
  /var/log/messages has:
  Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
  get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk
  python: io/hpmud/musb.c 1951: invalid serial id string ret=-5
 
  Here is all relevant output:
  http://omsk.mushinsky.net/hplip-trouble
 
  Any help is appreciated. Thanks.
 
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
  final piece of information: sane cannot open the HP all-in-one as a
  scanner with same error (getting serial id). However, my Nikon LS40-ED (a
  35mm film scanner) works fine. So the problem is apparently not my
  installation or libusb.

 I would not bet my life on it. There are two ways on which sane-backend
 talk to scanners. Libusb is one of the ways.
 I have two Epson scanners. One of them does use libusb one of them
 doesn't not. How do I know. Well in OpenBSD when the scanner uses libusb
 you have to remove uscanner driver from the kernel in order to use it.

 Cheers,
 Predrag

  ~ sane-find-scanner
 
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
 
# No SCSI scanners found. If you expected something different, make
  sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
 
  found USB scanner (vendor=0x04b0 [Nikon], product=0x4000 [LS-40 ED]) at
  libusb:/dev/usb2:/dev/ugen1
  found USB scanner (vendor=0x03f0 [HP], product=0x5c11 [Photosmart C4200
  series]) at libusb:/dev/usb3:/dev/ugen0
# Your USB scanner was (probably) detected. It may or may not be
  supported by
# SANE. Try scanimage -L and read the backend's manpage.
 
# Not checking for parallel port scanners.
 
# Most Scanners connected to the parallel port or other proprietary
  ports # can't be detected by this program.
 
# You may want to run this program as root to find all devices. Once
  you # found the scanner devices, be sure to adjust access permissions as
  # necessary.
 
  The Nikon scanner works, the HP device fails to return serial id as
  above. ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]

I do not have uscanner loaded, so assume it must be libusb.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-26 Thread Isaac Mushinsky
On Wednesday 26 March 2008 23:31:26 Predrag Punosevac wrote:
 Isaac Mushinsky wrote:
  On Wednesday 26 March 2008 00:21:12 Isaac Mushinsky wrote:
  I am close to assasinating my HP Photosmart C4280 in frustration.
 
  1. This is an all-in-one device. (I did not try the scanner setup yet)
  2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded.
  3. Machine is FreeBSD 7-stable/amd64.
  4. hplip is 2.8.2
 
  $ usbdevs
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
   addr 2: Photosmart C4200 series, HP
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: UHCI root hub, Intel
  addr 1: EHCI root hub, Intel
 
  There is a ppd file for these series with the hplip distribution.
 
  hpssd, cups started in the order needed. hp-setup detects the printer,
  and then says 'Unable to create queue'. CUPS web interface actually adds
  the printer, but then cannot print test page to it. cups user runs hpssd
  (I tried root too).
 
  /var/log/messages has:
  Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable
  get_string_descriptor -5: Input/output error Mar 25 23:57:56 omsk
  python: io/hpmud/musb.c 1951: invalid serial id string ret=-5
 
  Here is all relevant output:
  http://omsk.mushinsky.net/hplip-trouble
 
  Any help is appreciated. Thanks.
 
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
  final piece of information: sane cannot open the HP all-in-one as a
  scanner with same error (getting serial id). However, my Nikon LS40-ED (a
  35mm film scanner) works fine. So the problem is apparently not my
  installation or libusb.

 I would not bet my life on it. There are two ways on which sane-backend
 talk to scanners. Libusb is one of the ways.
 I have two Epson scanners. One of them does use libusb one of them
 doesn't not. How do I know. Well in OpenBSD when the scanner uses libusb
 you have to remove uscanner driver from the kernel in order to use it.

 Cheers,
 Predrag

  ~ sane-find-scanner
 
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
 
# No SCSI scanners found. If you expected something different, make
  sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
 
  found USB scanner (vendor=0x04b0 [Nikon], product=0x4000 [LS-40 ED]) at
  libusb:/dev/usb2:/dev/ugen1
  found USB scanner (vendor=0x03f0 [HP], product=0x5c11 [Photosmart C4200
  series]) at libusb:/dev/usb3:/dev/ugen0
# Your USB scanner was (probably) detected. It may or may not be
  supported by
# SANE. Try scanimage -L and read the backend's manpage.
 
# Not checking for parallel port scanners.
 
# Most Scanners connected to the parallel port or other proprietary
  ports # can't be detected by this program.
 
# You may want to run this program as root to find all devices. Once
  you # found the scanner devices, be sure to adjust access permissions as
  # necessary.
 
  The Nikon scanner works, the HP device fails to return serial id as
  above. ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]

I have a spare partition, so when I have the time I'll try to install linux on 
it and see. This printer is listed as supported and 'working perfectly' on 
linuxprinting.org

Also, I loaded ulpt and it is able to talk to the printer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


What is a good printer/all-in-one?

2008-03-25 Thread Isaac Mushinsky
My 10-year-old deskjet being out of ink and probably not worth a replacement
cartridge (it works, but makes some mechanical noise lately), I am
considering a reasonable replacement, preferably with scanning/copy
possibilities.

I tried to get Photosmart C4280, but while I was trying a faulty printcap on
it, it lost its mind permanently (says 'incompatible print cartridges', and
does not respond to the button combinations that HP support thinks should
reset it). Besides, you can either attach it as ulpt or uscanner device, or
play with hplip drivers as a generic device, but it seems too
confusing. It was a waste of time and money for me and I am going to return
it.

Requirements:
1. Reasonable physical size (should not be much larger than the old
deskjet).
2. Either network/lpd or USB, scanner should be well supported by sane. If
used via USB, it should be a compound device (i.e. printer, scanner and, if
there, the umass device should appear as separate devices to avoid
kld-loading and unloading modules). I heard Epsons show up as compound
devices? any HP laserjets?
3. Reasonable maintenance cost (maybe a laser printer, I do not care for
color printing that much).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is a good printer/all-in-one?

2008-03-25 Thread Isaac Mushinsky
Yes, I saw that. But FreeBSD is not linux, and using multiple drivers for
the same device is more of a problem for us. HPLIP, on the other hand,
requires bare ugen, not loading ulpt or uscanner or perhaps even umass, a
very unnatural and cumbersome thing for me (I want umass, and I also
sometimes use a Nikon photo film scanner, which work via sane).

Thus I am looking for a network device, or if USB, then it should appear as
separate uscanner/ulpt/umass.

On Tue, Mar 25, 2008 at 1:08 PM, herbert langhans [EMAIL PROTECTED]
wrote:

 Hi Isaac,
 this is a good start:
 http://www.linux-foundation.org/en/OpenPrinting

 In the 'printer' section you find a ranking and evaluation how the
 printers do on unixoid systems.

 Cheers
 herbs

 mount -t wbush /dev/whitehouse /dev/nul


 On Tue, 25 Mar 2008 12:12:52 -0400
 Isaac Mushinsky [EMAIL PROTECTED] wrote:

   My 10-year-old deskjet being out of ink and probably not worth a
 replacement
  cartridge (it works, but makes some mechanical noise lately), I am
  considering a reasonable replacement, preferably with scanning/copy
  possibilities.
 
  I tried to get Photosmart C4280, but while I was trying a faulty
 printcap on
  it, it lost its mind permanently (says 'incompatible print cartridges',
 and
  does not respond to the button combinations that HP support thinks
 should
  reset it). Besides, you can either attach it as ulpt or uscanner device,
 or
  play with hplip drivers as a generic device, but it seems too
  confusing. It was a waste of time and money for me and I am going to
 return
  it.
 
  Requirements:
  1. Reasonable physical size (should not be much larger than the old
  deskjet).
  2. Either network/lpd or USB, scanner should be well supported by sane.
 If
  used via USB, it should be a compound device (i.e. printer, scanner and,
 if
  there, the umass device should appear as separate devices to avoid
  kld-loading and unloading modules). I heard Epsons show up as compound
  devices? any HP laserjets?
  3. Reasonable maintenance cost (maybe a laser printer, I do not care for
  color printing that much).
   ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Xorg ATi/Radeon drivers on 7.0-STABLE?

2008-03-25 Thread Isaac Mushinsky
If you haven't done that yet, try recompiling xorg-server without HAL (make
config and check it off). I don't know why, but strange things like these
happened to me too until HAL support was disabled.

On Tue, Mar 25, 2008 at 5:53 PM, Aline de Freitas [EMAIL PROTECTED] wrote:

 Em Tuesday 25 March 2008 15:35:51 C Verboom escreveu:
  Hi All,
 
  Just new here, so if this has been dealt with before, pls excuse me.
  I've seen only a few posts dealing w/ ATi drivers (ati and radeon)
 on
  v7.0-STABLE and Xorg, and together with my own experience I'm inclined
 to
  suspect there's something wrong with this combo. Or wrong... it may
 need
  special attention, but I lack the knowledge to prove or find a
 definitive
  answer, and you ppl here might.
 
  For a while I've been running 6.2-STABLE w/ Xorg on a Dell Latitude
 C610.
  Worked nicely @ 1400x1050, no problems.
  A few days ago I've performed a fresh install of 7.0-STABLE. The install
  was done for User/X-User, nothing (cvs, ports, etc) has been added or
  modified apart from network settings to be able to ssh/scp.
  The problem: there's no way that I can get a decent graphics resolution
  like I was used to. The only one xorg.conf setting that resulted in
 stable
  graphics was 'Driver vga' and 'Mode 640x480'.
  For the last 2 days (with the help of numerous Ati and Xorg-related
 posts
  on the net and c/p from my old xorg.conf) I've been trying to apply any
  reasonable setting using the ati and radeon drivers, only to see a
  blurred screen: HorizSync and/or VertSync way off, flickering and
 scrolling
  bars. No visible diff in the blurr w/ modified sync numbers, but no
  hang-ups as others seem to have stumbled upon: I can always kill the
 server
  w/ C-A-BS. Sometimes something seemed to happen (KDE starting? I never
  waited long before I killed the server...) as I did see a partial
  light-colored change in the blurr.
  Comparing the log of my old setup (I've put the image back twice over to
  check), there's a few -in my little experience- important differences
 with
  output of drivers and modules, or at least the way things such as
  capacities and capabilities are displayed, so under the hood there's so
  much changes that I cannot reasonably grasp what exactly is different
 and
  in what way... for which I apologize, but I'm bold enough to suspect..
 
  So: is the problem with me or with the new ... (drivers, modules, ???)

 It looks like an ati driver issue.

 I suggest you to first, try the latest git tree driver by doing the
 following:
 git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
 cd xf86-video-ati
 ./autogen.sh --prefix=/usr/local --mandir=/usr/local/man
 make

 Then deinstall the xf86-video-ati from the ports tree:
 pkg_deinstall xf86-video-ati-6.8.0_1

 and install the one from the git tree:
 make install

 If you see the same issues with the driver from the git tree, you should
 report it to the xorg mailing list at:
 http://lists.freedesktop.org/mailman/listinfo/xorg

 --
 Aline de Freitas - Chave pública: ID DE632016 / keys.indymedia.org
 gpg --keyserver keys.indymedia.org --recv-keys DE632016
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


hplip setup problems

2008-03-25 Thread Isaac Mushinsky
I am close to assasinating my HP Photosmart C4280 in frustration.

1. This is an all-in-one device. (I did not try the scanner setup yet)
2. ulpt, umass, uscanner modules are not in kernel and not kld-loaded. 
3. Machine is FreeBSD 7-stable/amd64.
4. hplip is 2.8.2

$ usbdevs 
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: EHCI root hub, Intel
 addr 2: Photosmart C4200 series, HP
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: EHCI root hub, Intel

There is a ppd file for these series with the hplip distribution.

hpssd, cups started in the order needed. hp-setup detects the printer, and then 
says 'Unable to create queue'. CUPS web interface actually adds the printer, 
but then cannot print test page to it. cups user runs hpssd (I tried root too).

/var/log/messages has:
Mar 25 23:57:56 omsk python: io/hpmud/musb.c 135: unable get_string_descriptor 
-5: Input/output error
Mar 25 23:57:56 omsk python: io/hpmud/musb.c 1951: invalid serial id string 
ret=-5

Here is all relevant output:
http://omsk.mushinsky.net/hplip-trouble

Any help is appreciated. Thanks.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hplip setup problems

2008-03-25 Thread Isaac Mushinsky

 Do you have correct permissions on device nodes?
I think so, see the lsdevs output at the link provided. The permissions are 
even more liberal; I'll change them back when the problem is fixed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Scanners, emulators and VueScan

2008-03-17 Thread Isaac Mushinsky
Problem: I have a film scanner whose sane support is somewhat incomplete.
There is a commercial piece of software called VueScan, which reportedly can
do what I need. It can be had as either a Windows or Linux binary. It does
not use sane on Linux, but apparently implements its own set of drivers via
libusb. Rather than install another OS and boot into it to do the scanning,
I was wondering if I can make it work with any kind of emulation. If I do
not load uscanner, my scanner will appear just as a ugen device. Can I then
have the device passed through to VueScan and usable by it with:

1. Regular linux 32-bit binary emulation?
2. linux via qemu?
3. the Windows binary under wine?

I use FreeBSD on amd64 (rather than i386). Does this present any additional
complications? Presumably, all Windows or Linux binaries involved are
32-bit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Scanners, emulators and VueScan

2008-03-17 Thread Isaac Mushinsky
I did write to the author, but it seems from his previous email exchanges
that he was not willing to release and maintain a FreeBSD version. Since he
only wants to release binaries, there is a limit to how many platforms he
can support. Although porting is probably trivial,
maintaining a FreeBSD system is unlikely to be cost-effective in his view.
And, for this type of software he would need FreeBSD installed on real
hardware (rather than emulated), and test a range of devices with it.


On 3/17/08, Bill Campbell [EMAIL PROTECTED] wrote:

 On Mon, Mar 17, 2008, Isaac Mushinsky wrote:
 Problem: I have a film scanner whose sane support is somewhat incomplete.
 There is a commercial piece of software called VueScan, which reportedly
 can
 do what I need. It can be had as either a Windows or Linux binary. It
 does
 not use sane on Linux, but apparently implements its own set of drivers
 via
 libusb. Rather than install another OS and boot into it to do the
 scanning,
 I was wondering if I can make it work with any kind of emulation. If I do
 not load uscanner, my scanner will appear just as a ugen device. Can I
 then
 have the device passed through to VueScan and usable by it with:

 You might want to contact Ed Hamrick [EMAIL PROTECTED], author
 of VueScan.  He has been very helpful to me when I had questions
 about it.

 I got VueScan for Mac OS X Tiger when I had to replace a bad hard
 drive on my Mac Mini and the HP drivers I had been using were no
 longer available (let's not go into backups shall we :-).  The
 support has been good, and it does what I need.

 Bill
 --
 INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
 URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
 FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206)
 236-1676

 Find out just what people will submit to, and you have found out the
 exact amount of injustice and wrong which will be imposed upon them; and
 these will continue until they are resisted with either words or blows, or
 both. The limits of tyrants are prescribed by the endurance of those whom
 they oppress. -- Frederick Douglass.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SATA problems (Abit IP35-Pro)

2008-03-15 Thread Isaac Mushinsky
On Friday 14 March 2008 13:57:11 Isaac Mushinsky wrote:
 I am setting up a new system with Abit IP35-Pro (ich9r), 2 WD SATA drives
 on the controller. There is also a SATA DVDRW to boot from.
 With the default SATA setup (SATA/IDE) the system cannot find any SATA
 drive. I was able to boot the install disk, attaching an old IDE CDROM, but
 still could not make it see the hard drive.

 If I set SATA controller to AHCI, the system boots (although with some ACPI
 errors), and I was able to install. However, fdisk thinks that the geometry
 is incorrect, and insists on a different one (it says the drives have
 476gb rather than 500gb).

 I can install with this AHCI setup, but have no idea what the implications
 are. Is there a known fix for SATA/IDE? Or is AHCI better?


Very well, but now I boot with ACPI errors like these:

ACPI Error (psparse-0626) Method parse/execution failed [\\_TZ_.THRM._TMP] 
(Node 0xff000224ac60), AE_AML_NO_RETURN_VALUE
ACPI Exception (dsutils-0766) AE_AML_NO_RETURN_VALUE Missing or null operand 
[20070320]
ACPI Exception (dsutils-0766) AE_AML_NO_RETURN_VALUE While creating Arg 0 
[20070320]

If I attempt to boot without ACPI, the machine hangs while trying to mount 
root filesystem. Why does disabling ACPI cause disk access problems? What can 
I do to fix this? Can I disable only thermal part of ACPI?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SATA problems (Abit IP35-Pro)

2008-03-14 Thread Isaac Mushinsky
I am setting up a new system with Abit IP35-Pro (ich9r), 2 WD SATA drives on
the controller. There is also a SATA DVDRW to boot from.
With the default SATA setup (SATA/IDE) the system cannot find any SATA
drive. I was able to boot the install disk, attaching an old IDE CDROM, but
still could not make it see the hard drive.

If I set SATA controller to AHCI, the system boots (although with some ACPI
errors), and I was able to install. However, fdisk thinks that the geometry
is incorrect, and insists on a different one (it says the drives have
476gb rather than 500gb).

I can install with this AHCI setup, but have no idea what the implications
are. Is there a known fix for SATA/IDE? Or is AHCI better?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SATA problems (Abit IP35-Pro)

2008-03-14 Thread Isaac Mushinsky
On 3/14/08, Alex Zbyslaw [EMAIL PROTECTED] wrote:

 Isaac Mushinsky wrote:

 If I set SATA controller to AHCI, the system boots (although with some
 ACPI
 errors), and I was able to install. However, fdisk thinks that the
 geometry
 is incorrect, and insists on a different one
 
 Sysinstall nearly always says this, and undoubtedly sysinstall is
 nearly* always correct.  Ignore it and move on.

 (it says the drives have
 476gb rather than 500gb).
 
 Manufacturers like to make their disks look bigger by using 1000 instead
 of 1024 when scaling Kb to Gb so:

476 Gb * 1024 * 1024   = 499122176K bytes

500 Gb * 1000 * 1000 = 5K bytes

 which is near as dammit the same.

 --Alex

 *In ten years of FreeBSD I have seen the warning many times, and seen
 people asking about the warning many, many, many times.  What I never
 remember seeing is any case where someone needed to do anything about
 that warning.  That doesn't prove anything (my memory is of unknown
 reliability), but you have my word that it's not *that* bad :-)




Thanks. I thought so about the size, just wondered whether there is anything
wrong with the geometry warning. I don't remember encountering it before.
Although I use FreeBSD since 2.x, my last sysinstall was many years ago.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: amd64 or i386 for desktop use?

2008-03-05 Thread Isaac Mushinsky
On 3/5/08, Roland Smith [EMAIL PROTECTED] wrote:

 On Wed, Mar 05, 2008 at 12:36:33AM -0500, Isaac Mushinsky wrote:
  I have new hardware (Abit ip35-pro, Intel Q6600), and was contemplating
  installing FreeBSD/arch, but now realise that I am going to have some
  problems.
 
  My nvidia card will not be of much use (GeForce 8500GT), since
 nvidia-drivers
  are not there for amd64, and the open source nv driver does not even
 support
  XVideo extension for these cards. I can downgrade to a nv 7xxx series
 card,
  which works better with the open driver. I do not mind loss of 3D
 support,
  but would need basic things like mplayer.


 Any ATI card up to and including the 9250 (rv280) is fully supported on
 amd64, 3D and all. (I know because I've got one :-)


  2. Any problems with flash plugin (flash7 for now, I do not mean the
  confounded flash9 headache)?


 I've never been able to get a native flash player to work, but I don't
 mind doing without. The downloadhelper plugin for firefox can help you
 download a lot of movies (e.g. youtube) which you then can play with
 mplayer. All the flash ads I'll gladly do without.


  3. Other casual desktop user problems I should be aware of?


 Wine is i386 only.


  4. Is it worth it? Perhaps I should stay with i386, but it is a pity
  not to be able to use the new machine to its full potential.


 Practically you don't _need_ amd64 unless you're running out of address
 space on i386. Me, I'm running amd64 because I can. :-) My desktop has a
 gig
 of RAM, and I seldom use more than half of that. Mind you, I'm using a
 simple window manager not a desktop environment with lots of bells 
 whistles.

 I suspect binaries on i386 will be somewhat smaller. But amd64 has more
 registers which might give some speed advantages. I haven't tested it, but
 it
 might be nice to do a speed comparison between i386 and amd64 on
 identical hardware. I don't think the difference will matter for
 a common desktop though; the CPU of a desktop is mostly idling anyway.

 Roland

 --
 R.F.Smith   
 http://www.xs4all.nl/~rsmith/http://www.xs4all.nl/%7Ersmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)




Thanks a lot. Trouble is, new hardware does not even have an AGP slot for
those cards. I don't mind to go without 3D, though, and it appears some
newer cards (R5xx/R6xx) have decent drivers otherwise.

Yes, I also want to go amd64 because I can. Besides, it will be a fresh
install, and if ever, this is the right time to switch.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: amd64 or i386 for desktop use?

2008-03-05 Thread Isaac Mushinsky
Thanks everyone, based on the info I am returning the nvidia card and
getting an R4xx instead (found an X850 for under $80 still sold; seems to be
well enough supported). I still want to try amd64; other limitations do not
bother me that much (I do not care for wine or win32 codecs).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


amd64 or i386 for desktop use?

2008-03-04 Thread Isaac Mushinsky
I have new hardware (Abit ip35-pro, Intel Q6600), and was contemplating 
installing FreeBSD/arch, but now realise that I am going to have some 
problems.

My nvidia card will not be of much use (GeForce 8500GT), since nvidia-drivers 
are not there for amd64, and the open source nv driver does not even support 
XVideo extension for these cards. I can downgrade to a nv 7xxx series card, 
which works better with the open driver. I do not mind loss of 3D support, 
but would need basic things like mplayer.

So my questions are:
1. Should I get nvidia 7xxx or an ATI card? Which card is most likely to work 
reasonably well? No fancy features required, but may be appreciated later.
2. Any problems with flash plugin (flash7 for now, I do not mean the 
confounded flash9 headache)?
3. Other casual desktop user problems I should be aware of?
4. Is it worth it? Perhaps I should stay with i386, but it is a pity not to be 
able to use the new machine to its full potential.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]