Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315939 - app-misc/digitemp-3.5.0 fails initialize ds1820 via ds2490 because device is busy
Summary: app-misc/digitemp-3.5.0 fails initialize ds1820 via ds2490 because device is ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-18 11:12 UTC by Juergen Rose
Modified: 2016-01-27 13:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-04-18 11:12:54 UTC
'digitemp -w' and 'digitemp -i' are failing with the following output:

rose@thinkpad:/home/rose(41)$ digitemp -w
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Found DS2490 device #1 at 002/023
could not set config 1: Device or resource busy
USB ERROR: Failed to set configuration

rose@thinkpad:/home/rose(42)$ digitemp -i
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Found DS2490 device #1 at 002/023
could not set config 1: Device or resource busy
USB ERROR: Failed to set configuration

I get the same output as root and also if the ds1820 is not plugged into the ds2490.

dmesg says:
root@lynx:/root(70)# dmesg | tail
RDP: redirected page
EOS: end of search error
w1_master_driver w1 bus master: Family 10 for 10.00080148cc90.68 is not registered.
usb 4-1: usbfs: interface 0 claimed by DS9490R while 'digitemp_DS2490' sets config #1
usb 4-1: USB disconnect, address 3
usb 4-1: new full speed USB device using uhci_hcd and address 4
w1_master_driver w1 bus master: Family 81 for 81.0000002537db.b2 is not registered.
usb 4-1: usbfs: interface 0 claimed by DS9490R while 'digitemp' sets config #1
usb 4-1: usbfs: interface 0 claimed by DS9490R while 'digitemp' sets config #1
usb 4-1: usbfs: interface 0 claimed by DS9490R while 'digitemp' sets config #1



 root@thinkpad:/root(158)# lsmod | grep ds
ds2490                  5328  0 
wire                   15512  2 ds2490,w1_therm
usbcore                99087  13 ds2490,usb_storage,dvb_usb_dtt200u,dvb_usb,udlfb,btusb,ehci_hcd,uhci_hcd


'strace -f digitemp' says:
root@thinkpad:/root(160)# strace -f digitemp -w 2>&1 | tail -n 20
ioctl(3, USBDEVFS_IOCTL or USBDEVFS_IOCTL32, 0xbfdd4b44) = -1 ENOTTY (Inappropriate ioctl for device)
close(3)                                = 0
open("/dev/bus/usb/003/002", O_RDWR)    = 3
ioctl(3, USBDEVFS_IOCTL or USBDEVFS_IOCTL32, 0xbfdd4b44) = -1 ENOTTY (Inappropriate ioctl for device)
close(3)                                = 0
open("/dev/bus/usb/003/001", O_RDWR)    = 3
ioctl(3, USBDEVFS_IOCTL or USBDEVFS_IOCTL32, 0xbfdd4b44) = 3
close(3)                                = 0
open("/dev/bus/usb/002/023", O_RDWR)    = 3
ioctl(3, USBDEVFS_SETCONFIGURATION, 0xbfdd4bd4) = -1 EBUSY (Device or resource busy)
close(3)                                = 0
write(2, "USB ERROR: Failed to set configu"..., 40USB ERROR: Failed to set configuration

) = 40
write(1, "DigiTemp v3.5.0 Copyright 1996-2"..., 185DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Found DS2490 device #1 at 002/023
could not set config 1: Device or resource busy
) = 185
exit_group(1)                           = ?


Reproducible: Always
Comment 1 Michael Palimaka (kensington) gentoo-dev 2013-03-10 05:30:20 UTC
Probably best to report this upstream, especially considering that this package is currently orphaned.
Comment 2 Wolfram Schlich (RETIRED) gentoo-dev 2016-01-27 13:28:16 UTC
Juergen, please retry with app-misc/digitemp-3.7.1 which is now in portage.
Feel free to reopen if the issue persists with that version. Thanks! :)