Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2008, 04:33 PM   #1
flubu
master of my own domain
flubu began at the beginning.
 
flubu's Avatar
 
Posts: 29
Karma: 10
Join Date: Jun 2007
Location: Cambridge, UK
Device: Sony Reader
libprs500 on SuSE linux 10.3 doesn't recognize non-root user

Hi all, hope somebody can help.

I'm running SuSE linux 10.3 (x86_64). I've been trying to install libprs500 with varying degrees of success. I now have it to the point where I can detect the sony reader when logged in as root. However, if I log in as a regular user, I am told "Unable to find a connected ebook reader".

The last instruction on the "generic linux" installation page of libprd500 is:

Code:
gpasswd -a username plugdev
However, this command does not work in SuSE (it would be groupmod) and furthermore, SuSE does not have a plugdev group. So, I'm stuck. I can run the scripts as root and get it to work, but that's a pain. Does anybody know which group I need to add my username to for it to work without all this pain?

Cheers and thanks,
Rc
flubu is offline   Reply With Quote
Old 03-19-2008, 04:35 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,849
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
is this a prs500?
kovidgoyal is offline   Reply With Quote
Advert
Old 03-19-2008, 05:04 PM   #3
flubu
master of my own domain
flubu began at the beginning.
 
flubu's Avatar
 
Posts: 29
Karma: 10
Join Date: Jun 2007
Location: Cambridge, UK
Device: Sony Reader
Yes, it is:

here's the output as root:

talisker:/home/rcote # prs500 info
/usr/local/lib64/python2.5/site-packages/libprs500-0.4.42-py2.5.egg/libprs500/devices/prs500/prstypes.py:145: DeprecationWarning: 'I' format requires 0 <= number <= 4294967295
Device name: Sony Reader
Device version: PRS-500/U
Software version: 1.0.03.07170
Mime type: application/x-bbeb-book
talisker:/home/rcote #
flubu is offline   Reply With Quote
Old 03-19-2008, 05:22 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,849
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What does ls -l /dev/sony reader device give?

where sony reader device should be something like sda or sdb or sdc etc
kovidgoyal is offline   Reply With Quote
Old 03-20-2008, 05:09 AM   #5
flubu
master of my own domain
flubu began at the beginning.
 
flubu's Avatar
 
Posts: 29
Karma: 10
Join Date: Jun 2007
Location: Cambridge, UK
Device: Sony Reader
talisker:/home/rcote # ls -l /dev/sd*
brw-r----- 1 root disk 8, 0 2008-03-20 09:02 /dev/sda
brw-r----- 1 root disk 8, 1 2008-03-20 09:02 /dev/sda1
brw-r----- 1 root disk 8, 2 2008-03-20 09:02 /dev/sda2
brw-r----- 1 root disk 8, 3 2008-03-20 09:02 /dev/sda3
brw-r----- 1 root disk 8, 5 2008-03-20 09:02 /dev/sda5
flubu is offline   Reply With Quote
Advert
Old 03-20-2008, 04:36 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,849
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Looks like it's not being called sd*

You'll have to find out what device file it is being assigned to, by plugging it in and then looking at the last few lines in the output of the command dmesg
kovidgoyal is offline   Reply With Quote
Old 03-22-2008, 04:54 AM   #7
flubu
master of my own domain
flubu began at the beginning.
 
flubu's Avatar
 
Posts: 29
Karma: 10
Join Date: Jun 2007
Location: Cambridge, UK
Device: Sony Reader
This is the output of dmesg:

usb 4-2: new full speed USB device using uhci_hcd and address 2
usb 4-2: new device found, idVendor=054c, idProduct=029b
usb 4-2: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 4-2: Product: Sony Portable Reader System
usb 4-2: Manufacturer: Sony
usb 4-2: configuration #1 chosen from 2 choices

and I seem to have some corresponding /dev entries:

crw-rw---- 1 root root 254, 14 2008-03-22 08:46 /dev/usbdev4.2_ep00
crw-rw---- 1 root root 254, 16 2008-03-22 08:46 /dev/usbdev4.2_ep02
crw-rw---- 1 root root 254, 15 2008-03-22 08:46 /dev/usbdev4.2_ep81

but unfortunately, they're only available to root. Why do I have a feeling this will be a problem?
flubu is offline   Reply With Quote
Old 03-22-2008, 04:56 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,849
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Edit /etc/udev/rules.d/95-libprs500.rules replace plugdev with any group you're a member of, reboot and you should be fine.
kovidgoyal is offline   Reply With Quote
Old 03-22-2008, 05:03 AM   #9
flubu
master of my own domain
flubu began at the beginning.
 
flubu's Avatar
 
Posts: 29
Karma: 10
Join Date: Jun 2007
Location: Cambridge, UK
Device: Sony Reader
Interestingly, the group in the file is not plugdev, but usb:

# Sony Reader PRS-500
BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="660", GROUP="usb"

Is there any security/usage risk changing the value of usb to users?
flubu is offline   Reply With Quote
Old 03-22-2008, 05:20 AM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,849
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Nope, only that you grant everyone in the group users access to your reader.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Green Reader and Linux User&Developer jules_july PocketBook 1 07-14-2010 06:10 AM
Hello from a Linux user tseckler Introduce Yourself 9 07-06-2010 08:07 AM
The Green Reader and Linux User&Developer jules_july News 0 06-17-2010 04:38 AM
Working User Profile for Wired.com RSS feeds for libprs500 DaveNB Calibre 6 11-30-2007 07:00 AM
libprs500 linux install error europas_ice Calibre 8 09-07-2007 04:38 AM


All times are GMT -4. The time now is 09:34 PM.


MobileRead.com is a privately owned, operated and funded community.