Linux on HTC Universal

Files:


06/03/30
DisplayPower.exe: a simple C++ program turning WinCE diplay on/off. Usefull together with gnuharet wgpio/wasic3gpio commands.
06/03/30
DevicePower.exe: a simple C# program turning the given device on/off (D0/D4 PM state). Usefull together with gnuharet wgpio/wasic3gpio commands. You need to install .NET Compact Framework 2.0 Redistributable first.
06/03/30
Current htcuniversal_kp key mapping:

Messaging key -> CTRL
Internet Explorer key -> ALT
Green Accept Phone Call -> Escape
Left Soft key -> F1
Contacts key -> F2
Video Call key -> F3
Right Soft key -> F4

(F1-F4 keys can be used to switch between virtual consoles (tty1-tty4) using ALT+Fn. To have this capabality you need to download the root FS image bellow or to edit /etc/inittab file (getty entries).


06/03/12
A sample content of Haret's startup.txt file with the console in landscape mode. The file expects the root file system located on a SD card (here in the partition no. 2 - part2)

set KERNEL zi
set MTYPE 855
set CMDLINE "root=/dev/mmc/blk0/part2 mem=63M fbcon=rotate:1 console=tty0"
boot2

06/03/12
Root file system patch for opie-image-blueangel.rootfs.tar.bz2 with support for keyboard, rotated frame buffer console and Opie with screen autorotation handler. Gunzip it to the root of your SD card

06/03/12
Root file system for HTC Universal with support for keyboard, rotated frame buffer console and Opie with screen autorotation handler (based on the BlueAngel Opie root FS). Gunzip it to the root of your SD card

06/03/12
zImage with FB console rotation patch applied (zi)
you may use the following kernel parameter in the Haret startup.txt:

fbcon=rotate:<n>

value 'n' accepts the following:

0 - normal orientation (0 degree)
1 - clockwise orientation (90 degrees)
2 - upside down orientation (180 degrees)
3 - counterclockwise orientation (270 degrees)

for Universal in landscape mode use fbcon=rotate:1

The angle can be changed anytime afterwards by 'echoing' the same numbers to any one of the 2 attributes found in /sys/class/graphics/fb{x}

con_rotate - rotate the display of the active console
con_rotate_all - rotate the display of all consoles

echo 0 > /sys/class/graphics/fb0/con_rotate - rotates the current console to portrait mode
echo 1 > /sys/class/graphics/fb0/con_rotate_all - rotates all active consoles to landscape mode