Author Topic: HP deskjet 2050 all in one not functioning!!  (Read 8145 times)

Offline drhadidy

  • Hero Member
  • *****
  • Posts: 618
  • the MATRIX have got you!!
    • My clinic website
HP deskjet 2050 all in one not functioning!!
« on: September 26, 2010, 03:54:46 AM »
just got myself an all in one machine... HP deskjet 2050...
its working fine on windows... so there is no problems with the hardware...
on linux.. first..  my system doesnt recognize the scanner...
not from the pcc not from the Xsane application... the output is that there is no scanner attached.
for the printer... its recognized well and fine.. i set it up using the pcc first... then it was seen by the HP printer tool..
but when i tried to print i had a message the print job is completed while nothing was done!!!!
i dont want to mention the copier even ... its not a big deal i can use it directly without the commends from the computer...
but the scanner and printer??
any help plz
« Last Edit: September 26, 2010, 05:19:06 AM by drhadidy »
Hope that one day ill be able to help as much as I'm being helped now...

registered Linux user # 518656

whats the need for "WINDOWS" in a world without walls?:-)

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1589
Re: HP deskjet 2010 all in one not functioning!!
« Reply #1 on: September 26, 2010, 04:29:33 AM »
What is the actual model # of this printer -scanner -copier ?
How is it connected ?

Offline drhadidy

  • Hero Member
  • *****
  • Posts: 618
  • the MATRIX have got you!!
    • My clinic website
Re: HP deskjet 2050 all in one not functioning!!
« Reply #2 on: September 26, 2010, 05:18:44 AM »
its HP deskjet 2050 All-in-One printer-scanner-copier J510 series ( sorry i first wrote 2010 by mistake )
its connected through USB...
« Last Edit: September 26, 2010, 05:21:53 AM by drhadidy »
Hope that one day ill be able to help as much as I'm being helped now...

registered Linux user # 518656

whats the need for "WINDOWS" in a world without walls?:-)

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1589
Re: HP deskjet 2050 all in one not functioning!!
« Reply #3 on: September 26, 2010, 06:56:02 AM »
OK, I found your device listed in the printer setup in PCC

I suggest that you :

1- uninstall the printer

2- Reinstall : cups - cups-drivers

3-reinstall: Xsane

4- reinstall: hplip

Then reinstall your printer

skyhawk

  • Guest
Re: HP deskjet 2050 all in one not functioning!!
« Reply #4 on: September 26, 2010, 08:29:18 AM »

Follow Ramchu's suggestions first, then ...

Check to see if CUPS is set to run at boot-up. Edit your "/etc/cups/cupsd.conf" file to show "Group lp" and "User YourUserID". In the CUPS web interface, set YourUserID as the user allowed to print. I also have changed ownerships in the /etc/cups/ subdirectories to "root lp", as well as for the printer PPD file. CUPS will change some ownerships automatically after cupsd.conf editing and reboot, but not all will be changed automatically. Run "hp-check -r" in console mode to see if any dependencies are unfilled. My guess is that HP Device Manager is probably displaying "Device connection error 5012".
Repost if problems persist. You might have to post to the HPLIP forum for resolution.

Offline drhadidy

  • Hero Member
  • *****
  • Posts: 618
  • the MATRIX have got you!!
    • My clinic website
Re: HP deskjet 2050 all in one not functioning!!
« Reply #5 on: September 26, 2010, 10:05:17 AM »
Ramchu .... followed ur steps and nothing changed:-(
still scanner not recognized and printer recognized and showing that printing jobs are being done while they are not done:-(
and btw i also rebooted my system.

LXDEmystified .... sorry i will sound stupid... but
1- Edit your "/etc/cups/cupsd.conf" file to show "Group lp" and "User YourUserID"
how to do that?? i opened the file using kwrite and found it is an empty file!!

2-In the CUPS web interface, set YourUserID as the user allowed to print.
how to open CUPS web interface? how to do this step in details?

3- I also have changed ownerships in the /etc/cups/ subdirectories to "root lp", as well as for the printer PPD file.
how to do that?

4- running "hp-check -r" gave a very long report....
ill post it all but i found 2 important problems...
a- cups-config is not found( as i said in point 1) and
b- CUPS DDK also is not found and i dont find it in synaptic!!!
any ideas here?

the output is as follows

[olya@localhost ~]$ hp-check -r

HP Linux Imaging and Printing System (ver. 3.10.6)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.                                   
2. Run-time check mode (-r or --run): Use this mode to determine if a distro   
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball   
has the proper dependencies installed to successfully run.                     
3. Both compile- and run-time check mode (-b or --both) (Default): This mode   
will check both of the above cases (both compile- and run-time dependencies).   

Saving output in log file: hp-check.log

Initializing. Please wait...
 
---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux localhost.localdomain 2.6.32.10-pclos2.bfs #1 SMP PREEMPT Mon Mar 15 22:17:42 CDT 2010 i686 Intel(R) Pentium(R) M processor 1.73GHz GNU/Linux

Distribution:
mandriva 2010

Checking Python version...
OK, version 2.6.6 installed

Checking PyQt 4.x version...
OK, version 4.7.4 installed.

Checking for CUPS...
Status: scheduler is running
warning: Version: (cups-config) Not available. Unable to determine installed version of CUPS.)                                                                 
warning: /etc/cups/cupsd.conf file not found or not accessible.

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.1


------------------------
| RUNTIME DEPENDENCIES |
------------------------


Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.                                           

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
OK, found.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.


----------------------
| HPLIP INSTALLATION |
----------------------


Currently installed HPLIP version...
HPLIP 3.10.6 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.10.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.10.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.10.6.15
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no


Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0



Current contents of '~/.hplip/hplip.conf' file:
[last_used]
printer_name = HPDe2050j510
working_dir = .
device_uri = "hp:/usb/Deskjet_2050_J510_series?serial=CN0541N1W805D1"

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[installation]
version = 3.10.6.15
date_time = 09/26/2010 20:02:58

[settings]
systray_messages = 0
systray_visible = 0

[fax]
email_address =
voice_phone =

[refresh]
rate = 30
enable = true
type = 1

[polling]
enable = false
device_list =
interval = 5



--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI                        Model                     
  --------------------------------  ---------------------------
  hp:/usb/Deskjet_2050_J510_series  HP Deskjet 2050 J510 series
  ?serial=CN0541N1W805D1                                       

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
HPDe2050j510
------------
Type: Printer
Device URI: hp:/usb/Deskjet_2050_J510_series?serial=CN0541N1W805D1
PPD: /etc/cups/ppd/HPDe2050j510.ppd
PPD Description: HP Deskjet 2050 j510 Series, hpcups 3.10.6
Printer status: printer HPDe2050j510 is idle.  enabled since Sun 26 Sep 2010 06:51:37 PMready to print
Communication status: Good


----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
 
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.


 
-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x8711 at 005:002:
    Device URI: hp:/usb/Deskjet_2050_J510_series?serial=CN0541N1W805D1
    Device node: /dev/bus/usb/005/002
    Mode: 0666
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/005/002
# owner: root
# group: lp
user::rw-
group::rw-
other::rw-



---------------
| USER GROUPS |
---------------

mo lp floppy cdrom usb cdwriter audio video dialout users lpadmin pulse-access polkituser fuse vboxusers


-----------
| SUMMARY |
-----------

error: 1 error or warning.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.
[olya@localhost ~]$

Hope that one day ill be able to help as much as I'm being helped now...

registered Linux user # 518656

whats the need for "WINDOWS" in a world without walls?:-)

skyhawk

  • Guest
Re: HP deskjet 2050 all in one not functioning!!
« Reply #6 on: September 26, 2010, 04:15:12 PM »
The output from "hp-check -r" looks good except for "/etc/cups/cupsd.conf" being found missing. The CUPS-DDK dependency is optional, and is not absolutely necessary. When I run "hp-check -r" on my machine, I have three errors/warnings reported; two missing optional dependencies, and no printer queues found ... but my printer works perfectly. One of the missing dependencies is CUPS-DDK, which as you say, is not in the repository.

The empty "/etc/cups/cupsd.conf" file is puzzling. Check to see if CUPS is enabled to start at boot-up (PCC/System/Manage system services ...). Check-mark CUPS and CUPS-lpd, then reboot. Go to terminal-mode, change directory to "/etc/cups". Look to see if you have "/etc/cups/cupsd.conf" with some byte-content. If so, do "cat cupsd.conf | less". Press "Page Down" to scan through the file, press "Q" to return to your normal user command prompt.

That file, "/etc/cups/cupsd.conf" must be manually edited, so that it has the entries, "Group lp" and "User YourUserID". My UserID is "rg", so I have the entry "User rg". Insert your UserID where needed. Since you are already in terminal-mode, "nano" can be used to edit the file. Do "su", enter your root password. When you are at the root command prompt, do "nano cupsd.conf". Make the necessary changes. Press F3 to save, confirm you want to write the file [Enter], then press F2 to exit. Type "exit" to return to normal user-mode. The beginning of your file should look similar to mine, given below.

Code: [Select]
# Show general information in error_log.
LogLevel warn
SystemGroup lpadmin root
Group lp
User rg
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
...

Re-check the changes you have made, "cat cupsd.conf | less". Re-boot again (complete shutdown). When the system is back up, go to terminal-mode again and look at the contents of "/etc/cups" to see if some permissions have been automatically changed to "root lp", as they should have. If you are able to, post the lines displayed when you do "ls -l" in the "/etc/cups/" directory. I took the initiative to change additional permissions on my machine, but I am not going to say at this point that the additional changes I chose to make are absolutely necessary in your case. That can be dealt with later, if necessary. Basically, I chose to remove the "sys" group as an allowed user, and replaced "sys" with the "lp" group. "Sys" is not included in my "/etc/group" file, but "lp" is found there, and "rg" is a member of the "lp" group.

The CUPS web interface is accessed through a web browser. You do not need to be online. Some have reported problems using Firefox. I always use Midori, and there are no problems using it. Just enter "http://localhost:631", or simply "localhost:631" and the CUPS interface should appear. If you try Firefox and it displays, "you do not have access permission", try another browser. In the interface, select "Administration/Manage printers/[click on printer listed under 'Queue Name']/Administration/Set Allowed Users/[enter 'root' and 'root's password']/[enter your UserID in the box -- my UserID is 'rg' as Allowed User]. Go back to the main "Administration" tab, look over the "Server Settings", change any you wish. Close the browser.

Doing these things should resolve your problem, if everything is essentially installed as it should be. There are many problems with HPLIP and its interaction with specific printer models, however, so more complex problems are best handled by the HPLIP technical staff, which at this time seems to be composed of one individual -- Aaron Wright. Post here to report if some progress has been made. If nothing has been gained, you might be forced to post directly to the HPLIP forum: https://answers.launchpad.net/hplip . When posting to HPLIP directly, you will need to furnish as much information as possible; operating system, HPLIP version, installation method, hardware, output from "hp-check -r" or "hp-check -t", and of course, specifics about your exact problem.

Offline drhadidy

  • Hero Member
  • *****
  • Posts: 618
  • the MATRIX have got you!!
    • My clinic website
Re: HP deskjet 2050 all in one not functioning!!
« Reply #7 on: September 27, 2010, 09:26:17 AM »
ok my friend....
im sorry if i sound a little clumsy but i dont know and dont like the console thing... i am a GUI person... so plz bare me...
first... CUPS & CUPS-lpd are set up to load on boot.
second... i could cd to /etc/cups... but i didnt know by console how to check if ("/etc/cups/cupsd.conf" with some byte-content.)

so i tried first to play it using the CUPS web interface... i did the steps u advised but still nothing changed...
so i went through dolphin and opened the cupsd.conf file and suddenly found it not empty anymore...
it read as follows:

#
# "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $"
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Administrator user group...
SystemGroup lpadmin root
Group sys
User lp


# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseAddress @LOCAL
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Allow @LOCAL
  Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Allow @LOCAL
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  Allow @LOCAL
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $".
#

===============================================================

i changed the user from lp to olya ( the user name on this laptop ) but kept the group as us it is (sys)
nothing changed yet...
any ideas??



Hope that one day ill be able to help as much as I'm being helped now...

registered Linux user # 518656

whats the need for "WINDOWS" in a world without walls?:-)

skyhawk

  • Guest
Re: HP deskjet 2050 all in one not functioning!!
« Reply #8 on: September 27, 2010, 04:16:02 PM »
Congratulations ... you have made some progress. You now have an "/etc/cups/cupsd.conf" file, which is an absolute necessity. Now, follow the instructions in my previous post and do some more editing. One line must be "Group lp". "User olya" is okay, if that is the User Name you use to login to your system. You will need the line "Listen localhost:631" to access the CUPS web interface with no unexpected problems.

Recommend you use "nano" to do the editing. Practice on a test file if you are nervous about using a terminal-mode editor. It will be a good and valuable learning experience. Then, proceed to use "nano" to do the necessary changes. Once that has been done, go on down the list of instructions I have already given. Feel free to repost if some surprises happen along the way.

Nothing has changed that you can see ... yet, because you still have some steps to complete to finish the "project".

P.S. Command-line know-how is an essential for Linux usage, in my opinion, and it is a "must-have" in many situations. There is at least one excellent command-line tutorial available online (free), and I will send a link to it later. A "newbie" will remain forever a "newbie" without command-line knowledge, and I would like to think that everyone "thirsts" for more knowledge.

« Last Edit: September 28, 2010, 08:35:47 AM by LXDEmystified »

Offline jimwilk

  • Hero Member
  • *****
  • Posts: 1114
Re: HP deskjet 2050 all in one not functioning!!
« Reply #9 on: November 07, 2011, 12:55:33 AM »
This morning, I noticed that a local electronics store had a one day special price on the HP deskjet 2050 of $NZ 57. (Current exchange rate has $NZ 1 = about 79 cents US). I checked on the price of ink cartridges while in the store. Black is priced at $27 and colour at $33.

I bought it and set it up at home. The printer was detected immediately, the driver installed, and a test page offered for print.

I placed a document on the copying platform and selected XSane in PCLinuxOS. It too worked perfectly. I also printed a photo of the four grandchildren from my Digikam collection.

After all the hassle that I had with a Canon MG5150 printer, I was well pleased with the ease with which I was able to get the HP 2050 operational.

Jim
PCLinuxOS 2013.01 KDE (2 desktop computers)
PCLinuxOS  2013.04 KDE on Asus  laptop


Windows free since 2005
Our house has windows: our computers have no Windoze!
Registered Linux User #409991