Asus G2S OLED and Fedora 13

Figured I'd better compile some instructions here for myself since I don't use this very often.. in fact online once in the last 2 years. 

yum install kernel-headers kernel-devel

make and make install the OLED project from

don't forget to scroll down to the bottom of that page for other instructions

From the page:


   	There are some example pictures in .txt format, that can be used as follows:    
	cat foo.txt > /sys/class/asus_oled/oled_1/picture     
	If the display is switched off you also need to run:    
	echo 1 > /sys/class/asus_oled/oled_1/enabled    
	To switch it off, just use:    echo 0 > /sys/class/asus_oled/oled_1/enabled

Now for some fun. I set off to have it display and update the time. My thoughts are have it use the banner program to output the value from date to a file and then have SED replace the stuff and lastly add the size of the file to the top of the file and output to the picture device. So far it isn't automatic, but I have it thus far: (note the ~]# is the prompt)

~]# date +"%F %T"
2010-08-07 19:05:45 
~]# banner 2010-08-07 19:05:45 > curr.txt
~]# sed 's/ /0/g' curr.txt > time2.txt
~]# sed 's/#/1/g' time2.txt > time3.txt
use your favorite editor to edit time3.txt as follows.. 
replace all empty lines and spaces with 0s 
put <s:$widthx$lineCount-1> at the top of the file where $width is the max cols and line count 
	is as it says so for example <s:63x15>
cat times3.txt > /sys/class/asus_oled/oled_1/picture


The part this isn't possible to automate yet is the filling in the spaces with 0s and outputting the date stuff from banner to a text file. Maybe I'll write a C program to do this here sometime soon. Any of you ambitious developers out there that want to contribute can .. well, register for my site and then contact me through that. More to follow... maybe after I eat dinner.


© 2017 Chad Jorgenson. All Rights Reserved.