Deskjet F4240 hp-systray option -s not recognized

Asked by callejero

I am having problems configuring a Deskjet F4240 under Fedora 9 with SELinux disabled. So far I have installed hplip-2.8.9 from the website with no errors. No errors or warnings were found running hp-check -t. I have added lp and dbus to users. But I still get this error while when I do tail -f /var/log/messages:

hp-systray[2390]: error: option -s not recognized

I am able to scan documents but not print.
What is the option -s, and why is it not recognized?
Is there a way to step thru hp-systray to find where the error occurs?

Callejero

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
callejero
Solved:
Last query:
Last reply:
Revision history for this message
callejero (callejero) said :
#1

Doing some research, I believe this error might have something to do with dbus. Not sure how to check if the dbus is communicating correctly. Does anyone have an idea?

Reference: http://www.commentcamarche.net/forum/affich-6499736-mandriva-2008-1-hplip-hp-systray-dbus-et-cie?Acces=1

Thank you

Callejero

Revision history for this message
dwelch91 (dwelch91) said :
#2

In looking at the source code all the way back to when hp-systray was
originally written, I don't see a '-s' param ever being valid.
When/how was the .desktop file with the '-s' param created?

On Mon, Oct 20, 2008 at 10:01 AM, callejero
<email address hidden> wrote:
> Question #48305 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/48305
>
> callejero gave more information on the question:
> Doing some research, I believe this error might have something to do
> with dbus. Not sure how to check if the dbus is communicating
> correctly. Does anyone have an idea?
>
> Reference:
> http://www.commentcamarche.net/forum/affich-6499736-mandriva-2008-1
> -hplip-hp-systray-dbus-et-cie?Acces=1
>
> Thank you
>
> Callejero
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
callejero (callejero) said :
#3

I am not sure what desktop file you are talking about? I tried to print an openoffice document from within openoffice. I also tried to print a pdf from within adobe. Ran both scenarios while running tail -f /var/log/messages and I have been getting the same option -s error.

Could I have installed hplip or ran hp-setup incorrectly?

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#4

Please run:

cat /etc/xdg/autostart/hplip-systray.desktop

and post the output.

Thanks!

Aaron

Revision history for this message
callejero (callejero) said :
#5

Aaron,

This is what I get when running cat /etc/xdg/autostart/hplip-systray.desktop

[Desktop Entry]
Version=0.6
Type=Application
Name=HP System Tray Service
GenericName=Printer Status Applet
Comment=HP System Tray Service
Exec=hp-systray
Icon=/usr/share/hplip/data/images/48x48/prog.png
Terminal=false
Categories=Application;Utility;
X-KDE-StartupNotify=false
StartupNotify=false

Revision history for this message
callejero (callejero) said :
#6

Aaron,

Just looking at the messages and it dawned on me that I am using gnome and not KDE. Could that be the problem?

Thanks

Callejero

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#7

Shouldn't make any difference...

Looks like it's set correctly. If you run:

ps ax | grep hp

and then run

kill proccess_id

on all the "HP" processes and run hp-systray manually does it load okay?

A

Revision history for this message
callejero (callejero) said :
#8

Aaron,

I did what you said and was still not able to print. Ran tail -f /var/log/messages and nothing showed up when I tried to print.

Seems like hp-systray loaded ok. I received this message:

[jruiz@ruiztravislaw ~]$ ps ax | grep hp
 2743 pts/1 S+ 0:00 grep hp
[jruiz@ruiztravislaw ~]$ hp-systray

HP Linux Imaging and Printing System (ver. 2.8.9)
System Tray Status Service ver. 2.0

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

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#9

Ah okay. I think there are two problems here that I didn't realize.

Please run hp-check -t and post the output.

A

Revision history for this message
callejero (callejero) said :
#10

Aaron,

May I ask what the two problems may be?

The output from hp-check -t:

[jruiz@ruiztravislaw ~]$ hp-check - t

HP Linux Imaging and Printing System (ver. 2.8.9)
Dependency/Version Check Utility ver. 14.0

Copyright (c) 2001-8 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 ruiztravislaw.com 2.6.26.5-45.fc9.i686 #1 SMP Sat Sep 20 03:45:00 EDT 2008 i686 i686 i386 GNU/Linux

Distribution:
fedora 9

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.1 installed

Checking PyQt version...
OK, version 3.17 installed.

Checking SIP version...
OK, Version 4.7.6 installed

Checking for CUPS...
Status: scheduler is running
Version: 1.3.8
error_log is set to level: info
note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log

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...
OK, found.

Checking for dependency: cups-devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: dbus - Message bus system...
OK, found.

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...
OK, found.

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

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

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

Checking for dependency: libtool - Library building support services...
OK, found.

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: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
OK, found.

Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: python-dbus - Python bindings for dbus...
OK, found.

Checking for dependency: python-devel - Python development files...
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...
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 2.8.9 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=2.8.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-2.8.9
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=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=yes
internal-tag=2.8.9.0
restricted-build=no
ui-toolkit=qt3

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

  Device URI Model
  -------------------------------- -----------------------
  hp:/usb/Deskjet_F4200_series?ser HP Deskjet F4200 series
  ial=CN84M39190052D

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

Deskjet_F4200
-------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Deskjet_F4200_series?serial=CN84M39190052D
PPD: /etc/cups/ppd/Deskjet_F4200.ppd
PPD Description: HP Deskjet f4200 series Foomatic/hpijs, hpijs 2.8.9
Printer status: printer Deskjet_F4200 disabled since Thu 16 Oct 2008 10:44:34 AM CDT - reason unknown
Communication status: Good

Deskjet_F4200_2
---------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Deskjet_F4200_series?serial=CN84M39190052D
PPD: /etc/cups/ppd/Deskjet_F4200_2.ppd
PPD Description: HP Deskjet f4200 series Foomatic/hpijs, hpijs 2.8.9
Printer status: printer Deskjet_F4200_2 disabled since Mon 20 Oct 2008 10:14:51 PM CDT -/usr/lib/cups/backend/hp failed
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'...
device `hpaio:/usb/Deskjet_F4200_series?serial=CN84M39190052D' is a Hewlett-Packard Deskjet_F4200_series all-in-one

---------------------
| 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 0x2504 at 001:002:
    Device URI: hp:/usb/Deskjet_F4200_series?serial=CN84M39190052D
    Device node: /dev/bus/usb/001/002
    Mode: 0666
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/002
# owner: root
# group: lp
user::rw-
group::rw-
other::rw-

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

No errors or warnings.

Done.

Revision history for this message
callejero (callejero) said :
#11

In the Installed Cups Printer Queues, I am not sure why there are two printer configs showing up. I think one is from the previous installation. Should I delete one and if so, where should I do this (Hplip-gui only shows one)?

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#12

Printing itself doesn't depend on being able to run the hp-systray. If you can't print it's a problem unrelated to that.

From your hp-check everything looks okay. Is SELinux enabled? If so try setting it to permissive.

Hope this helps!

Aaron

Revision history for this message
callejero (callejero) said :
#13

Aaron,

I re-installed Fedora 9 and it solved the problem.

Thank you