Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: USB peripherals no longer work

  1. #11
    Join Date
    Aug 2014
    Location
    Honduras
    Posts
    12

    Default Re: USB peripherals no longer work

    My apologies for not being clearer, and thank you for the forum best practices. I've re-run hp-check and have pasted the full output here:

    https://paste.opensuse.org/25825584

    The error message in it that you cited perplexed me too, because I am running the HPLIP that I was given from the standard 42.3 repositories, and further it had been working fine until I broke it somehow. zypper se -si hplip says:

    Code:
    warren@puccini:~> zypper se -si hplip
    Loading repository data...
    Reading installed packages...
    
    S  | Name        | Type    | Version     | Arch   | Repository           
    ---+-------------+---------+-------------+--------+----------------------
    i+ | hplip       | package | 3.16.11-1.3 | x86_64 | Main Repository (OSS)
    i+ | hplip-hpijs | package | 3.16.11-1.3 | x86_64 | Main Repository (OSS)
    i+ | hplip-sane  | package | 3.16.11-1.3 | x86_64 | Main Repository (OSS)

  2. #12
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,769
    Blog Entries
    1

    Default Re: USB peripherals no longer work

    That checks out as expected.

  3. #13
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,769
    Blog Entries
    1

    Default Re: USB peripherals no longer work

    Let's see if zypper thinks everything is consistent...
    Code:
    zypper ve

  4. #14
    Join Date
    Aug 2014
    Location
    Honduras
    Posts
    12

    Default Re: USB peripherals no longer work

    Everything looks good:

    Code:
    warren@puccini:~> sudo zypper ve
    [sudo] password for root: 
    Retrieving repository 'Packman Repository' metadata ......................[done]
    Building repository 'Packman Repository' cache ...........................[done]
    Loading repository data...
    Reading installed packages...
    
    Dependencies of all installed packages are satisfied.

  5. #15
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,769
    Blog Entries
    1

    Default Re: USB peripherals no longer work

    Run the following as regular user
    Code:
    hp-doctor
    Eventually, it will prompt you for an admin password. Once done, follow any prompts to begin Install missing/incompatible packages. This may fail, but I just want to see the list produced via this utility.

    It might also be good to review /etc/cups/cupsd.conf for any unusual policies etc, although if it was working before I wouldn't think there would be any changes.

    You mentioned that scanning wasn't working either. For your USB-connected device, can you please check the output of the following, as regular user...
    Code:
    scanimage -L
    Code:
    sane-find-scanner
    If they fail, run them again as root.

    Also, confirm the group membership of your user account
    Code:
    groups

  6. #16
    Join Date
    Aug 2014
    Location
    Honduras
    Posts
    12

    Default Re: USB peripherals no longer work

    hp-doctor run as user hung on "discovered scanner devices" and did not get to prompting me for the root password. Output is in the pastebin at https://paste.opensuse.org/18137821.

    I don't see anything obviously wrong in my cupsd.conf, though I'll admit I've never configured it by hand and so there might be a problem there I don't recognize. It is in the pastebin at https://paste.opensuse.org/685724.

    scanimage -L as both user and root hung with no output.

    sane-find-scanner as user did find my one scanner: found USB scanner (vendor=0x04a9 [Canon], product=0x2220 [CanoScan]) at libusb:002:002. The full output is in the pastebin at https://paste.opensuse.org/71566487.

    I belong only to the group "users":

    Code:
    warren@puccini:~> groups
    users

  7. #17
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,769
    Blog Entries
    1

    Default Re: USB peripherals no longer work

    Quote Originally Posted by wpost View Post
    scanimage -L as both user and root hung with no output.

    sane-find-scanner as user did find my one scanner: found USB scanner (vendor=0x04a9 [Canon], product=0x2220 [CanoScan]) at libusb:002:002. The full output is in the pastebin at https://paste.opensuse.org/71566487.

    I belong only to the group "users":

    Code:
    warren@puccini:~> groups
    users
    Ok, you need to make the user a member of the 'lp' group for access to USB-connected scanners. The applicable rule in /etc/udev/rules.d/55-libsane.rules is
    Code:
    # Canon CanoScan LiDE25
    ATTR{idVendor}=="04a9", ATTR{idProduct}=="2220", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"

  8. #18
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,769
    Blog Entries
    1

    Default Re: USB peripherals no longer work

    Quote Originally Posted by wpost View Post
    I don't see anything obviously wrong in my cupsd.conf, though I'll admit I've never configured it by hand and so there might be a problem there I don't recognize. It is in the pastebin at https://paste.opensuse.org/685724.
    I notice that you have
    Code:
    # Explicitly set the CUPS 'default' policy to be used by default:DefaultPolicy allowallforanybody
    For reference, I have
    Code:
    <Policy allowallforanybody>
      JobPrivateAccess all
      JobPrivateValues none
      SubscriptionPrivateAccess all
      SubscriptionPrivateValues none
      <Limit Validate-Job Cancel-Jobs Cancel-My-Jobs Close-Job CUPS-Get-Document>
        Order deny,allow
        Allow from all
      </Limit>
      <Limit All>
        Order deny,allow
        Allow from all
      </Limit>
    </Policy>
    DefaultPolicy default
    There is an openSUSE bug report describing similar behaviour with 'DefaultPolicy allowallforanybody', but I haven't studied this in depth, and I don't pretend to know why this impacted the user who submitted the bug report. You might try editing it using 'DefaultPolicy default', then restart CUPS
    Code:
    sudo systemctl restart cups
    and check the CUPS behaviour again.

  9. #19
    Join Date
    Aug 2014
    Location
    Honduras
    Posts
    12

    Default Re: USB peripherals no longer work [solved]

    Eureka! Changing the policy in cupsd.conf from allowallforanybody to default and restarting CUPS brought my printer back to life. I had forgotten, but you reminded me, that I had seen that setting in YaST and changed it to allowallforanybody.

    Likewise, adding my user to the lp group, then logging out and back in, brought my scanner to life.

    Thank you! I appreciate your help.

  10. #20
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,769
    Blog Entries
    1

    Default Re: USB peripherals no longer work [solved]

    Quote Originally Posted by wpost View Post
    Eureka! Changing the policy in cupsd.conf from allowallforanybody to default and restarting CUPS brought my printer back to life. I had forgotten, but you reminded me, that I had seen that setting in YaST and changed it to allowallforanybody.

    Likewise, adding my user to the lp group, then logging out and back in, brought my scanner to life.

    Thank you! I appreciate your help.
    Glad to have been of assistance!

Page 2 of 2 FirstFirst 12

Posting Permissions

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