LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   HP Photosmart C5280 - no device found (https://www.linuxquestions.org/questions/linux-hardware-18/hp-photosmart-c5280-no-device-found-578529/)

mikieboy 08-20-2007 05:42 PM

HP Photosmart C5280 - no device found
 
I've downloaded and installed the latest HPLIP driver for a HP Photosmart C5280 but when I run hp-setup I get an error message "no device found". I've done all the obvious things such as checking the connection and making sure the printer is on. I've also tried to configure CUPS first but the device isn't found in CUPS either.
The output of lsusb is:
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04cc:1122 Philips Semiconductors Hub
Bus 002 Device 003: ID 04fc:0003 Sunplus Technology Co., Ltd CM1092 Optical Scroller Mouse
Bus 002 Device 001: ID 0000:0000

I'm stumped here as the printer works perfectly in Windows. Any help would be appreciated.

Mikie

BruceCadieux 08-22-2007 03:27 AM

Had the same problem with the last two versions of hplip.

Run hp-toolbox as root and you will see it works just fine. The device permissions need to be changed.

On my system the device was /dev/bus/usb/001/002. You can find which device it is by checking it's permissions, it will be in the lp group.

Change the permissions on the device "sudo chmod a+w /dev/bus/usb/001/002", then try to run hp-toolbox as user, it should now work.

Bruce Hill 08-26-2007 04:28 AM

Code:

root@silas:~# hp-toolbox

HP Linux Imaging and Printing System (ver. 1.6.10)
HP Device Manager ver. 6.3

Copyright (c) 2003-6 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.

hp-toolbox: cannot connect to X server

It is not recommended to run X as root. HPLIP works run as a regular user here ...

Bruce Hill 08-26-2007 04:44 AM

Your printer appears to be supported, after reading these two pages:
HPLIP Supported Devices (Photosmart C5200 Series)
Linux Foundation OpenPrinting database - Printer: HP PhotoSmart C5200

What version of CUPS are you running? Mine is v1.1.23 and does not contain the .ppd file for that printer, but the Linux Foundation has a link to download it.

Perhaps if you navigate to their site, there's enough information to help you get it working.

BruceCadieux 08-26-2007 05:50 AM

Quote:

Originally Posted by Bruce Hill (Post 2870952)
Code:

root@silas:~# hp-toolbox

HP Linux Imaging and Printing System (ver. 1.6.10)
HP Device Manager ver. 6.3

Copyright (c) 2003-6 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.

hp-toolbox: cannot connect to X server

It is not recommended to run X as root. HPLIP works run as a regular user here ...

Works great for me too with my all in one 3210, but my USB D5160 just wasn't working correctly in the last two versions of hplip. Have been seeing this in a few forums recently.

Running hplip as root is just to check if it works, indeed it does. So it comes down to a permission problem.

Changing permission on the device is so far the only solution I can find that works and makes hplip usable in my user account.

mikieboy 08-26-2007 05:02 PM

I've now got the C5280 working but only through a USB1.1 hub.

I had tried the above tips to no avail. However, I looked again at the output of lsusb and could see that, while the printer wasn't detected, my USB1.1 hub and mouse were. So I connected the printer via the hub, ran hp-setup and it all worked.

The printer works very well with excellent print and scan quality. Despite the USB1.1 connection it is really pretty quick but for some reason, the device still isn't detected when I connect it through a USB2.0 port.
Has anyone any ideas why this might be so?

Bruce Hill 08-26-2007 05:04 PM

Do other devices work through that USB 2.0 port?
Does that USB 2.0 port show up in "lspci"?

mikieboy 08-26-2007 05:09 PM

The output of "lspci":
Quote:

00:00.0 Host bridge: Silicon Integrated Systems [SiS] 741/741GX/M741 Host (rev 03)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SiS AGP Port (virtual PCI-to-PCI bridge)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS963 [MuTIOL Media IO] (rev 25)
00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] AC'97 Sound Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 90)
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 661/741/760/761 PCI/AGP VGA Display Adapter

I'll have to find another USB2.0 device and try the port.

mikieboy 08-26-2007 05:50 PM

OK. This is the output of lsusb after connecting a Lexar Jump Drive to the USB2.0 port:

Quote:

Bus 003 Device 003: ID 05dc:a300 Lexar Media, Inc.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 04fc:0003 Sunplus Technology Co., Ltd CM1092 Optical Scroller Mouse
Bus 002 Device 002: ID 04cc:1122 Philips Semiconductors Hub
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

And this is the relevant output of dmesg | less:

Quote:

usb 3-6: new high speed USB device using ehci_hcd and address 3
usb 3-6: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 0:0:0:0: Direct-Access Generic STORAGE DEVICE 1.25 PQ: 0 ANSI: 0
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
usb 3-6: reset high speed USB device using ehci_hcd and address 3
usb 3-6: reset high speed USB device using ehci_hcd and address 3
usb 3-6: reset high speed USB device using ehci_hcd and address 3
usb 3-6: reset high speed USB device using ehci_hcd and address 3
usb 3-6: reset high speed USB device using ehci_hcd and address 3
usb 3-6: reset high speed USB device using ehci_hcd and address 3
sda: Write Protect is off
sda: Mode Sense: 02 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
usb 3-6: reset high speed USB device using ehci_hcd and address 3
usb 3-6: reset high speed USB device using ehci_hcd and address 3
sda: Write Protect is off
sda: Mode Sense: 02 00 00 00
sda: assuming drive cache: write through
sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
There doesn't seem to be much doubt about that Jump Drive being found.

Bruce Hill 08-26-2007 05:56 PM

That is a bit strange. Though I have no advice, can you post the dmesg output you get when plugging the printer in? You might want to watch yourself by issuing "tail -f /var/log/messages" as root in a term.

mikieboy 08-26-2007 06:27 PM

OK done. The output of tail -f /var/log/messages:

Quote:

Aug 27 00:20:48 titanium kernel: usb 3-2: new high speed USB device using ehci_hcd and address 125
Aug 27 00:21:35 titanium kernel: usb 3-2: new high speed USB device using ehci_hcd and address 2
Aug 27 00:22:47 titanium kernel: usb 3-2: new high speed USB device using ehci_hcd and address 13
Aug 27 00:23:13 titanium kernel: usb 3-2: new high speed USB device using ehci_hcd and address 27
Aug 27 00:23:15 titanium kernel: usb 3-2: new high speed USB device using ehci_hcd and address 41
Aug 27 00:23:24 titanium python: hp-toolbox[4801]: warning: Device not found
Aug 27 00:23:24 titanium python: hp-toolbox[4801]: warning: Device not found
And the output of dmesg | less:

Quote:

usb 3-2: new high speed USB device using ehci_hcd and address 125
usb 3-2: new high speed USB device using ehci_hcd and address 2
So there is no change when I plug into the USB2.0

mikieboy 08-26-2007 06:35 PM

This is weird. Now when I run hp-toolbox as root the device seems to be recognized and yet I still get "device not found". The output of hp-toolbox:

Quote:

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.

error: Unable to communicate with device (code=12): hp:/usb/Photosmart_C5200_series?serial=MY73KBC0PP04XQ
warning: Device not found
error: Unable to communicate with device (code=12): hp:/usb/Photosmart_C5200_series?serial=MY73KBC0PP04XQ
warning: Device not found

Makes no sense! How can it recognize a device it can't find?

mikieboy 08-28-2007 06:46 AM

I appear to have got the printer working. I recompiled my kernel, getting rid of the parallel port module and saying yes (not M) to UHCI and EHCI. When I rebooted, the printer was found. I can't explain this only to say that on reboot I no longer saw the message that CUPS was initializing on lp0 (which I believe was assigned to parallel port).
Anyway, what works works and I can get on with other things now.

Many thanks for your replies,

Mikie.


All times are GMT -5. The time now is 07:59 AM.