Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #26077 > unrolled thread

Conditional resolution change

Started byFolderol <general@musically.me.uk>
First post2021-01-27 15:58 +0000
Last post2021-01-27 18:42 +0000
Articles 3 — 2 participants

Back to article view | Back to comp.sys.raspberry-pi


Contents

  Conditional resolution change Folderol <general@musically.me.uk> - 2021-01-27 15:58 +0000
    Re: Conditional resolution change A. Dumas <alexandre@dumas.fr.invalid> - 2021-01-27 18:31 +0000
      Re: Conditional resolution change Folderol <general@musically.me.uk> - 2021-01-27 18:42 +0000

#26077 — Conditional resolution change

FromFolderol <general@musically.me.uk>
Date2021-01-27 15:58 +0000
SubjectConditional resolution change
Message-ID<20210127155837.17ed2e75@devuan>
I have two (apparently) identical 7in monitors. xrandr shows exactly the same
range of resolution, yet one always opens at the second to highest mode, and
the other at the lowest one.

As far as I can tell there are no internal switches or links in the monitors,
and I can instruct the one that opens low rest to change to the higher one,
where it behaves without issues.

What I would like to be able to do is somewhere early on check to see if the
monitor reports the low res value as default, and if so switch to the higher
one.

An added complication is that the entire setup will be used by non-techy
people, who may want to run with a full size monitor instead, so I don't want
to force the resolution, if that monitor has an even higher resolution as its
default.

so basically

	if (res < nnn)
		res = xxx;

Any suggestions on the best way to do this?


-- 
W J G

[toc] | [next] | [standalone]


#26078

FromA. Dumas <alexandre@dumas.fr.invalid>
Date2021-01-27 18:31 +0000
Message-ID<6011b19e$0$11324$e4fe514c@news.xs4all.nl>
In reply to#26077
Folderol <general@musically.me.uk> wrote:
> I have two (apparently) identical 7in monitors. xrandr shows exactly the same
> range of resolution, yet one always opens at the second to highest mode, and
> the other at the lowest one.
> 
> As far as I can tell there are no internal switches or links in the monitors,
> and I can instruct the one that opens low rest to change to the higher one,
> where it behaves without issues.
> 
> What I would like to be able to do is somewhere early on check to see if the
> monitor reports the low res value as default, and if so switch to the higher
> one.
> 
> An added complication is that the entire setup will be used by non-techy
> people, who may want to run with a full size monitor instead, so I don't want
> to force the resolution, if that monitor has an even higher resolution as its
> default.
> 
> so basically
> 
> 	if (res < nnn)
> 		res = xxx;
> 
> Any suggestions on the best way to do this?

There are a lot of possibilities now with conditions in config.txt. Use the
edid value:
https://www.raspberrypi.org/documentation/configuration/config-txt/conditional.md

[toc] | [prev] | [next] | [standalone]


#26079

FromFolderol <general@musically.me.uk>
Date2021-01-27 18:42 +0000
Message-ID<20210127184248.16470532@devuan>
In reply to#26078
On 27 Jan 2021 18:31:58 GMT
A. Dumas <alexandre@dumas.fr.invalid> wrote:

>Folderol <general@musically.me.uk> wrote:
>> I have two (apparently) identical 7in monitors. xrandr shows exactly the same
>> range of resolution, yet one always opens at the second to highest mode, and
>> the other at the lowest one.
 
>> so basically
>> 
>> 	if (res < nnn)
>> 		res = xxx;
>> 
>> Any suggestions on the best way to do this?  
>
>There are a lot of possibilities now with conditions in config.txt. Use the
>edid value:
>https://www.raspberrypi.org/documentation/configuration/config-txt/conditional.md
>

Thanks for this.
Exactly the sort of thing I need :)

-- 
W J G

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.raspberry-pi


csiph-web