LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-24-2010, 02:25 AM   #1
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
Preventing screen blank in Busybox(embedded linux) on a KERN board


Hello,

I'm trying to run a shell script on a kern board (av1100) that shows some text output on the attached screen. The big problem is that the screen goes to blank in like 2 minutes.

I'd just like to have the script showing it's output while the thing is on.

Isn't there a command to stop the screen from going to blank?

p.s. there is no bash available, just #!/bin/sh

Code:
#!/bin/sh 
###########################################################
#
#        Script
# 
#
###########################################################
COUNTER=0
while [ 1 -eq 1 ]
#following didn't work, setterm isn't available
#/usr/bin/setterm -blank 0
do
COUNTER=`expr $COUNTER + 1`
if [ $COUNTER = 20 ]
then
echo "special output"
sleep 3
COUNTER=`expr $COUNTER - $COUNTER`
fi
echo -n "continuous output"
sleep 1
done
 
Old 10-04-2010, 03:00 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
You could try using swinput:
http://savannah.nongnu.org/projects/swinput

It can "fake" keyboard and mouse events, and so it can send a "Shift" keyboard event or some-such every once in a while. This assumes that your screen is going blank after 2 minutes of inactivity. If that's not the case, then you'll need to provide more information about your device.
 
Old 10-05-2010, 09:28 AM   #3
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Original Poster
Rep: Reputation: 25
thank you for your comment, I finally solved it by running xterm in x and disabling the screensaver there. this worked okay eventually!
 
  


Reply

Tags
screensaver



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommendation for a Linux Embedded board smichak Linux - Embedded & Single-board computer 2 09-12-2010 11:55 PM
Embedded Linux Board Suggestions? sneze Linux - Embedded & Single-board computer 4 08-11-2010 02:54 AM
New Topic Needed:BusyBox - Embedded Linux (or Similar) schenke Linux - Embedded & Single-board computer 2 01-04-2008 12:17 PM
LXer: Simplify Embedded Linux Systems with BusyBox LXer Syndicated Linux News 0 08-16-2006 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration