IVgaswitcheroo ekusatshalalisweni okususelwa ku-Debian

Njengoba abanye benu bekwazile ukufunda kulesi sithangami, bengiphakamise ukuthi ngifake eyami ihluzo ze-hybrid (ATI / Intel) kokunye ukusatshalaliswa okuningi okukhona, ngoba labo abaziyo lobu bubi, nizokwazi ukuthi uhlelo lushiya imidwebo yomibili noma ngabe lisebenzisa okukodwa kwalokhu okubili, ngaleyo ndlela kuncishiswe impilo yebhethri kakhulu, nokunikeza iPC yakho amandla amasha amakhulu, lawo okuthosa amaqanda ngaphezulu kwawo.

Ukuzisola okukhulu, bekufanele ngikuyeke lokho, ngoba, akukho kokunye ukusatshalaliswa engikuhlolile (Debian, I-OpenSuse, Xubuntu y I-Linux MintNgithole imiphumela emihle. Lokhu kuholele kwesinye isitatimende senkinga:

Ungawathola kanjani amanye amagrafu amabili, kimi i-ATI, ihlala kuvaliwe?

Isixazululo, njengoba uzobona ngezansi, senziwa kumongo wokusabalalisa esikuthandayo futhi sibizwa kanjalo yingaboy. Futhi ngezansi unenqubo, lapho sicabanga ukuthi iphakheji i-firmware-linux-nonfree ifakiwe, ukuze uyisebenzise futhi uyijabulele:

Okokuqala kufanele sithole ukuthi ngabe i- umnyombo unenketho yokusebenzisa yingaboy:

$ grep -i-switcheroo / boot / config- *

Yini ezobuyisa umugqa esigungwini sethu kanjena:

CONFIG_VGA_SWITCHEROO = y

Uma okukhiphayo kuhlukile, kuzofanela ubuyisele i- umnyombo ukwengeza inketho ku- yingaboy. Okwesibili, siyabona ukuthi ifayili «/ sys / kernel / debug / vgaswitcheroo / switch » ikhona. Kuleli qophelo kufanele kwenziwe umehluko:

Ekusatshalalisweni okususelwa ku- Ubuntu leli fayela liyatholakala noma kufanele litholakale ngokuzenzakalela. Ngenkathi kusatshalaliswa njenge Debian, ifolda lungisa awunalo olunye ucingo yingaboy futhi kuzothatha ezinye izinyathelo ezimbalwa.

Ukuze ifolda ihlale ifinyeleleka futhi ikwazi ukufinyelela kufayela switch, kufanele sikhuphule ifolda yokulungisa iphutha ngokulandelayo (njalo kusuka ku-superuser):

  1. # i-mountpoint -q / sys / kernel / debug
  2. # mount -t debugfs none / sys / kernel / debug
  3. # echo "none / sys / kernel / debug debugfs defaults 0 0" >> / njll / fstab

Isinyathelo 3 singakwenza ngesandla. Imayelana nokwengeza ulayini none / sys / kernel / debug debugfs okuzenzakalelayo 0 0 ukufaka ifayela / njll / fstab ukuze ifolda ye-vgaswitcheroo ihlale ifinyeleleka noma ngemuva kokuqalisa kabusha.

Uma lokhu sekwenziwe singabheka ifayili lethu switch ngaphakathi kwefolda yingaboy, ngokusebenzisa:

# ikati / sys / kernel / debug / vgaswitcheroo / switch

futhi lokhu kubuyisa umphumela ofana nalowo osesithombeni:

yingaboy
Okukhiphayo kwakho kungaba okuhlukile (Zonke zikumodi ye-Pwr, ngokwesibonelo). Kuleli fayela sinezinto eziningana okufanele siziphawule. Igama DIS ihambelana ne umdwebo ozinikele (kimi, i-ATI). Igama I-IGD ihambelana ne ihluzo kuhlanganiswe ku-CPU (i-Intel). Isiphambano, +, hlola ifayela le- igrafu Ikona usebenzisa ngaleso sikhathi. Futhi ekugcineni, ukuphela Pwr o Off, Bukela ku isimo sehluzo.

Ngalokhu singasebenza noma sisebenzise igrafu esiyifunayo ngemiyalo ethile:

  • Vala igrafu ezinikezele:
# echo OFF> / sys / kernel / debug / vgaswitcheroo / switch
  • Vula igrafu ezinikezele:
# echo ON> / sys / kernel / debug / vgaswitcheroo / switch
  • Shintsha phakathi kokuhlanganiswa nokuzinikezela:
# echo DIGD> / sys / kernel / debug / vgaswitcheroo / switch # echo DDIS> / sys / kernel / debug / vgaswitcheroo / switch

Ekugcineni, ukunikeza izimvume kumsebenzisi wethu ojwayelekile futhi ngaleyo ndlela sikwazi ukwenza imibhalo ekuqaleni, ngokwesibonelo, kuzofanele senze:

# chmod -R 705 / sys / kernel / debug # chown -R umsebenzisi: umsebenzisi / sys / kernel / debug / vgaswitcheroo
Ukuguqula izimvume zanoma iyiphi ifolda kusistimu kungaba nobungozi. Ngincoma ukukwenza ngentando yakho. Endabeni yalo mhlahlandlela, inqubo yenziwa ekuhlolweni kwe-Debian, ngakho-ke ezinye izinyathelo zingahluka lapha kunezinye izimpahla.

Ngiyethemba kuyakusiza ukukhama kangcono ukusebenza kwama-laptops akho noma okungenani unciphise ukushisa abakunikezayo.

Un saludo!

Fuentes: Uhlu Lwamakheli we-Debian | I-LinuxQuestion


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-23, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   U-Ivan Barra kusho

    Idatha enhle kakhulu, okungenani, yeNvidia (icala lami), kukhona iphrojekthi yeBumblebee, esebenza kahle ku-OpenSUSE 12.3, Fedora 1x nakwamanye ama-distros asuselwa ku-RPM, ku-Ubuntu isebenza kahle, kepha kokunye kususelwa ku .deb, kwesinye isikhathi iyalenga futhi kufanele ungene ukuze uqale kabusha.

    Ukubingelela nokubonga ngokwabelana.

    1.    UCarlos saldaña kusho

      ngiyaxolisa, uyazi ukuthi isebenza ku-debian 7 64bits ??

      1.    U-Ivan Barra kusho

        Yebo, uma kusebenza, ngizamile nge-debian futhi kusebenza kahle.

        http://wiki.debian.org/Bumblebee

        Yize ngincoma ukusebenzisa abashayeli abaphethe yebo noma yebo. Isisetshenziswa sokunikeza izimbungulu.

        Ukubingelela

        1.    UCarlos saldaña kusho

          Siyabonga ngolwazi

  2.   oksijini kusho

    Ngiyakuthanda tesla, ku-ubuntu ngikwazile ukusebenzisa i-vgaswitcheroo kodwa ku-debian ingitshela ukuthi angiyifakile, ngizozama namhlanje ntambama

    1.    Tesla kusho

      Ngiyethemba unenhlanhla.

      Ngicabanga ukuthi kusukela nge-kernel 3.2 isivele yenziwe yasebenza. Kepha noma kunjalo uma ungenakho ukukusebenzisa ungahlala uhlanganisa i-kernel bese uyisebenzisa.

      1.    oksijini kusho

        Sengivele ngise-debian futhi ngivivinya okokufundisa kukhona ukungqubuzana, esinyathelweni sokuqala kunginikeza okukhiphayo engikusebenzise i-vgaswicheroo, kepha lapho ngizoyisebenzisa yethula umyalezo

        bash: / sys / kernel / debug / vgaswitcheroo / switch: Ifayela noma umkhombandlela awukho

        Ngenze isinyathelo sokuxazulula lokhu ngazo zombili izindlela ngesandla nangomyalo (ngangizokwenza ngesandla kodwa lapho ngibona ifayili ngangivele nginalo nolayini, kepha kulelo fayela nganginomugqa kuphela)

        Futhi ngemuva kokwenza lesi sinyathelo kungiphonsela iphutha elifanayo

        1.    Tesla kusho

          Ngiphendula ngokuzenzakalela, ayikuvumeli ukuhlela okuthunyelwe, ngoba inika iphutha elibulalayo nezinye izinto engingaziqondi. Mhlawumbe omunye umphathi angasinikeza isandla.

          Mayelana ISINYATHELO 3: HLELA IFAYILI NGOKWENZAKALO HHAYI NJENGOBA LISHO NGOMQOQO WOMyalo !!!!

          Siyaxolisa ngokungalungile okungahle kudale wena. Kunoma ikuphi, kuhlale kunconywa lapho amafayela abalulekile eguqulwa ukwenza ikhophi uma kungenzeka!

          1.    oksijini kusho

            Ngomyalo umugqa wenziwe. Inkinga bekungeyami, njengoba ngiye ngqo endaweni yokwakha ngikhohlwa ukufaka i-firmware-linux-nonfree futhi ngaphezu kwalokho engxenyeni yesithathu kufanele ungeze umugqa kufayela le-rc.

            # chown your_user: your_user / sys / kernel / debug / vgaswitcheroo / switch

            Ngifakele abashayeli be-amd abaphathelene futhi isebenza njengekhubalo elingcono kunamawindi lapho i-flash ibingivimba njalo

            Muchas Gracias

          2.    Tesla kusho

            Ngiyajabula ukuthi konke kukuphelele! 🙂

            Ngokuqondene nefayela le- rc.local, angikaze ngilibeke ngoba angiqiniseki ngengozi lokhu okubandakanya. Futhi ngaphezu kwalokho, ngiyathemba ukuthi umuntu ngamunye uzokwenza ngokuvumelana nenqubo yakhe nezintandokazi zakhe. Abanye bangakhetha i-rc.local kanti abanye babela izimvume kuseshini ngayinye. Lokho kungukunambitheka komuntu ngamunye!

            Ukubingelela futhi ujabulele i-pc yakho!

  3.   Rots87 kusho

    0.0 ethokozisayo yize ingangisebenzeli ngizoyibheka lapho ngithenga i-ATI (i-nvidia yangibiza ngengalo nomlenze)

    1.    I-Yukiteru kusho

      I-NVIDIA kuLinux iphindwe izikhathi eziyisigidi kune-ATI, futhi kukhona eshibhile. I-GT 210, akubizi kakhulu ukusho, futhi kuhle ukudlala nokubona izinto zisezingeni elifanele futhi elinokucaca okuhle.

  4.   UCarlos saldaña kusho

    Ngine-xps 15 i7 ene-nvidia ye-2gb yevidiyo, sikhetha ukuthola amandla we-GT 640m futhi engxenyeni ethi inamandla amakhulu okuthosa amaqanda, into efanayo iyenzeka kimi, ngine-debian 7 64-bit .. Ngizozama ngale tuto, ngenza njani?

    1.    Tesla kusho

      OkweNvidia kukhona, njengoba kusho u-Iván Barra, uBumblebee. Labo abasebenzisa uNvidia kufanele ngaphambi kokuzama lokhu bazame ukwenza iBumblebee isebenze, nginabangane abaphumelele.

      Lokhu okuthunyelwe kuyisinqumo sokugcina uma konke okunye kwehluleka. Noma kunjalo, ukhululekile ukukhetha indlela yakho yokulwa neqanda! 😉

  5.   eliotime3000 kusho

    Okuthunyelwe okuhle. Ngiyethemba ukuthi lapho ngifaka iDebian 7 kwi-PC enevidiyo ye-NVIDIA ayiphenduki ibe yithosa leqanda.

  6.   Jacob kusho

    Ngikwenzile okungenhla futhi ngisusa idatha ku- "fstab" manje sekufanele ngikhuphule / ekhaya futhi ngishintshe ukwahlukanisa ngesandla. Kulungile lokho kwangisiza ngafunda okuthile okusha okufana ne- "mkswap" ne- "swapon". Manje ukubuyisela leli fayela elishiwo ngenhla.

    1.    Tesla kusho

      Angiqondi ukuthi kungani idatha yakho ye-fstab isusiwe. Noma kunjalo, ngicabanga ukuthi ngizohlela isinyathelo 3 futhi ngikwenze ngesandla, ngoba kunginika ukuthi i-bug ingaba lapho!

      1.    Jacob kusho

        Futhi nami asisebenzisi into efanayo ne-oxygenating. Ngicabanga ukuthi iphutha lami kwaba ukulandela izinyathelo zencwadi bese ngikhohlwa ukuqanjwa kabusha okuyisisekelo kokuthi "file.old" kepha kwangisiza ngoba manje ngiyazi ukuthi imiyalo yangaphambilini ikhona !!!

      2.    adrian15 kusho

        Kucacile :).

        The> Kumele kube >>.

        1.    Tesla kusho

          Siyabonga ngokucaciselwa.

          Kodwa-ke angikwazi ukuhlela okuthunyelwe ngenxa yesiphazamiso kubhulogi. Mhlawumbe izolungiswa ezinsukwini ezimbalwa ezizayo noma mhlawumbe kungenjalo, uma ilungiswa ngizoyishintsha.

          Sanibonani futhi ngiyabonga!

  7.   Dakar kusho

    Ngilokhu ngithola "/ sys / kernel / debug / vgaswitcheroo / switch: Ifayela noma umkhombandlela awukho"
    Ngiwafundile amazwana futhi ngazama ukwenza lokho abakuvezayo, kepha cha, kuhlala kunjalo ...
    Ngibheke yonke indawo, kepha angisitholi isixazululo D:

    1.    Tesla kusho

      Ingabe unayo iphakethe le-firmware-linux-nonfree elifakiwe? Yini ebuyisa umyalo: grep -i switcheroo / boot / config- * ??

      1.    URigel Ricardo Valladares Mendez kusho

        sawubona ekuseni, ntambama noma ebusuku kwenzeke into efanayo kimi njengo-dakar futhi lapho ngenza umyalo ngithola lokhu ngiyethemba usazoyiphendula le mibuzo
        impande @ Rigel-PC: ~ # grep -i switcheroo / boot / config- *
        /boot/config-3.16.0-4-amd64:CONFIG_VGA_SWITCHEROO=y
        /boot/config-3.16.0-5-amd64:CONFIG_VGA_SWITCHEROO=y