Hi,

I have been trying without success to get my ubuntu precise (upgraded from oneric) to accept the same resolution on my tv as 10.04 (Lucid) did. (I still have lucid on a spare hdd so I can check settings).

The Problem:
TV (when connected via VGA (Out on laptop)- VGA (PC input)on TV)
On Lucid resolution was 1360 x 768 (16:9) 60hz. which worked perfectly well (with virtually zero input from me). On Precise i get 1024 x 768 (6:9) 60hz. Which means that I have an ugly 2inch gap down the left of the screen, and the bottom couple of inches below the edge of the physical screen. (I hope this makes sense)

This confusing problem led me on a google-thon and I have got this far.

The Output from xandr in terminal with TV connected:

pete@petes-lappy:~$ xrandr

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192

LVDS1 connected (normal left inverted right x axis y axis)

   1280x800       60.0 +

   1024x768       60.0

   800x600        60.3     56.2

   640x480        59.9

VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm

   1024x768       60.0*

   800x600        60.3     56.2

   848x480        60.0

   640x480        59.9

TV1 disconnected (normal left inverted right x axis y axis)


As you can see 1360 x 768 (or anything close is *not* an option) so I am left trying to devise a way of getting it!

i have run gtf in terminal and get the following:

pete@petes-lappy:~$ gtf 1360 768 60

  # 1360x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 84.72 MHz

Modeline "1360x768_60.00" 84.72 1360 1424 1568 1776 768 769 772 795 -HSync +Vsync


Which gave me the idea of constructing a script to create the modeline (which if necessary I can run every time I plug the TV in)

The script I devised:

#This line adds modeline from output of gtf command

# 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz

xrandr --VGA1 "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync

#This line adds the mode as it is not default

xrandr --addmode VGA1 1368x768_60

#This line sets resolution on VGA1

xrandr --output VGA1 --mode 1368x768_60

Returns the following error:

pete@petes-lappy:~$ /home/pete/Desktop/tv.bash

usage: xrandr [options]

  where options are:

  -display <display> or -d <display>

  -help

  -o <normal,inverted,left,right,0,1,2,3>

            or --orientation <normal,inverted,left,right,0,1,2,3>

  -q        or --query

  -s <size>/<width>x<height> or --size <size>/<width>x<height>

  -r <rate> or --rate <rate> or --refresh <rate>

  -v        or --version

  -x        (reflect in x)

  -y        (reflect in y)

  --screen <screen>

  --verbose

  --current

  --dryrun

  --nograb

  --prop or --properties

  --fb <width>x<height>

  --fbmm <width>x<height>

  --dpi <dpi>/<output>

  --output <output>

      --auto

      --mode <mode>

      --preferred

      --pos <x>x<y>

      --rate <rate> or --refresh <rate>

      --reflect normal,x,y,xy

      --rotate normal,inverted,left,right

      --left-of <output>

      --right-of <output>

      --above <output>

      --below <output>

      --same-as <output>

      --set <property> <value>

      --scale <x>x<y>

      --transform <a>,<b>,<c>,<d>,<e>,<f>,<g>,<h>,<i>

      --off

      --crtc <crtc>

--panning <w>x<h>[+<x>+<y>[/<track:w>x<h>+<x>+<y>[/<border:l>/<t>/<r>/<b>]]]

      --gamma <r>:<g>:<b>

      --primary

  --noprimary

  --newmode <name> <clock MHz>

            <hdisp> <hsync-start> <hsync-end> <htotal>

            <vdisp> <vsync-start> <vsync-end> <vtotal>

            [+HSync] [-HSync] [+VSync] [-VSync]

  --rmmode <name>

  --addmode <output> <name>

  --delmode <output> <name>

xrandr: cannot find mode "1360x768_60"

xrandr: cannot find mode 1360x768_60


If any one can tell me where I am going wrong (or an easier way of going about it) please let me know!!


Regards

Pete Smout


--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to