LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   StartX doesn't start, resolution ? (https://www.linuxquestions.org/questions/linux-software-2/startx-doesnt-start-resolution-4175609427/)

Assomnia 07-08-2017 03:32 AM

StartX doesn't start, resolution ?
 
Hey there,

I'm running a raspi zero W with raspbian and from one day to a other without reasons really, the startx command won't work...
The screen goes black and stay's like that.

I also have a tiny screen, that's my config.txt file :

Code:

dtparam=audio=on
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256
overscan_scale=1

sdtv_mode=2
sdtv_aspect=3
framebuffer_width=480
framebuffer_height=272
disable_overscan=0
overscan_left=0
overscan_right=-15
overscan_top=-20
overscan_bottom=-15

dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
dtoverlay=gpio-poweroff,gpiopin=14,active_low="y"

I checked the log from Xorg over here : /home/pi/.local/xorg/share

I had to here is the Xorg.0.log :

Code:

[  486.828]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[  486.833] X Protocol Version 11, Revision 0
[  486.835] Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
[  486.839] Current Operating System: Linux raspberrypi 4.9.35+ #1014 Fri Jun 30 14:34:49 BST 2017 armv6l
[  486.839] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=480 bcm2708_fb.fbheight=272 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:5D:6E:B6 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=3889105f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles plymouth.enable=0
[  486.853] Build Date: 11 November 2016  11:59:59AM
[  486.857] xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
[  486.859] Current version of pixman: 0.33.3
[  486.862]        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  486.863] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  486.879] (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Sat Jul  8 10:19:13 2017
[  486.879] (II) Loader magic: 0x7f74bf20
[  486.879] (II) Module ABI versions:
[  486.879]        X.Org ANSI C Emulation: 0.4
[  486.880]        X.Org Video Driver: 20.0
[  486.880]        X.Org XInput driver : 22.1
[  486.880]        X.Org Server Extension : 9.0
[  486.900] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[  486.901] (II) no primary bus or device found
[  486.902] List of video drivers:
[  486.903]        fbturbo
[  486.903]        modesetting
[  486.903]        fbdev
[  486.903] (II) LoadModule: "fbturbo"
[  486.904] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[  486.905] (II) Module fbturbo: vendor="X.Org Foundation"
[  486.906]        compiled for 1.18.4, module version = 0.5.1
[  486.906]        Module class: X.Org Video Driver
[  486.906]        ABI class: X.Org Video Driver, version 20.0
[  486.906] (II) LoadModule: "modesetting"
[  486.907] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  486.908] (II) Module modesetting: vendor="X.Org Foundation"
[  486.908]        compiled for 1.18.4, module version = 1.18.4
[  486.909]        Module class: X.Org Video Driver
[  486.909]        ABI class: X.Org Video Driver, version 20.0
[  486.909] (II) LoadModule: "fbdev"
[  486.910] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[  486.911] (II) Module fbdev: vendor="X.Org Foundation"
[  486.911]        compiled for 1.18.4, module version = 0.4.4
[  486.912]        Module class: X.Org Video Driver
[  486.912]        ABI class: X.Org Video Driver, version 20.0
[  486.912] (WW) Falling back to old probe method for fbturbo
[  486.912] (WW) Falling back to old probe method for modesetting
[  486.912] (WW) Falling back to old probe method for fbturbo
[  486.912] No devices to configure.  Configuration failed.
[  486.919] (EE) Server terminated with error (2). Closing log file.


And here is Xorg.1.log :

Code:

[    48.988]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[    48.988] X Protocol Version 11, Revision 0
[    48.989] Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
[    48.989] Current Operating System: Linux raspberrypi 4.9.35+ #1014 Fri Jun 30 14:34:49 BST 2017 armv6l
[    48.989] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=480 bcm2708_fb.fbheight=272 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:5D:6E:B6 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=3889105f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles plymouth.enable=0
[    48.994] Build Date: 11 November 2016  11:59:59AM
[    48.997] xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
[    48.999] Current version of pixman: 0.33.3
[    49.002]        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    49.003] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    49.017] (==) Log file: "/home/pi/.local/share/xorg/Xorg.1.log", Time: Fri Jul  7 21:43:13 2017
[    49.021] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    49.027] (==) No Layout section.  Using the first Screen section.
[    49.027] (==) No screen section available. Using defaults.
[    49.027] (**) |-->Screen "Default Screen Section" (0)
[    49.028] (**) |  |-->Monitor "<default monitor>"
[    49.029] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[    49.029] (**) |  |-->Device "Allwinner A10/A13 FBDEV"
[    49.029] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    49.029] (==) Automatically adding devices
[    49.029] (==) Automatically enabling devices
[    49.029] (==) Automatically adding GPU devices
[    49.030] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    49.030] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[    49.030]        Entry deleted from font path.
[    49.030] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    49.030]        Entry deleted from font path.
[    49.030] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    49.031]        Entry deleted from font path.
[    49.031] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    49.031]        Entry deleted from font path.
[    49.031] (==) FontPath set to:
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        built-ins
[    49.031] (==) ModulePath set to "/usr/lib/xorg/modules"
[    49.031] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    49.031] (II) Loader magic: 0x7f814f20
[    49.031] (II) Module ABI versions:
[    49.031]        X.Org ANSI C Emulation: 0.4
[    49.032]        X.Org Video Driver: 20.0
[    49.032]        X.Org XInput driver : 22.1
[    49.032]        X.Org Server Extension : 9.0
[    49.041] (++) using VT number 1

[    49.041] (--) controlling tty is VT number 1, auto-enabling KeepTty
[    49.057] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[    49.058] (II) no primary bus or device found
[    49.058] (II) LoadModule: "glx"
[    49.059] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    49.091] (II) Module glx: vendor="X.Org Foundation"
[    49.091]        compiled for 1.18.4, module version = 1.0.0
[    49.091]        ABI class: X.Org Server Extension, version 9.0
[    49.092] (==) AIGLX enabled
[    49.092] (II) LoadModule: "fbturbo"
[    49.093] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[    49.095] (II) Module fbturbo: vendor="X.Org Foundation"
[    49.095]        compiled for 1.18.4, module version = 0.5.1
[    49.095]        Module class: X.Org Video Driver
[    49.095]        ABI class: X.Org Video Driver, version 20.0
[    49.095] (II) FBTURBO: driver for framebuffer: fbturbo
[    49.096] (WW) Falling back to old probe method for fbturbo
[    49.096] (II) Loading sub module "fbdevhw"
[    49.096] (II) LoadModule: "fbdevhw"
[    49.097] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    49.098] (II) Module fbdevhw: vendor="X.Org Foundation"
[    49.098]        compiled for 1.18.4, module version = 0.0.2
[    49.099]        ABI class: X.Org Video Driver, version 20.0
[    49.099] (II) FBTURBO(0): using /dev/fb0
[    49.099] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    49.100] (II) FBTURBO(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[    49.100] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[    49.100] (==) FBTURBO(0): RGB weight 888
[    49.100] (==) FBTURBO(0): Default visual is TrueColor
[    49.100] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[    49.101] (II) FBTURBO(0): hardware: BCM2708 FB (video memory: 510kB)
[    49.101] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"
[    49.101] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[    49.102] (II) FBTURBO(0): processor: ARM1176
[    49.102] (II) FBTURBO(0): checking modes against framebuffer device...
[    49.103] (II) FBTURBO(0): checking modes against monitor...
[    49.103] (--) FBTURBO(0): Virtual size is 480x272 (pitch 480)
[    49.103] (**) FBTURBO(0):  Built-in mode "current"
[    49.103] (==) FBTURBO(0): DPI set to (96, 96)
[    49.103] (II) Loading sub module "fb"
[    49.103] (II) LoadModule: "fb"
[    49.104] (II) Loading /usr/lib/xorg/modules/libfb.so
[    49.105] (II) Module fb: vendor="X.Org Foundation"
[    49.105]        compiled for 1.18.4, module version = 1.0.0
[    49.106]        ABI class: X.Org ANSI C Emulation, version 0.4
[    49.106] (==) Depth 24 pixmap format is 32 bpp
[    49.107] (II) FBTURBO(0): using backing store heuristics
[    49.112] (WW) LoadKernelModule: Setting of real/effective user Id to 0/0 failed[    49.127] (II) FBTURBO(0): can't load 'g2d_23' kernel module
[    49.127] (II) FBTURBO(0): failed to enable the use of sunxi display controller
[    49.128] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[    49.128] (II) FBTURBO(0): G2D hardware acceleration can't be enabled
[    49.128] (II) FBTURBO(0): enabled fbdev copyarea acceleration
[    49.128] (==) FBTURBO(0): Backing store enabled
[    49.130] (==) FBTURBO(0): DPMS enabled
[    49.130] (II) FBTURBO(0): failed to enable hardware cursor
[    49.130] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP
[    49.131] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log
[    49.131] (==) RandR enabled
[    49.180] (II) SELinux: Disabled on system
[    49.187] (II) AIGLX: Screen 0 is not DRI2 capable
[    49.187] (EE) AIGLX: reverting to software rendering
[    49.799] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    49.805] (II) AIGLX: Loaded and initialized swrast
[    49.805] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    50.110] (II) config/udev: Adding input device GPioneer (/dev/input/event0)
[    50.111] (**) GPioneer: Applying InputClass "libinput keyboard catchall"
[    50.111] (II) LoadModule: "libinput"
[    50.112] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    50.136] (II) Module libinput: vendor="X.Org Foundation"
[    50.136]        compiled for 1.18.4, module version = 0.20.0
[    50.137]        Module class: X.Org XInput Driver
[    50.137]        ABI class: X.Org XInput driver, version 22.1
[    50.140] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 11 paused 0
[    50.141] (II) Using input driver 'libinput' for 'GPioneer'
[    50.141] (**) GPioneer: always reports core events
[    50.141] (**) Option "Device" "/dev/input/event0"
[    50.142] (**) Option "_source" "server/udev"
[    50.145] (II) input device 'GPioneer', /dev/input/event0 is tagged by udev as: Keyboard
[    50.146] (II) input device 'GPioneer', /dev/input/event0 is a keyboard
[    50.147] (**) Option "config_info" "udev:/sys/devices/virtual/input/input0/event0"
[    50.148] (II) XINPUT: Adding extended input device "GPioneer" (type: KEYBOARD, id 6)
[    50.148] (**) Option "xkb_model" "pc105"
[    50.148] (**) Option "xkb_layout" "fr"
[    50.331] (II) input device 'GPioneer', /dev/input/event0 is tagged by udev as: Keyboard
[    50.332] (II) input device 'GPioneer', /dev/input/event0 is a keyboard
[  203.026] (**) Option "fd" "11"
[  203.088] (II) UnloadModule: "libinput"
[  203.089] (II) systemd-logind: releasing fd for 13:64
[  203.879] (EE) systemd-logind: failed to release device: Connection was disconnected before a reply was received
[  203.887] (WW) xf86CloseConsole: KDSETMODE failed: Input/output error
[  203.887] (WW) xf86CloseConsole: VT_GETMODE failed: Input/output error
[  203.887] (WW) xf86CloseConsole: VT_ACTIVATE failed: Input/output error
[  203.887] (EE) systemd-logind: ReleaseControl failed: Connection is closed
[  203.888] (II) Server terminated successfully (0). Closing log file.


I don't really know where the problem comes from, I would say that the resolution is not ok as I saw in the log that the default settings has been put in place which mean he doesn't take my config file input anymore ?

Anyone can help, I'm a bit lost

Thanks

Assomnia 07-08-2017 03:57 AM

I did a RPI update, can it come from this ? and messed up some files ? And also change de passwd

Assomnia 07-08-2017 06:01 AM

Ok I found out something.

I modified /etc/profile and added a script to be launched like that : bash /home/pi/loading.sh
If I comment this it's working again.. So don't know what to do ^^
I need this script to work at boot but also want to launch startx... Any idea ?

It worked for a few and suddenly not anymore don't get it...

Assomnia 07-08-2017 06:25 AM

Find it, I put my script in /etc/bash.bashrc instead of the profile and it works. In case someone encounter the same stuff...


All times are GMT -5. The time now is 01:37 AM.