Completely disable screensaver

1,322 views
Skip to first unread message

chameleon452

unread,
Aug 31, 2013, 1:09:55 PM8/31/13
to beagl...@googlegroups.com

Hello,

we'd like to run the BBB in an embedded application with display but without keyboard/mouse. Unfortunately it keeps blanking the display after a few minutes, even when I'm logged in remotely. I'm pulling my hairs out over how to disable it. I'm currently using

setterm -blank 0 -powerdown 0
xset s off

but it still turns off after several minutes. There also does not seem to be any way to wake it up again without using a physical keyboard/mouse?? I'm using the stock Angstrom image.

Don Miller

unread,
Aug 31, 2013, 1:40:26 PM8/31/13
to beagl...@googlegroups.com


There is some FAQ stuff related to this (link below).  If you try it, could you report back?  This was an issue for me a month or so ago, but I moved on to other things and have not had a chance to play with this.

http://circuitco.com/support/index.php?title=BeagleBone_Black_FAQ#Is_there_a_way_to_prevent_my_HDMI_monitor_from_sleeping_while_using_my_BBB.3F

Thanks,
Don

jimmyj...@gmail.com

unread,
Nov 20, 2013, 2:23:40 PM11/20/13
to beagl...@googlegroups.com
I too need to have the HDMI output not blank out, and am having problems.  Using the link that you provided, I did the following:

- I went to /media/BEAGLEBONE where /dev/mmcblk0p1 was mounted.
- I edited uEnv.txt changing it from: 
optargs=quiet drm.debug=7
    to
optargs=quiet drm.debug=7 consoleblank=0

then rebooted the system.  To my dismay, after ten minutes, the HDMI output still blanked out.
(I also tried adding consoleblank=0 with double quotes around it as shown in the provided link, but no luck.)


I did discover that the other part of information from that link does work.

When SSHed into the BBB, issuing this command:
   echo 0 > /sys/class/graphics/fb0/blank 
does take turn the HDMI output back on.


Did I do something wrong with that consoleblank=0 line in uEnv.txt?  I also tried adding it to the uEnv.txt file in the /boot partition.

Thanks,

   Jim

Cody Lacey

unread,
Nov 20, 2013, 3:10:26 PM11/20/13
to beagl...@googlegroups.com
Try this, and let me know if it works.

**************************
Prevent Monitor Sleep
**************************
Add the following to /etc/X11/xorg.conf then reboot.

Section "ServerFlags"

Option "BlankTime" "0"

Option "StandbyTime" "0"

Option "SuspendTime" "0"

Option "OffTime" "0"

EndSection
                            


Section "Monitor"
Option "DPMS"
        
Identifier      "Builtin Default Monitor"

EndSection


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Don deJuan

unread,
Nov 20, 2013, 5:09:13 PM11/20/13
to beagl...@googlegroups.com
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
This will also work
xset -dpms; xset s off

setterm is for your console. 

jimmyj...@gmail.com

unread,
Nov 20, 2013, 5:34:31 PM11/20/13
to beagl...@googlegroups.com
On Wed, Nov 20, 2013 at 1:23 PM, <jimmyj...@gmail.com> wrote:
On Saturday, August 31, 2013 1:40:26 PM UTC-4, Don Miller wrote:

There is some FAQ stuff related to this (link below).  If you try it, could you report back?  This was an issue for me a month or so ago, but I moved on to other things and have not had a chance to play with this.

http://circuitco.com/support/index.php?title=BeagleBone_Black_FAQ#Is_there_a_way_to_prevent_my_HDMI_monitor_from_sleeping_while_using_my_BBB.3F

Thanks,
Don


I too need to have the HDMI output not blank out, and am having problems.  Using the link that you provided, I did the following:

- I went to /media/BEAGLEBONE where /dev/mmcblk0p1 was mounted.
- I edited uEnv.txt changing it from: 
optargs=quiet drm.debug=7
    to
optargs=quiet drm.debug=7 consoleblank=0

then rebooted the system.  To my dismay, after ten minutes, the HDMI output still blanked out.
(I also tried adding consoleblank=0 with double quotes around it as shown in the provided link, but no luck.)


I did discover that the other part of information from that link does work.

When SSHed into the BBB, issuing this command:
   echo 0 > /sys/class/graphics/fb0/blank 
does take turn the HDMI output back on.


Did I do something wrong with that consoleblank=0 line in uEnv.txt?  I also tried adding it to the uEnv.txt file in the /boot partition.

Thanks,

   Jim

On Wednesday, November 20, 2013 3:10:26 PM UTC-5, cody wrote:
Try this, and let me know if it works.

**************************
Prevent Monitor Sleep
**************************
Add the following to /etc/X11/xorg.conf then reboot.

Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection

Section "Monitor"
Option "DPMS"
Identifier      "Builtin Default Monitor"
EndSection


Thanks Cody, that did the trick!

My xorg.conf already had a "Monitor" section with that identifier, so I just added the "DPMS" option to it, then added the "ServerFlags" section.

Now the HDMI output stays on.

Thanks!

   Jim

julianlou...@gmail.com

unread,
Jan 18, 2014, 11:02:10 PM1/18/14
to beagl...@googlegroups.com
Hi, I have tried this on my Beagle Bone Black, but it doesn't work.  I'm assuming it's because I'm not using the HDMI port.  Instead I'm using 4D Systems 4DCape-43 Touchscreen.  Do you have any advice or ideas on how to get this to work?


On Wednesday, November 20, 2013 3:10:26 PM UTC-5, cody wrote:

Colin Bester

unread,
Feb 4, 2015, 2:55:19 PM2/4/15
to beagl...@googlegroups.com
I am running on 4DCape43 LCD on Debian BBB and added 

xset -dpms
xset s off

to .xsessionrc file in user's home directory and this prevents my LCD from blanking after a period.

~C

Carl Holzmann

unread,
Nov 15, 2017, 10:38:28 AM11/15/17
to BeagleBoard
Hi All,

Just for the reference:

I'm using the console image for the beaglebone black ( bone-debian-8.7-console-armhf-2017-01-30-2gb.img ). 

For the hardware I'm using:BeagleBone Black Industrial + 4D systems 4.3 display.

I was having the same problem:
  • Display blanks after 10 minutes.
  • Changing X11-settings doest not help (due to the fact that X11 is not installed).

I have found that :
echo 0 > /sys/class/graphics/fb0/blank
This turns the display back on, but only for a short amount of time.

It can also be done by:
sh -c "TERM=linux setterm -blank 0 >/dev/tty0"
But it is not a permanent solution, after a reboot the problem is back again, the display will blank after 10 minutes.

Editing /uEnv.txt seems to hold the solution.
add consoleblank=0 to the mmcargs line (see example below):
mmcargs=setenv bootargs console=tty0 console=${console} consoleblank=0 ${optargs} ${cape_disable} ${cape_enable} root=/dev/mmcblk0p1 rootfstype=${mmcrootfstype} ${cmdline}

Then after saving: Reboot the system and for me the problem has been solved (I'm now running for 25 minutes).

With the following command:
cat /sys/module/kernel/parameters/consoleblank 
You can check if the value is indeed 0 (originally it was 600) => 10 minutes.

Best regards,
  Carl

Beagle Boner

unread,
Dec 20, 2017, 6:05:25 AM12/20/17
to BeagleBoard
Hey Carl,

thanks for your suggestions. I´m struggeling with the same problem right now.
My /boot/uEnv.txt doesnt contain the mmcargs line. Where did you find it?

cheers,

Max
Message has been deleted

Carl Holzmann

unread,
Dec 20, 2017, 6:59:40 AM12/20/17
to BeagleBoard

Hi Max,

 

There are multiple uEnv.txt files :


root@TestDevice:~# locate uEnv.txt

/boot/uEnv.txt

/nfs-uEnv.txt

/opt/source/u-boot_ti-2016.05/0001-beagle_x15-uEnv.txt-bootz-n-fixes.patch

/opt/source/u-boot_v2017.01-rc3/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch

/opt/source/u-boot_v2017.01-rc3/0001-omap3_beagle-uEnv.txt-bootz-n-fixes.patch

/uEnv.txt

root@TestDevice:~#


The correct file is /uEnv.txt


root@TestDevice:~# cat /uEnv.txt

##These are needed to be compliant with Angstrom's 2013.06.20 u-boot.


loadaddr=0x82000000

fdtaddr=0x88000000

rdaddr=0x88080000


initrd_high=0xffffffff

fdt_high=0xffffffff


##These are needed to be compliant with Debian 2014-05-14 u-boot.


loadximage=echo debug: [/boot/vmlinuz-${uname_r}] ... ; load mmc 0:1 ${loadaddr} /boot/vmlinuz-${uname_r}

loadxfdt=echo debug: [/boot/dtbs/${uname_r}/${fdtfile}] ... ;load mmc 0:1 ${fdtaddr} /boot/dtbs/${uname_r}/${fdtfile}

loadxrd=echo debug: [/boot/initrd.img-${uname_r}] ... ; load mmc 0:1 ${rdaddr} /boot/initrd.img-${uname_r}; setenv rdsize ${filesize}

loaduEnvtxt=load mmc 0:1 ${loadaddr} /boot/uEnv.txt ; env import -t ${loadaddr} ${filesize};

check_dtb=if test -n ${dtb}; then setenv fdtfile ${dtb};fi;

loadall=run loaduEnvtxt; run check_dtb; run loadximage; run loadxrd; run loadxfdt;


mmcargs=setenv bootargs console=tty0 console=${console} consoleblank=0 ${optargs} ${cape_disable} ${cape_enable} root=/dev/mmcblk0p1 rootfstype=${mmcrootfstype} ${cmdline}


uenvcmd=run loadall; run mmcargs; echo debug: [${bootargs}] ... ; echo debug: [bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}] ... ; bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr};


root@TestDevice:~# 


 

Best regards,

 Carl

Reply all
Reply to author
Forward
0 new messages