[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using framebuffer in Xorg (i.MX27 ADS)



Just for reference: I found the problem.
My architecture does not supports to change the resolution so when the Xorg or Xfbdev tries to change it I get the error. Here is a similar thread regarding this problem and showing a workaround to solve it:

http://www.mail-archive.com/xorg@lists.freedesktop.org/msg04115.html

I got an old version of xfbdev that works for me and when I use strace I can see that it does not call ioctl to send FBIOPUT_VSCREENINFO command.
Now I will try to compile Xfbdev applying the mentioned workaround.

Best regards,
Marcelo Utikawa da Fonseca

Marcelo Utikawa da Fonseca escreveu:
Hi!

This is my first message to this list. If I did anything wrong, please advise me! I am new here, I work in a brazillian company and we design boards using ARM CPUs.

Now I am trying to start Xorg using the framebuffer in our custom board based on the i.MX27 ADS from Freescale. We are using Debian Lenny and had installed all Xorg from apt-get and the system is updated.
We are using kernel 2.6.22.

When I run startx, it ends showing the below message:

(EE) FBDEV(0): FBIOPUT_VSCREENINFO succeeded but modified mode
(EE) FBDEV(0): mode initialization failed

Fatal server error:
AddScreen/ScreenInit failed for driver 0

giving up.
xinit: Connection reset by peer (errno 104): unable to connect to X server
xinit:  No such process (errno 3):  Server error.


In the /var/log/Xorg.0.log:


(II) FBDEV: driver for framebuffer: fbdev
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"
(II) Loading /usr/lib/xorg/modules/linux//libfbdevhw.so
(II) Module fbdevhw: vendor="X.Org Foundation"
       compiled for 1.4.2, module version = 0.0.2
       ABI class: X.Org Video Driver, version 2.0
(II) FBDEV(0): using default device
(II) Running in FRAMEBUFFER Mode
(**) FBDEV(0): Depth 16, (--) framebuffer bpp 16
(==) FBDEV(0): RGB weight 565
(==) FBDEV(0): Default visual is TrueColor
(==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
(II) FBDEV(0): hardware: DISP0 BG (video memory: 750kB)
(II) FBDEV(0): checking modes against framebuffer device...
(II) FBDEV(0):  mode "800x480@67" test failed
(II) FBDEV(0):  mode "800x480@68" test failed
(II) FBDEV(0):  mode "800x480" test failed
(II) FBDEV(0):  mode "800x480@60" test failed
(II) FBDEV(0): checking modes against monitor...
(--) FBDEV(0): Virtual size is 800x480 (pitch 800)
(**) FBDEV(0):  Built-in mode "current": 33.3 MHz, 35.9 kHz, 68.2 Hz
(II) FBDEV(0): Modeline "current"x0.0 33.33 800 864 865 929 480 500 501 526 +hsync -vsync -csync (35.9 kHz)
(==) FBDEV(0): DPI set to (96, 96)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
       compiled for 1.4.2, module version = 1.0.0
       ABI class: X.Org ANSI C Emulation, version 0.3
(**) FBDEV(0): using shadow framebuffer
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"
(II) Loading /usr/lib/xorg/modules//libshadow.so
(II) Module shadow: vendor="X.Org Foundation"
       compiled for 1.4.2, module version = 1.1.0
       ABI class: X.Org ANSI C Emulation, version 0.3
(EE) FBDEV(0): FBIOPUT_VSCREENINFO succeeded but modified mode
(EE) FBDEV(0): mode initialization failed

Fatal server error:
AddScreen/ScreenInit failed for driver 0


All this modes that X is testing was declared inside the xorg.conf because when they are not there I always receive the error message "mode not found" instead "test failed".
Now my config file (/etc/X11/xorg.conf):


Section "InputDevice"
       Identifier      "Generic Keyboard"
       Driver          "kbd"
       Option          "XkbRules"      "xorg"
       Option          "XkbModel"      "pc104"
       Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
       Identifier      "Configured Mouse"
       Driver          "mouse"
EndSection

Section "Device"
       Identifier      "Configured Video Device"
       Option          "UseFBDev"              "true"
       Driver          "fbdev"
EndSection

Section "Monitor"
       Identifier      "Configured Monitor"
       UseModes        "Custom Modes"
EndSection

Section "Modes"
       Identifier      "Custom Modes"
       Modeline        "800x480@68" 34.24 800 832 960 992 480 489 495 505
       Modeline        "800x480@67" 33.30 800 832 952 984 480 489 495 505
Modeline "800x480" 33.33 800 864 865 929 480 500 501 526 +hsync -vsync -csync
       Modeline        "800x480@60" 33.33 800 864 865 929 480 500 501 526
EndSection

Section "Screen"
       Identifier      "Default Screen"
       Device          "Configured Video Device"
       Monitor         "Configured Monitor"
       DefaultDepth    16
       SubSection "Display"
               Depth           16
Modes "800x480@67" "800x480@68" "800x480" "800x480@60"
       EndSubSection
EndSection

Section "ServerLayout"
       Identifier      "Default Layout"
       Screen          "Default Screen"
       InputDevice     "Generic Keyboard"
       InputDevice     "Configured Mouse"
EndSection


Best regards,
Marcelo Utikawa da Fonseca


---------------------------------------------
Tecnequip Tecnologia em Equipamentos
Endereço/Address: Rua Juno, 527
Cidade/City: São Paulo
Estado/State: SP
País/Country: Brasil
CEP/Postal Code: 03445-000
Fone/Phone: 55-11-20937199
FAX: 55-11-29412289




---------------------------------------------
Tecnequip Tecnologia em Equipamentos
Endereço/Address: Rua Juno, 527
Cidade/City: São Paulo
Estado/State: SP
País/Country: Brasil
CEP/Postal Code: 03445-000
Fone/Phone: 55-11-20937199
FAX: 55-11-29412289


Reply to: