jakehilborn / displayplacer

macOS command line utility to configure multi-display resolutions and arrangements. Essentially XRandR for macOS.
MIT License
3.74k stars 134 forks source link

Segmentation fault #113

Open sjf opened 1 year ago

sjf commented 1 year ago

$ displayplacer list Persistent screen id: 3845CA5B-014E-4B64-968C-E4816DA87684 Contextual screen id: 2 Type: 32 inch external screen Resolution: 1920x1080 Hertz: 60 Color Depth: 8 Scaling:on Origin: (0,0) - main display Rotation: 0 Resolutions for rotation 0: mode 0: res:800x600 hz:60 color_depth:8 scaling:on mode 1: res:800x600 hz:60 color_depth:8 mode 2: res:800x600 hz:30 color_depth:8 scaling:on mode 3: res:840x525 hz:60 color_depth:8 scaling:on mode 4: res:960x540 hz:60 color_depth:8 scaling:on mode 5: res:960x540 hz:50 color_depth:8 scaling:on mode 6: res:960x540 hz:30 color_depth:8 scaling:on mode 7: res:960x600 hz:60 color_depth:8 scaling:on mode 8: res:1024x576 hz:60 color_depth:8 scaling:on mode 9: res:1024x576 hz:60 color_depth:8 mode 10: res:1024x576 hz:30 color_depth:8 scaling:on mode 11: res:1024x576 hz:30 color_depth:8 mode 12: res:1024x768 hz:60 color_depth:8 mode 13: res:1024x768 hz:30 color_depth:8 mode 14: res:1152x648 hz:60 color_depth:8 scaling:on mode 15: res:1152x648 hz:30 color_depth:8 scaling:on mode 16: res:1280x720 hz:60 color_depth:8 scaling:on mode 17: res:1280x720 hz:60 color_depth:8 mode 18: res:1280x720 hz:50 color_depth:8 mode 19: res:1280x720 hz:30 color_depth:8 mode 20: res:1280x720 hz:30 color_depth:8 scaling:on mode 21: res:1280x800 hz:60 color_depth:8 mode 22: res:1280x960 hz:60 color_depth:8 mode 23: res:1280x960 hz:30 color_depth:8 mode 24: res:1280x1024 hz:60 color_depth:8 mode 25: res:1344x756 hz:60 color_depth:8 mode 26: res:1344x756 hz:30 color_depth:8 mode 27: res:1344x1008 hz:60 color_depth:8 mode 28: res:1344x1008 hz:30 color_depth:8 mode 29: res:1440x900 hz:60 color_depth:8 mode 30: res:1504x846 hz:60 color_depth:8 scaling:on mode 31: res:1504x846 hz:30 color_depth:8 scaling:on mode 32: res:1600x900 hz:60 color_depth:8 mode 33: res:1600x900 hz:60 color_depth:8 scaling:on mode 34: res:1600x900 hz:30 color_depth:8 scaling:on mode 35: res:1600x900 hz:30 color_depth:8 mode 36: res:1600x1200 hz:60 color_depth:8 mode 37: res:1600x1200 hz:30 color_depth:8 mode 38: res:1680x945 hz:60 color_depth:8 scaling:on mode 39: res:1680x945 hz:30 color_depth:8 scaling:on mode 40: res:1680x1050 hz:60 color_depth:8 mode 41: res:1920x1080 hz:60 color_depth:8 mode 42: res:1920x1080 hz:60 color_depth:8 scaling:on <-- current mode mode 43: res:1920x1080 hz:50 color_depth:8 mode 44: res:1920x1080 hz:30 color_depth:8 scaling:on mode 45: res:1920x1080 hz:30 color_depth:8 mode 46: res:1920x1200 hz:60 color_depth:8 mode 47: res:2048x1152 hz:60 color_depth:8 scaling:on mode 48: res:2048x1152 hz:60 color_depth:8 mode 49: res:2048x1152 hz:30 color_depth:8 mode 50: res:2048x1152 hz:30 color_depth:8 scaling:on mode 51: res:2304x1296 hz:60 color_depth:8 scaling:on mode 52: res:2304x1296 hz:60 color_depth:8 mode 53: res:2304x1296 hz:30 color_depth:8 mode 54: res:2304x1296 hz:30 color_depth:8 scaling:on mode 55: res:2560x1440 hz:60 color_depth:8 scaling:on mode 56: res:2560x1440 hz:60 color_depth:8 mode 57: res:2560x1440 hz:30 color_depth:8 scaling:on mode 58: res:2560x1440 hz:30 color_depth:8 mode 59: res:3008x1692 hz:60 color_depth:8 scaling:on mode 60: res:3008x1692 hz:60 color_depth:8 mode 61: res:3008x1692 hz:30 color_depth:8 scaling:on mode 62: res:3008x1692 hz:30 color_depth:8 mode 63: res:3200x1800 hz:60 color_depth:8 scaling:on mode 64: res:3200x1800 hz:60 color_depth:8 mode 65: res:3200x1800 hz:30 color_depth:8 scaling:on mode 66: res:3200x1800 hz:30 color_depth:8 mode 67: res:3360x1890 hz:60 color_depth:8 mode 68: res:3360x1890 hz:60 color_depth:8 scaling:on mode 69: res:3360x1890 hz:30 color_depth:8 scaling:on mode 70: res:3360x1890 hz:30 color_depth:8 mode 71: res:3840x2160 hz:60 color_depth:8 mode 72: res:3840x2160 hz:30 color_depth:8 mode 73: res:1024x768 hz:60 color_depth:8 scaling:on mode 74: res:1024x768 hz:30 color_depth:8 scaling:on mode 75: res:1280x720 hz:50 color_depth:8 scaling:on mode 76: res:1280x800 hz:60 color_depth:8 scaling:on mode 77: res:1280x960 hz:60 color_depth:8 scaling:on mode 78: res:1280x960 hz:30 color_depth:8 scaling:on mode 79: res:1280x1024 hz:60 color_depth:8 scaling:on mode 80: res:1344x756 hz:60 color_depth:8 scaling:on mode 81: res:1344x756 hz:30 color_depth:8 scaling:on mode 82: res:1344x1008 hz:60 color_depth:8 scaling:on mode 83: res:1344x1008 hz:30 color_depth:8 scaling:on mode 84: res:1440x900 hz:60 color_depth:8 scaling:on mode 85: res:1600x1200 hz:60 color_depth:8 scaling:on mode 86: res:1600x1200 hz:30 color_depth:8 scaling:on mode 87: res:1680x1050 hz:60 color_depth:8 scaling:on mode 88: res:1920x1080 hz:50 color_depth:8 scaling:on mode 89: res:1920x1200 hz:60 color_depth:8 scaling:on mode 90: res:3840x2160 hz:60 color_depth:8 scaling:on mode 91: res:3840x2160 hz:30 color_depth:8 scaling:on mode 92: res:400x300 hz:60 color_depth:8 scaling:on mode 93: res:512x384 hz:60 color_depth:8 scaling:on mode 94: res:512x384 hz:60 color_depth:8 scaling:on mode 95: res:512x384 hz:30 color_depth:8 scaling:on mode 96: res:640x360 hz:60 color_depth:8 scaling:on mode 97: res:640x360 hz:60 color_depth:8 scaling:on mode 98: res:640x360 hz:60 color_depth:8 scaling:on mode 99: res:640x360 hz:50 color_depth:8 scaling:on mode 100: res:640x360 hz:30 color_depth:8 scaling:on mode 101: res:640x400 hz:60 color_depth:8 scaling:on mode 102: res:640x480 hz:60 color_depth:8 scaling:on mode 103: res:640x480 hz:30 color_depth:8 scaling:on mode 104: res:640x480 hz:60 color_depth:8 mode 105: res:640x480 hz:60 color_depth:8 mode 106: res:640x512 hz:60 color_depth:8 scaling:on mode 107: res:672x378 hz:60 color_depth:8 scaling:on mode 108: res:672x378 hz:30 color_depth:8 scaling:on mode 109: res:672x504 hz:60 color_depth:8 scaling:on mode 110: res:672x504 hz:30 color_depth:8 scaling:on mode 111: res:720x450 hz:60 color_depth:8 scaling:on mode 112: res:720x480 hz:60 color_depth:8 mode 113: res:720x480 hz:60 color_depth:8 mode 114: res:720x576 hz:50 color_depth:8 mode 115: res:800x450 hz:60 color_depth:8 scaling:on mode 116: res:800x450 hz:60 color_depth:8 scaling:on mode 117: res:800x450 hz:30 color_depth:8 scaling:on mode 118: res:960x540 hz:60 color_depth:8 scaling:on mode 119: res:960x540 hz:60 color_depth:8 scaling:on mode 120: res:1024x768 hz:60 color_depth:8 mode 121: res:1280x720 hz:60 color_depth:8 scaling:on mode 122: res:1280x720 hz:60 color_depth:8 mode 123: res:1280x720 hz:60 color_depth:8 mode 124: res:1600x900 hz:60 color_depth:8 mode 125: res:1920x1080 hz:60 color_depth:8 mode 126: res:1920x1080 hz:60 color_depth:8 mode 127: res:2560x1440 hz:60 color_depth:8

Execute the command below to set your screens to the current arrangement:

displayplacer "id:3845CA5B-014E-4B64-968C-E4816DA87684 res:1920x1080 hz:60 color_depth:8 scaling:on origin:(0,0) degree:0" $ displayplacer "mode 42: res:1920x1080 hz:60 color_depth:8 scaling:on" Segmentation fault: 11 $ displayplacer "mode 42: res:1920x1080 hz:60 color_depth:8 scaling:off" Segmentation fault: 11 $ displayplacer "mode 42: res:1920x1080 hz:60 color_depth:8 scaling:on" Segmentation fault: 11

kutakmir commented 1 year ago

I've got the same issue.

jakehilborn commented 1 year ago

It looks like you're missing the id in the command. Config parsing errors leading to segmentation faults is expected. Can you paste the exact command that you're running?