[SOLVED] xrandr & xorg.conf - can't delete mode from xrandr
#1
Hi.

Hope someone can help me with this, I'm going nuts...
Got all my modelines up and running and everything is working fine..

EXCEPT that xbmc wants to start in 800x600 instead of 1920x1080 and I can't get rid of that xrandr mode in any way I've tried.

XRANDR OUTPUT & xorg.conf

Is there anyone who can guide me on how to get rid of the 800x600 mode in xrandr ?


Thanks in advance,
Lars

ynwa
Reply
#2
Use the xorg.conf on my signature and try again.

Your adding way too many modelines and specify noedid modes (on validation) Your modes are probably being thrown out by xorg when they fail to get validated.

uNi
Reply
#3
use xrandr to set your preferred mode before starting xbmc.

xrandr --output <output> --mode <mode>
Reply
#4
(2012-11-04, 08:08)FernetMenta Wrote: use xrandr to set your preferred mode before starting xbmc.

xrandr --output <output> --mode <mode>

This is exactly what I do. I play some games via Wine which sets the resolution to 720p, but after quitting the game and returning back to XBMC the resolution would stay at 720p unless I run xrandr once.
Reply
#5
(2012-11-03, 23:12)uNiversal Wrote: Use the xorg.conf on my signature and try again.

Your adding way too many modelines and specify noedid modes (on validation) Your modes are probably being thrown out by xorg when they fail to get validated.

uNi

Hi.

Tried your xorg.conf a few days ago, but it would only give me 23.971 instead of 23.976. Unless by using NoEdidModes was I able to get correct 23.976, otherwise edid modes would overrule the modelines.
I like your theory though, that it's a modevalidation problem. And that might be why I can't set a PreferredMode either.

Honestly I can't tell the difference between 23.971 and 23.976, but I would like it to be correct, just for the sake of it Smile And that requires disabling the validation of edid modes..
(2012-11-04, 08:08)FernetMenta Wrote: use xrandr to set your preferred mode before starting xbmc.

xrandr --output <output> --mode <mode>

Would that be a 'permanent' solution. It's a family meda center (xbmcbuntu), and I can't really expect my wife to learn this ;-)
ynwa
Reply
#6
When your playing back a 23.976 file with "my xorg.conf" file give me the output of:

Code:
DISPLAY=:0 /usr/lib/xbmc/xbmc-xrandr | pastebinit
then with your xorg the same pls.

uNi
Reply
#7
(2012-11-04, 14:47)gekados Wrote:
(2012-11-03, 23:12)uNiversal Wrote: Use the xorg.conf on my signature and try again.

Your adding way too many modelines and specify noedid modes (on validation) Your modes are probably being thrown out by xorg when they fail to get validated.

uNi

Hi.

Tried your xorg.conf a few days ago, but it would only give me 23.971 instead of 23.976. Unless by using NoEdidModes was I able to get correct 23.976, otherwise edid modes would overrule the modelines.
I like your theory though, that it's a modevalidation problem. And that might be why I can't set a PreferredMode either.

Honestly I can't tell the difference between 23.971 and 23.976, but I would like it to be correct, just for the sake of it Smile And that requires disabling the validation of edid modes..
(2012-11-04, 08:08)FernetMenta Wrote: use xrandr to set your preferred mode before starting xbmc.

xrandr --output <output> --mode <mode>

Would that be a 'permanent' solution. It's a family meda center (xbmcbuntu), and I can't really expect my wife to learn this ;-)

AFAICT it works every single time.
Reply
#8
Quote:Would that be a 'permanent' solution. It's a family meda center (xbmcbuntu), and I can't really expect my wife to learn this ;-)

Add the xrandr command to your startup script. I have it in startup of fluxbox.
Reply
#9
(2012-11-04, 15:29)uNiversal Wrote: When your playing back a 23.976 file with "my xorg.conf" file give me the output of:

Code:
DISPLAY=:0 /usr/lib/xbmc/xbmc-xrandr | pastebinit
then with your xorg the same pls.

uNi

Here are the outputs as requested :

"your" xorg.conf

Here is how it looks in console :
Code:
xbmc@mediacenter:~$ /usr/lib/xbmc/xbmc-xrandr
<screen id="0" minimum_w="8" minimum_h="8" current_w="1920" current_h="1080" maximum_w="8192" maximum_h="8192">
  <output name="VGA-0" connected="false">
  </output>
  <output name="HDMI-0" connected="true" w="1920" h="1080" x="0" y="0" wmm="0" hmm="0">
    <mode id="0x1c5" name="1920x1080" w="1920" h="1080" hz="30.02669" current="false" preferred="true"/>
    <mode id="0x1c6" name="1920x1080" w="1920" h="1080" hz="59.93939" current="false" preferred="false"/>
    <mode id="0x1c7" name="1920x1080" w="1920" h="1080" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1c8" name="1920x1080" w="1920" h="1080" hz="24.00000" current="false" preferred="false"/>
    <mode id="0x1c9" name="1920x1080" w="1920" h="1080" hz="23.97091" current="true" preferred="false"/>
    <mode id="0x1ca" name="1920x1080" w="1920" h="1080" hz="29.99838" current="false" preferred="false"/>
    <mode id="0x1cb" name="1920x1080" w="1920" h="1080" hz="25.02224" current="false" preferred="false"/>
    <mode id="0x1cc" name="1280x720" w="1280" h="720" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1cd" name="1280x720" w="1280" h="720" hz="59.94343" current="false" preferred="false"/>
    <mode id="0x1ce" name="1280x720" w="1280" h="720" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1cf" name="720x576" w="720" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1d0" name="720x480" w="720" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x1d1" name="640x480" w="640" h="480" hz="59.92857" current="false" preferred="false"/>
  </output>
</screen>

my xorg.conf

Here is how that looks in console :
Code:
<screen id="0" minimum_w="8" minimum_h="8" current_w="1920" current_h="1080" maximum_w="8192" maximum_h="8192">
  <output name="VGA-0" connected="false">
  </output>
  <output name="HDMI-0" connected="true" w="1920" h="1080" x="0" y="0" wmm="1100" hmm="620">
    <mode id="0x1c5" name="800x600" w="800" h="600" hz="60.31654" current="false" preferred="true"/>
    <mode id="0x1c6" name="1920x1080" w="1920" h="1080" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1c7" name="1920x1080" w="1920" h="1080" hz="59.93939" current="false" preferred="false"/>
    <mode id="0x1c8" name="1920x1080" w="1920" h="1080" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1c9" name="1920x1080" w="1920" h="1080" hz="24.00000" current="false" preferred="false"/>
    <mode id="0x1ca" name="1920x1080" w="1920" h="1080" hz="23.97576" current="true" preferred="false"/>
    <mode id="0x1cb" name="1920x1080" w="1920" h="1080" hz="25.00000" current="false" preferred="false"/>
  </output>
</screen>

As you see i get 23.761 (rounded up) with your's but 23.976 (rounded up) with mine. So I think edidmodes are "killing" the modelines, at least that is my guess. And I have no idea why that 800x600 resolution keeps popping up as preferred with my config..
ynwa
Reply
#10
(2012-11-04, 17:24)FernetMenta Wrote:
Quote:Would that be a 'permanent' solution. It's a family meda center (xbmcbuntu), and I can't really expect my wife to learn this ;-)

Add the xrandr command to your startup script. I have it in startup of fluxbox.

Thanks for the tip. Added these lines to rc.local :
Code:
sleep 10
export DISPLAY=:0
sudo xrandr --output HDMI-0 --mode 1920x1080

Now it switches to 1920x1080 on startup.
Still annoys me that I can't change the preferred mode in xorg.conf though.

But this was a good work-around so far.
ynwa
Reply
#11
(2012-11-04, 14:47)gekados Wrote: Hi.

Tried your xorg.conf a few days ago, but it would only give me 23.971 instead of 23.976. Unless by using NoEdidModes was I able to get correct 23.976, otherwise edid modes would overrule the modelines.
I like your theory though, that it's a modevalidation problem. And that might be why I can't set a PreferredMode either.

See that's not possible because the 23.976 and 24p modelines are exactly the same as in your xorg.conf except for the HorizSync and VertRefresh values. Ive asked you for some info to prove this.

(2012-11-05, 00:07)gekados Wrote: Thanks for the tip. Added these lines to rc.local :
Code:
sleep 10
export DISPLAY=:0
sudo xrandr --output HDMI-0 --mode 1920x1080

Now it switches to 1920x1080 on startup.
Still annoys me that I can't change the preferred mode in xorg.conf though.

Yey at least its "fixed". hurrah for workarounds. Big Grin

Have you had a look at your xorg.0.log when the modes are being validated? The answer is there!

As I see it there's no reason you cant get everything working in xorg.conf and until you actually look at the causes which I bet its the validation you have to sit with the workaround.

(2012-11-05, 00:07)gekados Wrote: But this was a good work-around so far.

Its the answer to your original question, If you want to fix the problem you have to actually look at the cause.

uNi



Reply
#12
(2012-11-05, 00:48)uNiversal Wrote: See that's not possible because the 23.976 and 24p modelines are exactly the same as in your xorg.conf except for the HorizSync and VertRefresh values. Ive asked you for some info to prove this.

The info you requested is in my post, check the links, that's the output returned from the cmd you told me to run. Unless I misunderstood what info you wanted from me?
The difference is NoEdidModes in my xorg.conf, otherwise they're the same modelines for 23.976 and 24, yes.

I'll look into the xorg.0.log tomorrow, You're right, there should be answers there.

But it should use the modeline and not the edid modes for 23.976. Edid will give me 23.971 regardless of modelines added.

My biggest question is still where the 800x600 comes from. Xrandr clearly shows all my modelines, and playback in all refresh rates is flawless.

I'll get back to searching tomorrow after work, thanks for the input/help so far, and for the time you're all spending to help me solve this.
ynwa
Reply
#13
you can kill various edid setting in xorg.conf its possible that this is your only solution as is.

I missed your post with the answers. sorry. I still believe the xorg.log will tell so you probbaly looking at enabling Option "ModeDebug" "true" with edid validation on and off

The 800x600 is coming probably modes are being thrown cant tell without looking at whats going on in logs. (curiosity wise)

uNi
Reply
#14
(2012-11-05, 01:29)uNiversal Wrote: you can kill various edid setting in xorg.conf its possible that this is your only solution as is.

I missed your post with the answers. sorry. I still believe the xorg.log will tell so you probbaly looking at enabling Option "ModeDebug" "true" with edid validation on and off

The 800x600 is coming probably modes are being thrown cant tell without looking at whats going on in logs. (curiosity wise)

uNi

You were right about the validation, log file showed nothing was validated and then it selected the nvidia-auto-setting which was 800x600.

I solved the 'problem' though, it was right in front of me the whole time....
Changed NoEdidModes to AllowNonEdidModes and it all worked.

xrandr output is now :
Code:
<output name="HDMI-0" connected="true" w="1920" h="1080" x="0" y="0" wmm="1100" hmm="620">
    <mode id="0x1c5" name="1920x1080" w="1920" h="1080" hz="50.00000" current="false" preferred="true"/>
    <mode id="0x1c6" name="1920x1080" w="1920" h="1080" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1c7" name="1920x1080" w="1920" h="1080" hz="59.93939" current="false" preferred="false"/>
    <mode id="0x1c8" name="1920x1080" w="1920" h="1080" hz="24.00000" current="false" preferred="false"/>
    <mode id="0x1c9" name="1920x1080" w="1920" h="1080" hz="23.97576" current="true" preferred="false"/>
    <mode id="0x1ca" name="1920x1080" w="1920" h="1080" hz="25.00000" current="false" preferred="false"/>
    <mode id="0x1cb" name="1920x1080" w="1920" h="1080" hz="23.97091" current="false" preferred="false"/>
    <mode id="0x1cc" name="1920x1080" w="1920" h="1080" hz="30.02669" current="false" preferred="false"/>
    <mode id="0x1cd" name="1920x1080" w="1920" h="1080" hz="29.99838" current="false" preferred="false"/>
    <mode id="0x1ce" name="1920x1080" w="1920" h="1080" hz="25.02224" current="false" preferred="false"/>
    <mode id="0x1cf" name="1280x1024" w="1280" h="1024" hz="60.01974" current="false" preferred="false"/>
    <mode id="0x1d0" name="1280x720" w="1280" h="720" hz="59.94343" current="false" preferred="false"/>
    <mode id="0x1d1" name="1280x720" w="1280" h="720" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1d2" name="1024x768" w="1024" h="768" hz="60.00384" current="false" preferred="false"/>
    <mode id="0x1d3" name="800x600" w="800" h="600" hz="60.31654" current="false" preferred="false"/>
    <mode id="0x1d4" name="720x576" w="720" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1d5" name="720x576" w="720" h="576" hz="25.04006" current="false" preferred="false"/>
    <mode id="0x1d6" name="720x480" w="720" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x1d7" name="720x480" w="720" h="480" hz="30.02722" current="false" preferred="false"/>
    <mode id="0x1d8" name="640x480" w="640" h="480" hz="59.94048" current="false" preferred="false"/>
    <mode id="0x1d9" name="640x480" w="640" h="480" hz="59.92857" current="false" preferred="false"/>
  </output>

And refresh rate is correct when playing 23.976 video :

Code:
xbmc@mediacenter:~$ nvidia-settings -nt -q refreshRate3
23.976 Hz

Thanks again for the guidance, pointing me in the right direction resolved this issue, and no workaround is needed anymore :-)
ynwa
Reply
#15
Excellent, he who perseveres wins (or goes nuts) +1

uNi
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED] xrandr & xorg.conf - can't delete mode from xrandr0