Accepted xresprobe 0.4.24ubuntu1 (source)

Timo Aaltonen tjaalton at cc.hut.fi
Wed Mar 7 18:45:49 GMT 2007


On Wed, 7 Mar 2007, Matt Zimmerman wrote:

> On Wed, Mar 07, 2007 at 02:25:40PM -0000, Timo Aaltonen wrote:
>>  xresprobe (0.4.24ubuntu1) feisty; urgency=low
>>  .
>>    * lcdsize.sh:
>>      - Add support for vesa.
>
> The vesa driver isn't able to probe panel sizes, is it?

Not like the other drivers are, but it still can detect the display size 
(well, whatever vesa supports). This is what I added to lcdsize.sh (and 
tested with a Thinkpad Z61p, which has a r5xx ATI chip):

-----
    EGREPLINE="\(--\) CHIPS\(.*\): Display Size: x=.*; y=.*"
    SEDLINE="s/(--) CHIPS([^)]*): Display Size: x=\([^;]*\); y=\([^ ]*\)/\1x\2/;"
    getres
+elif [ "$DRIVER" = "vesa" ]; then
+  EGREPLINE="\(--\) VESA\(.*\): Virtual size is .*x.*"
+  SEDLINE="s/(--) VESA([^)]*): Virtual size is \([^x]*\)x\([^ ]*\)/\1x\2/;"
+  getres
  else
    exit 1
  fi
-----

('getres' was missing from ubuntu1, but a new version is coming..)

could be that "Virtual size" isn't the best string to match..

>>    * xprobe.sh:
>>      - Don't use the bare-bones config, instead rely on the new xserver
>>        to be clever.
>
> This sounds like a change with potentially many hardware-specific effects.
> Can you explain a bit more?

That's correct, but this can be reverted easily before the beta if it 
creates more problems than it solves.

The old version probes with a config that has a 'Mode "1024x768"' set, 
which means that the string I'm trying to match with vesa would be just 
that (->no progress).

t



More information about the ubuntu-devel mailing list