Jump to content

fight the backlight brightness control feature


cele_82
 Share

52 posts in this topic

Recommended Posts

Ok... a lot of people here have the brightness control that doesn't work on their laptop(me to...obvious) but I don't want to continue using programs like Shades and so on... that put a dark mask over your screen... that's not useful if you to work with photo editing.

 

So let's start:

 

1. there are few major posts on this problem on the board:

 

http://forum.insanelymac.com/index.php?showtopic=82860

 

http://forum.insanelymac.com/index.php?showtopic=17237

 

http://forum.insanelymac.com/index.php?showtopic=65480

 

http://osxbook.com/book/bonus/chapter10/light/

 

 

2. If you take a look at your system.log file you'll see that the difference between a working(backlight) laptop and one that doesn't work is this line:

 

Apr 28 09:48:30 toms-mac-pro configd[33]: Error: No interface name AirPort_Brcm43xx

Apr 28 09:48:30 toms-mac-pro configd[33]: Error: ioPublishedDriverCallback() failed to initDeviceFromService()

Apr 28 09:48:31 toms-mac-pro kernel[0]: C098: family specific matching fails

Apr 28 09:48:31 toms-mac-pro kernel[0]: IG: Invalid firmware max backlight setting

Apr 28 09:48:31 toms-mac-pro kernel[0]: display: family specific matching fails

Apr 28 09:48:31 toms-mac-pro kernel[0]: ApplePS2Trackpad: Synaptics TouchPad v6.2

Apr 28 09:48:32 toms-mac-pro kernel[0]: fRegisters at 0x2ca43000

Apr 28 09:48:32 toms-mac-pro kernel[0]: C098: match category IOFramebuffer exists

Apr 28 09:48:36 toms-mac-pro kernel[0]: dsmos: Initializing...

Apr 28 09:48:36 toms-mac-pro kernel[0]: dsmos: Hook and decryption contexts set!

Apr 28 09:48:36 toms-mac-pro kernel[0]: dsmos: Starting...

 

 

A working laptop have all this records except that one.

 

 

3. The most important thing.

iNTEL 965 Datasheet page 403

Linux Users

 

If you read the posts at the point one you'll that Linux users change the backlight levels using setpci command that write values on PCI register involved with the brightness control. and this it works for them.

 

The PCI Register for backlight of a X3100 and also for GMA950 is at:

 

Device 2

Function 0 or 1(depending on your video card)

Register Start at F4 and end at FF

Register Name: LBB (Legacy Backlight Brightness)

Default Value: 00000000h

 

The linux users use setpci command like this

 

setpci -s 00:02.1 F4.B=XX (XX is the value that you want to write)

 

once upon a time setpci wasn't unavaible on OSX but now you can find it at:

http://x86dev.org/forum/index.php?topic=307.msg2750

 

also to change PCI register from OSX you can use Reggie SE (from CHUD Tools search them on Apple Developer Site)

 

Windows Users (search for RW Everything, HWDirect, or PCISCOPE)

 

Ok, I have a HP laptop 6720s with X3100 and a Acer 3692 with GMA950 all with Leopard.

The HP have no backlight control(Fn+F7 F8), the Acer have the backlight control(Fn+Up Down).

 

I've started with this idea: changing the backlight from PCI register in Windows XP and then test it on OSX, but (maybe I'm not good as you) I've tried and this doesn't work for me.

 

The Acer have no Acer utility installed and If I change backlight from PCI register D2:F0:F4 it doesn't do anything.

The HP has the Quicklaunch buttons installed and like the Acer don't do anything if I change the values, but the interesting thing is that If I remove the quicklaunch button utility (and then reboot) Volume control works but Brightness control doesn't work like in OSX, and if I watch the PCI Register and I change the brightness through the fn+F7 or F8 key I see that the value on register D2:f0:f4 change from 42 to FF (but the backlight remains at 100% like in OSX)

If I installed back the Quicklaunch buttons the backlight control starts working normally but I can not see values in the register changing like they do if Quicklaunch is installed.

 

It seems that values doesn't matter to Quicklaunch buttons app and maybe is ok cause the register is called LEGACY Backlight Brightness and LEGACY to me means something old...

 

 

 

So is there an APP that can watch what QuickLaunch Buttons write in the memory and where so we can track where the true backlight control is located?

 

 

sorry for my english but I have to go.... right now.

Link to comment
Share on other sites

Nice Summary!

 

In Windows I've written applications to control the display brightness, but it relies on Windows specific APIs like CreateFile ("\\.\LCD",.... and DeviceIoControl. These methods DO work for Windows XP, the brightness range (Min and Max settings) and current brightness can be queried, the actual brightness can be set (as long as it falls within the Min and Max).

 

Maybe there's someone with more knowledge of what happens after the Windows API calls I mention? What registers are written, and where?

 

Looking forward to cracking the display brightness issue sometime soon, my battery life could use a boost.

Link to comment
Share on other sites

Hi, but is there an application able to track(everything) what the quicklaunch application do?

 

I hope that if we find what quicklaunch do (and where) we can bypass the brightness in osx by a command line tool, that is a good thing like you said for our batteries.. and also eyes.

Link to comment
Share on other sites

cele_82, we may be able to trace what is happening with the brightness buttons or my API call samples in Windows using a debugger (like SoftICE) or disassembler (like IDA). I do not have access to those myself at the moment, but someone here might.
thanks for your answer, please tell me how to do it and where to get your program

 

Another important point

 

I removed the kexts of my X3100 so I step back using the generic driver of OSX that give me standard resolution 1024x768 but also as you know the backlight control.Using REGGIE SE to modify the PCI register D2:F0:F4 I WAS ABLE TO CHANGE THE BRIGHTNESS OF MY SCREEN the problem is that the X3100 kext load something that block this feature but now I am sure that this register is for the backlight control. Also I can set a lower value of the backlight that FN+F7 keys allow me to set.Like I wrote in the past posts is the same in windows.Some screenshots attached.

post-110577-1209494482_thumb.png

post-110577-1209494508_thumb.png

Link to comment
Share on other sites

I have a Hp DV6716ez and my Fn F7, F8 keys work!? I have the standard apple Graphics Update loaded for my X1300.

 

How did you? "Card Reader: Works (tested with SD only)"

 

SticMAN

 

"Ok, I have a HP laptop 6720s with X3100 and a Acer 3692 with GMA950 all with Leopard.

The HP have no backlight control(Fn+F7 F8), the Acer have the backlight control(Fn+Up Down)."

Link to comment
Share on other sites

thanks for your answer, please tell me how to do it and where to get your program

 

Another important point

 

I removed the kexts of my X3100 so I step back using the generic driver of OSX that give me standard resolution 1024x768 but also as you know the backlight control.Using REGGIE SE to modify the PCI register D2:F0:F4 I WAS ABLE TO CHANGE THE BRIGHTNESS OF MY SCREEN the problem is that the X3100 kext load something that block this feature but now I am sure that this register is for the backlight control. Also I can set a lower value of the backlight that FN+F7 keys allow me to set.Like I wrote in the past posts is the same in windows.Some screenshots attached.

 

That is very interesting, I have never used Reggie SE. I'll download the CHUD tools from Apple so I can try to do the same thing. My laptop is a Fujitsu P1620 (also have a P1610), both with GMA950 graphics.

 

The program I wrote for Windows brightness control is kind of tied to the Fujitsu line because it also reads accelerometer feedback to know when you're holding the tablet/laptop. It basically does the multi-step dimming based on lack of user interaction, just like a MacBook would dim, and then later go dark if you leave it alone. It will be a dead end for us in the Mac world.

 

What seems really odd is the X3100 kext (and possibly the GMA950) must be monitoring that register and setting it back every time you change it. If we could disassemble or get the source for the kext someone might be able to see where it is happening and remove it.

 

 

 

SticMan- off topic but I'd guess his SD reader was on the USB bus in that laptop, rather than an offshoot of the PC Card / PCI bus like it is in mine. Or you could use a PC Card to SD adapter if your PCMCIA slot works.

Link to comment
Share on other sites

I have a Hp DV6716ez and my Fn F7, F8 keys work!? I have the standard apple Graphics Update loaded for my X1300.

 

How did you? "Card Reader: Works (tested with SD only)"

 

SticMAN

 

"Ok, I have a HP laptop 6720s with X3100 and a Acer 3692 with GMA950 all with Leopard.

The HP have no backlight control(Fn+F7 F8), the Acer have the backlight control(Fn+Up Down)."

 

Stickman if you have you X3100(no generic driver) with full resolution and Quartz acceleration and you have backlight control

 

Can you please try downloading Reggie SE and changing manually setting the value of the F4 register the backlight of your screen I need to know if it works for you.

 

Also do this:

- send me a copy of your X3100 kexts under extensions folder

- send a screenshot of the section GRAPHIC of the SystemProfiler.

- check the file system.log for the string that I mention in the first post (also send me the system log)

Link to comment
Share on other sites

What do you mean by "generic driver" this one come from Apple's Graphics Update!

 

http://www.mediafire.com/?0vvsmn0zljt

 

 

My log ALL of it, I didn't know what you were looking for!

 

http://www.mediafire.com/?1bjtgyn130v

 

 

a picture of it, the first few times it only showed the resolution I set up in SwitchRes but since I've rebooted a few times its back to normal

 

http://www.mediafire.com/?iijhdwzom8i

 

Please explain what Reggie does BEFORE I load it on my machine!?

I hope this helps?

Link to comment
Share on other sites

What do you mean by "generic driver" this one come from Apple's Graphics Update!

 

http://www.mediafire.com/?0vvsmn0zljt

My log ALL of it, I didn't know what you were looking for!

 

http://www.mediafire.com/?1bjtgyn130v

a picture of it, the first few times it only showed the resolution I set up in SwitchRes but since I've rebooted a few times its back to normal

 

http://www.mediafire.com/?iijhdwzom8i

 

Please explain what Reggie does BEFORE I load it on my machine!?

I hope this helps?

 

 

Reggie SE do nothing that can "hurt" your PC, It just change PCI Register Values (that you want) for session that you are using, those changes are not permanent on the next reboot they go away.

 

So please do what I ask you to do and also can you please:

 

- Move out the kexts of X3100 from extensions folder (so osx boot with generic driver)

- Delete system.log

- Test if you have full resolution of the screen, and if the brightness keys are working also test if you can change the value of brightness from Reggie SE and if it works

- Send me this system.log

 

after this move the X3100 kexts in the extensions folder and use disk utility to repair permission and you come back to your original situation.

 

Finally:

- Test if Reggie SE can change the value of brightness of the screen

Link to comment
Share on other sites

  • 1 month later...

I tried my best on this issue. For one moment I thought it was solved - by changing nothing but the AppleIntegratedFramebuffer.kext to an older Version (10.4 I think) from this thread: http://forum.insanelymac.com/index.php?showtopic=65480

 

But what I've got then are mouse artifacts. When rolling back to the 10.5 framebuffer, everything is fine, but I cannot control the backlight. Seems that this problem is closely related to the framebuffer.kext...

Link to comment
Share on other sites

I tried my best on this issue. For one moment I thought it was solved - by changing nothing but the AppleIntegratedFramebuffer.kext to an older Version (10.4 I think) from this thread: http://forum.insanelymac.com/index.php?showtopic=65480

 

But what I've got then are mouse artifacts. When rolling back to the 10.5 framebuffer, everything is fine, but I cannot control the backlight. Seems that this problem is closely related to the framebuffer.kext...

 

Yes jodo... but I think that you have the GMA950 video card.. Am I Wrong? This "trick" is not valid for x3100.

 

 

Please someone (I have not time) test what I wrote before... and I write it again:

 

Requirement:

A laptop that have the brightness in Windows controlled by software (like my HP 6720s with QuickLaunchButtons)

if the software is loaded Brightness controls work if not... it doesn't work...

 

Test:

We have to debug the application that control the brightness (ollydbg is a good debugger) to find where and what write in memory for changing brightness.

 

Hopes:

Maybe doing the same in the memory registers that make in Windows brightness change works also in Leopard.

 

 

I really hope that someone, have the time to do it.. because I have not much time now to do this.

Link to comment
Share on other sites

Any updates on this front?制造商 154W01-TLE5显示器名称 Lenovo 154W01-TLE5显示器 ID LEN4050R61E lcd dont work 5555i dont like the sofware control,it still large bright in lcd ,just only ,can change the gray.

Link to comment
Share on other sites

  • 1 month later...

I have removed the X3100, I lost the resolution but still can not control the brightness...

 

Aug 15 21:07:00 s-mac-pro com.apple.launchd[106] (0x109440.Locum[232]): Exited: Terminated
Aug 15 21:07:12 s-mac-pro com.apple.launchd[106] (0x1093a0.Locum[235]): Exited: Terminated
Aug 15 21:07:39 s-mac-pro configd[42]: PMSettingsPSChange() AC Power
Aug 15 21:07:57 s-mac-pro mDNSResponder[30]: mDNSPlatformRawTime: last_mach_absolute_time 107B8CB5000001D6
Aug 15 21:07:57 s-mac-pro mDNSResponder[30]: mDNSPlatformRawTime: this_mach_absolute_time 107B1A11000001D6
Aug 15 21:07:58 s-mac-pro loginwindow[31]: DEAD_PROCESS: 0 console
Aug 15 21:07:58 s-mac-pro kextd[10]: error reconsidering volume /Volumes/WINXP
Aug 15 21:07:58 s-mac-pro kextd[10]: error reconsidering volume /Volumes/DATA
Aug 15 21:07:58 s-mac-pro com.apple.loginwindow[31]: Shutdown NOW!
Aug 15 21:07:58 s-mac-pro shutdown[240]: reboot by spark: 
Aug 15 21:07:58 s-mac-pro com.apple.loginwindow[31]: System shutdown time has arrived^G^G
Aug 15 21:07:58 s-mac-pro org.osx86.localtime-toggle[21]: localtime-toggle: Toggling to localtime.
Aug 15 21:07:58 s-mac-pro mDNSResponder mDNSResponder-171.4 (Apr 20 2008 11:59:52)[30]: stopping
Aug 15 21:07:58 s-mac-pro com.apple.loginwindow[31]: Keyboard Layouts: duplicate keyboard layout identifier 1111.
Aug 15 21:07:58 s-mac-pro com.apple.loginwindow[31]: Keyboard Layouts: keyboard layout identifier 1111 has been replaced with 16383.
Aug 15 21:07:58 s-mac-pro shutdown[240]: SHUTDOWN_TIME: 1218827278 396880
Aug 15 23:07:00 s-mac-pro org.osx86.localtime-toggle[21]: Fri Aug 15 21:07:00 UTC 2008
Aug 15 23:07:00 s-mac-pro com.apple.launchd[1] (org.osx86.localtime-toggle[21]): Stray process with PGID equal to this dead job: PID 77 PPID 76 sleep
Aug 15 23:07:00 s-mac-pro com.apple.launchd[1] (org.osx86.localtime-toggle[21]): Stray process with PGID equal to this dead job: PID 76 PPID 1 sh
Aug 15 23:07:00 s-mac-pro date[247]: date set by root
Aug 15 21:07:59 s-mac-pro date[247]: OLD_TIME: 1218827279 35247
Aug 15 23:07:00 s-mac-pro date[247]: NEW_TIME: 1218834420 0
Aug 15 23:07:00 s-mac-pro sudo[261]:	 root : TTY=unknown; PWD=/; USER=root; COMMAND=/bin/kill -9 169
Aug 15 23:07:34 localhost kernel[0]: npvhash=4095
Aug 15 23:07:32 localhost com.apple.launchctl.System[2]: launchctl: Dubious permissions on file (skipping): /Library/LaunchDaemons/com.distortedvista.istatmenusprocessserver.plist
Aug 15 23:07:33 localhost com.apple.launchctl.System[2]: launchctl: Please convert the following to launchd: /etc/mach_init.d/dashboardadvisoryd.plist
Aug 15 23:07:33 localhost com.apple.launchd[1] (org.cups.cupsd): Unknown key: SHAuthorizationRight
Aug 15 23:07:33 localhost com.apple.launchd[1] (org.ntp.ntpd): Unknown key: SHAuthorizationRight
Aug 15 23:07:34 localhost kextd[10]: 428 cached, 0 uncached personalities to catalog
Aug 15 23:07:34 localhost kernel[0]: hi mem tramps at 0xffe00000
Aug 15 23:07:34 localhost kernel[0]: PAE enabled
Aug 15 23:07:34 localhost kernel[0]: 64 bit mode enabled
Aug 15 23:07:34 localhost kernel[0]: Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386
Aug 15 23:07:34 localhost kernel[0]: standard timeslicing quantum is 10000 us
Aug 15 23:07:34 localhost kernel[0]: vm_page_bootstrap: 253063 free pages and 9081 wired pages
Aug 15 23:07:34 localhost kernel[0]: mig_table_max_displ = 79
Aug 15 23:07:34 localhost kernel[0]: Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Aug 15 23:07:34 localhost kernel[0]: AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
Aug 15 23:07:34 localhost kernel[0]: AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled
Aug 15 23:07:34 localhost kernel[0]: Loading security extension com.apple.security.TMSafetyNet
Aug 15 23:07:34 localhost kernel[0]: calling mpo_policy_init for TMSafetyNet
Aug 15 23:07:34 localhost kernel[0]: Security policy loaded: Safety net for Time Machine (TMSafetyNet)
Aug 15 23:07:34 localhost kernel[0]: Loading security extension com.apple.nke.applicationfirewall
Aug 15 23:07:34 localhost kernel[0]: Loading security extension com.apple.security.seatbelt
Aug 15 23:07:34 localhost kernel[0]: calling mpo_policy_init for mb
Aug 15 23:07:34 localhost kernel[0]: Seatbelt MACF policy initialized
Aug 15 23:07:34 localhost kernel[0]: Security policy loaded: Seatbelt Policy (mb)
Aug 15 23:07:34 localhost kernel[0]: Copyright (c) 1982, 1986, 1989, 1991, 1993
Aug 15 23:07:34 localhost kernel[0]: The Regents of the University of California. All rights reserved.
Aug 15 23:07:34 localhost kernel[0]: MAC Framework successfully initialized
Aug 15 23:07:34 localhost kernel[0]: using 5242 buffer headers and 4096 cluster IO buffer headers
Aug 15 23:07:34 localhost kernel[0]: IOAPIC: Version 0x20 Vectors 64:87
Aug 15 23:07:34 localhost kernel[0]: Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Aug 15 23:07:34 localhost kernel[0]: ACPI: System State [S0 S3 S4 S5] (S3)
Aug 15 23:07:34 localhost kernel[0]: Extension "com.apple.driver.AppleACPIPlatform" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.
Aug 15 23:07:34: --- last message repeated 2 times ---
Aug 15 23:07:34 localhost kernel[0]: Starting AppleACPIPS2Nub
Aug 15 23:07:34 localhost kernel[0]: Found mouse PNP device
Aug 15 23:07:34 localhost kernel[0]: AppleACPIPS2Nub startup complete
Aug 15 23:07:34 localhost kernel[0]: mbinit: done
Aug 15 23:07:34 localhost kernel[0]: Security auditing service present
Aug 15 23:07:34 localhost kernel[0]: BSM auditing present
Aug 15 23:07:34 localhost kernel[0]: From path: "uuid", 
Aug 15 23:07:34 localhost kernel[0]: Waiting for boot volume with UUID A8727FC8-F2DC-3E82-825D-B2D926BE063E
Aug 15 23:07:34 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
Aug 15 23:07:34 localhost kernel[0]: Class "AppleEHCIedMemoryBlock" is duplicate
Aug 15 23:07:34 localhost kernel[0]: Duplicate class
Aug 15 23:07:34 localhost kernel[0]: kmod_control/start failed for com.orByte.driver.PCGenUSBEHCI; destroying kmod
Aug 15 23:07:34 localhost kernel[0]: ^[[33mFailed to load extension com.orByte.driver.PCGenUSBEHCI.
Aug 15 23:07:34 localhost kernel[0]: ^[[0mAppleIntelPIIXPATA: Secondary PCI IDE channel is disabled
Aug 15 23:07:34 localhost kernel[0]: IOPCCardBridge::start failed
Aug 15 23:07:34 localhost kernel[0]: Class "AppleEHCIedMemoryBlock" is duplicate
Aug 15 23:07:34 localhost kernel[0]: Duplicate class
Aug 15 23:07:34 localhost kernel[0]: kmod_control/start failed for com.orByte.driver.PCGenUSBEHCI; destroying kmod
Aug 15 23:07:34 localhost kernel[0]: ^[[33mFailed to load extension com.orByte.driver.PCGenUSBEHCI.
Aug 15 23:07:34 localhost kernel[0]: ^[[0mGot boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDriver/ST9160824AS Media/IOFDiskPartitionScheme/Untitled 6@6
Aug 15 23:07:34 localhost kernel[0]: BSD root: disk0s6, major 14, minor 3
Aug 15 23:07:34 localhost kernel[0]: Jettisoning kernel linker.
Aug 15 23:07:34 localhost kernel[0]: Resetting IOCatalogue.
Aug 15 23:07:34 localhost kernel[0]: VID: family specific matching fails
Aug 15 23:07:34 localhost kernel[0]: display: family specific matching fails
Aug 15 23:07:34 localhost kernel[0]: Matching service count = 0
Aug 15 23:07:34 localhost kernel[0]: Matching service count = 2
Aug 15 23:07:34: --- last message repeated 4 times ---
Aug 15 23:07:34 localhost kernel[0]: display: family specific matching fails
Aug 15 23:07:34 localhost kernel[0]: VID: family specific matching fails
Aug 15 23:07:34 localhost kernel[0]: ACPI_SMC_CtrlLoop::initCPUCtrlLoop - pmCPUControl (PMIOCSETPSTATETABLE) returned 0xffffffff
Aug 15 23:07:35 localhost kernel[0]: VID: family specific matching fails
Aug 15 23:07:35 localhost kernel[0]: display: family specific matching fails
Aug 15 23:07:38 localhost fseventsd[35]: bumping event counter to: 0x268c (current 0x0) from log file '0000000000000004'
Aug 15 23:07:38 localhost rpc.statd[26]: statd.notify - no notifications needed
Aug 15 23:07:40 localhost bootlog[44]: BOOT_TIME: 1218834449 0
Aug 15 23:07:41 localhost kernel[0]: VID: family specific matching fails
Aug 15 23:07:41 localhost kernel[0]: Alkor: Starting.
Aug 15 23:07:41 localhost kernel[0]: Chosen model GMA X3100
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting built-in=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL,HasPanel=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL,SelfRefreshSupported=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL,NumFramebuffers=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL,NumDisplays=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL01,Depth=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL01,Pipe=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL01,DataJustify=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: display: family specific matching fails
Aug 15 23:07:41 localhost kernel[0]: Alkor: Starting.
Aug 15 23:07:41 localhost kernel[0]: Chosen model GMA X3100
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting built-in=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL,HasPanel=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL,SelfRefreshSupported=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL,NumFramebuffers=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL,NumDisplays=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL01,Depth=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL01,Pipe=<data not shown>
Aug 15 23:07:41 localhost kernel[0]: Alkor: Setting AAPL01,DataJustify=<data not shown>
Aug 15 23:07:41 localhost DirectoryService[40]: Launched version 5.4 (v514.21)
Aug 15 23:07:41 localhost DumpPanic[38]: Error getting a reference to IODeviceTree:/options
Aug 15 23:07:41 localhost socketfilterfw[46]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 23:07:41 localhost com.apple.launchd[1] (com.apple.DumpPanic[38]): Exited with exit code: 1
Aug 15 23:07:42 localhost kernel[0]: dsmos: Initializing...
Aug 15 23:07:42 localhost /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow[31]: Login Window Application Started
Aug 15 23:07:42 localhost kernel[0]: dsmos: Hook and decryption contexts set!
Aug 15 23:07:42 localhost kernel[0]: IntelEnhancedSpeedStep: INFO  Initializing version 1.3.2 (C) Prashant Vaibhav <mercurysquad@yahoo.com>
Aug 15 23:07:42 localhost kernel[0]: dsmos: Starting...
Aug 15 23:07:42 localhost kernel[0]: IntelEnhancedSpeedStep: INFO  On your processor, voltages can be changed in 16 mV steps
Aug 15 23:07:42 localhost kernel[0]: IntelEnhancedSpeedStep: INFO  Using 3 PStates.
Aug 15 23:07:42 localhost configd[42]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 23:07:42 localhost securityd[27]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 23:07:42 localhost diskarbitrationd[39]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 23:07:42 localhost mds[29]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 23:07:42 localhost DirectoryService[40]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 23:07:42 localhost loginwindow[31]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 23:07:42 localhost org.osx86.localtime-toggle[21]: localtime-toggle: Toggling to UTC.
Aug 15 21:07:00 localhost date[72]: OLD_TIME: 1218834462 959453
Aug 15 21:07:00 localhost date[72]: NEW_TIME: 1218827220 0
Aug 15 21:07:00 localhost org.osx86.localtime-toggle[21]: Fri Aug 15 21:07:00 CEST 2008
Aug 15 21:07:00 localhost date[72]: date set by root
Aug 15 21:07:00 localhost CoreRAIDServer[41]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 21:07:00 localhost backupd-helper[70]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 21:07:00 localhost WindowServer[76]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 21:07:00 localhost ifcstart[33]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 21:07:00 localhost kernel[0]: display: Not usable
Aug 15 21:07:00 localhost /usr/sbin/ocspd[77]: starting
Aug 15 21:07:00 localhost mDNSResponder mDNSResponder-171.4 (Apr 20 2008 11:59:52)[30]: starting
Aug 15 21:07:01 localhost configd[42]: PMSettingsPSChange() AC Power
Aug 15 21:07:01 localhost org.ntp.ntpd[22]: Error : nodename nor servname provided, or not known
Aug 15 21:07:01 localhost ntpdate[83]: can't find host time.euro.apple.com
Aug 15 21:07:01 localhost ntpdate[83]: no servers can be used, exiting
Aug 15 21:07:01 localhost mDNSResponder[30]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 21:07:01 localhost DMProxy[86]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 21:07:01 localhost ATSServer[93]: _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
Aug 15 21:07:01 s-mac-pro configd[42]: setting hostname to "s-mac-pro.local"
Aug 15 21:07:03 s-mac-pro fseventsd[35]: log dir: /Volumes/WINXP/.fseventsd getting new uuid: 9B8A2B15-D336-4A9B-BAD9-8CE78F5E1A6A
Aug 15 21:07:05 s-mac-pro fseventsd[35]: log dir: /Volumes/DATA/.fseventsd getting new uuid: 81860CDB-39DD-4506-93C0-DE786C56472F
Aug 15 21:07:07 s-mac-pro loginwindow[31]: Login Window Started Security Agent
Aug 15 21:07:07 s-mac-pro /System/Library/CoreServices/ManagedClient.app/Contents/MacOS/ManagedClient[122]: ODUEthernetAddress(): GetEthernetAddress()== 5
Aug 15 21:07:08 s-mac-pro authorizationhost[125]: MechanismInvoke 0x127f90 retainCount 2
Aug 15 21:07:08 s-mac-pro SecurityAgent[130]: MechanismInvoke 0x2429e30 retainCount 1
Aug 15 21:07:09 s-mac-pro configd[42]: PMSettingsPSChange() AC Power
Aug 15 21:07:09 s-mac-pro loginwindow[31]: Login Window - Returned from Security Agent
Aug 15 21:07:09 s-mac-pro SecurityAgent[130]: MechanismDestroy 0x2429e30 retainCount 1
Aug 15 21:07:09 s-mac-pro authorizationhost[125]: MechanismDestroy 0x127f90 retainCount 2
Aug 15 21:07:09 s-mac-pro loginwindow[31]: USER_PROCESS: 31 console
Aug 15 21:07:09 s-mac-pro com.apple.launchd[1] (com.apple.UserEventAgent-LoginWindow[101]): Exited: Terminated
Aug 15 21:07:10 s-mac-pro kextd[10]: writing kernel link data to /var/run/mach.sym
Aug 15 21:07:22 s-mac-pro /System/Library/CoreServices/coreservicesd[60]: SFLSharePointsEntry::CreateDSRecord: dsCreateRecordAndOpen(= ='s Public Folder) returned -14135
Aug 15 21:07:23 s-mac-pro Dock[140]: [QL ERROR] Generator database update takes too long... we will use what we currently have
Aug 15 21:07:27: --- last message repeated 2 times ---
Aug 15 21:07:27 s-mac-pro com.apple.loginwindow[31]: ODUEthernetAddress(): GetEthernetAddress()== 5
Aug 15 21:07:27 s-mac-pro SystemUIServer[143]: \n	MenuCracker\n	see http://sourceforge.net/projects/menucracker\n	MenuCracker is now loaded. Ready to accept new menus. Ignore the failure message that follow.
Aug 15 21:07:29 s-mac-pro SystemUIServer[143]: failed to load Menu Extra: NSBundle </Users/spark/Library/Application Support/iStat menus/Extras/MenuCracker.menu> (loaded)
Aug 15 21:07:29 s-mac-pro loginwindow[31]: Unable to resolve startup item: status = -43, theURL == NULL = 1
Aug 15 21:07:30 s-mac-pro SystemUIServer[143]: MenuCracker: Loading 'iStatMenusCPU'.
Aug 15 21:07:34 s-mac-pro SystemUIServer[143]: MenuCracker: Loading 'iStatMenusMemory'.
Aug 15 21:07:41 s-mac-pro mDNSResponder[30]: mDNSPlatformRawTime: last_mach_absolute_time F8A48C560000000C
Aug 15 21:07:41 s-mac-pro mDNSResponder[30]: mDNSPlatformRawTime: this_mach_absolute_time F8A10FE40000000C
Aug 15 21:07:41 s-mac-pro mDNSResponder[30]: mDNSPlatformRawTime went backwards by 1 ticks; setting correction factor to 231182393
Aug 15 21:07:44 s-mac-pro quicklookd[150]: [QL ERROR] 'Creating thumbnail' timed out for '<QLThumbnailRequest /Users/spark/Desktop/MVI_0291.AVI>'
Aug 15 21:07:49 s-mac-pro configd[42]: PMSettingsPSChange() AC Power
Aug 15 21:08:05 s-mac-pro [0x0-0x13013].com.apple.systempreferences[160]: objc[160]: Class O3Panel is implemented in both /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Contrast.monitorPanel/Contents/MacOS/Contrast and /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Geometry.monitorPanel/Contents/MacOS/Geometry. Using implementation from /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Geometry.monitorPanel/Contents/MacOS/Geometry.
Aug 15 21:08:06 s-mac-pro [0x0-0x13013].com.apple.systempreferences[160]: objc[160]: Class O3Panel is implemented in both /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Geometry.monitorPanel/Contents/MacOS/Geometry and /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/VPT.monitorPanel/Contents/MacOS/VPT. Using implementation from /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/VPT.monitorPanel/Contents/MacOS/VPT.
Aug 15 21:08:06 s-mac-pro [0x0-0x13013].com.apple.systempreferences[160]: objc[160]: Class O3Panel is implemented in both /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/VPT.monitorPanel/Contents/MacOS/VPT and /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Bezel.monitorPanel/Contents/MacOS/Bezel. Using implementation from /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Bezel.monitorPanel/Contents/MacOS/Bezel.
Aug 15 21:08:06 s-mac-pro [0x0-0x13013].com.apple.systempreferences[160]: objc[160]: Class O3Panel is implemented in both /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Bezel.monitorPanel/Contents/MacOS/Bezel and /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/ExtendedTouchSwitch.monitorPanel/Contents/MacOS/ExtendedTouchSwitch. Using implementation from /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/ExtendedTouchSwitch.monitorPanel/Contents/MacOS/ExtendedTouchSwitch.
Aug 15 21:08:06 s-mac-pro [0x0-0x13013].com.apple.systempreferences[160]: objc[160]: Class O3Panel is implemented in both /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/ExtendedTouchSwitch.monitorPanel/Contents/MacOS/ExtendedTouchSwitch and /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/PowerMode.monitorPanel/Contents/MacOS/PowerMode. Using implementation from /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/PowerMode.monitorPanel/Contents/MacOS/PowerMode.
Aug 15 21:08:06 s-mac-pro [0x0-0x13013].com.apple.systempreferences[160]: objc[160]: Class O3Panel is implemented in both /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/PowerMode.monitorPanel/Contents/MacOS/PowerMode and /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Authorization.monitorPanel/Contents/MacOS/Authorization. Using implementation from /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Authorization.monitorPanel/Contents/MacOS/Authorization.
Aug 15 21:08:06 s-mac-pro [0x0-0x13013].com.apple.systempreferences[160]: objc[160]: Class O3Panel is implemented in both /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/Authorization.monitorPanel/Contents/MacOS/Authorization and /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/TVOptions.monitorPanel/Contents/MacOS/TVOptions. Using implementation from /System/Library/MonitorPanels/AppleDisplay.monitorPanels/Contents/Resources/TVOptions.monitorPanel/Contents/MacOS/TVOptions.

Link to comment
Share on other sites

I've found another small, but not less important thing.

 

Take a look at the GMA950 users, in other posts they say using the kext from Leopard(FOR 950) they can't control brightness but using the AppleIntelIntegratedFramebuffer.kext from version 10.4.3 in Leopard the can.

 

So the first thing is: the 10.4.3 kext was for Mac Mini(without LCD and so without backlight control), then I disassemble the code of the AppleIntelIntegratedFramebuffer.kext(the versions that came with 10.5.4 and 10.4.3) and I clearly see in it, that 10.4.3 have no functions named backlight, but 10.5.4 have function named backlight.

 

If you take a look at X3100 Framebuffer is the same... has the functions for backlight in it.

 

So it would be wonderful to "open" the X3100 Framebuffer and remove the backlight functions but HOW TO DO IT?

 

 

Here are the ASM code for the two kext mentioned before, so you can see in person what I am talking about...

AppleIntelIntegratedFramebuffer.txt

AppleIntelIntegratedFramebuffer_noback.txt

AppleIntelGMAX3100FB.txt

Link to comment
Share on other sites

cele_82, Looks like this is possibly the only hurdle (from your AppleIntelGMAX3100FB output):

loc_668B:
cmp dword ptr [ebx+9Ch], 0A2106Bh
mov edi, 56h ; 'V'
jnz loc_65DE
jmp loc_65E3

with loc_65E3 being where (I think??) our functionality is turned off. The cmp there is probably there for a good reason (??), meaning if we changed that jnz to a jmp on its own and took out the other, we might be ok...or we might break everything! I know almost zero assembler though.

Also, open up IORegistryExplorer (xcode app) and look at:

IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/VID@2/AppleIntelFrameBuffer/display0/AppleDisplay/IODisplayParameters

and check out the values under 'bklt' :

max: number 0x1ee (32bit)
min: number 0x0
value: number 0x1ee


I'm using a Thinkpad T61 which has a 'normal' and 'high' default brightness setting in the BIOS. I'm currently at 'normal'. I'll reboot into 'high' and see if that max changes.
edit: no change in either brightness or the max # seen.

and, fwiw, when I change register F4 with setpci, the driver does not set them back, but of course nothing happens (however the same command under linux works perfectly);

food for thought!

Could anyone tell me how to reassemble this kext after disassembling and editing it? NASM gives me a ton of errors, probably meaning that the .asm format is wrong (using otool -tV output myself, no IDA here)

Link to comment
Share on other sites

OK, so in reading this:

 

http://www.google.com/url?sa=t&ct=res&...8L4BSU7L3lbU-pA

 

And a bit of the PDF posted at top, it seems that the F4 register only triggers an interrupt---and whether or not this interrupt is handled/seen is set by a mask (the IMR). Under linux it's likely this interrupt is unmasked, but os x is ignoring it, either by a) not handling it, or :) not wanting to hear about it. Check out pages 186, 246 and 236 in that PDF.

 

These registers (the IMR and IER) are both R/W, but I have no clue how to address them with setpci or Reggie SE. Any ideas? The code in the linux macbook backlight hal code might be a good starting point, but I don't know C well enough at all to think of making that work in OS X (with its offsets).

Link to comment
Share on other sites

Very interesting findings, laurier57 - knowing the problems is the first step to solving it. So one can stop fiddling around with the F4 register and different framebuffer versions, as the result is clear.

 

I also have no idea how to address a "unknown" register/o.s. with setpci. I tried that for my fan control but with now luck. But perhaps this will lead to another idea...

Link to comment
Share on other sites

OK, so in reading this:

 

http://www.google.com/url?sa=t&ct=res&...8L4BSU7L3lbU-pA

 

And a bit of the PDF posted at top, it seems that the F4 register only triggers an interrupt---and whether or not this interrupt is handled/seen is set by a mask (the IMR). Under linux it's likely this interrupt is unmasked, but os x is ignoring it, either by a) not handling it, or :( not wanting to hear about it. Check out pages 186, 246 and 236 in that PDF.

 

These registers (the IMR and IER) are both R/W, but I have no clue how to address them with setpci or Reggie SE. Any ideas? The code in the linux macbook backlight hal code might be a good starting point, but I don't know C well enough at all to think of making that work in OS X (with its offsets).

 

 

Thank you to make me point to this address also this document is very very interesting...

 

http://www.intellinuxgraphics.org/VOL_3_di...y_registers.pdf

 

When I have time I will try something...

Link to comment
Share on other sites

Any news yet? Just setted up my 6710b and same issue ;-) Not solved since beginning of this year. It's the online thing I really need before I can use OS X on my hp in productive mode.

Can I do anything to help maybe?

 

KlyX

Link to comment
Share on other sites

 Share

×
×
  • Create New...