Johannes-

I am having some trouble understanding this issue. Hpssd has no role in
accessing device status or USB I/O. For status, the only role it has is to
save the last 40 status data sets in a circular buffer so that they can be
retrieved later. Running hpssd as a regular user or root should make no
difference with accessing a device using USB (or any other I/O).

-Don


On 9/13/07, Johannes Meixner <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> it seems there is by default no device status via hp-toolbox
> for normal users which do not have write access to a USB printer
> even if hpssd runs as root.
>
> I thought running hpssd as root is sufficient to get the
> device status as normal user even if the normal user itself
> has no write permissions for the device file.
>
>
> Details:
>
> I have HPLIP 2.7.7 running on a AMD 64-bit (X86-64) machine
> using openSUSE 10.3 (beta2) with a HP DeskJet 3320c USB printer.
>
> By default it is
>
> [EMAIL PROTECTED] lsusb
> Bus 002 Device 003: ID 03f0:7004 Hewlett-Packard DeskJet 3320c
>
> [EMAIL PROTECTED] ls -l /dev/bus/usb/002/003
> crw-rw-r-- 1 root lp 189, 130 2007-09-13 15:55 /dev/bus/usb/002/003
>
> [EMAIL PROTECTED] lpstat -v
> device for deskjet_3320: hp:/usb/deskjet_3320?serial=TH27T2H35B35
>
> [EMAIL PROTECTED] ps auxw | grep hp
> root ... hpssd /usr/share/hplip/hpssd.py
>
>
> When I run hp-toolbox as normal user I get:
> --------------------------------------------------------------------
> [EMAIL PROTECTED] hp-toolbox
>
> HP Linux Imaging and Printing System (ver. 2.7.7)
> HP Device Manager ver. 10.0
>
> 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.
>
> warning: Reportlab not installed. Fax coverpages disabled.
> QSettings: failed to open file
> '/usr/lib/qt3//etc/settings/qt_plugins_3.3rc'
> error: Unable to communicate with device (code=12):
> hp:/usb/deskjet_3320?serial=TH27T2H35B35
> warning: Device not found
> error: Unable to communicate with device (code=12):
> hp:/usb/deskjet_3320?serial=TH27T2H35B35
> warning: Device not found
> --------------------------------------------------------------------
>
> The matching message in /var/log/messages are:
> --------------------------------------------------------------------
> Sep 13 16:22:45 caps python: hp-toolbox[3950]:
> warning: Reportlab not installed. Fax coverpages disabled.
> Sep 13 16:22:46 caps python: io/hpmud/musb.c 549:
> invalid product id string: Operation not permitted
> Sep 13 16:22:46 caps python: io/hpmud/musb.c 1003:
> unable to open hp:/usb/deskjet_3320?serial=TH27T2H35B35
> Sep 13 16:22:46 caps python: hp-toolbox[3950]: error:
> Unable to communicate with device (code=12):
> hp:/usb/deskjet_3320?serial=TH27T2H35B35
> Sep 13 16:22:46 caps python: hp-toolbox[3950]:
> warning: Device not found
> Sep 13 16:22:46 caps python: io/hpmud/musb.c 549:
> invalid product id string: Operation not permitted
> Sep 13 16:22:46 caps python: io/hpmud/musb.c 1003:
> unable to open hp:/usb/deskjet_3320?serial=TH27T2H35B35
> Sep 13 16:22:46 caps python: hp-toolbox[3950]:
> error: Unable to communicate with device (code=12):
> hp:/usb/deskjet_3320?serial=TH27T2H35B35
> Sep 13 16:22:46 caps python: hp-toolbox[3950]:
> warning: Device not found
> --------------------------------------------------------------------
>
>
> But when I do
>
> [EMAIL PROTECTED] chmod o+w /dev/bus/usb/002/003
>
> [EMAIL PROTECTED] ls -l /dev/bus/usb/002/003
> crw-rw-rw- 1 root lp 189, 130 2007-09-13 15:55 /dev/bus/usb/002/003
>
> and re-start hp-toolbox as normal user, I get the device status.
>
>
> Kind Regards
> Johannes Meixner
> --
> SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
> AG Nuernberg, HRB 16746, GF: Markus Rex
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> HPLIP-Help mailing list
> HPLIP-Help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hplip-help
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
HPLIP-Help mailing list
HPLIP-Help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-help

Reply via email to