I've been searching for some time for a way to set the resolution via bash on libreelec but cannot find anything. Is there a method for setting it?
I've tried the following...
LibreELEC:~ # echo U:1920x1200p-0 > /sys/class/graphics/fb0/mode
sh: write error: Invalid argument
LibreELEC:~ # tvservice -e "CEA 4"
tvservice is not supported when using the vc4-kms-v3d driver.
Similar features are available with standard linux tools
such as modetest from libdrm-tests.
LibreELEC:~ # xrandr -s 1920x1080
-sh: xrandr: not found
LibreELEC:~ # fbset -s
mode "1920x1080-0"
# D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
geometry 1920 1080 1920 1080 16
timings 0 0 0 0 0 0 0
accel true
rgba 5/11,6/5,5/0,0/0
endmode
Finally found some good documentation for modetest but that also fails with permission denied:
DRM KMS overview - stm32mpu
LibreELEC:~ # modetest -M vc4 -s 32@76:1280x720-50 -d
setting mode 1280x720-50.00Hz on connectors 32, crtc 76
failed to set mode: Permission denied
This appears to be down to DRM. Is there a way to disable this?
LibreELEC:~ # dmesg | grep drm -i
[ 1.379393] vc4-drm gpu: bound fe400000.hvs (ops 0xffffffc010d21850)
[ 1.527982] vc4-drm gpu: bound fe400000.hvs (ops 0xffffffc010d21850)
[ 1.533437] vc4-drm gpu: bound fef00700.hdmi (ops 0xffffffc010d1f7d8)
[ 1.535515] vc4-drm gpu: bound fef05700.hdmi (ops 0xffffffc010d1f7d8)
[ 1.535673] vc4-drm gpu: bound fe004000.txp (ops 0xffffffc010d21f98)
[ 1.535801] vc4-drm gpu: bound fe206000.pixelvalve (ops 0xffffffc010d1d020)
[ 1.535913] vc4-drm gpu: bound fe207000.pixelvalve (ops 0xffffffc010d1d020)
[ 1.536031] vc4-drm gpu: bound fe20a000.pixelvalve (ops 0xffffffc010d1d020)
[ 1.536118] vc4-drm gpu: bound fe216000.pixelvalve (ops 0xffffffc010d1d020)
[ 1.536226] vc4-drm gpu: bound fec12000.pixelvalve (ops 0xffffffc010d1d020)
[ 1.537809] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[ 1.589195] vc4-drm gpu: [drm] The core clock cannot reach frequencies high enough to support 4k @ 60Hz.
[ 1.589203] vc4-drm gpu: [drm] Please change your config.txt file to add hdmi_enable_4kp60.
[ 1.651925] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device
[ 1.689585] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1
[ 5.001828] systemd[1]: Starting Load Kernel Module drm...
[ 5.111256] systemd[1]: [email protected]: Succeeded.
[ 5.111821] systemd[1]: Finished Load Kernel Module drm.
Display More
Linux/DRA718: How to enable color bar output on VOUT and HDMI? - Processors forum - Processors - TI E2E support forums
Any ideas? I need a tool for an add on wrapper to launch script. Thanks!