Startx -> "AddScreen/ScreenInit failed"

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Startx -> "AddScreen/ScreenInit failed"

Postby menos16 » Wed Mar 25, 2015 11:12 am

Hello people, and thanks for your help and your time...

I'm trying to start a desktop environment on a mele a1000 (or 2000, not sure) but i'm having problems and I don't have idea about where to begin because I don't know where is the problem... I explain the situation a little:

Over ssh connection, with a normal user, first I check that the following packages are installed

pacman -Q |grep video

$this->bbcode_second_pass_code('', 'videoproto 2.3.2-1
xf86-video-fbdev 0.4.4-4
xf86-video-fbturbo-git 196.046a771-4')

and the property modules are loaded lsmod

$this->bbcode_second_pass_code('', 'Module Size Used by
8192cu 432917 0
btrfs 633984 0
nfsd 213873 13
mali_drm 2220 0
drm 157553 1 mali_drm
mali 87903 0
ump 27260 1 mali
lcd 3308 0
hdmi 21703 0
disp 293113 2 lcd,hdmi
cfbfillrect 2636 1 disp
cfbimgblt 1610 1 disp
cfbcopyarea 2326 1 disp')

second, chet the xorg.conf doesn't exist, only the cat /etc/X11/xorg.conf.d/99-fbturbo.conf
$this->bbcode_second_pass_code('', 'Section "Device"
Identifier "Allwinner"
Driver "fbturbo"
Option "AccelMethod" "G2D"
Option "DRI2" "true"
EndSection')

I think that it should be enough to run the fbturbo driver with the graphics card and use the HDMI output, (Although I'm not sure). So I run the commands...
export DISPLAY=:0.0 (to init the X server on local hdmi from my ssh session) and startx but I didn't success. The Xorg server try to start, but only i get the message AddScreen/ScreenInit failed for driver 0

And the only thing that I can do is read the log and copy here....

How can I find the problem? What I'm doing wrong?

cat /var/log/Xorg.0.log
$this->bbcode_second_pass_code('', '[653923.514]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[653923.521] X Protocol Version 11, Revision 0
[653923.521] Build Operating System: Linux 3.10.63-6-ARCH armv7l
[653923.522] Current Operating System: Linux walter 3.4.103-3-ARCH #1 PREEMPT Fri Jan 2 20:30:18 MST 2015 armv7l
[653923.522] Kernel command line: console=ttyS0,115200 root=/dev/sda1 loglevel=8 panic=10 rootfstype=ext4 rootwait
[653923.523] Build Date: 22 February 2015 07:04:57AM
[653923.523]
[653923.523] Current version of pixman: 0.32.6
[653923.524] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[653923.524] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[653923.532] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 25 12:09:50 2015
[653923.533] (==) Using config directory: "/etc/X11/xorg.conf.d"
[653923.533] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[653923.534] (==) No Layout section. Using the first Screen section.
[653923.534] (==) No screen section available. Using defaults.
[653923.534] (**) |-->Screen "Default Screen Section" (0)
[653923.534] (**) | |-->Monitor "<default monitor>"
[653923.535] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[653923.535] (**) | |-->Device "Allwinner"
[653923.535] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[653923.535] (==) Automatically adding devices
[653923.535] (==) Automatically enabling devices
[653923.535] (==) Automatically adding GPU devices
[653923.536] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/OTF/".
[653923.536] Entry deleted from font path.
[653923.536] (Run 'mkfontdir' on "/usr/share/fonts/OTF/").
[653923.536] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[653923.536] Entry deleted from font path.
[653923.536] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[653923.536] (==) ModulePath set to "/usr/lib/xorg/modules"
[653923.536] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[653923.536] (II) Loader magic: 0x1dfed8
[653923.536] (II) Module ABI versions:
[653923.536] X.Org ANSI C Emulation: 0.4
[653923.536] X.Org Video Driver: 19.0
[653923.536] X.Org XInput driver : 21.0
[653923.536] X.Org Server Extension : 9.0
[653923.564] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c36
[653923.566] (II) xfree86: Adding drm device (/dev/dri/card0)
[653923.568] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[653923.569] (II) xfree86: Adding drm device (/dev/dri/card1)
[653923.571] (EE) systemd-logind: failed to take device /dev/dri/card1: Operation not permitted
[653923.571] (II) no primary bus or device found
[653923.571] falling back to /sys/devices/platform/mali_drm.0/drm/card0
[653923.572] (II) LoadModule: "glx"
[653923.573] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[653923.624] (II) Module glx: vendor="X.Org Foundation"
[653923.624] compiled for 1.17.1, module version = 1.0.0
[653923.624] ABI class: X.Org Server Extension, version 9.0
[653923.624] (==) AIGLX enabled
[653923.624] (II) LoadModule: "fbturbo"
[653923.625] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[653923.636] (II) Module fbturbo: vendor="X.Org Foundation"
[653923.636] compiled for 1.17.1, module version = 0.5.1
[653923.636] Module class: X.Org Video Driver
[653923.636] ABI class: X.Org Video Driver, version 19.0
[653923.637] (II) FBTURBO: driver for framebuffer: fbturbo
[653923.637] (--) using VT number 3

[653923.638] (WW) Falling back to old probe method for fbturbo
[653923.638] (II) Loading sub module "fbdevhw"
[653923.638] (II) LoadModule: "fbdevhw"
[653923.638] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[653923.643] (II) Module fbdevhw: vendor="X.Org Foundation"
[653923.643] compiled for 1.17.1, module version = 0.0.2
[653923.643] ABI class: X.Org Video Driver, version 19.0
[653923.643] (II) FBTURBO(0): using default device
[653923.644] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[653923.644] (II) FBTURBO(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[653923.644] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[653923.644] (==) FBTURBO(0): RGB weight 888
[653923.644] (==) FBTURBO(0): Default visual is TrueColor
[653923.644] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[653923.644] (II) FBTURBO(0): hardware: (video memory: 3000kB)
[653923.644] (**) FBTURBO(0): Option "DRI2" "true"
[653923.645] (**) FBTURBO(0): Option "AccelMethod" "G2D"
[653923.645] (II) FBTURBO(0): processor: Late ARM Cortex-A8 (NEON can bypass L1 cache)
[653923.645] (II) FBTURBO(0): checking modes against framebuffer device...
[653923.645] (II) FBTURBO(0): checking modes against monitor...
[653923.645] (--) FBTURBO(0): Virtual size is 800x480 (pitch 800)
[653923.645] (**) FBTURBO(0): Built-in mode "current"
[653923.645] (==) FBTURBO(0): DPI set to (96, 96)
[653923.646] (II) Loading sub module "fb"
[653923.646] (II) LoadModule: "fb"
[653923.646] (II) Loading /usr/lib/xorg/modules/libfb.so
[653923.648] (II) Module fb: vendor="X.Org Foundation"
[653923.648] compiled for 1.17.1, module version = 1.0.0
[653923.648] ABI class: X.Org ANSI C Emulation, version 0.4
[653923.648] (==) Depth 24 pixmap format is 32 bpp
[653923.649] (EE) FBTURBO(0): FBIOPUT_VSCREENINFO: Invalid argument
[653923.649] (EE) FBTURBO(0): mode initialization failed
[653923.649] (EE)
Fatal server error:
[653923.650] (EE) AddScreen/ScreenInit failed for driver 0
[653923.651] (EE)
[653923.652] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[653923.653] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[653923.654] (EE)
[653923.654] (EE) FBTURBO(0): FBIOPUT_VSCREENINFO: Invalid argument
[653923.658] (EE) Server terminated with error (1). Closing log file.')
menos16
 
Posts: 16
Joined: Tue Mar 06, 2012 9:05 am

Re: Startx -> "AddScreen/ScreenInit failed"

Postby WarheadsSE » Wed Mar 25, 2015 2:42 pm

$this->bbcode_second_pass_code('', '[653923.654] (EE) FBTURBO(0): FBIOPUT_VSCREENINFO: Invalid argument')
This is the real problem.

Which kernel are you using?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Startx -> "AddScreen/ScreenInit failed"

Postby menos16 » Wed Mar 25, 2015 3:04 pm

uname -r
$this->bbcode_second_pass_code('', '3.4.103-3-ARCH')

i'm not sure but I think that is not an old version

pacman -Qi linux-sun4i $this->bbcode_second_pass_code('', '
Name : linux-sun4i
Version : 3.4.103-3
Description : The Linux Kernel and modules - AllWinner A10
Architecture : armv7h
URL : http://www.kernel.org/
Licenses : GPL2
Groups : None
Provides : kernel26 linux=3.4.103
Depends On : coreutils linux-firmware module-init-tools>=3.16
Optional Deps : crda: to set the correct wireless channels of your country
Required By : None
Optional For : None
Conflicts With : kernel26 linux
Replaces : None
Installed Size : 12.48 MiB
Packager : Arch Linux ARM Build System <builder+xu3@archlinuxarm.org>
Build Date : Sat Jan 3 04:31:48 2015
Install Date : Thu Jan 8 11:22:43 2015
Install Reason : Explicitly installed
Install Script : Yes
Validated By : SHA256 Sum')
menos16
 
Posts: 16
Joined: Tue Mar 06, 2012 9:05 am

[SOLVED] Re: Startx -> "AddScreen/ScreenInit failed"

Postby menos16 » Mon Mar 30, 2015 9:18 am

This weekend I migrate the kernel to the standard branch "linux-armv7 3.19.3-1" and the problem was solved... now I can initialize the X server, although with poor performance.... What is the difference between armv7 and sun4i kernell about the graphics drivers or hardware acceleration? ( I will search in the forum )
menos16
 
Posts: 16
Joined: Tue Mar 06, 2012 9:05 am


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 13 guests