The bug still persists in cosmic cuttlefish in combination with Samsung
SCX-470x, 13 years after #195782 was filed. The workaround also works
still, after I installed libsane-extras, xsane miracally started up
without an error. I suggest to change the package dependence so that
libsane-extras is
I have the failed to start scanner: invalid argument error
I have made several attempts to analyze the problem,
with very limited knowledge of debug options.
Below is some information on what I have done so far:
Xsane header: xsane 0.996 CC-570L:003
device 'epson2:libusb:002:003' is a Epson
Well, I got problems again in lucid 32 bit:
failed to open device 'brother2:bus2;dev1': invalid argument.
It's a brother dcp-115c, printer works, scanner does not.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
The problem is that the FDI generator matches against usb_device. It
needs to s/usb_device/usb/, then it works (just tested today with Till).
Till, can you please prepare a new upload?
** Changed in: hal (Ubuntu)
Assignee: Martin Pitt (pitti) = Till Kamppeter (till-kamppeter)
Status:
not a hal bug.
** Changed in: hal (Ubuntu)
Importance: High = Undecided
Assignee: Till Kamppeter (till-kamppeter) = (unassigned)
Status: In Progress = Invalid
Target: ubuntu-8.04 = None
--
Users not automatically added to scanner group: No scanning functions of HP
pitti, new version and debdiff is here:
http://www.linux-foundation.org/~till/tmp/ubuntu/hardy/hplip/
** Changed in: hal (Ubuntu)
Importance: Undecided = High
Target: None = ubuntu-8.04
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in
This bug was fixed in the package hplip - 2.8.2-0ubuntu8
---
hplip (2.8.2-0ubuntu8) hardy; urgency=low
* debian/local/scripts/create_hal_global_fdi_from_hpmud_rules.sh: Corrected
fdi script so that it actually works (LP: #195782).
-- Till Kamppeter [EMAIL PROTECTED] Tue, 15
This doesn't work for my HP F2110 AIO. (F2100 Series)
** Attachment added: hal.txt
http://launchpadlibrarian.net/13331659/hal.txt
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this
** Attachment added: usb.txt
http://launchpadlibrarian.net/13331662/usb.txt
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of Ubuntu
** Attachment added: perms.txt
http://launchpadlibrarian.net/13331669/perms.txt
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of Ubuntu
Hey guys,
This problem is causing several other problems as well.
For reference:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/209781
The toolbox isn't working with even non-scanner printers until the user
is added to the scanner group.
Aaron
--
Users not automatically added to
This apparently still does not work for all people. For those cases, can
affected people please do
lshal /tmp/hal.txt
lsusb /tmp/usb.txt
getfacl -R /dev/bus/usb/* /tmp/perms.txt
while the scanner is on and plugged in, and attach /tmp/hal.txt,
/tmp/usb.txt, and /tmp/perms.txt here?
**
Please do the steps of Martin Pitt's comment also if you have an HP
printer without scanning functionality (one can at least check status
and ink/toner level with the hp-toolbox then).
** Changed in: hal (Ubuntu)
Sourcepackagename: hplip = hal
Importance: Medium = High
Assignee: Till
300 KB? Ugh, that's a lot.
Till, if you really think that full combinatorial explosion is sane (pun
not intended), can you then please change the script to output an XML
which uses int_outof=0x3401; 0x3402;0x3403, etc? See for example
/usr/share/hal/fdi/information/10freedesktop/10-modem.fdi as
Martin,
regarding int_outof, see my comment
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/195782/comments/39
In particular test int_outof with more than one HP all-in-one device.
Perhaps it works for your HAL version?
--
Users not automatically added to scanner group: No scanning
Till,
I would like to follow your approach with 256 entries
for each device class because it is in sync with
the HPLIP udev rules file.
Could you attach your current script or post a URL?
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
Johannes, I have tested the new fdi file on a box with two HP devices
connected to the USB. Both devices are handled correctly.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug
This bug was fixed in the package hplip - 2.8.2-0ubuntu5
---
hplip (2.8.2-0ubuntu5) hardy; urgency=low
* debian/local/scripts/create_hal_global_fdi_from_hpmud_rules.sh,
debian/rules, debian/hplip.install: Generate fdi script to make
HP devices accessible for the desktop
Pitti, thanks for the tip with the int_outof, this reduced the fdi file
size from 300k to 10.5k. New packages are in place.
Johannes, I have attached the new improved script with all 256 entries
for each device class and only 10.5k fdi file size. So you can also use
it for the SUSE package.
Hi Johannes,
Johannes Meixner [2008-04-02 9:47 -]:
regarding int_outof, see my comment
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/195782/comments/39
In particular test int_outof with more than one HP all-in-one device.
Perhaps it works for your HAL version?
IIRC the syntax
Many thanks for the script and for the info!
Currently I don't want to use int_outof because I want to
be backward compatible at least with openSUSE 10.3 when
I provide HPLIP packages via our openSUSE build service.
By the way:
A tiny note regarding use of cut:
Usually I use cut -s to ignore
** Changed in: hplip (Ubuntu)
Status: Confirmed = Fix Committed
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of Ubuntu
Bugs, which
Fix is on the way. I decided to make the generator for the fdi file as I
suggested, with 256 entries for each device class. This assures that
really all supported HP devices will work. HP has intendedly given the
model IDs this way so that one can distinguish device classes.
I have tested and the
Note also that devices which do not have a scanner built in must also
get scanner the info.capability, so that the current desktop user can
use maintenance functions, like head cleaning, ink level check, ...
--
Users not automatically added to scanner group: No scanning functions of HP
Maybe bug 121082 is related to this? At least some other usb-scanners do
not work, either as normal user (scanner group added) because of the
lack of some usb permissions.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
I'd rather not do the full combinatorial explosion, both for performance
reasons, and also to avoid accidentally covering devices which are not
scanners.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
David Suffield [2008-03-27 16:59 -]:
You do not need explicit usb-pids for HP printer products. You can
determine if the udev event is a HP printer product by performing a
wild-card compare on the idProduct. See 55-hpmud.rules file.
Ah, thanks for the hint. Unfortunately hal cannot do
I have run the SUSE script
sudo sh -c 'cd /usr/share/hplip/data/models; sh
/home/till/ubuntu/hplip/create_hal_global_fdi_from_models.dat
/usr/share/hal/fdi/preprobe/10osvendor/20-hplip-scanners.fdi'
and removed a spurious models.dat from the first line of the resulting
.fdi file. Then I have
I am neither a big fan of HAL because since it exists
I am usually fighting with its mess until it somehow
works for me because I always find insufficiencies.
For example newest stuff like
int_outof=0xa1b2;0xc3d4;...
doesn't work with HAL at least not on my
openSUSE 10.3 system.
Perhaps HAL
Hi Till,
Till Kamppeter [2008-03-28 8:57 -]:
and removed a spurious models.dat from the first line of the resulting
.fdi file. Then I have replugged the printers, restarted HAL, but never
got scanner into info.capabilities lines in the output of lshal.
Can you please attach the generated
The file contains the IDs of my printers. I attach it here. I have also
checked with xmllint that the file is correct XML.
** Attachment added: .fdi file generated by SUSE's script
http://launchpadlibrarian.net/12945722/20-hplip-scanners.fdi
--
Users not automatically added to scanner group:
Tills file and mine on my workstation are identical.
By the way:
How can one change the attachment mime type?
This one should be text/plain because the current text/html
leads to nonsense when one views it with a browser.
--
Users not automatically added to scanner group: No scanning functions
Hi Till,
Till Kamppeter [2008-03-28 12:55 -]:
The file contains the IDs of my printers. I attach it here. I have also
checked with xmllint that the file is correct XML.
Ah, that's the problem. info.bus is deprecated. Please do
s/info.bus/info.subsystem/ in the script and in the file. Does
Yes, that's it. Now it works.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs
My idea now for a better fdi generator script is to generate an fdi file
with entries for all possibilities which match the wild cards of
/etc/udev/rules.d/55-hpmud.rules. This would be 5 * 256 entries. Or
would this slow down HAL a lot?
--
Users not automatically added to scanner group: No
See comment 14. We should really drop this scanner group. Can anyone
with such a printer please do
lshal hal.txt
and attach hal.txt here? I'm curious whether these devices appear in hal
at all. If they do, we can make hplip ship a hal FDI rule to make the
device nodes accessible.
** Changed
Till, can you work with me to get this resolved?
** Changed in: hplip (Ubuntu)
Assignee: Ubuntu Desktop Bugs (desktop-bugs) = Till Kamppeter
(till-kamppeter)
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
Yes, pitti, so I will start with attaching my hal.txt with two HP multi-
function devices on the USB:
- HP LaserJet 3390 (printer with toner level readout, scanner, fax)
- HP PhotoSmart A710 (printer with ink level readout, head alignment/cleaning,
USB mass storage)
** Attachment added: lshal
And here is the hal.txt of another Hardy box, with the
- HP PhotoSmart C5200 (printer with ink level readout, head
alignment/cleaning, scanner, USB mass storage)
** Attachment added: lshal output for HP PhotoSmart C5200
http://launchpadlibrarian.net/12915712/hal.txt
--
Users not
Right, thanks, I see the hal entries. E. g. for your LaserJet
(uninteresting properties removed):
udi = '/org/freedesktop/Hal/devices/usb_device_3f0_3517_00CNMJP81545'
info.product = 'HP LaserJet 3390' (string)
info.subsystem = 'usb_device' (string)
info.vendor = 'Hewlett-Packard'
Please do the following test:
- Plug in and turn on your HP device on USB.
- Do lshal hal.txt and search for the model name of your HP device in
hal.txt. Look for the linux.device_file entry in the section where you have
found the model name.
- Do not unplug or turn off your HP device.
- Now
The list of models supported by the installed HPLIP is always in the
file
/usr/share/hplip/data/models/models.dat
Here you find USB IDs and also the model names of the IEEE-1284 device
ID.
In general it is a good idea to set any USB device which is detected as
a printer to the ownerships
** Attachment added: FYI: our current openSUSE 11.0 script to create a fdi
fike from models.dat
http://launchpadlibrarian.net/12917563/create_hal_global_fdi_from_models.dat
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
Johannes, when do you execute this script? Does HAL execute it whenever
it is needed or is it executed when building the HPLIP package?
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this
Till: Thanks, that's exactly what I was looking for. I just wonder about
this:
$ grep 'usb-pid=$' /usr/share/hplip/data/models/models.dat|wc -l
135
Why are there so many empty product IDs?
Johannes: Awesome! That's pretty much what I had in mind. What is the
license for that script? Would you
I run it during package buid in the RPM spec file as follows:
Source104: create_hal_global_fdi_from_models.dat
...
bash %{SOURCE104} data/models/models.dat 70-hpmud.fdi
install -d %{buildroot}%{_sysconfdir}/hal/fdi/policy/10osvendor
install -m644 70-hpmud.fdi
Hi Johannes,
Johannes Meixner [2008-03-27 11:04 -]:
We use hal-resmgr to grant read/write access permissions
for USB scanners only for those users who are logged in locally
(i.e. via console od XDM/KDM) i.e. those users who sit in front
of the computer where the USB scanner is connected
pitti, about the empty product IDs, many of these printers are old
models which probably do not have a USB port, but there are also some
newer models which have a USB port. Then we also need to match the model
name entries with the model name in the IEEE-1284 device ID to safely
identify the
Regarding
grep 'usb-pid=$' /usr/share/hplip/data/models/models.dat|wc -l
135
see the comments at the end of /usr/share/hplip/data/models/models.dat
# io-support: (bitfield)
# 1 = parallel
# 2 = usb
# 4 = ethernet
# 8 = wireless 802.11
# 16 = bluetooth
Then run something like
egrep
First, note that there are also many 'usb-pid=' cases. These have to
be considered as empty product IDs, too.
So with
egrep '^io-support|^usb-pid' /usr/share/hplip/data/models/models.dat |
egrep -B1 '^usb-pid=(|0+)$' | grep io-support | grep [2367] | wc -l
there are 62 devices with USB port
I think it is an upstream issue that HP provides the USB IDs
instead of let the distributions implement complicated workarounds.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug
You do not need explicit usb-pids for HP printer products. You can
determine if the udev event is a HP printer product by performing a
wild-card compare on the idProduct. See 55-hpmud.rules file.
I am not a big fan of hal, but can't you write a hal fdi rule based on
wild-cards like you can with
Dave, I think this makes sense, and as UDEV triggers HAL, we can use the
same rule also to trigger HAL.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you
** Tags added: metabug
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs
this is not a gnome-system-tools issue
** Tags removed: metabug
** Tags removed: hp scan
** Changed in: gnome-system-tools (Ubuntu)
Status: Confirmed = Invalid
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
did you try using the current hardy versions?
** Changed in: gnome-system-tools (Ubuntu)
Assignee: (unassigned) = Ubuntu Desktop Bugs (desktop-bugs)
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
** Tags added: metabug scan
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs
Marked as confirmed so this bug wouldn't be lost.
I have experienced this bug on a fresh install (hate using that
phrase) of Hardy Beta.
** Changed in: gnome-system-tools (Ubuntu)
Status: Invalid = Confirmed
--
Users not automatically added to scanner group: No scanning functions of HP
I wish I'd seen this report before. I emailed the desktop list about
this problem - https://lists.ubuntu.com/archives/ubuntu-
desktop/2008-March/001522.html ;-s
By default, users do not have the privilege to Use scanners. Due to
the rise of multifunction printers, this is a problem that should
** Changed in: gnome-system-tools (Ubuntu)
Target: ubuntu-8.04-beta = ubuntu-8.04
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of
I just tested this on current hardy, and I confirm that Ubuntu does not
create the scanner group any more, since we do not need it for libsane.
If hplip still needs it, it should be created there, but I think the
better solution would be to change hal to make those devices accessible
to the
The HP toolbox-Bug is now solved.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
Yes, I can confirm that new users are automatically added to the scanner
group by default.
--
Users not automatically added to scanner group: No scanning functions of HP
multi-function in Hardy
https://bugs.launchpad.net/bugs/195782
You received this bug notification because you are a member of
63 matches
Mail list logo