Skip to main content

Menaklukkan Monitor Yang Tidak Terdeteksi di Linux (Menambahkan Paksa Resolusi Maksimal Monitor)

Kadangkala, ada monitor yang tidak dikenali dengan baik di Linux, padahal VGA card yang dipakai sangat baik. Akibat utama dari tidak dikenalinya monitor dengan sempurna adalah resolusi maksimal monitor tidak tertampil, dan hanya mampu dikenali dengan resolusi maksimal 1024x768 pixels. Hal tersebut tentu sangat mengganggu karena resolusi yang lebar sangat membantu efektivitas kerja terutama untuk desain (grafis, website dlsb).

Apa penyebab dari tidak dikenalinya monitor saya sendiri kurang begitu mengetahui, sebab untuk kasus yang saya alami, dengan VGA card yang sama (Intel G41), kondisinya berbeda ketika saya memakai LCD monitor merk LG yang dikenali dengan sempurna di Linux Ubuntu, namun tidak dengan LCD Monitor BenQ T52WA.

Setelah mencari ke pelbagai penjuru laman internet, akhirnya saya menemukan langkah untuk "menaklukan" atau memaksa sebuah monitor supaya dikenali secara maksimal di Linux dalam hal screen resolution. Berikut langkah-langkahnya :

Persiapan Awal
  1. Cari tahu resolusi maksimal monitor anda di internet. Sebagai contoh, LCD monitor BenQ T52WA resolusi maksimalnya adalah 1440x900; 1360x768 dan 1280x720.
  2. Disini saya ingin mensetingnya menjadi 1360x768, sebab untuk resolusi 1440x900 dengan ukuran monitor 14'' tampilan desktop menjadi terlalu kecil.
  3. Tool yang akan digunakan adalah cvt dan xrandr
  4. Resolusi yang ingin disetting tergantung kebutuhan anda. Langkah-langkahnya juga menyesuaikan output yang muncul. Sebagai contoh saya memakai monitor saya BenQ T52WA yang ingin saya setting ke resolusi 1360x768 pixels.

Langkah Opreking
1. Generate informasi detil resolusi monitor dengan cvt
sudo cvt 1360 768

Output : 
# 1360x768 59.80 Hz (CVT) hsync: 47.72 kHz; pclk: 84.75 MHz 
Modeline "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync












2. Masukkan informasi resolusi monitor dari hasil output ke database monitor sistem
sudo --newmode "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync 

3. Cari tahu VGA card kita terbaca dimana oleh sistem Linux
sudo xrandr

Output :
Screen 0: minimum 320 x 200, current 1360 x 768, maximum 32767 x 32767 
VGA1 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 
   1360x768       59.8*+ 
   1360x768_60.00   59.8  
   1024x768       60.0  
   800x600        60.3     56.2  
   848x480        60.0  
   640x480        59.9  
HDMI1 disconnected (normal left inverted right x axis y axis) 
DP1 disconnected (normal left inverted right x axis y axis) 
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

VGA card saya terbaca sebagai VGA1











4. Masukkan informasi resolusi monitor ke VGA card
sudo xrandr --addmode VGA1  "1360x768_60.00"

Sampai tahap ini, monitor akan berkedip dan resolusi yang diinginkan tampil. Namun ini sifatnya sementara, jika sistem di reboot setting akan hilang. Maka dari itu harus dibuat permanen dengan langkah berikutnya.

5. Keluar dari mode grafis dan beralih ke mode text dengan menekan tombol Ctrl + Alt + F6. Di Linux Ubuntu versi 12.04 dan yang lebih bawah, bisa dengan tombol Ctrl + Alt + F1.

Kita akan diminta login sistem Linux. Cukup masukkan username dan password user kita.

6. Matikkan Lightdm
sudo service lightdm stop

7. Generate log informasi Xserver
sudo X -configure

8. Hidupkan kembali Lightdm
sudo service lightdm start

9. Masuk ke Home, akan tergenerate file log konfigurasi xserver dengan nama xorg.conf.new, buka file tersebut dan tambahkan beberapa baris, sebagai berikut :

Cari baris :

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Tambahkan dibawah Identifier dan VendorName informasi resolusi monitor kita menjadi :

Section "Monitor"
Identifier   "Monitor0"
Modeline "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Ulangi untuk Monitor1 dan seterusnya (jika dikenali lebih dari 2)

10. Cari baris berikut :
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection

Tambahkan resolusi monitor dibawah Depth menjadi :
SubSection "Display"
Viewport   0 0
Depth     1
Modes "1360x768"
EndSubSection

Ulangi untuk baris tersebut yang ada dibawahnya (bisa banyak tergantung VGA card kita)

11. Simpan file (save as) menjadi xorg.conf

12. Copykan file xorg.conf ke dalam direktori konfigurasi xserver
sudo cp xorg.conf /etc/X11

13. Restart komputer

14. Bila anda gagal masuk dan ada informasi error, berarti ada kesalahan mengedit file xorg.conf. Bila mengalami hal tersebut, cukup login ke text mode dengan menekan Ctrl+Alt+F6 lalu delete file xorg.conf yang sudah kita copy ke sistem :

sudo rm /etc/X11/xorg.conf

Setelah itu reboot komputer, dan ulangi lagi mengedit file xorg.conf jangan sampai ada yang salah. Selamat mencoba :D

Comments

Reipki Anbeni said…
Saya ingin menambahkan Resolusi 1280x960 pada PC tetapi pada langkah ke-4 layar saya tidak berkedip dan malah ada pesan error di Terminal, seperti ini keterangannya;
reipki@AsusPC:~$ sudo xrandr --addmode DVI-I-0 "1280x960_60.00"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 29
Current serial number in output stream: 30
Alwan Rosyidi said…
Itu resolusi 1280x960 memang terbaca tapi kan ya mas ?
Unknown said…
mint@mint ~ $ sudo xrandr --addmode VGA1 "1360x768_60"
xrandr: cannot find mode "1360x768_60"

KOK GK BISA PADAHAL SUDAH SESUAI INFORMASI

Popular posts from this blog

Ubuntu Kylin 19.04 Review : A Gorgeous Windows 10 Clone

It's been quite a while since the last post I wrote in this blog. My daily life prevents me to write another stuff about Linux Desktop, and now I'm curious to take a look to the Ubuntu Kylin 19.04. Ubuntu is always be my favorite distro. It supports huge number of hardwares, it has probably the largest Linux software repository. It is also --the most important thing-- very easy to install, even for beginners.  But for some couple of years, because of technical reason, I stopped to play around with the Ubuntu releases. I stood for KDE Neon and became my primary OS because of its simplicity and the look. Few days ago Ubuntu has released its newer version, Ubuntu 19.04 codenamed Disco Dingo. I'm yes impressed by the progress Ubuntu developer has made, especially the way they arrange the GNOME desktop to match the Ubuntu theme. But the most interesting flavor of this release is Ubuntu Kylin. It's an official Ubuntu flavor, designed for Chinese People with its own...

How To Speed Up Your KDE Plasma Desktop (KDE4)

KDE is one of the oldest desktop environment in Linux. While GNOME (the other desktop that as old as KDE) is trying to built its own style of user interface, KDE from the beginning seems to mimics the Microsoft Windows' "classic" user interface. Thus, KDE has its own user base, especially for them who still in love with the Windows' philosophy : a simple desktop, with a single taskbar in the bottom, and a start menu in the left. Personally, I love KDE. It's gorgeous and eyecandy. But sometimes, I feel KDE is little bit slow in my older hardwares. So, after some experiences, I've found some tweak how to make KDE Plasma Desktop Runs Faster . 1. Change The Compositing Engine  Go to System Settings>Desktop Effect>Advanced , and change the Compositing type from OpenGL 2.0 to XRender. 2. Remove All Bloatware Apps There are some uneeded apps installed in Kubuntu (my favorite KDE distro) and you could safely remove them. Here are my list : ...

BAM Huawei Mobile Partner For Linux. Download and Install.

Click to enlarge Profile management Broadband connection is one of the most used internet connections, alongside wired and wi-fi internet connection. And the most used device to use broadband connection is USB Modem (GSM/CDMA), and one of the most used brands is Huawei, a world-recognized Chinese manufacture that focuses to produce great networking devices (modems, router etc). It is probably the most popular brand from China and I have to say that Huawei is a great product. Because of this I decided to buy a CDMA USB modem from Huawei. And greatly, this has already been recognized by Linux from so long time ago and so I can use the modem easily with GNOME's Network Manager. But later I found a problem : how to top up my prepaid internet account? To top up my prepaid internet account, I have to send a SMS to the provider and I can't do this on Linux. With forced, I temporarily used Mobile Partner application on Windows to buy / top up my prepaid internet account. ...