[argyllcms] ColorHug with Argyll 1.5.1

  • From: Török Edwin <edwin+argyll@xxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 18 Mar 2013 13:47:20 +0200

Hi,

I have downloaded Argyll 1.5.1 from the website, and the ColorHug doesn't work 
with it.
It works with Argyll 1.4.0 (from Debian).

I've included the debug output below, let me know if you need more information.

$ uname -a
Linux debian 3.8.3 #239 SMP PREEMPT Sat Mar 16 14:23:09 EET 2013 x86_64 
GNU/Linux

$ ENABLE_COLORHUG=1 bin/dispread -D 1000 -v -y l foo

Checking XRandR 1.2 VideoLUT access
Display 0 name = ':0.0'
Got EDID for display
icoms_get_paths: called
hid_get_paths: called
icoms_get_paths: returning 0 paths and ICOM_OK
usb_get_paths: about to look through buses:
usb_get_paths: about to stat /dev/bus/usb/009/001
usb_check_and_add: givem '/dev/bus/usb/009/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0002
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/008/001
usb_check_and_add: givem '/dev/bus/usb/008/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0002
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/007/001
usb_check_and_add: givem '/dev/bus/usb/007/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0002
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/006/005
usb_check_and_add: givem '/dev/bus/usb/006/005'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1c4f, pid 0x0002
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/006/004
usb_check_and_add: givem '/dev/bus/usb/006/004'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1bcf, pid 0x08d8
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/006/002
usb_check_and_add: givem '/dev/bus/usb/006/002'
usb_check_and_add: failed to open '/dev/bus/usb/006/002'
usb_get_paths: about to stat /dev/bus/usb/006/003
usb_check_and_add: givem '/dev/bus/usb/006/003'
usb_check_and_add: failed to open '/dev/bus/usb/006/003'
usb_get_paths: about to stat /dev/bus/usb/006/001
usb_check_and_add: givem '/dev/bus/usb/006/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0001
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/005/001
usb_check_and_add: givem '/dev/bus/usb/005/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0001
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/004/001
usb_check_and_add: givem '/dev/bus/usb/004/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0001
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/003/003
usb_check_and_add: givem '/dev/bus/usb/003/003'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x04d8, pid 0xf8da
set ep ad 0x81 packetsize 64 type 3
set ep ad 0x1 packetsize 64 type 3
usb_check_and_add: found nep10 2
usb_check_and_add: found instrument vid 0x04d8, pid 0xf8da
usb_get_paths: about to stat /dev/bus/usb/003/001
usb_check_and_add: givem '/dev/bus/usb/003/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0001
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/002/001
usb_check_and_add: givem '/dev/bus/usb/002/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0003
usb_check_and_add: instrument not reconized
usb_get_paths: about to stat /dev/bus/usb/001/001
usb_check_and_add: givem '/dev/bus/usb/001/001'
usb_check_and_add_fd: with fd 6
usb_check_and_add: checking vid 0x1d6b, pid 0x0002
usb_check_and_add: instrument not reconized
usb_get_paths: returning 1 paths and ICOM_OK
icoms_get_paths: failed to open serial "/dev/ttyS3" - not real
icoms_get_paths: failed to open serial "/dev/ttyS2" - not real
icoms_get_paths: failed to open serial "/dev/ttyS1" - not real
icoms_get_paths: failed to open serial "/dev/ttyS0" - not real
new_inst: called with path '/dev/bus/usb/003/003 (Hughski ColorHug)'
colorhug_init_coms: About to init coms
colorhug_init_coms: About to init USB
icoms_set_usb_port: About to set usb port characteristics
usb_open_port: Make sure USB port is open, tries 0
usb_open_port: About to open USB port '/dev/bus/usb/003/003'
usb_open_port: open port '/dev/bus/usb/003/003' succeeded
usb_open_port: 'serial' read quanta = packet size = 8
usb_open_port: USB port is now open
usb_install_signal_handlers: called
urb_reaper: reap starting
usb_install_signal_handlers: done
icoms_set_usb_port: usb port characteristics set ok
colorhug_init_coms: inited coms OK
colorhug_init_coms: About to init coms
colorhg_command: sending cmd 'GetFirmwareVersion' args ''
icoms_usb_transaction: req type 0x1 ep 0x1 size 64
icoms_usb_transaction: reset req 0x0x7fffe40ef030 nourbs to 1
urb_reaper: urb reap URB 0 with status 0 bytes 64, usrbs left 0
coms_usb_transaction: reap - 0 left
coms_usb_transaction: returning err 0x0 and 64 bytes
icoms_usb_rw: returning 64 bytes, ICOM err 0x0
colorhug_command: got inst code
colorhug_command: Reading response
icoms_usb_transaction: req type 0x1 ep 0x81 size 64
icoms_usb_transaction: reset req 0x0x7fffe40ef030 nourbs to 1
urb_reaper: urb reap URB 0 with status 0 bytes 8, usrbs left 0
coms_usb_transaction: reap - 0 left
coms_usb_transaction: returning err 0x8000 and 8 bytes
icoms_usb_rw: returning 8 bytes, ICOM err 0x8000
colorhug_command: recieved cmd 'GetFirmwareVersion' error 'OK' args '00 07 01 
00 01 00'
colorhug_command: got underrun or overrun
init_inst returned 'Communication protocol breakdown' (Unknown error code)
new_disprd failed because init_inst failed
icoms_del: called
icoms_del: closing port
usb_close_port: called
usb_close_port: waking reaper thread to trigger exit
usb_close_port: waiting for reaper thread
urb_reaper: poll returned 1 and events 0 1
urb_reaper: shutdown or too many failure
urb_reaper: cleared requests
urb_reaper: thread done
usb_close_port: usb port has been released and closed
dispread: Error - new_disprd failed with 'Instrument Access Failed'

And here is the debug output from working 1.4.0:
$ ENABLE_COLORHUG=1 dispread -D 1000 -v -y l foo
Checking XRandR 1.2 VideoLUT access
Display 0 name = ':0.0'
Got EDID for display
usb_set_debug: Setting debugging level to 1000 (on)
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Found 009
usb_os_find_busses: Found 008
usb_os_find_busses: Found 007
usb_os_find_busses: Found 006
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 009
error obtaining child information: Operation not permitted
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 008
error obtaining child information: Operation not permitted
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 007
error obtaining child information: Operation not permitted
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 005 on 006
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 004 on 006
skipped 1 class/vendor specific interface descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Couldn't open /dev/bus/usb/006/002
usb_os_find_devices: Couldn't open /dev/bus/usb/006/003
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 006
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
error obtaining child information: Operation not permitted
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 005
error obtaining child information: Operation not permitted
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 004
error obtaining child information: Operation not permitted
usb_os_find_devices: Found 003 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Operation not permitted
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 002
skipping descriptor 0x30
skipped 1 class/vendor specific endpoint descriptors
error obtaining child information: Operation not permitted
usb_os_find_devices: couldn't get connect info
usb_os_find_devices: Found 001 on 001
error obtaining child information: Operation not permitted
usb_get_paths about to look through buses:
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x1d6b, PID 0x2
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x1d6b, PID 0x2
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x1d6b, PID 0x2
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x1c4f, PID 0x2
usb_check_and_add() called with VID 0x1bcf, PID 0x8d8
usb_check_and_add() called with VID 0x1d6b, PID 0x1
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x1d6b, PID 0x1
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x1d6b, PID 0x1
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x4d8, PID 0xf8da
usb_check_and_add() found known instrument
usb_check_and_add() called with VID 0x1d6b, PID 0x1
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x1d6b, PID 0x3
usb_get_paths about to look through devices:
usb_check_and_add() called with VID 0x1d6b, PID 0x2
failed to open serial "/dev/ttyS3"
failed to open serial "/dev/ttyS2"
failed to open serial "/dev/ttyS1"
failed to open serial "/dev/ttyS0"
colorhug: About to init coms
colorhug: About to init USB
icoms: About to set usb port characteristics
icoms: About to open the USB port, tries 0
icoms: USB port needs opening
icoms: About to open USB port 'usb:/bus0/dev3 (Hughski ColorHug)'
open() of USB port 'usb:/bus0/dev3 (Hughski ColorHug)' suceeded
USB error: could not detach kernel driver from interface 0: No data available
Number of configurations = 1
icoms: USB port is now open
icoms: Clearing any USB errors
icoms: usb port characteristics set ok
colorhug: init coms has suceeded
colorhug: About to init instrument
colorhug: Sending cmd 'SetLeds' args '00 00 00 00'
icoms: About to return usb write 5 bytes, ICOM err 0x0
colorhug: ICOM err 0x0
colorhug: Reading response
icoms: About to return usb read 2 bytes, ICOM err 0x0
Recieved cmd 'SetLeds' error 'OK' args ''
colorhug: '' ICOM err 0x0
colorhug: Sending cmd 'SetMultiplier' args '03'
icoms: About to return usb write 2 bytes, ICOM err 0x0
colorhug: ICOM err 0x0
colorhug: Reading response
icoms: About to return usb read 2 bytes, ICOM err 0x0
Recieved cmd 'SetMultiplier' error 'OK' args ''
colorhug: '' ICOM err 0x0
colorhug: Sending cmd 'SetIntegral' args 'ff ff'
icoms: About to return usb write 3 bytes, ICOM err 0x0
colorhug: ICOM err 0x0
colorhug: Reading response
icoms: About to return usb read 2 bytes, ICOM err 0x0
Recieved cmd 'SetIntegral' error 'OK' args ''
colorhug: '' ICOM err 0x0
colorhug: Sending cmd 'GetPostScale' args ''
icoms: About to return usb write 1 bytes, ICOM err 0x0
colorhug: ICOM err 0x0
colorhug: Reading response
icoms: About to return usb read 6 bytes, ICOM err 0x0
Recieved cmd 'GetPostScale' error 'OK' args '00 2a 00 00'
colorhug: '00 00 b8 0b' ICOM err 0x0
colorhug: instrument inited OK
colorhug: Sending cmd 'SetLeds' args '01 00 00 00'
icoms: About to return usb write 5 bytes, ICOM err 0x0
colorhug: ICOM err 0x0
colorhug: Reading response
icoms: About to return usb read 2 bytes, ICOM err 0x0
Recieved cmd 'SetLeds' error 'OK' args ''
colorhug: '' ICOM err 0x0
colorhug: Sending cmd 'SetLeds' args '02 00 00 00'
icoms: About to return usb write 5 bytes, ICOM err 0x0
colorhug: ICOM err 0x0
colorhug: Reading response
icoms: About to return usb read 2 bytes, ICOM err 0x0
Recieved cmd 'SetLeds' error 'OK' args ''
colorhug: '' ICOM err 0x0
colorhug: Sending cmd 'SetLeds' args '01 00 00 00'
icoms: About to return usb write 5 bytes, ICOM err 0x0
colorhug: ICOM err 0x0
colorhug: Reading response
icoms: About to return usb read 2 bytes, ICOM err 0x0
Recieved cmd 'SetLeds' error 'OK' args ''
colorhug: '' ICOM err 0x0
colorhug: Sending cmd 'SetLeds' args '00 00 00 00'
icoms: About to return usb write 5 bytes, ICOM err 0x0
colorhug: ICOM err 0x0
colorhug: Reading response
icoms: About to return usb read 2 bytes, ICOM err 0x0
Recieved cmd 'SetLeds' error 'OK' args ''
colorhug: '' ICOM err 0x0
config_inst_displ suceeded
new_dispwin: Opened display OK
Opening window
dispwin_get_ramdac called
Getting gamma using Randr 1.2
dispwin_get_ramdac returning OK
dispwin_set_color called
new_dispwin: return sucessfully
new_disprd failed because user aborted when placing device
icoms: delete called
icoms: closing port
usb_close_port() called
usb port has been released and closed
dispwin_del called
About to close display
finished
dispread: Error - new_disprd failed with 'User Aborted'

Best regards,
--Edwin

Other related posts: