en:bpi-r2:hdmi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r2:hdmi [2020/04/03 10:46] – frank | en:bpi-r2:hdmi [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== HDMI ====== | ||
+ | HDMI works with [[https:// | ||
+ | Discussion in [[http:// | ||
+ | |||
+ | Resolution can be set in BPI-BOOT/ | ||
+ | |||
+ | bootopts=vmalloc=496M debug=7 initcall_debug=0 video=1280x1024-32 | ||
+ | |||
+ | this resolution will be used for both virtual Console and [[X-Server]]. | ||
+ | |||
+ | more about this setting: [[https:// | ||
+ | |||
+ | to resize only font on Console this can be done: | ||
+ | |||
+ | setfont Uni3-TerminusBold32x16.psf.gz | ||
+ | |||
+ | available fonts are in / | ||
+ | |||
+ | Thanks to ForumUser Alex R. aka " | ||
+ | |||
+ | Normally hdmi will be turned off if no monitor is connected (or switched off) while bootup. You can change this with a video-option: | ||
+ | |||
+ | video=HDMI-A-1: | ||
+ | |||
+ | This keeps hdmi enabled and allow hotplug,but in my case there is a resolution-issue. | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ===== DRM Debugging ===== | ||
+ | |||
+ | add " | ||
+ | |||
+ | ===== LIMA ===== | ||
+ | |||
+ | in 5.4 lima is merged to mainline-kernel and do need only some small changes for r2 | ||
+ | |||
+ | but it needs mesa compiled with some small changes too {{ : | ||
+ | |||
+ | < | ||
+ | git clone --single-branch --branch mesa-19.3.2 https:// | ||
+ | cd mesa-source/ | ||
+ | git checkout mesa-19.3.2 | ||
+ | patch -p1 < mesa.patch | ||
+ | meson ./build --buildtype plain --libdir lib/ | ||
+ | ninja -C build/ | ||
+ | sudo ninja -C build/ install | ||
+ | </ | ||
+ | |||
+ | important for debian is " | ||
+ | |||
+ | maybe libdrm needs to be compiled too | ||
+ | |||
+ | < | ||
+ | git clone --single-branch --branch libdrm-2.4.100 https:// | ||
+ | cd drm | ||
+ | git checkout libdrm-2.4.100 | ||
+ | meson build/ | ||
+ | #meson --reconfigure | ||
+ | ninja -C build/ | ||
+ | sudo ninja -C build/ install | ||
+ | #or install to a folder | ||
+ | mkdir install | ||
+ | DESTDIR=$(pwd)/ | ||
+ | </ | ||
+ | |||
+ | ==== usage ==== | ||
+ | |||
+ | while lima initialization hdmi display needs to connected (best at boottime). You can call initialization again by unloading+loading lima module (modprobe -r lima; | ||
+ | |||
+ | Xorg needs a little adjustment too,else you get this error (/ | ||
+ | |||
+ | (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices | ||
+ | |||
+ | just create / | ||
+ | |||
+ | Section " | ||
+ | Option " | ||
+ | EndSection | ||
+ | |||
+ | ==== disable glamore ==== | ||
+ | |||
+ | in case dri crashes on x startup with Sementation fault (because mesa is compiled for another kernel) you can disable it. | ||
+ | |||
+ | first check / | ||
+ | |||
+ | < | ||
+ | [ 26.398] (II) Loading sub module " | ||
+ | [ 26.398] (II) LoadModule: " | ||
+ | [ 26.399] (II) Loading / | ||
+ | [ 26.424] (II) Module glamoregl: vendor=" | ||
+ | [ 26.424] compiled for 1.20.4, module version = 1.0.1 | ||
+ | [ 26.424] ABI class: X.Org ANSI C Emulation, version 0.4 | ||
+ | [ 26.829] (EE) | ||
+ | [ 26.830] (EE) Backtrace: | ||
+ | [ 26.830] (EE) | ||
+ | [ 26.830] (EE) Segmentation fault at address 0xbc | ||
+ | [ 26.830] (EE) | ||
+ | Fatal server error: | ||
+ | [ 26.830] (EE) Caught signal 11 (Segmentation fault). Server aborting | ||
+ | [ 26.830] (EE) | ||
+ | [ 26.831] (EE) | ||
+ | </ | ||
+ | |||
+ | then create a file named / | ||
+ | |||
+ | < | ||
+ | Section " | ||
+ | Identifier " | ||
+ | Driver " | ||
+ | Option " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Disable " | ||
+ | EndSection | ||
+ | </ | ||
+ | |||
+ | and then restart your display-manager (e.g. service lightdm restart) | ||
+ | |||
+ | source: https:// |
en/bpi-r2/hdmi.txt · Last modified: 2023/06/08 17:06 by 127.0.0.1