Jump to content
pernacabeluda

Como corrigir a memória de vídeo

Recommended Posts

Em alguns casos o GraphicsEnabler do Chameleon funciona para ativar o vídeo, porém a quantidade de VRAM aparece errada. Isso é apenas visual, mas para quem quiser acertar, aqui vai uma forma:


Rode este comando no terminal para obter o string device-properties gerado pelo Chameleon

ioreg -lw0 -p IODeviceTree -n efi -r -x | grep device-properties | sed 's/.*<//;s/>.*//;' > ~/Desktop/device-properties.hex

Converta para plist (coloque o gfxutil no desktop)

cd ~/Desktop
./gfxutil -s -n -i hex -o xml device-properties.hex device-properties.plist

Edite a VRAM no device-properties.plist

		<key>VRAM,totalsize</key>
	<string>0x40000000</string>

O valor está em hexa, pode converter para decimal usando a calculadora no modo programador, mas normalmente basta dividir ou dobrar o valor que você já conhece.

Exemplos:

0x20000000 = 536870912 (bytes / 1024^2 = 512 MB)

0x40000000 = 1073741824 (bytes / 1024^2 = 1024 MB ou 1 GB)

0x80000000 = 2147483648 (bytes / 1024^2 = 2048 MB ou 2 GB)


Converta o device-properties.plist editado para hex

./gfxutil -i xml -o hex device-properties.plist device-properties-new.hex

Copie o string do arquivo device-properties-new.hex para a chave device-properties no arquivo /Extra/org.chameleon.Boot.plist

   <key>device-properties</key>
  <string>cole o string aqui</string>

Desative o GraphicsEnabler (ou remova a opção)

   <key>GraphicsEnabler</key>
  <string>No</string>

 

Fonte:

http://Olarila.com/forum/viewtopic.php?f=2&t=40


Para quem usa Clover o ajuste pode ser feito através da opção VRAM no config.plist

	<key>Graphics</key>
<dict>
	<key>Inject</key>
	<true/>
	<key>VRAM</key>
	<integer>1024</integer>
</dict>

gfxutil.zip

Edited by Guest

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Link to comment
Share on other sites

Bom tópico


Eu estou com uma GTX 580 3gb da Palit para testar , com certeza vou aproveitar essas dicas.


obrigado.

ASUS P6X58D-E/12GB/i7-960 8MB 3.20GHz/NVIDIA GTX 650/WINDOWS 10/YOSEMITE

X87-DELL-16GB-DDR3-1600MHZ/XEON E3-1220v3 8MB/NVIDIA GTX1050/WINDOWS 10/XUBUNTU/OSX-SIERRA

Link to comment
Share on other sites

Não, agora mudou. O VRAM permanece igual mas o GraphicsInjector foi desmembrado


http://clover-wiki.zetam.org/Configuration/Graphics#VRAM


http://clover-wiki.zetam.org/Configuration/Graphics#Inject

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Link to comment
Share on other sites

Olha o que diz lá no wiki

Enabled by default.

ou seja, não faz diferença botar true ou nem botar nada.


GraphicsInjector não existe mais, já corrigi o primeiro post.


Isto é suficiente

   <key>Graphics</key>
  <dict>
     <key>VRAM</key>
     <integer>1024</integer>
  </dict>

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Link to comment
Share on other sites

Hello Fellas,


I'm trying to do this same commands, extracting with IOreg is working... but when trying to convert the HEX to PLIST I'm getting this message from gfxutil :


gfxutil: cannot convert from hex to bin, invalid hex inputfile 'device-properties.hex'!


Anyone experienced this ? Any help ?


Thank you !



A.

Link to comment
Share on other sites

Hello,


Now the commande worked, but the PLIST generated file doesn't look at all to what is described here, no VRAM or anything like that (see attachement Hex & Plist).


I'm booting with Clover, worth noticing to say that I tried the inject method but it didn't worked, so I'm willing to switch back to Chameleon if it can fix this GPU problem, since even in Cuda-Z the amount of VRAM is incorrect.


Thank you,


A.

files.zip

Link to comment
Share on other sites

Looks like those properties are generated by Clover and there's no video injection.


If you use Clover, set the VRAM option in config.plist (will work only if Inject=true)

http://clover-wiki.zetam.org/Configuration/Graphics#VRAM

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Link to comment
Share on other sites

Eu digitei a linha de codigo e apareceu o device-properties. hex so que na hora de converter ele não conveerte



aparece



cannot convert from hex to bin



eu li que era pra fazer se o hex tava vazio



mas como posso ver isso? e se tiver vazio o que devo fazer?

Link to comment
Share on other sites

Se está vazio é porque o vídeo não foi ativado injetando device-properties.


No Yosemite não funciona, dá a mensagem "invalid hex inputfile (filesize dont match or zero)".

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...