Profiles & helper scripts using ArgyllCMS
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

calibrate-display.sh 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #!/usr/bin/env bash
  2. # Taken and modified from
  3. # https://gdargaud.net/Hack/LinuxSpyder.html
  4. # Calibrate the display with a set of color patches
  5. # From --help
  6. #
  7. # -d n[,m] Choose the display n from the following list (default 1)
  8. # Optionally choose different display m for VideoLUT access
  9. # 1 = 'Monitor 1, Output eDP-1 at 1, 0, width 3840, height 2160'
  10. # 2 = 'Monitor 2, Output DP-2 at 0, 2160, width 3840, height 1100'
  11. #
  12. # -c listno Choose instrument from the following list (default 1)
  13. # 1 = '/dev/bus/usb/001/004 (ColorVision Spyder2)'
  14. #
  15. # -P ho,vo,ss[,vs] Position test window and scale it
  16. # ho,vi: 0.0 = left/top, 0.5 = center, 1.0 = right/bottom etc.
  17. # ss: 0.5 = half, 1.0 = normal, 2.0 = double etc.
  18. #
  19. # -m Skip adjustment of the monitor controls
  20. #
  21. # inoutfile Base name for created or updated .cal and .icc output files
  22. #
  23. # For the screenpad (lower screen) on the Asus UX581L
  24. # displays patches over most of the left side of the screen
  25. dispcal -d2 -c1 -P 0.0,0.5,2.5 -m screenpad
  26. # Generate a profiling test target values .til file
  27. # From --help
  28. #
  29. # -d col_comb choose colorant combination from the following:
  30. # 0: Print grey
  31. # 1: Video grey
  32. # 2: Print RGB
  33. # 3: Video RGB
  34. # ...
  35. #
  36. # Original site suggested -f250 to limit the number of patches but default is 836
  37. targen -d3 screenpad
  38. # Display test patches on a monitor, read the colorimetric value and create the chart readings file with calibration applied
  39. # From --help
  40. #
  41. # -d, -c, and -P are same as dispcal
  42. #
  43. # -k file.cal Load calibration file into display while reading
  44. #
  45. dispread -d2 -c1 -P 0.0,0.5,2.5 -k screenpad.cal screenpad
  46. # Create an ICC profile from the ti3 test chart patch values
  47. # From --help
  48. #
  49. # -A manufacturer Manufacturer description string
  50. #
  51. # -M model Model description string
  52. #
  53. # -D description Profile Description string (Default "inoutfile")
  54. #
  55. # -a lxXgsmGS Algorithm type override
  56. # l = Lab cLUT (def.), x = XYZ cLUT, X = display XYZ cLUT + matrix
  57. # g = gamma+matrix, s = shaper+matrix, m = matrix only,
  58. # G = single gamma+matrix, S = single shaper+matrix
  59. #
  60. # Original site suggested -a S but -a l seems to be a better choice?
  61. # Screenpad manufacturer & model per
  62. # https://linux-hardware.org/?probe=d33dee579a
  63. colprof -A "BOE" -M "BOE085F" -D "Asus Zenbook Pro Duo Screenpad ($(date +%Y-%m-%d_%H-%M))" screenpad
  64. # Mainscreen Asus UX581L manufacturer & model from same scrape
  65. # colprof -A "Samsung" -M "SDCA029" -D "Asus Zenbook Pro Duo ($(date +%Y-%m-%d_%H-%M))" ux581l