Momwe mungapangire mawonekedwe azithunzi mu Ubuntu

Zamgululi

Dentro mavuto omwe ndimakumana nawo kwambiri ndikayamba kusamukira ku Ubuntu fue mutu wa zisankho pazenera ndi zina zowonjezera zakudziwika kwa ma hardware, ndikulankhula za zaka 10 zapitazo, ndinali ndi vuto la masewera nthawi imeneyo.

Pachifukwa ichi ndidagwiritsa ntchito owunikira 3 ndikugwiritsa ntchito madoko a khadi yazithunzi komanso kuwonjezera pa icho ndi doko la bokosilo, lomwe mu Windows limatheka popanda, komano, mu Linux sindinathe kutero.

Komabe sichinthu chomwe chimafunikira monga ambiri a inu mungadziwire, malingaliro onse omwe angakhalepo amatsatiridwa mu Windows nthawi pa Linux okhawo oyenera kunena kotero pamene ndimafuna kupanga zowonetsera magalasi ndinakumana ndi vuto lalikulu, kuyambira mukamagwiritsa ntchito madoko a VGA imangowonetsa malingaliro ena ndili ndi DVI ndi HDMI zinthu zina zomwe zimayambitsa mikangano.

Kwa ichi Ndidapeza Xrandr chida chaching'ono chomwe chandithandiza kuthetsa mavuto anga. Poterepa tiyenera kukhala ndi owunikira onse omwe tidzawagwiritse ntchito kapena ngati ali m'modzi yekha tilibe vuto.

Mu sitepe yoyamba tiwunikiranso chisankho chimodzi pakuwunika kwathu, choyamba timatsimikizira zomwe tikufuna kukhala ndi polojekiti yathu ndi khadi yathu yazithunzi, kwa ine Ndine wokonda kuyambitsa 1280 × 1024 resolution.

Tsopano ndikofunikira kuti muwone zisankho zomwe polojekiti yathu imatha kuthandizira komanso kuti imagwira ntchito pafupipafupi motani.

Tasanthula izi, ndi izi timazipeza ndi syntax iyi:

gtf 1280 1024 70

Chingwe cholamulirachi chidandiponyera china chotsatira:

# 1280×1024 @ 70.00 Hz (GTF) hsync: 63.00 kHz; pclk: 96.77 MHz
Modeline “1280x1024_70.00” 96.77 1152 1224 1344 1536 864 865 868 900 -HSync +Vsync

Chomwe chimatisangalatsa ndi izi:

96.77 1152 1224 1344 1536 864 865 868 900 -HSync +Vsync

Asanakhale yekha Tiyenera kuchita zotsatirazi pomaliza:

Xrandr

Komwe ife iwonetsa zambiri za oyang'anira athu, apa tiziwazindikira, kwa ine ndili ndi VGA-0 DVI-1 ndi HDMI-1

Mukapeza deta kuti muwonjezere pazenera tikupitiliza kuwonjezera mitundu iyi motere, kuwonjezera zomwe lamulo lapitalo lidatipatsa:

xrandr --newmode “1280x1024_70.00″ 96.77 1152 1224 1344 1536 864 865
868 900 -HSync +Vsync

Tikatha mzere wakalewu, womwe udawonjezera mawonekedwe atsopano a Screen yathu, tikutsatira mzere wotsatira, Ndikuwonjezera chisankho ku oyang'anira HDMI ndi DVI:

xrandr --addmode DVI-1 1280x1024_70.00

xrandr --addmode HDMI-1 1280x1024_70.00

Ndipo pamapeto pake tikupititsa patsogolo zisankho

xrandr --output DVI-1 --mode 1280x1024_70.0

xrandr --output HDMI-1 --mode 1280x1024_70.0

Ndi mzere womaliza womalizawu tathandizira mawonekedwe othetsera omwe tikufuna mu Ubuntu wathu ndipo titha kuwasankha kuchokera ku System> Zokonda> Zowunikira kapena titha kuzitha kungochita izi (mwa ine):

xrandr -s 1280x1024_70.0

Pomaliza nditha kungoyankhapo Izi ndizovomerezeka pokhapokha pagawo lathu zomwe tili nazo poyambitsanso makina osintha omwe sagwiritsidwa ntchito sanasungidwe, kuti athetse vutoli titha kupanga script yomwe imayambira poyambira.

Kapena titha kugwiritsa ntchito zotsatirazi, timatsegula fayilo yotsatirayi ndikusintha:

sudo gedit /etc/gdm/Init/Default 

Tifufuza mizere yotsatirayi:

PATH=/usr/bin:$PATH
OLD_IFS=$IFS 

Ndipo pansipa iwo, kwa ine ndikuwonjezera izi:

xrandr --newmode “1280x1024_70.00″ 96.77 1152 1224 1344 1536 864 865
868 900 -HSync +Vsync

xrandr --addmode DVI-1 1280x1024_70.00

xrandr --addmode HDMI-1 1280x1024_70.00

xrandr --output DVI-1 --mode 1280x1024_70.0

xrandr --output HDMI-1 --mode 1280x1024_70.0

China ndikupanga bash yomwe imagwiritsa ntchito malamulo omwewo, koma kwa ine ndimamatira pamwambapa.

#!/bin/bash
# setting up new mode
xrandr --newmode “1280x1024_70.00″ 96.77 1152 1224 1344 1536 864 865
868 900 -HSync +Vsync
xrandr --addmode DVI-1 1280x1024_70.00
xrandr --addmode HDMI-1 1280x1024_70.00
xrandr --output DVI-1 --mode 1280x1024_70.0
xrandr --output HDMI-1 --mode 1280x1024_70.0
##sleep 1s
##done

Sindine katswiri wopanga bash, koma zingakhale zotero, ngati wina akufuna kuthandizira kuti achite bwino akhoza kuyamikiridwa.

Momwe ndingathere, zatsalira kwa ine yankho lomwe pakapita nthawi silinakhale lothandiza, ngati mukudziwa njira ina iliyonse kapena kugwiritsa ntchito, musazengereze kugawana nawo momwe ndikuthokozerani.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Ndemanga za 8, siyani anu

Siyani ndemanga yanu

Anu email sati lofalitsidwa. Amafuna minda amalembedwa ndi *

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.

  1.   Daniel anati

    Chosangalatsa kwambiri, ndikumbukira nkhani yanu. Moni.

  2.   Jose anati

    Ndatsatira malangizo anu, koma mu Ubuntu 16.04 mulibe / etc / gdm directory
    Sindikudziwa komwe ndingayikeko kuti iziyamba popanda cholakwika.

  3.   Ndikufunsani anati

    Zikomo kwambiri pamaphunziro !!

    Ngati zingathandize wina ... kuti ine ndisiye zosinthiratu ndi ubuntu 18.04 ndimayenera kupanga fayilo ya .xprofile kunyumba / wosuta ndikuwonjezera mawonekedwewa motere

    sudo gedit /home/team/.xprofile

    ndipo mkati mwa fayilo zotsatirazi, kwa ine ndi chisankho chomwe ndimafuna

    xrandr - njira yatsopano «1680x1050_60.00» 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync + vsync
    xrandr -addmode VGA-1 1680x1050_60.00
    xrandr-zotulutsa VGA-1 -mode 1680x1050_60.00

  4.   Chithunzi cha FAM3RX anati

    M'bale, ndimaganiza kuti nkhani yanu ndi yabwino kwambiri, yandithandiza kwambiri, zikomo kwambiri M'bale!
    Tengani njira yoyamba, pakusintha kwa 1440 × 900, ndipo imagwira ntchito.

  5.   Ricardo Bascuñan anati

    #! / bin / bash

    # # Njira yogwiritsira ntchito:
    # Dzina scipt file modeline
    # ./modeline.sh «3840 2160 60 ″ DP-1
    # 3840 2160 ndiye chisankho
    # 60 ndi hz
    # DP-1 ndiye doko lotulutsa

    modeline = »$ (gtf $ 1 | sed -n 3p | sed 's / ^. \ {11 \} //')»
    lembetsani $ modeline
    xrandr - njira yatsopano $ modeline
    mawonekedwe = »$ (gtf $ 1 | sed -n 3p | kudula -c 12- | kudula -d '»' -f2) »
    xrandr -addmode $ 2 »$ mode \»
    xrandr –kutulutsa $ 2 -mode \ »$ mode \»

  6.   Iago anati

    Moni! Ndingatani ngati ndikufuna kuwonjezera malingaliro atsopanowa pakuwunika kwanga kwa VGA? mudangowapangira DVI ndi HDMI! Chonde!

    1.    David naranjo anati

      Mumangobweza lamulo lomwe ndayika dzina lanu, VGA-1, VGA-0, VGA-2, ndi zina zambiri. Popeza mukuthamangira gtf imakuwonetsani dzina lomwe oyang'anira anu ali nawo.

  7.   Catome anati

    Nkhani yanu ndiyabwino kwambiri koma zidatenga tsiku lonse la pvto kuti musinthe malingaliro. Chisankho sichinasungidwe, pakadali pano chabwino, koma palibe njira ziwiri zomwe mudapulumutsa kuti zigwire ntchito. Linux ndiyabwino kwambiri, koma izi zimapangitsa anthu kubwerera ku windows osaganizira