Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
starting xorg-server with display rotation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1340

PostPosted: Fri May 10, 2013 8:08 am    Post subject: starting xorg-server with display rotation Reply with quote

I want to start xorg-server with the display rotated ninety degrees.

I tried this xorg.conf:

Code:

Section "Module"
    Load  "dbe"
    Load  "extmod"
    Load  "glx"
    Load  "record"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier  "Device0"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"
    BoardName   "G96 [GeForce 9500 GT]"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Monitor        "Monitor0"
    Device         "Device0"
    Option         "metamodes" "nvidia-auto-select +0+0 {rotation=90}"
EndSection


Unfortunately, that comes up with absolutely massive fonts. Without the "metamodes" line, it starts with no rotation of course, but with reasonable font sizes.

A comparison of the log files reveals:

Code:

$ diff /var/log/Xorg.0.log.old /var/log/Xorg.0.log

[...]

113a114
> (**) NVIDIA(0): Option "MetaModes" "nvidia-auto-select +0+0 {rotation=90}"
135,138d135
< (==) NVIDIA(0):
< (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
< (==) NVIDIA(0):     will be used as the requested mode.
< (==) NVIDIA(0):
140,142c137,139
< (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
< (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
< (--) NVIDIA(0): DPI set to (92, 91); computed from "UseEdidDpi" X config
---
> (II) NVIDIA(0):     "nvidia-auto-select+0+0{rotation=90}"
> (II) NVIDIA(0): Virtual screen size determined to be 1080 x 1920
> (--) NVIDIA(0): DPI set to (51, 162); computed from "UseEdidDpi" X config
154c151
< (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
---
> (II) NVIDIA(0): Setting mode "nvidia-auto-select+0+0{rotation=90}"

[...]


I can't find "UseEdidDpi" in the xorg.conf manual. Is it documented somewhere? What is causing it to be so screwed up (so I know where to report the bug :) )? What is the preferred way to start xorg-server rotated (is there some other command that doesn't go through the nvidia drivers?)?

Thank you in advance.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3182

PostPosted: Fri May 10, 2013 8:12 am    Post subject: Reply with quote

You can specify the DPI manually. You can create an xorg conf file like this:
Code:
Section "Device"
    Identifier  "Device0"
    Driver      "nvidia"
    Option      "NoLogo"                "True"
    Option      "DPI"                   "96x96"
    Option      "RandRRotation"         "True"
EndSection

_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1340

PostPosted: Fri May 10, 2013 9:10 am    Post subject: Reply with quote

Does that specify the exact rotation?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3182

PostPosted: Fri May 10, 2013 7:02 pm    Post subject: Reply with quote

curmudgeon wrote:
Does that specify the exact rotation?
No, it simply enables nvidia-settings to show a rotation setting.
_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1340

PostPosted: Sat May 11, 2013 8:28 am    Post subject: Reply with quote

I am confused why that line is needed then, because the display rotates without it.

I have been looking more, but I think the "nvidia-auto-select+0+0{rotation=90}" is optimal.

While searching, I did find some warnings not to set the dpi directly (although it wasn't clear how to set it indirectly - other than list the monitor size and pray).
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3182

PostPosted: Sun May 12, 2013 8:33 am    Post subject: Reply with quote

curmudgeon wrote:
I am confused why that line is needed then, because the display rotates without it.
It is not needed to rotate the display. It only enables a control in nvidia-settings. Actually, for your case a very minimal device section will suffice.
Code:
Section "Device"
    Identifier  "Device0"
    Driver      "nvidia" 
    Option      "DPI"                   "96x96"
EndSection

_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 196
Location: West Grove, PA

PostPosted: Sun May 12, 2013 10:08 am    Post subject: Reply with quote

You might want to try the "nvidia-settings' program, which can then write out the xorg.conf file for you. At the very least, this might give you some insights into what the nvidia driver is wanting.
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1340

PostPosted: Sun May 12, 2013 2:13 pm    Post subject: Reply with quote

Vorlon wrote:
You might want to try the "nvidia-settings' program, which can then write out the xorg.conf file for you. At the very least, this might give you some insights into what the nvidia driver is wanting.


That is sort of how I got to the original xorg.conf file above. It seems that the nvidia x server settings program doesn't have a clue about how to get the DPI to a reasonable level, though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum