Announcement

Collapse
No announcement yet.

Xsane works, kooka works only as root

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Xsane works, kooka works only as root

    Hi, I have a Canon Canoscan Lide 25; After installing and launching scanbuttond it seems to work without any problem with xsane.
    However, if I try to use it with kooka, the scanner seems to work, but the resulting image is always completely white. I tried to launch kooka with sudo, and in that way it works.
    I've also tried to delete the kookarc file in my home directory, to add saned to the groups of my user, and to give read and write permission on the usb device (in the proc filesystem) to all users, but with no success.
    Do you have some idea?

    Thanks.

    #2
    Re: Xsane works, kooka works only as root

    This seems like a permission error thing. Here's what to do. Fire up the terminal and type in
    Code:
    sudo lsusb
    Look for your Scanner and see what bus it's running on.

    Then enter the command
    Code:
    sudo chmod a+w /dev/bus/usb/001/002
    Do note to substitute whatever bus it's running on in place of /001/002

    Try running it in kooka again.
    Challenges are what that keeps us from the borderline of boredom in life's journey. Linux user no. 419401 currently running Kubuntu 24.04
    _______________________________________________
    Current System: Beelink Mini PC, AMD Ryzen 7 5800H 8 Core(Up to 4.4GHz), 32GB DDR4 RAM 1TB NVME M.2 SSD, SER5 MAX Mini Desktop Computer with TCL BeyondTV5 serving as my monitor. ​

    Comment


      #3
      Re: Xsane works, kooka works only as root

      Adding the "user in charge" to the group 111 (scanner) ought to help

      Comment


        #4
        Re: Xsane works, kooka works only as root

        Thank you for the answers.
        The relevant line in lsusb is:
        Code:
         Bus 001 Device 006: ID 04a9:2220 Canon, Inc.
        I've launched:
        Code:
         sudo chmod a+w /dev/bus/usb/001/006
        but nothing changed

        By the way, I don't know if it can be a permission problem, since xsane runs with no problem as a normal user.

        My user is already in the group scanner, I think that's so by default in kubuntu.

        Comment


          #5
          Re: Xsane works, kooka works only as root

          O.k., "Plan B": sudo chown root:scanner /dev/bus/usb/001/006

          Comment


            #6
            Re: Xsane works, kooka works only as root

            Plan B failed :

            Code:
            $ ls -l /dev/bus/usb/001/006
            crw-rw-rw- 1 root scanner 189, 5 2007-07-01 13:49 /dev/bus/usb/001/006

            Comment


              #7
              Re: Xsane works, kooka works only as root

              If the scanner is operating, but you are getting a blank scan, I don't think it is a permission problem. You've already installed scanbuttond so you probably have read about the bug that affects our Canon scanners.

              https://bugs.launchpad.net/ubuntu/+s...nds/+bug/85488

              Try entering this and see if it makes a difference.
              As user
              Code:
              scanbuttond -r 1000000
              And remember, you have to run scanbutton evry time you restart the computer before you can scan.

              Comment


                #8
                Re: Xsane works, kooka works only as root

                Strange ... on both my real 06.10 and my unreal (read: virtual) 07.04 system, the very same scanner cooperates with Kooka out-of-the-box (no tinkering involved) - without "scanbutton" / "sane-utils" installed, that is ... maybe, at least for the sake of debugging, you could remove those and retry (?).

                Comment


                  #9
                  Re: Xsane works, kooka works only as root

                  I spent all day trying to make my Canon N670 work, finally found the bug report in launchpad, and the only way mine will work is with the "scanbuttond -r 1000000" workaround. It would work from the CLI using scanimage, but would not work in Kooka or Xsane. It works fine if I run the scanbutton setting before use. I hope this gets fixed in a later release. I have Ubuntu Gutsy Tribe 2 installed on another partition, but I have not tried the scanner yet.

                  Comment


                    #10
                    Re: Xsane works, kooka works only as root

                    Originally posted by Detonate
                    If the scanner is operating, but you are getting a blank scan, I don't think it is a permission problem. You've already installed scanbuttond so you probably have read about the bug that affects our Canon scanners.

                    https://bugs.launchpad.net/ubuntu/+s...nds/+bug/85488

                    Try entering this and see if it makes a difference.
                    As user
                    Code:
                    scanbuttond -r 1000000
                    And remember, you have to run scanbutton evry time you restart the computer before you can scan.
                    I tried, but nothing changes....

                    I've added scanbuttond to rc.local, so it should start automatically

                    @ UnicornRider:
                    Before Installing and running scanbuttond, the scanner was completely "dead", the lamp wouldn't even turn on, and the tray didn't move... now, at least with xsane, it works

                    Comment


                      #11
                      Re: Xsane works, kooka works only as root

                      No more ideas?
                      Could it be a libkscan problem, since xsane works?

                      I could continue using xsane, but I'd prefer to use a kde app

                      Comment

                      Working...
                      X