Contribute
Register

[Beta release] NativeDisplayBrightness 0.0.5 testing [updated]

Joined
Apr 3, 2011
Messages
17
Motherboard
GB Z170X Gaming 3
CPU
i5 6600
Graphics
EVGA GTX980 ACX 2.0
Mac
MacBook Pro
Mobile Phone
iOS
This is an amazing idea. I installed it successfully, but unfortunately the log on Xcode is "Failed to send DDC command". If you need more info to debug please tell me. My GPU is HD530.
Hey,
Which monitor are you using? Are you sure it supports DDC/CI and it isn't disabled in the monitor OSD?
How do you connect the monitor to your GPU? DisplayPort / HDMI are preferred.
I have only tested my app with an NVidia GPU, but I think it should work with iGPUs too. I will verify this when I have a chance to do so
 
D

Deleted member 654708

Guest
Hey,
Which monitor are you using? Are you sure it supports DDC/CI and it isn't disabled in the monitor OSD?
How do you connect the monitor to your GPU? DisplayPort / HDMI are preferred.
I have only tested my app with an NVidia GPU, but I think it should work with iGPUs too. I will verify this when I have a chance to do so
I think you are right my monitor most probably does not support DDC/CI. It's the HP Pavilion 24cw, and I am connecting to it by HDMI.

EDIT: Found DDC/CI support, turned it on. OK I am now trying to debug the app on Xcode. There's no failure on the output, but still Brightness F1, F2 has no effect. Tell me how I can help you debug.

EDIT2: I replaced the original "ddcctl" repository to your project in order to see logging. All I can see is this:

Code:
VN:8944 PN:12888 SN:0 UN:2 IN:29591 AppleIntelFramebuffer IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@2/display0/AppleDisplay
More info from the command-line "ddcctl":

Code:
iMac-Dennis:ddcctl-master dk$ /Users/dk/Downloads/ddcctl-master/ddcctl -d 1 -b 40[/B]
[B]2016-10-30 16:36:44.062 ddcctl[734:11423] D: NSScreen #1007457794 (1920x1080) DPI is 93.00
2016-10-30 16:36:44.062 ddcctl[734:11423] I: found 1 displays
2016-10-30 16:36:44.062 ddcctl[734:11423] I: polling display 1's EDID
VN:8944 PN:12888 SN:0 UN:2 IN:15619 AppleIntelFramebuffer IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@2/display0/AppleDisplay
2016-10-30 16:36:44.088 ddcctl[734:11423] D: command arg-pair: d: 1
2016-10-30 16:36:44.088 ddcctl[734:11423] D: command arg-pair: b: 40
2016-10-30 16:36:44.088 ddcctl[734:11423] D: setting VCP control #16 => 40
VN:8944 PN:12888 SN:0 UN:2 IN:16423 AppleIntelFramebuffer IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@2/display0/AppleDisplay
 
Last edited by a moderator:
Joined
Apr 3, 2011
Messages
17
Motherboard
GB Z170X Gaming 3
CPU
i5 6600
Graphics
EVGA GTX980 ACX 2.0
Mac
MacBook Pro
Mobile Phone
iOS
More info from the command-line "ddcctl":

Code:
iMac-Dennis:ddcctl-master dk$ /Users/dk/Downloads/ddcctl-master/ddcctl -d 1 -b 40[/B][/B][/B]
[B][B][B]2016-10-30 16:36:44.062 ddcctl[734:11423] D: NSScreen #1007457794 (1920x1080) DPI is 93.00
2016-10-30 16:36:44.062 ddcctl[734:11423] I: found 1 displays
2016-10-30 16:36:44.062 ddcctl[734:11423] I: polling display 1's EDID
VN:8944 PN:12888 SN:0 UN:2 IN:15619 AppleIntelFramebuffer IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@2/display0/AppleDisplay
2016-10-30 16:36:44.088 ddcctl[734:11423] D: command arg-pair: d: 1
2016-10-30 16:36:44.088 ddcctl[734:11423] D: command arg-pair: b: 40
2016-10-30 16:36:44.088 ddcctl[734:11423] D: setting VCP control #16 => 40
VN:8944 PN:12888 SN:0 UN:2 IN:16423 AppleIntelFramebuffer IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@2/display0/AppleDisplay
While testing with ddccdl, did your display's brightness change at all? The command you executed should change the brightness to 40 (whatever that means). I am relying on the same library that ddccdl uses, if that tool doesn't work my app probably won't work either
 
D

Deleted member 654708

Guest
While testing with ddccdl, did your display's brightness change at all? The command you executed should change the brightness to 40 (whatever that means). I am relying on the same library that ddccdl uses, if that tool doesn't work my app probably won't work either
I know, and thanks for all the hard work. Yes it didn't change at all, even though the command seemed successful. On the other hand another HP display at work connected to a MacBook Pro behaved as it should, so kudos :)
 
Joined
Nov 13, 2015
Messages
7
Motherboard
Asus Maximus VIII Hero
CPU
i7 6700K
Graphics
Gigabyte 980Ti G1
I think I didn't do any configuration or used any app that could mess with the keys. By default the keyboard is using Function keys primarily (F1, F2 etc). Only if I press Fn the other functions will be enabled (Mission Control, Volume etc). But I'll try later registering F1/F2 to other keys, as you mentioned.
I confirmed in the LG site that these monitors have DDC/CI. I'll also check in the monitor option menus if there is any option to enable/disable this.
Thank you!
I used an app to register the fn key to other key and finally I could use the F1 and F2 alternate function, but I can't change the brightness. The F1 key changes the triple monitor configuration, mirror or three different desktops, and the F2 does nothing. I needed to figure out if I could change the brightness with other app, so I downloaded this app https://www.tonymacx86.com/threads/controlling-your-monitor-with-osx-ddc-panel.90077/ and in fact it did change the brightness! What do you think the problem is? Key assignment or maybe the triple monitor setup?
By the way in DCC Panel (the working app) I need to select each screen at a time in order to change the brightness. It would be great if your app changed all the three at the same time.
 
Joined
Jun 7, 2014
Messages
12
Motherboard
Asus Z87 Gryphon
CPU
Intel i7 4770k
Graphics
EVGA Nvidia GTX770
Mac
MacBook Air, MacBook Pro, Mac mini
Mobile Phone
iOS
First of all, I'd like to thank you for this amazing application!

It works as intended. What I did to make it work was to follow the instructions provided at the download site. Though they are a few quirks that almost made me look someplace else for an alternative solution to a problem I never thought I had before discovering this application.

First of all, I use an Apple Magic Keyboard. The brightness up & down keys do not work for some bewildering reason (do consider looking into that). What does work, however, is in accessibility settings, changing the shortcuts for display brightness to the real F1 & F2-keys. That actually allows you to change the brightness as intended, but with the small caveat of having to hold in the Fn-key to do it. The remedy to that is the 3rd-party application FunctionFlip (refer to link at bottom). That app allows you to switch which function keys you need to hold Fn for and which you keep as default Apple system control keys.

Secondly, a minor gripe. As I am a newbie programmer, I am not qualified to tell you what you should do, especially if it is outside your code's capabilities. It might be my displays (LG Flatron E2441)(x2) slow response times, who knows, but regardless. When I change brightness settings, it responds slower than say the audio controls. Clicking once is instantaneous, but holding in the brightness up / down keys makes it have a delay in adjusting the brightness. The more you hold it in, the longer the delay gets. Mind you, the computer does not lag and works smoothly when adjusting brightness.

Outside of my two notes, this is genius! I love it. I had previously naturally assumed it is a feature that won't be mine to use with my external monitors. I was wrong, you made my hackintosh experience one step closer to the real deal. No point in buying a Mac Pro now (not that I would pay for the current 3-year old, overpriced hardware).


FunctionFlip - http://kevingessner.com/software/functionflip/
 
Joined
Apr 3, 2011
Messages
17
Motherboard
GB Z170X Gaming 3
CPU
i5 6600
Graphics
EVGA GTX980 ACX 2.0
Mac
MacBook Pro
Mobile Phone
iOS
Thanks for the feedback. I didn't know the keyboard activation would be so problematic, but it doesn't surprise me to be honest. I am using a non-apple keyboard with my hackintosh. That means, my function keys are actually recognized as F1-12 keys and not as special-os-function keys like on apple keyboards. I should probably figure out a way to map the special apple brightness keys to my application, but it's hard to test for me without such a keyboard. Meanwhile, it's probably best to use the trick from #17 if you have an apple keyboard.
I'm really busy with college right now, but I will update my app when I have time for it.

Cheers,
Bensge
 
Joined
Jan 20, 2016
Messages
2
Motherboard
Asus Z-170 Pro
CPU
i5 6600K
Graphics
GTX 1060
Mac
MacBook Pro
Mobile Phone
Android
Tested with Asus Z170-PRO, RX 480, Samsung C24F390 and Sierra 10.12.2

Everything is working fine, no bugs and fast speed. Used BetterTouchTool to remap Brightness to F1 and F2 on Apple Wired Keyboard. :thumbup:
 
Joined
Apr 3, 2011
Messages
17
Motherboard
GB Z170X Gaming 3
CPU
i5 6600
Graphics
EVGA GTX980 ACX 2.0
Mac
MacBook Pro
Mobile Phone
iOS
@Dashy If you're up for some testing, I'm sure we could get the brightness keys to work. I just need someone with an apple keyboard to record the key codes with a special application.

About the lag you're experiencing, this does indeed depend on your monitor. I have an idea that could reduce the lag a bit, but I would need you to test it first

Bensge
 
Top