netkas.org

Archive for the 'Bugs' Category

Safari pop-up hell

Recently was browsing some site using ipad and the site openned some junky link in background, that background link started spamming me with popups which I can’t get rid off.

Here is an example of such thing – open me. it’s safer because starts spamming you only after you press the button, unlike original, so you can kill safari then start it again and close the tab.

Desktop safari has same issue. Opera and Chrome let you stop the script, firefox lets you close the tab, Safari – you can only close safari with all of its tabs.

Rare voices bug fix

If you have rare bug with selecting voices in sysprefs, like this one
in short:

MLWR init error: 80000012
CFBundle 0×400324040 (not loaded)

Then the fix is easy

sudo rm -rf /Library/Speech/Synthesizers/MultiLingual.SpeechSynthesizer

Running openCL on gtx670


more here

long story short – by default opencl doesnt work on gk104 but works on apple’s gk107 from new mbps. Now it works on gk104 (gtx670-gtx690)

Update: obviously ML drivers are much better (still need a patch so)

MBP2012/10.7.5 nvidia drivers are leaky

The nvidia drivers from mbp2012(and from 10.7.5 beta, they are same) are really leaky one.

For example, yeasterday I had a site with many flash ads openned in opera and bam, kernel (kernel_task, video driver is part of it) eats 690 MB of memory. Normally its around 200mb.

Watching an online video in flash player – 700 mb for kernel_task

Only happens when nvidia card installed, no problem with ati.

Be aware.

Updated IOPCIFamily for Mountain Lion

It’s an old IOPCIFamily upgraded to work with new AppleACPIPlatform and Mountain Lion, as I described ealier.

Updated it to fix missing symbols for dp2 wifi drivers and applethunderbolt kexts.

Sources and Binaries

Again AppleUSBUHCI and Acer

remember this?

Turns out the problems caused by builtin bluetooth module, which is attached to USB3 (not usb3.0) port.

So to fix that problem, which happens a lot even if it’s “Safe Boot”, I have to exclude my USB3 from AppleUSBUHCI’s plist.

Some usefull table

USB1 - 0x2830 or 0x3a34
USB2 - 0x2831 or 0x3a35
USB3 - 0x2832 or 0x3a36 <-- BT here
USB4 - 0x2834 or 0x3a37
USB5 - 0x2835 or 0x3a38
USB6 - 0x3a39

Open /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBUHCI.kext/Contents/Info.plist

find
<key>IOPCIClassMatch</key>
<string>0x0C030000</string>

replace with

<key>IOPCIMatch</key>
<string>0x28308086 0x28318086 0x28348086 0x28358086</string>

APSL violation.

As we recently discovered, psy’s DUBL is based on opensource boot-132

here is small part of APSL

2.1 Unmodified Code. You may use, reproduce, display, perform, internally distribute within Your organization, and Externally Deploy verbatim, unmodified copies of the Original Code, for commercial or non-commercial purposes, provided that in each instance:

(a) You must retain and reproduce in all copies of Original Code the copyright and other proprietary notices and disclaimers of Apple as they appear in the Original Code, and keep intact all notices in the Original Code that refer to this License; and

(b) You must include a copy of this License with every copy of Source Code of Covered Code and documentation You distribute or Externally Deploy, and You may not offer or impose any terms on such Source Code that alter or restrict this License or the recipients’ rights hereunder, except as permitted under Section 6.

2.2 Modified Code. You may modify Covered Code and use, reproduce, display, perform, internally distribute within Your organization, and Externally Deploy Your Modifications and Covered Code, for commercial or non-commercial purposes, provided that in each instance You also meet all of these conditions:

(a) You must satisfy all the conditions of Section 2.1 with respect to the Source Code of the Covered Code;

(b) You must duplicate, to the extent it does not already exist, the notice in Exhibit A in each file of the Source Code of all Your Modifications, and cause the modified files to carry prominent notices stating that You changed the files and the date of any change; and

(c) If You Externally Deploy Your Modifications, You must make Source Code of all Your Externally Deployed Modifications either available to those to whom You have Externally Deployed Your Modifications, or publicly available. Source Code of Your Externally Deployed Modifications must be released under the terms set forth in this License, including the license grants set forth in Section 3 below, for as long as you Externally Deploy the Covered Code or twelve (12) months from the date of initial External Deployment, whichever is longer. You should preferably distribute the Source Code of Your Externally Deployed Modifications electronically (e.g. download from a web site).

So, here is email I sent to them on 29 Oct., and got no answer:

Hello,

It was recently discovered that part of your RebelEFI, the DUBL is based on opensource boot-132, which is provided under APSL2 terms.

I downloaded trial demo from your site, and want to get sources of DUBL as well, where can I get them?

Also there is no copy of APSL license comes with DUBL.

Enjoy

Found this link, translated to en – DUBL extracted

original in russian – кишки dubl

There is complete content of DUBL, including kexts.

lets see what is the DUBL, it’s clearly see that it is boot-132 based bootloader, which is under APSL, so, psys<whatever>, where is sources ?

here is some strings that matched in boot-132 based pc-efi(u can check any other boot-132 based booter like Chameleon, boot-think) and DUBL(filename – cdboot):

Memory allocation error (0x%x, 0x%x)

whole blocks:

VESA
VESA v%d.%d %d%s (%s)
Video modes supported:
Mode %x: %dx%dx%d mm:%d attr:%x
(Press a key to continue…)
Graphics Mode
Text Mode

Driver-%lx
kernel compression is bad
size mismatch from lzss: %x
adler mismatch

Timeout
Scanning device %x…
CD-ROM Prompt
Press any key to start up from CD-ROM, or press F8 to enter startup options.
CD-ROM Option Key
Press any key to enter startup options.
Use
keys to select the startup volume.

BIOS reported memory ranges:
Base 0x%08x%08x,
length 0x%08x%08x, type %d

Resetting BIOS device %xh
raw disk read not sector aligned
Block %d Sectors %d
raw disk write not sector aligned
EBIOS write error: %s

/com.apple.boot.P/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
/com.apple.boot.R/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
/com.apple.boot.S/Library/Preferences/SystemConfiguration/com.apple.Boot.plist

I hope this is enough, because there is much more.

Parasites, such parasites.

You all know who I’m talking about.

HPETDevice kext

This kext creates HPET device in ioreg, so you dont need(if you need) to edit DSDT to get it.

Originaly I created this kext for myself, because if HPET was enabled in DSDT then my pci wifi device was loosing interrupt and wasnt working, so this kext is workaround for it.

You can use it if you want to get HPET device in ioreg and are lazy to edit DSDT.

by default it uses these parametrs for HPET device (in Info.plist):

<key>base-address</key>
<integer>4275044352</integer>
<key>base-length</key>
<integer>1024</integer>
<key>irq</key>
<integer>12</integer>

which correspond to this:

Memory32Fixed (ReadWrite,
0xFED00000, // Address Base
0×00000400, // Address Length
)

I dont recommend editing irq :) .

The kext, for use with snow leopard:
HPETDevice.tar.bz2

Leopard version

Next Page »