Jump to content

Freezing video output on Banana PI M1+


matteobp

Recommended Posts

Hi.
I'm a new user. I have a Banana PI M1+, that is connected to a monitor with maximum resolution of 1280x1024 and with only DVI port.
I'm using Armbian_4.5_Bananapi_Debian_jessie_3.4.109, and I installed XFCE using tasksel.
If I leave it without any user interaction, the monitor goes to sleep, and I'm not able to wake it up anymore. But it works, because I'm able to connect to it using putty from another computer.
So I tried to install Armbian_4.5_Bananapi_Debian_jessie_3.4.109, but I have the same problem. I tried also to disable "Switch Off After" in the Display section of power management without success.
Can someone help me please?

Link to comment
Share on other sites

Thie means that I have to use your script "desktop.sh" to install XFCE instead of using "tasksel", or that I can use "tasksel" to install XFCE (as already done), but I have to run your script to "patch" the installation?

Basically I'm asking if I have to install Armbian Jessie again and than run "desktop.sh" or I can run "desktop.sh" in my current system.

 

Thanks for support.

Link to comment
Share on other sites

No, my scripts are not designed for such use but you can extract certain commands.

 

You can install desktop standard way ... just fix the xorg configuration afterwards. The part which I pointed out is critical - you need to disable DPMS, perhaps not all are needed ...

Section "Monitor"
        Identifier      "Monitor0"
        Option          "DPMS" "false"
EndSection
Section "ServerFlags"
    Option         "BlankTime" "0"
    Option         "StandbyTime" "0"
    Option         "SuspendTime" "0"
    Option         "OffTime" "0"
EndSection
Link to comment
Share on other sites

There was no /etc/X11/xorg.conf file. I created it and I added this section in it.

Section "Monitor"
    Identifier    "Monitor0"
    Option "DPMS"    "false"
EndSection
Section "ServerFlags"
    Option "BlankTime"    "0"
    Option "StandbyTime"    "0"
    Option "SuspendTime"    "0"
    Option "OffTime"    "0"
EndSection

I hope it is fine.

Link to comment
Share on other sites

I used this command

find / -iname xorg.conf

but no result.

 

The same with

find / -iname xorg*

I tried also this (found with google in case of missing xorg.conf)

service lightdm stop
Xorg -configure

but I have this error

root@bananapi:~# Xorg -configure

X.Org X Server 1.16.4
Release Date: 2014-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.16.0-0.bpo.4-armmp-lpae armv7l Debian
Current Operating System: Linux bananapi 3.4.109-sun7i #5 SMP PREEMPT Wed Oct 14 20:33:00 CEST 2015 armv7l
Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1280x1024p60 panic=10 consoleblank=0 enforcing=0 loglevel=1
Build Date: 11 February 2015  01:18:06AM
xorg-server 2:1.16.4-1 (http://www.debian.org/support)
Current version of pixman: 0.32.6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Nov 17 19:38:02 2015
List of video drivers:
        radeon
        r128
        nouveau
        mach64
        ati
        vesa
        fbdev
        modesetting
No devices to configure.  Configuration failed.
(EE) Server terminated with error (2). Closing log file.

 

Link to comment
Share on other sites

Try looking in /var/log/Xorg.0.log when desktop environment is running. Config file name may be different: http://www.x.org/archive/X11R7.7/doc/man/man5/xorg.conf.5.xhtml

Edit: or config file path can be supplied via command line, then you'll have to also check output of

cat /proc/`pidof Xorg`/cmdline

if default log verbosity isn't enough and there are no config files in directories listed in linked manual.

Link to comment
Share on other sites

I'll check the log later (I'm not at home). In the meanwhile, yesterday I installed bananian 15.08 (based on Debian Jessie) on another SD and then I installed XFCE using tasksel, as done with Armbian. With Bananian, it doesn't happen.

Link to comment
Share on other sites

No, it doen't work neither with bananian, it freeze and cannot wake it up.

 

I did a check in the /var/log/Xorg.0.log

root@bananapi:~# cat /var/log/Xorg.0.log | grep xorg
[    34.522] xorg-server 2:1.16.4-1 (http://www.debian.org/support)
[    34.554] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    34.618] (==) ModulePath set to "/usr/lib/xorg/modules"
[    34.633] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    34.726] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    34.731] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    34.769] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    34.774] (II) Loading /usr/lib/xorg/modules/libfb.so
[    34.785] (II) Loading /usr/lib/xorg/modules/libshadow.so
[    36.953] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so

Then I check the directory /usr/share/X11/xorg.conf.d
 

root@bananapi:~# ll /usr/share/X11/xorg.conf.d
total 16
-rw-r--r-- 1 root root 1099 Feb 11  2015 10-evdev.conf
-rw-r--r-- 1 root root 1350 Feb 11  2015 10-quirks.conf
-rw-r--r-- 1 root root 1753 Sep 18  2014 50-synaptics.conf
-rw-r--r-- 1 root root 1385 Oct  4  2014 50-wacom.conf

I suppose the correct directory is /usr/share/X11/xorg.conf.d. Do I have to add the proposed section in one of the existing files, or do I have to create a new xorg.conf file and add the proposed section in it?

Thanks.

Link to comment
Share on other sites

I'm not sure, these are "overlay" files, that shoud override (apply on top of) base configuration. You still have to find file with "Monitor" section to modify it. Try "grep config" instead of "grep xorg" or look at the full log.

Another possible way is creating xinitrc or modifying X command line with instructions from this topic: https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=18200

You can try running "xset -dpms" and other commands to disable screensaver to test if it actually works before making any permanent changes.

Link to comment
Share on other sites

Extracted from /var/log/Xorg.0.log

[    39.625]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    39.625] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    39.626] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Nov 18 21:55:52 2015
[    39.638] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    39.654] (==) No Layout section.  Using the first Screen section.
[    39.654] (==) No screen section available. Using defaults.
[    39.654] (**) |-->Screen "Default Screen Section" (0)
[    39.654] (**) |   |-->Monitor "<default monitor>"
[    39.655] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    39.656] (==) Automatically adding devices
[    39.656] (==) Automatically enabling devices
...
...
[    39.831] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    39.831] (II) FBDEV(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[    39.831] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[    39.831] (==) FBDEV(0): RGB weight 888
[    39.831] (==) FBDEV(0): Default visual is TrueColor
[    39.831] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    39.831] (II) FBDEV(0): hardware:  (video memory: 10240kB)
[    39.832] (II) FBDEV(0): checking modes against framebuffer device...
[    39.832] (II) FBDEV(0): checking modes against monitor...
[    39.832] (--) FBDEV(0): Virtual size is 1280x1024 (pitch 1280)
[    39.832] (**) FBDEV(0):  Built-in mode "current": 108.0 MHz, 64.0 kHz, 60.0 Hz
[    39.832] (II) FBDEV(0): Modeline "current"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync -csync (64.0 kHz 
[    39.832] (==) FBDEV(0): DPI set to (96, 96)
[    39.832] (II) Loading sub module "fb"
[    39.832] (II) LoadModule: "fb"
[    39.833] (II) Loading /usr/lib/xorg/modules/libfb.so
[    39.841] (II) Module fb: vendor="X.Org Foundation"
[    39.841]    compiled for 1.16.4, module version = 1.0.0
[    39.841]    ABI class: X.Org ANSI C Emulation, version 0.4
[    39.842] (**) FBDEV(0): using shadow framebuffer

It seems there is no Monitor section.

Link to comment
Share on other sites

Solved building my own Debian Jessie image with XFCE desktop following the instruction found on this link

https://github.com/igorpecovnik/lib/blob/second/README.md

In this case there is an /etc/X11/xorg.conf file, and adding the suggested section in this file solves the problem.

 

In the future I'll try to follow the indications found on this link (tried some without success).

https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=18200

Link to comment
Share on other sites

#

# No DPMS (sunxi-murX)

#

 

## create/modify 3 (or all in one) file(s) ...

 

dir /etc/X11/xorg.conf.d/

 

#

# file 50-monitor.conf

#

Section "Monitor"

Identifier "Default Monitor"

Option "DPMS" "false"

EndSection

 

 

#

# file 60-screen.conf

#

Section "Screen"

Identifier "Default Screen"

Device "Default Device"

Monitor "Default Monitor"

EndSection

 

 

#

# file 90-server.conf

#

Section "ServerFlags"

Option "BlankTime" "0"

Option "StandbyTime" "0"

Option "SuspendTime" "0"

Option "OffTime" "0"

EndSection

 

 

## ... and go results: /var/log/Xorg.0.log

 

... file 50-monitor.conf added

 

[ 25.538] (==) Using config directory: "/etc/X11/xorg.conf.d"

[ 25.538] (==) Using system config directory "/usr/share/X11/xorg.conf.d"

[ 25.671] (==) No Layout section. Using the first Screen section.

[ 25.671] (==) No screen section available. Using defaults.

[ 25.671] (**) |-->Screen "Default Screen Section" (0)

[ 25.671] (**) | |-->Monitor "<default monitor>"

[ 25.673] (==) No monitor specified for screen "Default Screen Section".

Using a default monitor configuration.

[ 25.673] (**) Option "BlankTime" "0"

[ 25.673] (**) Option "StandbyTime" "0"

[ 25.673] (**) Option "SuspendTime" "0"

[ 25.673] (**) Option "OffTime" "0"

 

 

... file 60-screen.conf added

 

[ 1118.500] (==) No Layout section. Using the first Screen section.

[ 1118.501] (**) |-->Screen "Default Screen" (0)

[ 1118.501] (**) | |-->Monitor "Default Monitor"

[ 1118.502] (**) Option "BlankTime" "0"

[ 1118.502] (**) Option "StandbyTime" "0"

[ 1118.502] (**) Option "SuspendTime" "0"

[ 1118.502] (**) Option "OffTime" "0"

was a hard work to register here
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines