Change default resolution on BeagleBone modesetting vs fbdev

digiteltlc
May 7th, 2014, 03:28 PM
Hi
I'm running a BeagleBone with a 5,7" LCD Touchscreen with a native resolution of 640x480
However, the system recognizes monitor as a LCD7 Cape with 800x480
resolution and after LXDE boot desktop is only partially displayed

On the old 12.04 FBDEV was used and I fixed problem adding the /usr/share/X11/xorg.conf.d/10-monitor.conf this way :

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
#Limited by SGX?
DefaultDepth 16
SubSection "Display"
Modes "640x480"
EndSubsection
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "omapfb"
Option "fb" "/dev/fb0"
EndSection

With new kernel on 13.10 or 14.04 it seems FBDEV is no more used but modesetting is, instead.
So the old 10-monitor.conf is useless.

/var/log/Xorg.0.log from 12.04 is :

[ 25.574] (II) LoadModule: "glx"
[ 25.590] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 25.621] (II) Module glx: vendor="X.Org Foundation"
[ 25.621] compiled for 1.13.0, module version = 1.0.0
[ 25.621] ABI class: X.Org Server Extension, version 7.0
[ 25.621] (==) AIGLX enabled
[ 25.622] Loading extension GLX
[ 25.622] (II) LoadModule: "omapfb"
[ 25.624] (WW) Warning, couldn't open module omapfb
[ 25.624] (II) UnloadModule: "omapfb"
[ 25.624] (II) Unloading omapfb
[ 25.625] (EE) Failed to load module "omapfb" (module does not exist, 0)
[ 25.625] (==) Matched omapfb as autoconfigured driver 0
[ 25.625] (==) Matched modesetting as autoconfigured driver 1
[ 25.625] (==) Matched fbdev as autoconfigured driver 2
[ 25.625] (==) Assigned the driver to the xf86ConfigLayout
[ 25.625] (II) LoadModule: "omapfb"
[ 25.627] (WW) Warning, couldn't open module omapfb
[ 25.627] (II) UnloadModule: "omapfb"
[ 25.628] (II) Unloading omapfb
[ 25.628] (EE) Failed to load module "omapfb" (module does not exist, 0)
[ 25.628] (II) LoadModule: "modesetting"
[ 25.629] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 25.643] (II) Module modesetting: vendor="X.Org Foundation"
[ 25.644] compiled for 1.13.0, module version = 0.5.0
[ 25.644] Module class: X.Org Video Driver
[ 25.644] ABI class: X.Org Video Driver, version 13.0
[ 25.644] (II) LoadModule: "fbdev"
[ 25.645] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 25.649] (II) Module fbdev: vendor="X.Org Foundation"
[ 25.649] compiled for 1.12.99.902, module version = 0.4.3
[ 25.649] Module class: X.Org Video Driver
[ 25.649] ABI class: X.Org Video Driver, version 13.0
[ 25.649] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 25.650] (II) FBDEV: driver for framebuffer: fbdev
[ 25.650] (++) using VT number 7

[ 25.656] (WW) Falling back to old probe method for modesetting
[ 25.656] (EE) open /dev/dri/card0: No such file or directory
[ 25.656] (WW) Falling back to old probe method for fbdev
[ 25.656] (II) Loading sub module "fbdevhw"
[ 25.656] (II) LoadModule: "fbdevhw"
[ 25.658] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 25.661] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 25.662] compiled for 1.13.0, module version = 0.0.2
[ 25.662] ABI class: X.Org Video Driver, version 13.0
[ 25.662] (II) FBDEV(0): using default device
[ 25.662] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 25.663] (**) FBDEV(0): Depth 16, (--) framebuffer bpp 16
[ 25.663] (==) FBDEV(0): RGB weight 565
[ 25.663] (==) FBDEV(0): Default visual is TrueColor
[ 25.663] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 25.663] (II) FBDEV(0): hardware: DA8xx FB Drv (video memory: 1600kB)
[ 25.663] (II) FBDEV(0): checking modes against framebuffer device...
[ 25.663] (II) FBDEV(0): mode "640x480" ok
[ 25.663] (II) FBDEV(0): checking modes against monitor...
[ 25.664] (--) FBDEV(0): Virtual size is 640x480 (pitch 640)
[ 25.664] (**) FBDEV(0): Default mode "640x480": 25.2 MHz (scaled from 0.0 MHz), 31.5 kHz, 59.9 Hz
[ 25.664] (II) FBDEV(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz d)
[ 25.664] (==) FBDEV(0): DPI set to (96, 96)
[ 25.664] (II) Loading sub module "fb"
[ 25.664] (II) LoadModule: "fb"
[ 25.666] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 25.679] (II) Module fb: vendor="X.Org Foundation"
[ 25.679] compiled for 1.13.0, module version = 1.0.0
[ 25.679] ABI class: X.Org ANSI C Emulation, version 0.4
[ 25.683] (**) FBDEV(0): using shadow framebuffer
[ 25.683] (II) Loading sub module "shadow"
[ 25.683] (II) LoadModule: "shadow"
[ 25.684] (II) Loading /usr/lib/xorg/modules/libshadow.so
[ 25.692] (II) Module shadow: vendor="X.Org Foundation"
[ 25.692] compiled for 1.13.0, module version = 1.1.0
[ 25.692] ABI class: X.Org ANSI C Emulation, version 0.4
[ 25.692] (II) UnloadModule: "modesetting"
[ 25.692] (II) Unloading modesetting
[ 25.693] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[ 25.701] (==) FBDEV(0): Backing store disabled
[ 25.702] (==) FBDEV(0): DPMS enabled
[ 25.703] (==) RandR enabled

The 13.10 one is :

[ 24.549] (II) LoadModule: "glx"
[ 24.603] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 24.805] (II) Module glx: vendor="X.Org Foundation"
[ 24.806] compiled for 1.15.1, module version = 1.0.0
[ 24.806] ABI class: X.Org Server Extension, version 8.0
[ 24.806] (==) AIGLX enabled
[ 24.806] Loading extension GLX
[ 24.816] (==) Matched omapfb as autoconfigured driver 0
[ 24.820] (==) Matched modesetting as autoconfigured driver 1
[ 24.823] (==) Matched fbdev as autoconfigured driver 2
[ 24.823] (==) Assigned the driver to the xf86ConfigLayout
[ 24.823] (II) LoadModule: "omapfb"
[ 24.833] (WW) Warning, couldn't open module omapfb
[ 24.842] (II) UnloadModule: "omapfb"
[ 24.842] (II) Unloading omapfb
[ 24.842] (EE) Failed to load module "omapfb" (module does not exist, 0)
[ 24.842] (II) LoadModule: "modesetting"
[ 24.852] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 24.866] (II) Module modesetting: vendor="X.Org Foundation"
[ 24.866] compiled for 1.15.0, module version = 0.8.1
[ 24.866] Module class: X.Org Video Driver
[ 24.866] ABI class: X.Org Video Driver, version 15.0
[ 24.867] (II) LoadModule: "fbdev"
[ 24.868] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 24.884] (II) Module fbdev: vendor="X.Org Foundation"
[ 24.888] compiled for 1.15.0, module version = 0.4.4
[ 24.888] Module class: X.Org Video Driver
[ 24.888] ABI class: X.Org Video Driver, version 15.0
[ 24.894] (==) Matched omapfb as autoconfigured driver 0
[ 24.894] (==) Matched modesetting as autoconfigured driver 1
[ 24.894] (==) Matched fbdev as autoconfigured driver 2
[ 24.894] (==) Assigned the driver to the xf86ConfigLayout
[ 24.899] (II) LoadModule: "omapfb"
[ 24.916] (WW) Warning, couldn't open module omapfb
[ 24.916] (II) UnloadModule: "omapfb"
[ 24.916] (II) Unloading omapfb
[ 24.916] (EE) Failed to load module "omapfb" (module does not exist, 0)
[ 24.916] (II) LoadModule: "modesetting"
[ 24.926] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 24.926] (II) Module modesetting: vendor="X.Org Foundation"
[ 24.926] compiled for 1.15.0, module version = 0.8.1
[ 24.926] Module class: X.Org Video Driver
[ 24.927] ABI class: X.Org Video Driver, version 15.0
[ 24.927] (II) UnloadModule: "modesetting"
[ 24.927] (II) Unloading modesetting
[ 24.927] (II) Failed to load module "modesetting" (already loaded, 0)
[ 24.927] (II) LoadModule: "fbdev"
[ 24.939] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 24.944] (II) Module fbdev: vendor="X.Org Foundation"
[ 24.944] compiled for 1.15.0, module version = 0.4.4
[ 24.944] Module class: X.Org Video Driver
[ 24.945] ABI class: X.Org Video Driver, version 15.0
[ 24.945] (II) UnloadModule: "fbdev"
[ 24.945] (II) Unloading fbdev
[ 24.949] (II) Failed to load module "fbdev" (already loaded, 0)
[ 24.949] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 24.949] (II) FBDEV: driver for framebuffer: fbdev
[ 24.950] (++) using VT number 7

[ 24.955] (II) modesetting(0): using drv /dev/dri/card0
[ 24.956] (WW) Falling back to old probe method for fbdev
[ 24.956] (II) Loading sub module "fbdevhw"
[ 24.956] (II) LoadModule: "fbdevhw"
[ 24.957] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 24.960] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 24.960] compiled for 1.15.1, module version = 0.0.2
[ 24.967] ABI class: X.Org Video Driver, version 15.0
[ 24.967] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 24.968] (II) modesetting(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 24.968] (==) modesetting(0): Depth 24, (==) framebuffer bpp 32
[ 24.973] (==) modesetting(0): RGB weight 888
[ 24.974] (==) modesetting(0): Default visual is TrueColor
[ 24.974] (II) modesetting(0): ShadowFB: preferred NO, enabled NO
[ 24.974] (II) modesetting(0): Output LVDS-0 has no monitor section
[ 24.975] (II) modesetting(0): EDID for output LVDS-0
[ 24.975] (II) modesetting(0): Printing probed modes for output LVDS-0
[ 24.975] (II) modesetting(0): Modeline "800x480"x61.5 30.00 800 840 888 928 480 493 496 526 -hsync -vsync (32.3 kHz eP)
[ 24.975] (II) modesetting(0): Output LVDS-0 connected
[ 24.975] (II) modesetting(0): Using exact sizes for initial modes
[ 24.975] (II) modesetting(0): Output LVDS-0 using initial mode 800x480
[ 24.976] (II) modesetting(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 24.976] (==) modesetting(0): DPI set to (96, 96)
[ 24.976] (II) Loading sub module "fb"
[ 24.976] (II) LoadModule: "fb"
[ 24.992] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 25.004] (II) Module fb: vendor="X.Org Foundation"
[ 25.005] compiled for 1.15.1, module version = 1.0.0
[ 25.005] ABI class: X.Org ANSI C Emulation, version 0.4
[ 25.005] (II) UnloadModule: "fbdev"
[ 25.005] (II) Unloading fbdev
[ 25.005] (II) UnloadSubModule: "fbdevhw"
[ 25.011] (II) Unloading fbdevhw
[ 25.015] (==) Depth 24 pixmap format is 32 bpp
[ 25.049] (==) modesetting(0): Backing store enabled
[ 25.049] (==) modesetting(0): Silken mouse enabled
[ 25.054] (II) modesetting(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 25.057] (==) modesetting(0): DPMS enabled
[ 25.139] (--) RandR disabled

How I can fix resolution in 13.10 ??
Can I still use 10-monitor.conf ? which settings ??

Thank you very much.

digiteltlc
May 8th, 2014, 09:21 AM
I just kept the new modeset driver, no omapfb or fbset

Just instruct which modeline to use in 10-monitor.conf this way :

Start lXterminal in lxde environment and issue the command

cvt 640 480 60 (horizontal - vertical - rate)

its output will be something like:

# 640x480 59.38 Hz (CVT 0.31M3) hsync: 29.69 kHz; pclk: 23.75 MHz
Modeline "640x480_60.00" 23.75 640 664 720 800 480 483 487 500 -hsync +vsync

create a new /usr/share/X11/xorg.conf.d/10-monitor.conf inserting the copied RED line in Monitor section this way :

Section "Monitor"
Identifier "Monitor0"
Modeline "640x480_60.00" 23.75 640 664 720 800 480 483 487 500 -hsync +vsync
EndSection

Section "Device"
Identifier "Device0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 16 #Choose the depth (16||24)
SubSection "Display"
Depth 16
Modes "640x480_60.00" #Choose the resolution, match the Modeline
EndSubSection
EndSection

Save and reboot,
it worked for me, hope it helps someone with this problem.

Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.

beaglebone black ubuntu display x11 server的配置的更多相关文章

  1. Ubuntu 安装 SSH server 并配置 SSH 无密码登录

    https://hinine.com/install-and-configure-ssh-server-on-ubuntu/ Ubuntu 安装 SSH server 并配置 SSH 无密码登录 发表 ...

  2. Ubuntu Server如何配置SFTP

    SH File Transfer Protocol是一个比普通FTP更为安全的文件传输协议.(参考资料:http://en.wikipedia.org/wiki/SSH_File_Transfer_P ...

  3. Ubuntu Server如何配置SFTP(建立用户监狱)

    Ubuntu Server如何配置SFTP(建立用户监狱)   SSH File Transfer Protocol是一个比普通FTP更为安全的文件传输协议.(参考资料:http://en.wikip ...

  4. 在Ubuntu Server下配置LAMP环境

    1. 下载Ubuntu Server,地址https://www.ubuntu.com/download/server 2. 在虚拟机上安装Ubuntu Server.根据安装引导过程一步步安装,跟在 ...

  5. [转]ubuntu server上网配置

    [转]ubuntu server上网配置 http://blog.sina.com.cn/s/blog_6c9d65a101011pyt.html 今天我的ubuntu server上不去网了,所以重 ...

  6. Ubuntu server 网络配置中遇到的问题

    Ubuntu server 网络配置中遇到的问题 图片中ip地址有可能和文字不符,请不要在意太多,知道原理即可 - 1.首先就是要配置ip地址 vim /etc/network/interfaces ...

  7. ubuntu中VNC的安装配置笔记

    使用服务器时,利用远程桌面是非常方便的,否则需要跑到服务器机房操作非常的费事,或者需要远程操作机器是也可以使用,一般的操作系统都会带有远程桌面功能,但是不如第三方的的软件好用,对于linux系统常用的 ...

  8. 在Linux(Ubuntu/openSUSE/CentOS)下配置ASP.NET(Apache + Mono)

    [题外话] 闲的无聊竟然想尝试测试自己做的项目在不同操作系统上的性能表现,所以决定试试在Linux上部署Apache和Mono的环境.由于平时很少接触Linux,所以从网上找了几篇文章(附在相关链接中 ...

  9. [转]ubuntu 10.04下的配置tftp服务器

    [转]ubuntu 10.04下的配置tftp服务器 http://www.cnblogs.com/geneil/archive/2011/11/24/2261653.html 第1步:安装tftp所 ...

随机推荐

  1. SSH ProxyCommand 实践

    ​ 在阿里上搭了典型的 Nginx + APP server 的架构: 即,只有 Nginx 服务器与公网链接.然后,每次部署升级服务器都要先 SSH 到 Nginx 再 SSH 到 server1 ...

  2. DevExpressComponents-14.2.5 破解过程,正在编写,未完

    首先,批评一下cnblogs,在win10的环境下,需要加入到兼容视图列表方可正常编辑内容, 声明,本人在14.2.3 的源代码环境下,编译未通过,相关功能报错,索性选择破解,在此,只是学习测试使用, ...

  3. Dubbo之旅--集群容错和负载均衡

    当我们的系统中用到Dubbo的集群环境,由于各种原因在集群调用失败时,Dubbo提供了多种容错方案,缺省为failover重试. Dubbo的集群容错在这里想说说他是由于我们实际的项目中出现了此类的问 ...

  4. angularjs库及ionic库下载地址

    angularjs库下载地址: 下载地址:https://code.angularjs.org/ 引用地址:http://www.bootcdn.cn/angular.js/ ionic库下载地址: ...

  5. Python Post and Get 登陆web后台系统并抓取页面

    #coding=utf8 #! /usr/bin/env python import httplib import re import socket import urllib timeout = 6 ...

  6. 使用CopyTable工具方法在线备份HBase表

    CopyTable is a simple Apache HBase utility that, unsurprisingly, can be used for copying individual ...

  7. react 调用项目中的 .html 文件

    (1)将 html 文件 放于 public 文件夹下 (2)window.open('about:blank').location.href="http://localhost:3000/ ...

  8. Redis源代码剖析和凝视(八)--- 对象系统(redisObject)

    Redis 对象系统 1. 介绍 redis中基于双端链表.简单动态字符串(sds).字典.跳跃表.整数集合.压缩列表.高速列表等等数据结构实现了一个对象系统,而且实现了5种不同的对象,每种对象都使用 ...

  9. mybatis select/insert/update/delete

    这里做了比较清晰的解释: http://mybatis.github.io/mybatis-3/java-api.html SqlSession As mentioned above, the Sql ...

  10. D3js-对柱状图的增,删,排序

    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"% ...