notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.85k stars 494 forks source link

disable blank scrreem on XSession #90

Closed windegg closed 10 years ago

windegg commented 10 years ago

Hi,

Does anybody knows how to disable blank screen on the xsession with the display using fbft.

i want to start xssession with -> startx and remote starting a pictureviewer using fine program feh:

export DISPLAY=:0 && feh -D 10 -Z -F -x -Y /home/pi/bilder

after view minutes display will get black. Any hints ?

default setting does not work:

cat /etc/lightdm/lightdm.conf
#
# General configuration
# Seat defaults
#
[SeatDefaults]
xserver-command=X -s 0 -dpms

**************************************************
pi@raspberrypi / $ cat /etc/X11/xinit/xinitrc 
#!/bin/sh
# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

# invoke global X session script
. /etc/X11/Xsession
xset s off         # don't activate screensaver
xset -dpms         # disable DPMS (Energy Star) features.
xset s noblank     # don't blank the video device

disable blank screen on console works fun:

cat /etc/rc.local
# ...
# By default this script does nothing.
sh -c 'setterm -blank 0 -powersave off -powerdown 0 /dev/console 2>&1'
notro commented 10 years ago

See if this can help you: https://github.com/notro/fbtft/wiki/Boot-console#console-blanking

notro commented 10 years ago

No, that didn't help. I'm testing this: http://www.raspberrypi.org/forum/viewtopic.php?p=520299#p520299

windegg commented 10 years ago

Hello,

find only one file /etc/X11/xinit/xinitrc. By adding last 3 lines. Will noch work. Any other hints ?

 cat /etc/X11/xinit/xinitrc
#!/bin/sh
# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)
# invoke global X session script
. /etc/X11/Xsession
xset s off         # don't activate screensaver
xset -dpms         # disable DPMS (Energy Star) features.
xset s noblank     # don't blank the video device
notro commented 10 years ago

This worked for me:

sudo apt-get install x11-xserver-utils

add to /etc/xdg/lxsession/LXDE/autostart

@xset s off
@xset -dpms
@xset s noblank

Dump values from SSH session:

$ DISPLAY=:0 xset q
Screen Saver:
  prefer blanking:  no    allow exposures:  yes
  timeout:  0    cycle:  600
DPMS (Energy Star):
  Standby: 600    Suspend: 600    Off: 600
  DPMS is Disabled
notro commented 10 years ago

Closing issue since there has been no activity for more than 2 months. Reopen if needed.