Sie sind nicht angemeldet.

1

24.01.2014, 11:43

xrandr-Änderungen permanent in xorg.conf

Hey Leute,

bin grad dabei XBMC zu konfigurieren, dabei hab ich ein kleines Problem.

Intel HDA Grafik, xterm und twm zum Testen installiert, KEINE xorg.conf oder xorg.conf.d/

XBMC startet wunderbar, volle Auflösung, aber bei der Framerate haperts.
einen Schritt zurück -> es hapert schon in X.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Htpc ~ # xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 32767 x 32767
VGA1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 698mm x 392mm
   1920x1080i     60.1*+   50.0 +   60.0
   1920x1080      60.0     50.0     59.9     24.0     24.0
   2880x576       50.0
   2880x576i      50.1
   2880x480       60.0     59.9
   2880x480i      60.1     60.1
   1280x720       60.0     50.0     59.9
   1440x576       50.0
   1440x576i      50.1
   1440x480       60.0     59.9
   1440x480i      60.1     60.1
   720x576        50.0
   720x480        60.0     59.9
   640x480        60.0     59.9


X lädt standardmäßig 1920x1080i mit 50 u. 60Hz.
Deshalb hab ich dann natürlich nur die beiden Modi zur Verfügung.

mach ich ein

Quellcode

1
Htpc ~ # xrandr --output HDMI2 --mode 1920x1080

zeigt mit mein TV sofort 1080p an, in xrandr wandert das Sternchen eine Zeile runter und in XBMC hab ich von 24 bis 60Hz alles zur Verfügung.

Die xrandr-Änderungen sind ja nur temporär,
ich hatte jetzt schon mit dem Gedanken gespielt das xrandr-Kommando in der xinit.rc auszuführen, funktioniert wahrscheinlich,
aber eigentlich soll das doch in die xorg.conf (oder xorg.conf.d/xx-monitor.conf ?)

wie im wiki beschrieben hab ich versucht den PreferredMode zu verwenden (720p nur zum Test):

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
        Option      "HDMI2" "Monitor0"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        Option "PreferredMode" "1280x720"
      
EndSection


hat nix bewirkt.

wenn ich Modes oder Modelines einfüge (wie im gentoo-doc) dann krieg ich die Modes auch in xrandr in der Liste ganz oben hinzugefügt,
aktiv werden sie aber nicht.

Quellcode

1
2
3
4
5
6
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        Option "PreferredMode" "1280x720"
EndSection


wahrscheinlich dreh ich an den falschen Variablen, welche sind die richtigen? ;)

danke euch!

beste Grüße!

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »tausche« (24.01.2014, 19:13)


2

24.01.2014, 14:35

Deine xx-monitor.conf sieht schon gut aus. Ein kleiner Fehler:
Ersetze 'Option "HDMI2" "Monitor0"' durch

Quellcode

1
Option         "monitor-HDMI2" "Monitor0"

Weitere Infos und Beispiele in "man intel".
Auch wenn Open-Source kostenlos ist, ist sie nicht umsonst. Dein Preis ist Dein Engagement und Mitarbeit an OS-Projekten.
Wenn Du keinen Preis bezahlen willst, bist Du die Ware. Und das ist nicht Open Source, geschweigedenn frei.

3

24.01.2014, 17:52

Hey,

danke, habs angepasst wie in der man-page und von dir beschrieben.
Den richtigen Monitor hab ich jetzt zumindest,
statt vorher:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Htpc ~ # cat /var/log/Xorg.0.log
...
[  7752.158] (II) intel(0): Output VGA1 using monitor section Monitor0
[  7752.158] (**) intel(0): Option "PreferredMode" "1280x720"
[  7752.158] (II) intel(0): Output DP1 has no monitor section
[  7752.158] (II) intel(0): Output HDMI1 has no monitor section
[  7752.158] (II) intel(0): Output DP2 has no monitor section
[  7752.158] (II) intel(0): Output HDMI2 has no monitor section
[  7752.158] (--) intel(0): Output HDMI2 using initial mode 1920x1080i on pipe 0.
[  7752.158] (==) intel(0): DPI set to (96, 96)
[  7752.158] (II) Loading sub module "dri2"
[  7752.158] (II) LoadModule: "dri2"
[  7752.158] (II) Module "dri2" already built-in
[  7752.158] (==) Depth 24 pixmap format is 32 bpp
[  7752.159] (II) intel(0): SNA initialized with Haswell (gen7.5, gt1) backend
[  7752.159] (==) intel(0): Backing store disabled
[  7752.159] (==) intel(0): Silken mouse enabled
[  7752.159] (II) intel(0): HW Cursor enabled
[  7752.159] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  7752.159] (==) intel(0): DPMS enabled
[  7752.159] (II) intel(0): [DRI2] Setup complete
[  7752.159] (II) intel(0): [DRI2]   DRI driver: i965
[  7752.159] (II) intel(0): direct rendering: DRI2 Enabled
[  7752.159] (WW) intel(0): Option "monitor-HDMI-2" is not used
[  7752.159] (WW) intel(0): Option "PreferredMode" is not used
[  7752.159] (==) intel(0): hotplug detection: "enabled"
[  7752.159] (--) RandR disabled
[  7752.165] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[  7752.165] (II) AIGLX: enabled GLX_INTEL_swap_event
[  7752.165] (II) AIGLX: enabled GLX_ARB_create_context
[  7752.165] (II) AIGLX: enabled GLX_ARB_create_context_profile
[  7752.165] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[  7752.165] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[  7752.165] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[  7752.165] (II) AIGLX: Loaded and initialized i965
[  7752.165] (II) GLX: Initialized DRI2 GL provider for screen 0
[  7752.166] (II) intel(0): switch to mode 1920x1080@50.0 on pipe 0 using HDMI2, position (0, 0), rotation normal
[  7752.193] (II) intel(0): Setting screen physical size to 508 x 285
...

jetzt:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Htpc ~ # cat /var/log/Xorg.0.log | grep intel
...
[  8099.413] (II) LoadModule: "intel"
[  8099.413] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[  8099.413] (II) Module intel: vendor="X.Org Foundation"
[  8099.413] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
[  8099.416] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[  8099.416] (==) intel(0): RGB weight 888
[  8099.416] (==) intel(0): Default visual is TrueColor
[  8099.416] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics
[  8099.416] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2
[  8099.416] (**) intel(0): Framebuffer tiled
[  8099.416] (**) intel(0): Pixmaps tiled
[  8099.416] (**) intel(0): "Tear free" disabled
[  8099.416] (**) intel(0): Forcing per-crtc-pixmaps? no
[  8099.416] (II) intel(0): Output VGA1 using monitor section Monitor0
[  8099.416] (**) intel(0): Option "PreferredMode" "1280x720"
[  8099.416] (II) intel(0): Output DP1 has no monitor section
[  8099.416] (II) intel(0): Output HDMI1 has no monitor section
[  8099.416] (II) intel(0): Output DP2 has no monitor section
[  8099.416] (II) intel(0): Output HDMI2 using monitor section Monitor0
[  8099.416] (--) intel(0): Output HDMI2 using initial mode 1920x1080i on pipe 0
[  8099.416] (==) intel(0): DPI set to (96, 96)
[  8099.417] (II) intel(0): SNA initialized with Haswell (gen7.5, gt1) backend
[  8099.417] (==) intel(0): Backing store disabled
[  8099.417] (==) intel(0): Silken mouse enabled
[  8099.417] (II) intel(0): HW Cursor enabled
[  8099.417] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  8099.417] (==) intel(0): DPMS enabled
[  8099.417] (II) intel(0): [DRI2] Setup complete
[  8099.417] (II) intel(0): [DRI2]   DRI driver: i965
[  8099.417] (II) intel(0): direct rendering: DRI2 Enabled
[  8099.417] (WW) intel(0): Option "PreferredMode" is not used
[  8099.417] (==) intel(0): hotplug detection: "enabled"
[  8099.424] (II) intel(0): switch to mode 1920x1080@50.0 on pipe 0 using HDMI2, position (0, 0), rotation normal
[  8099.453] (II) intel(0): Setting screen physical size to 508 x 285
...


also verwendet X meine Monitor0-Section jetzt zumindest.
Warum wird der PreferredMode vom VGA1 output akzeptiert, aber beim HDMI ignoriert (Warning im zweiten log)?
Ich hab das Option "PreferredMode" "1280x720" jetzt in der Monitor- und der Screen-Section eingefügt, beide Male ohne Erfolg.
:?:

4

24.01.2014, 19:12

Soda,

untypisch für linux OS aber trotzdem -> nach einem Reboot funktioniert alles einwandfrei!

Quellcode

1
[  1574.761] (II) intel(0): switch to mode 1920x1080@60.0 on pipe 0 using HDMI2, position (0, 0), rotation normal


danke!