Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Yast2 vs hplip

  1. #1

    Default Yast2 vs hplip

    Hello!

    Since many years I encountered on multiple PC a strange thing: sometimes, in yast an HP printer goes to "unactivated" (yast2 / printer / [HP printer] / checkbox "active").
    I often need to go to yast to check again this box. It's true on multiple PC and multiple printer models but just for a few part of them and seems to be "random" (I am not able to reproduce).
    I have this problem since openSUSE 13 I think.

    For the following informations, it's a new PC with a fresh and up to date 15.3 on. The printer is new too. Repos : official + packman.
    I have installed first hplip frome opensuse's repo but it was too old and I needed to use the HP's script to make it work.
    For now, everything seems to be good apart this checkbox.

    What do you think about? Thanks.

    PS: I "chmoded" the ppds by hand at 644 but it steals to be unable to read them (?).
    PPS: Is there a way to activate it by `yast printer`? The function seems to not available.

    Code:
    [$USER]@91112876 09:45 🍀 0
    ~
    └─ $ hp-doctor
    
    HP Linux Imaging and Printing System (ver. 3.22.4)
    Self Diagnse Utility and Healing Utility ver. 1.0
    
    Copyright (c) 2001-18 HP 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 Linux Imaging and Printing System (ver. 3.22.4)
    Self Diagnse Utility and Healing Utility ver. 1.0
    
    Copyright (c) 2001-18 HP 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.
    
     
    
    Checking for Deprecated items....
    No Deprecated items are found
    
    
    Checking for HPLIP updates....
    
    HP Linux Imaging and Printing System (ver. 3.22.4)
    HPLIP upgrade latest version ver. 1.0
    
    Copyright (c) 2001-18 HP 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.
    
    Latest version of HPLIP is already installed.
    
    
    Checking for Dependencies....
    
    ---------------
    | SYSTEM INFO |
    ---------------
    
     Kernel: 5.3.18-150300.59.63-default #1 SMP Tue Apr 5 12:47:31 UTC 2022 (d77db66) GNU/Linux
     Host: 91112876
     Proc: 5.3.18-150300.59.63-default #1 SMP Tue Apr 5 12:47:31 UTC 2022 (d77db66) GNU/Linux
     Distribution: 3 15.3
     Bitness: 64 bit
    
    
    -----------------------
    | HPLIP CONFIGURATION |
    -----------------------
    
    HPLIP-Version: HPLIP 3.22.4
    HPLIP-Home: /usr/share/hplip
    HPLIP-Installation: Auto installation is supported for suse distro  15.3 version
    
    Current contents of '/etc/hp/hplip.conf' file:
    # hplip.conf.  Generated from hplip.conf.in by configure.
    
    [hplip]
    version=3.22.4
    
    [dirs]
    home=/usr/share/hplip
    run=/var/run
    ppd=/usr/share/cups/model/HP
    ppdbase=/usr/share/cups/model
    doc=/usr/share/doc/hplip-3.22.4
    html=/usr/share/doc/hplip-3.22.4
    icon=/usr/share/applications
    cupsbackend=/usr/lib/cups/backend
    cupsfilter=/usr/lib/cups/filter
    drv=/usr/share/cups/drv/hp
    bin=/usr/bin
    apparmor=/etc/apparmor.d
    # Following values are determined at configure time and cannot be changed.
    [configure]
    network-build=yes
    libusb01-build=no
    pp-build=no
    gui-build=yes
    scanner-build=yes
    fax-build=no
    dbus-build=yes
    cups11-build=no
    doc-build=no
    shadow-build=no
    hpijs-install=no
    foomatic-drv-install=no
    foomatic-ppd-install=no
    foomatic-rip-hplip-install=no
    hpcups-install=yes
    cups-drv-install=yes
    cups-ppd-install=no
    internal-tag=3.22.4
    restricted-build=no
    ui-toolkit=qt5
    qt3=no
    qt4=no
    qt5=yes
    policy-kit=no
    lite-build=no
    udev_sysfs_rules=no
    hpcups-only-build=no
    hpijs-only-build=no
    apparmor_build=yes
    class-driver=no
    
    
    Current contents of '/var/lib/hp/hplip.state' file:
    [plugin]
    installed = 1
    eula = 1
    version = 3.22.4
    
    
    
    Current contents of '~/.hplip/hplip.conf' file:
    [upgrade]
    notify_upgrade = false
    last_upgraded_time = 1651585113
    pending_upgrade_time = 0
    latest_available_version = 3.17.10
    
    [installation]
    date_time = 05/06/22 09:45:07
    version = 3.22.4
    
    
     <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>
    
    --------------
    | COMPILEDEP |
    --------------
    
     gcc                  gcc - GNU Project C and C++ Compiler                         REQUIRED        -               7.5.0           OK         -
     make                 make - GNU make utility to maintain groups of programs       REQUIRED        3.0             4.2.1           OK         -
     libtool              libtool - Library building support services                  REQUIRED        -               2.4.6           OK         -
    
    ------------------------
    | General Dependencies |
    ------------------------
    
     pyqt5-dbus           PyQt 5 DBus - DBus Support for PyQt5                         OPTIONAL        5.0             5.13.1          OK         -
     libcrypto            libcrypto - OpenSSL cryptographic library                    REQUIRED        -               1.1.1           OK         -
     python-xml           Python XML libraries                                         REQUIRED        -               2.2.8           OK         -
     libnetsnmp-devel     libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           5.7.3           OK         -
     sane-devel           SANE - Scanning library development files                    REQUIRED        -               1.0.32          OK         -
     pil                  PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               5.0.0           OK         -
     libpthread           libpthread - POSIX threads library                           REQUIRED        -               2.31            OK         -
     python-devel         Python devel - Python development files                      REQUIRED        2.2             2.7.18          OK         -
     cups-devel           CUPS devel- Common Unix Printing System development files    REQUIRED        -               2.2.7           OK         -
     libavahi-dev         libavahi-dev                                                 REQUIRED        -               -               OK         -
     python-dbus          Python DBus - Python bindings for DBus                       REQUIRED        0.80.0          1.2.16          OK         -
     cups-ddk             CUPS DDK - CUPS driver development kit                       OPTIONAL        -               -               OK         -
     reportlab            Reportlab - PDF library for Python                           OPTIONAL        2.0             3.4.0           OK         -
     pyqt5                PyQt 5- Qt interface for Python (for Qt version 4.x)         REQUIRED        5.0             5.13.1          OK         -
     libusb               libusb - USB library                                         REQUIRED        -               1.0             OK         -
     cups-image           CUPS image - CUPS image development files                    REQUIRED        -               2.2.7           OK         -
     python2X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             2.7.18          OK         -
     error: python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -               -               MISSING    'python-notify needs to be installed'
     libjpeg              libjpeg - JPEG library                                       REQUIRED        -               -               OK         -
     sane                 SANE - Scanning library                                      REQUIRED        -               1.0.32          OK         -
    
    ----------------------
    | Scan Configuration |
    ----------------------
    
     scanext              Scan-SANE-Extension                                          REQUIRED        -               3.22.4          OK         -
     hpaio                HPLIP-SANE-Backend                                           REQUIRED        -               3.22.4          OK         'hpaio found in /etc/sane.d/dll.conf'
    
    -------------------------
    | External Dependencies |
    -------------------------
    
     gs                   GhostScript - PostScript and PDF language interpreter and previewer REQUIRED        7.05            9.52            OK         -
     scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.0.32          OK         -
     cups                 CUPS - Common Unix Printing System                           REQUIRED        1.1             2.2.7           OK         'CUPS Scheduler is running'
     network              network -wget                                                OPTIONAL        -               1.20.3          OK         -
     policykit            PolicyKit - Administrative policy framework                  OPTIONAL        -               0.116           OK         -
     xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         -
     dbus                 DBus - Message bus system                                    REQUIRED        -               1.12.2          OK         -
     avahi-utils          avahi-utils                                                  OPTIONAL        -               0.7             OK         -
    
    ---------------------
    | Python Extentions |
    ---------------------
    
     hpmudext             IO-Extension                                                 REQUIRED        -               3.22.4          OK         -
     cupsext              CUPS-Extension                                               REQUIRED        -               3.22.4          OK         -
    
    ------------------------------
    | DISCOVERED SCANNER DEVICES |
    ------------------------------
    
    device `hpaio:/net/HP_OfficeJet_8010_series?ip=192.168.1.11' is a Hewlett-Packard HP_OfficeJet_8010_series all-in-one
    device `hpaio:/net/HP_OfficeJet_8010_series?ip=192.168.1.11' is a Hewlett-Packard HP_OfficeJet_8010_series all-in-one
    
    
    --------------------------
    | DISCOVERED USB DEVICES |
    --------------------------
    
    No devices found.
    
    ---------------------------------
    | INSTALLED CUPS PRINTER QUEUES |
    ---------------------------------
    
     
    
    
    Type: Printer
    Device URI: hp:/net/HP_OfficeJet_8010_series?ip=192.168.1.11
    Communication status: Good
    
    
    --------------
    | PERMISSION |
    --------------
    
    Missing Optional Dependencies
    -----------------------------
    error: 'python-notify' package is missing/incompatible
    
    
    ENTER ROOT/SUPERUSER PASSWORD
    -----------------------------
    Please enter the root/superuser password:
    Do you want to update repository and Install missing/incompatible packages. (a=install all*, c=custom_install, s=skip):a
    Updating repository
    -------------------
    cmd =su -c "zypper refresh"
    Installing Missing/Incompatible packages
    ----------------------------------------
    cmd =su -c "zypper --non-interactive --no-gpg-checks in --auto-agree-with-licenses python-notify"
     
    
    Checking Permissions....
    
    
    Checking for Configured Queues....
    error: PPD /etc/cups/ppd/.ppd file not found
    warning:  is not HP Device.
    warning: Fail to read ppd=/etc/cups/ppd/.ppd file
    warning: Insufficient permission to access file /etc/cups/ppd/.ppd
    warning: Could not complete Queue(s) configuration check
    
    
    Checking for HP Properitery Plugin's....
    No plug-in printers are configured.
     
    Diagnose completed...
    
    
    
    More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html
    
    [$USER]@91112876 09:45 🍀 0
    ~
    └─ $ ll /etc/cups/ppd/
    total 72K
    drwxr-xr-x 2 root lp ? 4,0K  6 mai   09:39 ./
    drwxr-xr-x 4 root lp ? 4,0K  6 mai   09:41 ../
    -rw-r--r-- 1 root lp ?  32K  6 mai   09:39 HP_OfficeJet_8010.ppd
    -rw-r--r-- 1 root lp ?  32K  3 mai   15:14 HP_OfficeJet_8010.ppd.O
    
    
    91112876 09:47 🍀 0
    /home/[$USER]
    └─ # zypper info python-notify
    Chargement des données du dépôt...
    Lecture des paquets installés...
    
    
    Informations sur paquet python-notify :
    ---------------------------------------
    Dépôt                     : Dépôt principal
    Nom                       : python-notify
    Version                   : 0.1.1-bp153.1.19
    Architecture              : x86_64
    Fabricant                 : openSUSE
    Taille une fois installé  : 58,5 KiB
    Installé                  : Oui
    État                      : à jour
    Paquet source             : python-notify-0.1.1-bp153.1.19.src
    URL en amont              : http://www.galago-project.org/specs/notification
    Résumé                    : Python bindings for libnotify
    Description               :
        Python bindings for libnotify.
    Last edited by deano_ferrari; 06-May-2022 at 02:45.

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,625

    Default Re: Yast2 vs hplip

    Code:
    zypper ar https://download.opensuse.org/repositories/Printing/openSUSE_Leap_15.3/
    will give you access to 3.21.10.

  3. #3

    Default Re: Yast2 vs hplip

    Quote Originally Posted by john_hudson View Post
    Code:
    zypper ar https://download.opensuse.org/repositories/Printing/openSUSE_Leap_15.3/
    will give you access to 3.21.10.
    Hello
    Thanks to make a try but please, read again my post.

  4. #4

    Default Re: Yast2 vs hplip

    https://software.opensuse.org/package/python-notify2 may help?
    Uninstalling python-notify will be needed?

    Use
    Code:
    LANG=C zypper info python-notify
    to get english output.

  5. #5

    Default Re: Yast2 vs hplip

    Quote Originally Posted by Svyatko View Post
    https://software.opensuse.org/package/python-notify2 may help?
    Uninstalling python-notify will be needed?

    Use
    Code:
    LANG=C zypper info python-notify
    to get english output.
    Hi!
    I'm not sure to understand. Why this package could have some action on actvivated/unactivated the printer?

    Best regards.
    Last edited by deano_ferrari; 16-May-2022 at 11:54. Reason: Mod edit - unecessary comment removed

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,981
    Blog Entries
    1

    Default Re: Yast2 vs hplip

    Since many years I encountered on multiple PC a strange thing: sometimes, in yast an HP printer goes to "unactivated" (yast2 / printer / [HP printer] / checkbox "active").
    I often need to go to yast to check again this box. It's true on multiple PC and multiple printer models but just for a few part of them and seems to be "random" (I am not able to reproduce).
    I have this problem since openSUSE 13 I think.
    Do you mean that the affected printer is reported as disabled?
    Code:
    lpstat -t
    Are the network printers connected via Wi-Fi or wired ethernet?
    openSUSE Leap 15.3; KDE Plasma 5

  7. #7

    Default Re: Yast2 vs hplip

    Quote Originally Posted by deano_ferrari View Post
    Do you mean that the affected printer is reported as disabled?
    Code:
    lpstat -t
    Are the network printers connected via Wi-Fi or wired ethernet?
    Hi!
    Yes, the printers are reported as "unactivated" (unchecked "Active" box in Yast/printer). The printers connect by wire or Wi-Fi.
    Check the box solves the problem for a -random- time.
    There's no problem with USB. Pretty sure but I don't have some to check for the moment.

    Best regards,

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,981
    Blog Entries
    1

    Default Re: Yast2 vs hplip

    Quote Originally Posted by mlrx View Post
    Hi!
    Yes, the printers are reported as "unactivated" (unchecked "Active" box in Yast/printer).
    I don't normally use YaST for printer configuration, but in any case see no "active" box as such. I do see printer status reported as "ready". Can you post an image using https://paste.opensuse.org/ ? (Select 'image' and upload screenshot, and post link to it here.)

    The printers connect by wire or Wi-Fi.
    Check the box solves the problem for a -random- time.
    Can you show this using the following command?
    Code:
    lpstat -t
    openSUSE Leap 15.3; KDE Plasma 5

  9. #9

    Default Re: Yast2 vs hplip

    Hello!

    Thanks for follwing this. Much appreciate because I try to reproduce/solve it since multiple years. :-/

    For this printer, the connexion is made on Wi-Fi to a router. The PC is connected by cable. (It doesn't matter how it's connected)
    About Yast2, to be able te see the check boxes, you need to edit the choosen printer configuration.
    Screenshot's here : https://paste.opensuse.org/c442c3fd (traduction needed?)

    When the box is unchecked, lpstat say:
    Code:
    lpstat -t
    scheduler is running
    system default destination: HP_OfficeJet_8010
    device for HP_OfficeJet_8010: hp:/net/HP_OfficeJet_8010_series?ip=192.168.1.11
    HP_OfficeJet_8010 accepting requests since jeu. 19 mai 2022 12:14:52
    printer HP_OfficeJet_8010 disabled since jeu. 19 mai 2022 12:14:52 -
            Paused

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,981
    Blog Entries
    1

    Default Re: Yast2 vs hplip

    Quote Originally Posted by mlrx View Post
    Hello!

    Thanks for follwing this. Much appreciate because I try to reproduce/solve it since multiple years. :-/
    Ok, thanks for clarifying. Yes, that check box is for enabling/disabling the printer.

    The CLI commands to do the same
    Code:
    sudo cupsenable <printer_name>
    Code:
    sudo cupsdisable <printer_name>
    FWIW, I see this is a commonly reported issue with HP printers. This old bug report may be of interest to you:
    https://bugs.launchpad.net/ubuntu/+s...ip/+bug/692568
    openSUSE Leap 15.3; KDE Plasma 5

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •