brightness icon indicating copy to clipboard operation
brightness copied to clipboard

Failed to set brightness of secondary display - Lenovo ThinkVision L2452p 24-inch

Open adhulipa opened this issue 8 years ago • 22 comments

This is the error I get when setting brightness

brightness -d 1 0.05
brightness: failed to set brightness of display 0x2b845104 (error -536870201)

adhulipa avatar Mar 22 '16 13:03 adhulipa

Same here on Dell U2713H Wondering if attaching a usb cable to the monitor would help. I don't have one though...

brightness -d 1 -v 1 brightness: failed to set brightness of display 0x2b2861cd (error -536870201)

kzahel avatar Apr 06 '16 19:04 kzahel

I read somewhere about that trick too (attaching USB cable).. Not really sure how that would work... I did try it out though ... didn't work either

adhulipa avatar Apr 06 '16 19:04 adhulipa

I find it is almost impossible. You can refer to following materials.

  • http://apple.stackexchange.com/a/127258
  • http://apple.stackexchange.com/questions/61045/does-apple-support-ddc-ci-for-3rd-party-displays-via-apples-thunderbolt-to-dvi

davidlc9113 avatar Jul 05 '16 07:07 davidlc9113

https://github.com/superduper/BrightnessMenulet and/or https://github.com/kfix/ddcctl may work for you. It sort of works for me with my current display, a LG 27MB85R (setting contrast works reliably; brightness and volume don't, and querying volume hangs my Mac). See the caveats at the bottom of the ddcctl readme, though; it may also hang your Mac, display or both.

In any case, the above seems quite flaky and I don't really want to release software that is likely to crash your Mac or display. If Apple decides to support DDC control in any serious manner I'll reconsider of course.

nriley avatar Jul 05 '16 12:07 nriley

Really disappointed at Apple; DDC/CI is so easy on Windows and Linux. Is there anywhere I can yell at Apple about it?

FranklinYu avatar Feb 08 '17 09:02 FranklinYu

@franklinyu, try their bug report tracker, bugreport.apple.com. Don't think it'll help though.

auduchinok avatar Feb 18 '17 21:02 auduchinok

This failed for external Dell P2715QT - 27" Monitor.

brightness: failed to set brightness of display 0x2b10190e (error -536870201)

but works for the built-in mac book pro screen.

arcseldon avatar Mar 05 '17 04:03 arcseldon

I have an LG UltraFine 27MD5KA and I get the same error:

$ brightness -v .9
brightness: failed to set brightness of display 0x1b561641 (error -536870201)

thewellington avatar Apr 25 '17 13:04 thewellington

brightness -lv
display 0: main, active, awake, online, external, ID 0x1b561641
	resolution 2560 x 1440 pt (5120 x 2880 px) @ 0.0 Hz, origin (0, 0)
	physical size 599 x 340 mm
	IOKit flags 0x7; IOKit display mode ID 0x80005000
	usable for desktop GUI, uses OpenGL acceleration

thewellington avatar Apr 25 '17 14:04 thewellington

brightness -d 0 .5 brightness: failed to set brightness of display 0x7bd8ca3c (error -536870201)

with:

display 0: main, active, awake, online, external, ID 0x7bd8ca3c resolution 2560 x 1440 pt (2560 x 1440 px) @ 0.0 Hz, origin (0, 0) physical size 597 x 336 mm IOKit flags 0x2000007; IOKit display mode ID 0x80005000 usable for desktop GUI, uses OpenGL acceleration

This a Apple iMac Display (Mid 2010)

MacOS 10.10.5 (14F2511)

using https://homebrew.bintray.com/bottles/brightness-1.2.yosemite.bottle.tar.gz

and getting

display 0: main, active, awake, online, external, ID 0x7bd8ca3c resolution 2560 x 1440 pt (2560 x 1440 px) @ 0.0 Hz, origin (0, 0) physical size 597 x 336 mm IOKit flags 0x2000007; IOKit display mode ID 0x80001000 usable for desktop GUI, uses OpenGL acceleration ./brightness: failed to get brightness of display 0x7bd8ca3c (error -536870201) display 1: active, awake, online, built-in, ID 0x7bd8d3bd resolution 1440 x 900 pt (1440 x 900 px) @ 0.0 Hz, origin (2560, 0) physical size 330 x 208 mm IOKit flags 0x2000007; IOKit display mode ID 0x80000000 usable for desktop GUI, uses OpenGL acceleration display 1: brightness 0.750000

with get from this posts date/time.

furiousgreencloud avatar Nov 22 '17 00:11 furiousgreencloud

This script worked for me: https://github.com/kfix/ddcctl

I'm using an external Acer monitor.

jathu avatar Apr 12 '18 03:04 jathu

MY LG UltraFine 5K also fails when connected to my MacBook Pro via USB-C:

brightness -l
display 0: main, active, awake, online, external, ID 0x1b56fe4d
brightness: failed to get brightness of display 0x1b56fe4d (error -536870201)
display 1: active, awake, online, built-in, ID 0x4280c46
display 1: brightness 1.000000

However, I can use the brightness keyboard shortcuts to control the brightness of the external monitor, so macOS can definitely do it.

Also, as @jathu suggested, ddcctl also works.

latenitefilms avatar Apr 11 '20 23:04 latenitefilms

hi @latenitefilms if you download and compile the brightness code yourself it will work with you LG 5K UltraFine display

thewellington avatar Apr 14 '20 02:04 thewellington

I've got a Mac Mini with an M1 chip, MacOS 11.2.3, and an LG Ultrafine 5k Monitor. Using homebrew, I had a similar error in the issue description. I then downloaded the source, compiled it, put the binary in my path, and it works fine!

@nriley If you'd like me to provide further information, I'm happy to.

elijahchancey avatar Apr 05 '21 17:04 elijahchancey

Yeah, I think we just need to figure out how to get the Homebrew formula updated... I didn't create the original one!

nriley avatar Apr 05 '21 17:04 nriley

hi @latenitefilms if you download and compile the brightness code yourself it will work with you LG 5K UltraFine display

Thanks bud. Same on MacBook Pro 15'' from 2018

tbrodbeck avatar May 27 '21 09:05 tbrodbeck

DP's-iMac:~ root# brightness -l display 0: main, active, awake, online, external, ID 0x78c91d62 brightness: failed to get brightness of display 0x78c91d62 (error -536870201) display 1: active, awake, online, external, ID 0x78c91cf3 brightness: failed to get brightness of display 0x78c91cf3 (error -536870201)

I got sam error, and I am trying ddcctl and BrightnessMenulet, will update soon.

----- after tested ----- BrightnessMenulet is working for me, just download with the link https://github.com/superduper/BrightnessMenulet/raw/master/BrightnessMenulet/Brightness_Menulet.zip unzip, run the app, you will get it in top right corner, click and use it.

I am using 10.11.6 and have 2 ex-monitors it's working.

016 avatar Aug 29 '21 11:08 016

hi @latenitefilms if you download and compile the brightness code yourself it will work with you LG 5K UltraFine display

worked for me, and was very simple to compile too.


╰─ neofetch
                    'c.          <redacted>
                 ,xNMM.          ----------------------------
               .OMMMMo           OS: macOS 12.5.1 21G83 arm64
               OMMM0,            Host: MacBookPro18,3
     .;loddo:' loolloddol;.      Kernel: 21.6.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 3 days, 5 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 241 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8.1
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1800x3200, 1512x982
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Dark)
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: tmux
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   CPU: Apple M1 Pro
    kMMMMMMMMMMMMMMMMMMMMMMd     GPU: Apple M1 Pro
     ;KMMMMMMMWXXWMMMMMMMk.      Memory: 3021MiB / 16384MiB
       .cooc,.    .,coo:.

ijoseph avatar Nov 29 '22 20:11 ijoseph

same error.

Alexandro1112 avatar May 02 '23 16:05 Alexandro1112

I got the same error with my LG UltraFine 27MD5KL and as others on this issue suggested, just building from source and it works. @nriley is the binary in Homebrew outdated?

foolip avatar Mar 04 '24 08:03 foolip

@foolip Yes, it is. I didn't upload the Homebrew package; someone else did and abandoned it.

nriley avatar Mar 05 '24 04:03 nriley

Just created PR 49 to suggest the removal of hombrew from the README if there is no support for updating homebrew.

thewellington avatar Mar 05 '24 20:03 thewellington