Schultz Alexis

Results 37 comments of Schultz Alexis

Yes it does work, ./kbrightness give Failed to connect to AppleLMUController getKeyboardBrightness() error Edit : Also it would be awesome to be able to set the value as for now...

They changed the driver for the keyboard I'll post here soon how to read the value. But they didn't implemented the set function so we can't set the value without...

```swift import IOKit static func readKeyboardBrigthness() -> Float? { let service = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleHIDKeyboardEventDriverV2")) defer { IOObjectRelease(service) } let ser: CFTypeRef = IORegistryEntryCreateCFProperty(service, "KeyboardBacklightBrightness" as CFString, kCFAllocatorDefault,0).takeUnretainedValue() if let result...

```swift // Simulate illumination up let code = NX_KEYTYPE_ILLUMINATION_UP let event1 = NSEvent.otherEvent(with: .systemDefined, location: NSPoint.zero, modifierFlags: NSEventModifierFlags(rawValue: 0xa00), timestamp: 0, windowNumber: 0, context: nil, subtype: 8, data1: (Int((code

@pirate the is no way to simulate key press for keyboard illumination but you can simulate nsevent sent when those keys are pressed.

Also now that I'm thinking about this, you may actually be able to listen to quicks change by listening to those events (in my second comment). Like first you read...

Here is the start of an observer for IOKit. I does not work but I think its not so far : ```swift import IOKit import Foundation let IOKitListenerNewDataNotificationIdentifier: NSNotification.Name =...

Look for a quick tutorial on the net with just a simple button in a controller then add one of the two part of my second comment.

This didn't match my requirements but I'm happy that it still useful to someone !

See / follow : https://github.com/soberman/ARSLineProgress/issues/10 For now no, but soon yes