
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://www.oesf.org/skins/common/feed.css?97"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Turning off the screen - Revision history</title>
		<link>http://www.oesf.org/index.php?title=Turning_off_the_screen&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.11.0</generator>
		<lastBuildDate>Wed, 22 May 2013 00:07:17 GMT</lastBuildDate>
		<item>
			<title>Phil284: revert to remove spam</title>
			<link>http://www.oesf.org/index.php?title=Turning_off_the_screen&amp;diff=9039&amp;oldid=prev</link>
			<description>&lt;p&gt;revert to remove spam&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:43, 24 November 2006&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;&lt;!-- Bad Behavior 2.0.11 run time: 16.186 ms --&gt;&lt;p&gt;Line 55:
&lt;/p&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;&lt;!-- Bad Behavior 2.0.11 run time: 16.186 ms --&gt;&lt;p&gt;Line 55:
&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casinos-go.com/online-casino-tips/index.html online casino tips]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.slots-wiki.com/index.php/slots_online_bonus slots online bonus]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casino-games-wiki.com/index.php/casino_games_online casino games online]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casino-web-gambling.com/blackjack-tips/blackjack-hints.html blackjack hints]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casinos-new.com/blackjack.html Online casino - Blackjack online]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casino-theory.com/bingo-online/gambling-online-bingo.html gambling online bingo]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casinos-go.com/online-casino-tips/index.html online casino tips]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.fortune-slots.com/ online slots]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casinos-new.com/blackjack.html Online casino - Blackjack online]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casino-theory.com/online-casino-royale/strategy-online-casino.html strategy online casino]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Fri, 24 Nov 2006 18:43:15 GMT</pubDate>			<dc:creator>Phil284</dc:creator>			<comments>http://www.oesf.org/index.php?title=Talk:Turning_off_the_screen</comments>		</item>
		<item>
			<title>Nichole at 16:30, 20 November 2006</title>
			<link>http://www.oesf.org/index.php?title=Turning_off_the_screen&amp;diff=2904&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:30, 20 November 2006&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;&lt;!-- Bad Behavior 2.0.11 run time: 16.186 ms --&gt;&lt;p&gt;Line 55:
&lt;/p&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;&lt;!-- Bad Behavior 2.0.11 run time: 16.186 ms --&gt;&lt;p&gt;Line 55:
&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casinos-go.com/online-casino-tips/index.html online casino tips]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.slots-wiki.com/index.php/slots_online_bonus slots online bonus]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casino-games-wiki.com/index.php/casino_games_online casino games online]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casino-web-gambling.com/blackjack-tips/blackjack-hints.html blackjack hints]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casinos-new.com/blackjack.html Online casino - Blackjack online]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casino-theory.com/bingo-online/gambling-online-bingo.html gambling online bingo]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casinos-go.com/online-casino-tips/index.html online casino tips]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.fortune-slots.com/ online slots]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casinos-new.com/blackjack.html Online casino - Blackjack online]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://www.casino-theory.com/online-casino-royale/strategy-online-casino.html strategy online casino]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Mon, 20 Nov 2006 16:30:58 GMT</pubDate>			<dc:creator>Nichole</dc:creator>			<comments>http://www.oesf.org/index.php?title=Talk:Turning_off_the_screen</comments>		</item>
		<item>
			<title>Offroadgeek at 02:51, 28 November 2004</title>
			<link>http://www.oesf.org/index.php?title=Turning_off_the_screen&amp;diff=2717&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Howto turn off the screen.&lt;br /&gt;
&lt;br /&gt;
==Intro==&lt;br /&gt;
For some applications such as audio applications you don't want to waste battery life on the screen when only the audio is being used. There are two ways to turn the screen on and off. One uses QCOP messages and does not take much code and can be done from the command line. The other way uses IOCTLs, which is useful especially when Qtopia is not running.&lt;br /&gt;
&lt;br /&gt;
==QCOP Method==&lt;br /&gt;
&lt;br /&gt;
Below are the two lines of code required in a Qtopia app to blank the screen:&lt;br /&gt;
 QCopEnvelope e(&amp;quot;QPE/System&amp;quot;, &amp;quot;setBlankLCD(int)&amp;quot;);&lt;br /&gt;
 e &amp;lt;&amp;lt; 1;&lt;br /&gt;
&lt;br /&gt;
To do the same on the command line run this command:&lt;br /&gt;
 qcop QPE/System 'setBlankLCD(int)' 1&lt;br /&gt;
&lt;br /&gt;
In both cases, only the Cancel button will turn the screen on again.&lt;br /&gt;
&lt;br /&gt;
==IOCTL Method==&lt;br /&gt;
Here is a sample application that can be modified. It both turns the screen both off and on.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;lt; fcntl.h &amp;gt;&lt;br /&gt;
 #include &amp;lt; stdio.h &amp;gt;&lt;br /&gt;
 #include &amp;lt; pthread.h &amp;gt;&lt;br /&gt;
 #include &amp;lt; unistd.h &amp;gt;&lt;br /&gt;
 #include &amp;lt; stdlib.h &amp;gt;&lt;br /&gt;
 #include &amp;lt; sys/time.h &amp;gt;&lt;br /&gt;
 #include &amp;lt; unistd.h &amp;gt;&lt;br /&gt;
 #include &amp;lt; sys/ioctl.h &amp;gt;&lt;br /&gt;
 #include &amp;lt; time.h &amp;gt;&lt;br /&gt;
&lt;br /&gt;
 #define VESA_NO_BLANKING        0&lt;br /&gt;
 #define VESA_VSYNC_SUSPEND      1&lt;br /&gt;
 #define VESAg_HSYNC_SUSPEND     2&lt;br /&gt;
 #define VESA_POWERDOWN          3&lt;br /&gt;
&lt;br /&gt;
 #define FBIOBLANK0x4611/* arg: 0 or vesa level + 1 */&lt;br /&gt;
 int main( int argc, char *argv[] )&lt;br /&gt;
 {&lt;br /&gt;
   int fd,mode;&lt;br /&gt;
   if (argc&amp;gt;1) {&lt;br /&gt;
     if (strcmp(argv[1],&amp;quot;-on&amp;quot;)==0)  mode = 0;&lt;br /&gt;
     if (strcmp(argv[1],&amp;quot;-off&amp;quot;)==0)  mode = 1;&lt;br /&gt;
   } else {&lt;br /&gt;
     printf(&amp;quot;blank  -on \n&amp;quot;);&lt;br /&gt;
     printf(&amp;quot;       -off\n&amp;quot;);&lt;br /&gt;
     exit(1);&lt;br /&gt;
   }&lt;br /&gt;
   if ( mode == 1 ) {&lt;br /&gt;
     fd = open( &amp;quot;/dev/fb0&amp;quot;, O_RDWR);&lt;br /&gt;
     ioctl( fd, FBIOBLANK,VESA_POWERDOWN );&lt;br /&gt;
     close(fd);&lt;br /&gt;
   } else {&lt;br /&gt;
     fd = open( &amp;quot;/dev/fb0&amp;quot;, O_RDWR);&lt;br /&gt;
     ioctl( fd, FBIOBLANK,VESA_NO_BLANKING );&lt;br /&gt;
     close(fd);&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;/div&gt;</description>
			<pubDate>Sun, 28 Nov 2004 02:51:24 GMT</pubDate>			<dc:creator>Offroadgeek</dc:creator>			<comments>http://www.oesf.org/index.php?title=Talk:Turning_off_the_screen</comments>		</item>
	</channel>
</rss>