Cannot print custom paper size with HP Deskjet 9800

Asked by Cecil Carpenter

I am running Ubuntu 10.10 and have an HP Deskjet 9800. I cannot print a custom paper size correctly from any application (Libreoffice, Evince, Adobe Reader,etc.). There is no Custom media size in HPLIP nor any way to define one that I can see. I have to boot into XP to print these items.

Here is the result of hp-check -t

hp-check -t

HP Linux Imaging and Printing System (ver. 3.11.1)
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 Car-Photo-Ubuntu 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux

Distribution:
ubuntu 10.10

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.)
error_log is set to level: warn

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

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

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.
To install this dependency, execute this command:
sudo apt-get install --assume-yes cups

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.
To install this dependency, execute this command:
sudo apt-get install --assume-yes libcups2-dev cups-bsd cups-client

Checking for dependency: CUPS image - CUPS image 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.
To install this dependency, execute this command:
sudo apt-get install --assume-yes libcupsimage2-dev

Checking for dependency: DBus - Message bus system...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --assume-yes libdbus-1-dev

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

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

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.
To install this dependency, execute this command:
sudo apt-get install --assume-yes openssl

Checking for dependency: libjpeg - JPEG library...
OK, found.

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.
To install this dependency, execute this command:
sudo apt-get install --assume-yes libsnmp-dev

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
To install this dependency, execute this command:
sudo apt-get install --assume-yes libtool

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
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 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.
To install this dependency, execute this command:
sudo apt-get install --assume-yes python-dev

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: Python 2.2 or greater - Python programming language...
OK, found.

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

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

Checking for dependency: SANE - Scanning library 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.
To install this dependency, execute this command:
sudo apt-get install --assume-yes libsane-dev

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.11.1 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.11.1

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

# 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=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.11.1.19
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 =
working_dir = .
device_uri = "hp:/usb/Deskjet_9800?serial=MY54G111M3046K"

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

[installation]
version = 3.11.1.19
date_time = 05/05/2011 20:46:29

[settings]
systray_messages = 0
systray_visible = 0

[fax]
email_address =
voice_phone =

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

[polling]
enable = false
device_list =
interval = 5

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

  Device URI Model
  ------------------------------------------ -------------------------------
  hp:/usb/Deskjet_9800?serial=MY54G111M3046K HP Deskjet 9800

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

Deskjet-9800
------------
Type: Printer
Device URI: hp:/usb/Deskjet_9800?serial=MY54G111M3046K
PPD: /etc/cups/ppd/Deskjet-9800.ppd
PPD Description: HP Deskjet 9800, hpcups 3.11.1
Printer status: printer Deskjet-9800 is idle. enabled since Thu 05 May 2011 02:54:34 PM EDT
Communication status: Good

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

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

Checking output of 'scanimage -L'...
device `hp3500:libusb:006:002' is a Hewlett-Packard ScanJet 3500 scanner
device `coolscan3:usb:libusb:002:002' is a Nikon LS-50 ED film scanner

---------------------
| 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 0x2005 at 006:002:
    Device URI: hp:/usb/hp_scanjet_3500c_series?serial=SCN2BUN809B1P
error: Unsupported model: hp_scanjet_3500c_series

HP Device 0x1212 at 003:002:
    Device URI: hp:/usb/Deskjet_9800?serial=MY54G111M3046K
    Device node: /dev/bus/usb/003/002
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/003/002
# owner: root
# group: lp
user::rw-
user:butch:rw-
group::rw-
mask::rw-
other::r--

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

butch root adm dialout fax cdrom floppy tape audio dip video plugdev fuse lpadmin netdev admin sambashare

error: User needs to be member of group 'lp' to enable print, scan & fax.
User member of group 'lpadmin'.

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

error: 9 errors and/or warnings.

Summary of needed commands to run to satisfy missing dependencies:
sudo apt-get install --assume-yes cups
sudo apt-get install --assume-yes libcups2-dev cups-bsd cups-client
sudo apt-get install --assume-yes libcupsimage2-dev
sudo apt-get install --assume-yes libdbus-1-dev
sudo apt-get install --assume-yes openssl
sudo apt-get install --assume-yes libsnmp-dev
sudo apt-get install --assume-yes libtool
sudo apt-get install --assume-yes python-dev
sudo apt-get install --assume-yes libsane-dev

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

Done.

I can choose Custom in Evince and Adobe, but the printing is completely different (not properly aligned) from the preview. I cannot choose CustomI from Libreoffice. Even though I can define a page with the appropriate dimensions, and the preview looks fine, the print is misaligned because I cannot define a document to HPLIP of the correct dimensions.

Is there any way to define a custom document to HPLIP? If so, how?

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ani Balakrishnan (anib) said :
#1

Hi,

 Please try to print custom paper size through CUPS.
1. Go to http://localhost:631
2. Select Printers tab and your device.
3. Choose Administration/Set DefaultOptions
4. Change the Media Size to Custom and give your paper size.
5. Try to print now using CUPS

Thanks and Regards
Ani Balakrishnan

Revision history for this message
Cecil Carpenter (cscj01) said :
#2

When I select Set Default Options, the screen does not change, and there
is nowhere I can change any of the options. The Defaults are listed,
but they cannot be changed. I am using CUPS 1.4.4. hpcups shows 3.11.1.

If I use "lpoptions -p Deskjet_9800 -l" from a terminal, I get the
following message: "lpoptions: Unable to get PPD file for Deskjet_9800:
The printer or class was not found."

On 05/13/2011 05:01 AM, Ani Balakrishnan wrote:
> Your question #156201 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/156201
>
> Status: Open => Answered
>
> Ani Balakrishnan proposed the following answer:
> Hi,
>
> Please try to print custom paper size through CUPS.
> 1. Go to http://localhost:631
> 2. Select Printers tab and your device.
> 3. Choose Administration/Set DefaultOptions
> 4. Change the Media Size to Custom and give your paper size.
> 5. Try to print now using CUPS
>
> Thanks and Regards
> Ani Balakrishnan
>

Revision history for this message
Ani Balakrishnan (anib) said :
#3

Hi,

Please resolve the dependencies listed in the output of 'hp-check -t' and try printing.

Thanks and Regards
Ani Balakrishnan

Can you help with this problem?

Provide an answer of your own, or ask Cecil Carpenter for more information if necessary.

To post a message you must log in.