Wrong screen size

Everything about X, Gnome, KDE, ... and everything running on it

Wrong screen size

Postby akuankkis » 2017-07-17 04:50

Stretch uses wrong screen size in Lenovo B50-10. I have made file
/etc/X11/xorg.conf.d/90-monitor.conf
but X didn't use it. What to do next?

Code: Select all
Section "Monitor"
      Identifier   "<default monitor>"
      DisplaySize  345 193
EndSection
akuankkis
 
Posts: 63
Joined: 2011-10-09 09:29

Re: Wrong screen size

Postby Lysander » 2017-07-17 08:26

Is this a brand new installation? What graphics card are you using? What desktop environment?
User avatar
Lysander
 
Posts: 229
Joined: 2017-02-23 10:07
Location: London

Re: Wrong screen size

Postby ruffwoof » 2017-07-17 09:45

Run xrandr and it will show your monitor device names, mine for instance shows
Code: Select all
ff@debian:~$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 720, maximum 8192 x 8192
DVI-I-1 connected (normal left inverted right x axis y axis)
   1024x768      60.00 
   800x600       60.32    56.25 
   848x480       60.00 
   640x480       59.94 
DVI-I-2 connected 1280x720+0+0 (normal left inverted right x axis y axis) 1920mm x 1080mm
   1280x720_60.00  59.86*+
   1920x1080     50.00 +
   1280x1024     75.02    60.02 
   1280x768      59.87 
   1024x768      75.08    70.07    60.00 
   800x600       72.19    75.00    60.32    56.25 
   640x480       75.00    72.81    60.00 
   720x400       70.08

I know from experience that my monitor is connected to the second port i.e. DVI-I-2 in my case.

Next run cvt for the resolution you want, for instance I use a 720p TV as a monitor and want 1280x720 resolution so
cvt 1280 720
produces a output of
Code: Select all
ff@debian:~$ cvt 1280 720
# 1280x720 59.86 Hz (CVT 0.92M9) hsync: 44.77 kHz; pclk: 74.50 MHz
Modeline "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync


Armed with that info, I create a /etc/X11/xorg.conf Monitor section
Code: Select all
Section "Monitor"
   Identifier   "DVI-I-2"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
   Modeline "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync
   Option "PreferredMode" "1280x720_60.00"
EndSection
Debian OldStable (Jessie MAIN only), jwm, rox (different wallpapers/icons per desktop), brightside.
Acer Aspire M3201 (2GB), AMD Phenom X4, Nvidia GT8600
ruffwoof
 
Posts: 136
Joined: 2016-08-20 21:00


Return to Desktop & Multimedia

Who is online

Users browsing this forum: srq2625 and 7 guests

fashionable