3D Beschleunigung für Intel Broadwell unter OpenBSD 5.9

zuglufttier

Well-Known Member
Ahoi,

mein Thinkpad X1 Carbon 2015 hat eine Intel 5500 verbaut und die Unterstützung bei den BSDs ist da leider noch ein bisschen mittelmäßig. FreeBSD ist da noch eine weitaus größere Baustelle, deswegen probiere zum ersten Mal OpenBSD so richtig aus. Gefällt mir bisher ganz gut!

X läuft, wenn ich den Treiber "intel" explizit laden lasse, automatisch würde "vesa" gesetzt. Hier meine "/var/log/Xorg.0.log":

Code:
[  1949.468] (--) checkDevMem: using aperture driver /dev/xf86
[  1949.474] (--) Using wscons driver on /dev/ttyC4 in pcvt compatibility mode (version 3.32)
[  1949.484]
X.Org X Server 1.17.4
Release Date: 2015-10-28
[  1949.484] X Protocol Version 11, Revision 0
[  1949.484] Build Operating System: OpenBSD 5.9 amd64
[  1949.485] Current Operating System: OpenBSD mo30248.hs-woe.de 5.9 GENERIC.MP#1 amd64
[  1949.485] Build Date: 26 February 2016  01:59:52AM
[  1949.485]  
[  1949.485] Current version of pixman: 0.32.8
[  1949.485]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[  1949.485] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1949.485] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr  4 15:12:27 2016
[  1949.485] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
[  1949.486] (==) No Layout section.  Using the first Screen section.
[  1949.486] (==) No screen section available. Using defaults.
[  1949.486] (**) |-->Screen "Default Screen Section" (0)
[  1949.486] (**) |  |-->Monitor "<default monitor>"
[  1949.486] (==) No device specified for screen "Default Screen Section".
   Using the first device section listed.
[  1949.486] (**) |  |-->Device "Intel Graphics"
[  1949.486] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[  1949.486] (==) Disabling SIGIO handlers for input devices
[  1949.486] (==) Automatically adding devices
[  1949.486] (==) Automatically enabling devices
[  1949.486] (==) Not automatically adding GPU devices
[  1949.486] (==) FontPath set to:
   /usr/X11R6/lib/X11/fonts/misc/,
   /usr/X11R6/lib/X11/fonts/TTF/,
   /usr/X11R6/lib/X11/fonts/OTF/,
   /usr/X11R6/lib/X11/fonts/Type1/,
   /usr/X11R6/lib/X11/fonts/100dpi/,
   /usr/X11R6/lib/X11/fonts/75dpi/
[  1949.486] (==) ModulePath set to "/usr/X11R6/lib/modules"
[  1949.486] (**) Extension "Composite" is disabled
[  1949.486] (II) The server relies on wscons to provide the list of input devices.
   If no devices become available, reconfigure wscons or disable AutoAddDevices.
[  1949.486] (II) Loader magic: 0xf9abcf324a0
[  1949.486] (II) Module ABI versions:
[  1949.486]    X.Org ANSI C Emulation: 0.4
[  1949.486]    X.Org Video Driver: 19.0
[  1949.486]    X.Org XInput driver : 21.0
[  1949.486]    X.Org Server Extension : 9.0
[  1949.486] (--) PCI:*(0:0:2:0) 8086:1616:17aa:2227 rev 9, Mem @ 0xe0000000/16777216, 0xc0000000/536870912, I/O @ 0x00003000/64
[  1949.486] (II) LoadModule: "glx"
[  1949.487] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[  1949.490] (II) Module glx: vendor="X.Org Foundation"
[  1949.490]    compiled for 1.17.4, module version = 1.0.0
[  1949.490]    ABI class: X.Org Server Extension, version 9.0
[  1949.490] (==) AIGLX enabled
[  1949.490] (II) LoadModule: "intel"
[  1949.490] (II) Loading /usr/X11R6/lib/modules/drivers/intel_drv.so
[  1949.490] (II) Module intel: vendor="X.Org Foundation"
[  1949.490]    compiled for 1.17.4, module version = 2.99.916
[  1949.490]    Module class: X.Org Video Driver
[  1949.490]    ABI class: X.Org Video Driver, version 19.0
[  1949.490] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
   i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
   915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
   Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
   GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[  1949.491] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[  1949.491] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[  1949.491] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[  1949.491] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20080730
[  1949.492] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD graphics 5500
[  1949.492] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2
[  1949.492] (II) intel(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[  1949.492] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[  1949.492] (==) intel(0): RGB weight 888
[  1949.492] (==) intel(0): Default visual is TrueColor
[  1949.492] (**) intel(0): Option "AccelMethod" "sna"
[  1949.492] (**) intel(0): Option "TripleBuffer" "true"
[  1949.492] (**) intel(0): Option "TearFree" "true"
[  1949.492] (II) intel(0): Output eDP1 has no monitor section
[  1949.492] (--) intel(0): Found backlight control interface wscons (type 'platform') for output eDP1
[  1949.492] (II) intel(0): Enabled output eDP1
[  1949.492] (II) intel(0): Output DP1 has no monitor section
[  1949.492] (II) intel(0): Enabled output DP1
[  1949.492] (II) intel(0): Output HDMI1 has no monitor section
[  1949.492] (II) intel(0): Enabled output HDMI1
[  1949.492] (II) intel(0): Output DP2 has no monitor section
[  1949.492] (II) intel(0): Enabled output DP2
[  1949.492] (II) intel(0): Output HDMI2 has no monitor section
[  1949.492] (II) intel(0): Enabled output HDMI2
[  1949.493] (--) intel(0): Using a maximum size of 64x64 for hardware cursors
[  1949.493] (II) intel(0): Output VIRTUAL1 has no monitor section
[  1949.493] (II) intel(0): Enabled output VIRTUAL1
[  1949.493] (--) intel(0): Output eDP1 using initial mode 2560x1440 on pipe 0
[  1949.493] (**) intel(0): TearFree enabled
[  1949.493] (==) intel(0): DPI set to (96, 96)
[  1949.493] (II) Loading sub module "dri2"
[  1949.493] (II) LoadModule: "dri2"
[  1949.493] (II) Module "dri2" already built-in
[  1949.493] (II) Loading sub module "present"
[  1949.493] (II) LoadModule: "present"
[  1949.493] (II) Module "present" already built-in
[  1949.493] (==) Depth 24 pixmap format is 32 bpp
[  1949.493] (II) intel(0): SNA initialized with Broadwell backend
[  1949.493] (==) intel(0): Backing store disabled
[  1949.493] (==) intel(0): Silken mouse disabled
[  1949.493] (II) intel(0): HW Cursor enabled
[  1949.493] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  1949.493] (==) intel(0): DPMS enabled
[  1949.493] (II) intel(0): [DRI2] Setup complete
[  1949.493] (II) intel(0): [DRI2]  DRI driver: i965
[  1949.493] (II) intel(0): [DRI2]  VDPAU driver: i965
[  1949.493] (II) intel(0): direct rendering: DRI2 enabled
[  1949.493] (II) intel(0): hardware support for Present enabled
[  1949.493] (--) RandR disabled
[  1949.519] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[  1949.519] (II) AIGLX: enabled GLX_ARB_create_context
[  1949.519] (II) AIGLX: enabled GLX_ARB_create_context_profile
[  1949.519] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[  1949.519] (II) AIGLX: enabled GLX_INTEL_swap_event
[  1949.519] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[  1949.520] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[  1949.520] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[  1949.520] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[  1949.520] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[  1949.520] (II) AIGLX: Loaded and initialized i965
[  1949.520] (II) GLX: Initialized DRI2 GL provider for screen 0
[  1949.524] (II) intel(0): switch to mode 2560x1440@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[  1949.543] (II) intel(0): Setting screen physical size to 677 x 381
[  1949.622] (II) config/wscons: checking input device /dev/wskbd
[  1949.622] (II) wskbd: using layout de
[  1949.622] (II) LoadModule: "kbd"
[  1949.623] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[  1949.623] (II) Module kbd: vendor="X.Org Foundation"
[  1949.623]    compiled for 1.17.4, module version = 1.8.1
[  1949.623]    Module class: X.Org XInput Driver
[  1949.623]    ABI class: X.Org XInput driver, version 21.0
[  1949.623] (II) Using input driver 'kbd' for '/dev/wskbd'
[  1949.623] (**) /dev/wskbd: always reports core events
[  1949.623] (**) /dev/wskbd: always reports core events
[  1949.623] (**) Option "Protocol" "standard"
[  1949.623] (**) Option "XkbRules" "base"
[  1949.623] (**) Option "XkbModel" "pc105"
[  1949.623] (**) Option "XkbLayout" "de"
[  1949.623] (II) XINPUT: Adding extended input device "/dev/wskbd" (type: KEYBOARD, id 6)
[  1950.085] (II) config/wscons: checking input device /dev/wsmouse0
[  1950.085] (**) /dev/wsmouse0: Applying InputClass "touchpad catchall"
[  1950.085] (**) /dev/wsmouse0: Applying InputClass "Default clickpad buttons"
[  1950.085] (II) LoadModule: "synaptics"
[  1950.087] (II) Loading /usr/X11R6/lib/modules/input/synaptics_drv.so
[  1950.088] (II) Module synaptics: vendor="X.Org Foundation"
[  1950.088]    compiled for 1.17.4, module version = 1.8.3
[  1950.088]    Module class: X.Org XInput Driver
[  1950.088]    ABI class: X.Org XInput driver, version 21.0
[  1950.088] (II) Using input driver 'synaptics' for '/dev/wsmouse0'
[  1950.088] (**) /dev/wsmouse0: always reports core events
[  1950.088] (**) Option "Device" "/dev/wsmouse0"
[  1950.955] (--) synaptics: /dev/wsmouse0: x-axis range 1472 - 5676 resolution 45
[  1950.955] (--) synaptics: /dev/wsmouse0: y-axis range 1408 - 4758 resolution 68
[  1950.955] (**) /dev/wsmouse0: always reports core events
[  1950.959] (II) XINPUT: Adding extended input device "/dev/wsmouse0" (type: TOUCHPAD, id 7)
[  1950.959] (**) synaptics: /dev/wsmouse0: (accel) MinSpeed is now constant deceleration 2.5
[  1950.959] (**) synaptics: /dev/wsmouse0: (accel) MaxSpeed is now 1.75
[  1950.959] (**) synaptics: /dev/wsmouse0: (accel) AccelFactor is now 0.037
[  1950.960] (**) /dev/wsmouse0: (accel) keeping acceleration scheme 1
[  1950.960] (**) /dev/wsmouse0: (accel) acceleration profile 1
[  1950.960] (**) /dev/wsmouse0: (accel) acceleration factor: 2.000
[  1950.960] (**) /dev/wsmouse0: (accel) acceleration threshold: 4
[  1951.391] (II) config/wscons: checking input device /dev/wsmouse
[  1951.391] (II) LoadModule: "ws"
[  1951.394] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[  1951.394] (II) Module ws: vendor="X.Org Foundation"
[  1951.394]    compiled for 1.17.4, module version = 1.3.0
[  1951.394]    Module class: X.Org XInput Driver
[  1951.394]    ABI class: X.Org XInput driver, version 21.0
[  1951.394] (II) Using input driver 'ws' for '/dev/wsmouse'
[  1951.394] (**) /dev/wsmouse: always reports core events
[  1951.394] (II) ws: /dev/wsmouse: debuglevel 0
[  1951.394] (**) Option "Device" "/dev/wsmouse"
[  1951.394] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[  1951.395] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[  1951.395] (**) ws: /dev/wsmouse: associated screen: 0
[  1951.395] (II) ws: /dev/wsmouse: minimum x position: 0
[  1951.395] (II) ws: /dev/wsmouse: maximum x position: 2559
[  1951.395] (II) ws: /dev/wsmouse: minimum y position: 0
[  1951.395] (II) ws: /dev/wsmouse: maximum y position: 1439
[  1951.395] (==) ws: /dev/wsmouse: Buttons: 7
[  1951.395] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[  1951.395] (II) XINPUT: Adding extended input device "/dev/wsmouse" (type: MOUSE, id 8)
[  1951.395] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[  1951.395] (**) /dev/wsmouse: (accel) acceleration profile 0
[  1951.395] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[  1951.395] (**) /dev/wsmouse: (accel) acceleration threshold: 4
[  1951.506] (II) intel(0): EDID vendor "LGD", prod id 1049
[  1951.506] (II) intel(0): Printing DDC gathered Modelines:
[  1951.506] (II) intel(0): Modeline "2560x1440"x0.0  237.80  2560 2608 2640 2720  1440 1442 1445 1457 +hsync -vsync (87.4 kHz eP)

Und noch "/usr/X11R6/share/X11/xorg.conf.d/20-intel.conf":

Code:
Section "Device"
   Identifier   "Intel Graphics"
   Driver     "intel"
   Option      "TearFree"   "true"
   Option      "AccelMethod"   "sna"   
   Option     "TripleBuffer"   "true"
EndSection

Section "Extensions"
   Option     "Composite"   "Disable"
EndSection

Leider werden aber z. B. HD Videos bei youtube nicht via GPU dekodiert und deswegen wird die CPU genommen und die ist sehr schwach auf der Brust! Soll heißen, ich kann keine Videos abspielen...

Hat da jemand noch eine Idee was ich nachgucken könnte?
 
Wenn du kein Problem damit hast, -current laufen zu lassen, empfehle ich ein Update auf einen Snapshot. Die Performance von Firefox und Chrome (und anderen Programmen) war die ganzen Jahre durch Bugs in librthread so schlecht, aus irgendwelchen Gründen haben das aber immer alle hingenommen [1][2]. In den neuen Snapshots sind die Bugs behoben, auch auf meinem alten amd dual-core kann ich jetzt youtube im fullscreen gucken.

Einen Snapshot zu installieren ist ganz einfach:

* von einem Mirror deiner Wahl die Datei "bsd.rd" aus dem snapshot-Verzeichnis runterladen und nach
Code:
/
kopieren
* neu starten, beim bootprompt
Code:
boot /bsd.rd
eingeben
* ein Update starten
* sets von einem Mirror in deiner Nähe laden
* nach dem reboot
Code:
sysmerge
und
Code:
pkg_add -u
ausführen

Das ist der selbe Vorgang, den man unter http://www.openbsd.org/faq/upgrade59.html lesen kann, aber du solltest dann noch http://www.openbsd.org/faq/current.html lesen, ob sich irgendwas wichtiges ereignet hat (tut es nur selten).

Viel Erfolg ;)

[1]: http://marc.info/?t=145839233500001&r=1&w=2
[2]: http://garbage.fm/episodes/19
 
Danke für den Tipp! Das Update klappt ja wunderbar ;) Hatte schon ein bisschen Bedenken, denn ich hatte gelesen, es sei deutlich komplizierter als bei FreeBSD...

Nun, die Performance ist schon eine ganze Ecke besser, beschleunigt sind die Videos leider trotzdem nicht. Es läuft also alles auf der CPU. Bei "about:support" in Firefox wird auch keine Beschleunigung angezeigt, siehe Screenshot:
2016-04-05-095334_2560x1440_scrot.png
 
Vielleicht hast du einfach noch Pech, ich hab auf der Mailingliste einen Thread von Dezember gefunden, in dem die Deaktivierung der 2d-Beschleunigung diskutiert wird, weil manche Leute damit Probleme hatten: http://marc.info/?l=openbsd-tech&m=144898473123107&w=2

Um ganz sicher zu gehen, würde ich nochmal auf misc@ oder im irc (#openbsd auf freenode) nachfragen, da solltest du jemanden mit deinem Laptopmodell finden.

Edit: hab noch das hier gefunden, vielleicht hilfts ja: http://marc.info/?l=openbsd-misc&m=145134078321919&w=2
 
Danke für die Links! Es sieht wohl wirklich so aus als ob ich noch ein bisschen zu früh dran bin...

Die 3D Beschleunigung an sich funktioniert auch, so nicht. Jedoch wird kaum etwas im Browser beschleunigt. DIe Nutzung von webgl führt zu komischen Artefakten und Videos laufen komplett auf der CPU.

Ich schau mal, ob mich das im normalen Betrieb wirklich stört.
 
Also insgesamt machte das System aber doch einen netten Eindruck. Aber da mich solche Sachen früher oder später dann doch ärgen, hab ich wieder Arch Linux installiert...

Das läuft noch eine Ecke responsiver als Windows 10 ;)
 
Diese unnachahmliche Art zu erklären, daß andere Mist gebaut haben, muß man glaube ich einfach mögen, wenn man mit OpenBSD klar kommen möchte ... ;)
Ich schwanke da immer zwischen "sie haben ja recht" und "spare me the details, just make it work". Erinnert ihr euch noch als einem erklärt wurde das WPA-Unterstützung sinnlos ist?

edit: sollte nicht undankbar klingen. Ich finde die Arbeit super, gerade die wpa-Lösung innerhalb von ifconfig dann auch sehr gelungen. Wäre nur schön, wenn die Sache nicht erst drei Jahre als "WONTFIX" markiert werden bevor dann doch alle einsehen, dass es eben doch ein bug und kein feature ist.
 
Zurück
Oben