<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lunohod</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lunohod"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Lunohod"/>
	<updated>2026-04-19T08:54:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Touchpad_Bluetooth_Keyboard&amp;diff=19131</id>
		<title>Touchpad Bluetooth Keyboard</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Touchpad_Bluetooth_Keyboard&amp;diff=19131"/>
		<updated>2011-09-25T20:28:34Z</updated>

		<summary type="html">&lt;p&gt;Lunohod: /* Keyboard layouts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== HP Touchpad Bluetooth Keyboard ==&lt;br /&gt;
=== Keycode/Scancode for Media/Specialty Keys ===&lt;br /&gt;
Hopefully this information will make it easier to implement support for the HP Touchpad Bluetooth Keyboard on other devices such as a Pre2 or Veer.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key&lt;br /&gt;
! Keycode&lt;br /&gt;
! Scancode (Decimal)&lt;br /&gt;
! Scancode (Hex)&lt;br /&gt;
|-&lt;br /&gt;
| Notifications&lt;br /&gt;
| 1&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Search&lt;br /&gt;
| 217&lt;br /&gt;
| 786977&lt;br /&gt;
| 0xC0221&lt;br /&gt;
|-&lt;br /&gt;
| Keyboard&lt;br /&gt;
| 204&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Brightness Down&lt;br /&gt;
| 224&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Brightness Up&lt;br /&gt;
| 225&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Rewind&lt;br /&gt;
| 168&lt;br /&gt;
| 786612&lt;br /&gt;
| 0xC00B4&lt;br /&gt;
|-&lt;br /&gt;
| Play/Pause&lt;br /&gt;
| 164&lt;br /&gt;
| 786637&lt;br /&gt;
| 0xC00CD&lt;br /&gt;
|-&lt;br /&gt;
| Forward&lt;br /&gt;
| 208&lt;br /&gt;
| 786611&lt;br /&gt;
| 0xC00B3&lt;br /&gt;
|-&lt;br /&gt;
| Mute&lt;br /&gt;
| 113&lt;br /&gt;
| 786658&lt;br /&gt;
| 0xC00E2&lt;br /&gt;
|-&lt;br /&gt;
| Volume Down&lt;br /&gt;
| 114&lt;br /&gt;
| 786666&lt;br /&gt;
| 0xC00EA&lt;br /&gt;
|-&lt;br /&gt;
| Volume Up&lt;br /&gt;
| 115&lt;br /&gt;
| 786665&lt;br /&gt;
| 0xC00E9&lt;br /&gt;
|-&lt;br /&gt;
| Power&lt;br /&gt;
| 142&lt;br /&gt;
| 65666&lt;br /&gt;
| 0x10082&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Using various tools under Ubuntu 11.04, I haven't been able to get info for Keyboard, Brightness Down, and Brightness Up. These keys may need a Touchpad device to get the information for, as the keys are known working there.&lt;br /&gt;
--[[User:SineOtter|SineOtter]] 07:34, 9 September 2011 (UTC)&lt;br /&gt;
&lt;br /&gt;
=== Keyboard layouts ===&lt;br /&gt;
&lt;br /&gt;
The keymaps are located in the /usr/share/qt4/keymaps directory. There are 3 of them: keymap-us.qmap, keymap-de.qmap, keymap-fr.qmap. The keymap is loaded after the keyboard was successfully paired with the touchpad. &lt;br /&gt;
&lt;br /&gt;
kmap2qmap is a tool to generate keymaps in qmap format (http://doc.qt.nokia.com/latest/qt-embedded-kmap2qmap.html). Original kmap2qmap source file was downloaded from http://svn.netlabs.org/repos/qt4/trunk/tools/kmap2qmap/main.cpp, then some changes from http://palm.cdnetworks.net/opensource/3.0.2/qt4-4.7.1-patches.gz were applied.&lt;br /&gt;
Download the patched kmap2qmap.cpp[http://users.openinkpot.org/~lunohod/kmap2qmap.cpp] and compile it:&lt;br /&gt;
&lt;br /&gt;
'''gcc -o kmap2qmap kmap2qmap.cpp -I/usr/include/qt4 -I/usr/include/qt4/QtCore -lQtCore'''&lt;br /&gt;
&lt;br /&gt;
Now grab the kmap[http://users.openinkpot.org/~lunohod/us.kmap] file, modify it if you want and generate the qmap file with:&lt;br /&gt;
&lt;br /&gt;
'''./kmap2qmap us.kmap keymap-us.qmap'''&lt;br /&gt;
&lt;br /&gt;
The us.kmap file was generated with ckbcomp (it's in the console-setup package in Debian) and then the touchpad related keys were added:&lt;br /&gt;
&lt;br /&gt;
'''ckbcomp -keycodes evdev -layout us -compact &amp;gt; us.kmap'''&lt;br /&gt;
&lt;br /&gt;
There is also a modified kmap file[http://users.openinkpot.org/~lunohod/us_modified.kmap] with CapsLock changed to Control key, added AltGr and germanic umlauts mapped to AltGr+[aous]. You can take this kmap as a reference or just diff it with the us.kmap to see what should be changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to create new layouts (with dvorak, colemak, cyrillic or whatever you want), but there is still no way to switch layouts on the fly.&lt;/div&gt;</summary>
		<author><name>Lunohod</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Touchpad_Bluetooth_Keyboard&amp;diff=19129</id>
		<title>Touchpad Bluetooth Keyboard</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Touchpad_Bluetooth_Keyboard&amp;diff=19129"/>
		<updated>2011-09-25T20:28:01Z</updated>

		<summary type="html">&lt;p&gt;Lunohod: /* Keyboard layouts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== HP Touchpad Bluetooth Keyboard ==&lt;br /&gt;
=== Keycode/Scancode for Media/Specialty Keys ===&lt;br /&gt;
Hopefully this information will make it easier to implement support for the HP Touchpad Bluetooth Keyboard on other devices such as a Pre2 or Veer.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key&lt;br /&gt;
! Keycode&lt;br /&gt;
! Scancode (Decimal)&lt;br /&gt;
! Scancode (Hex)&lt;br /&gt;
|-&lt;br /&gt;
| Notifications&lt;br /&gt;
| 1&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Search&lt;br /&gt;
| 217&lt;br /&gt;
| 786977&lt;br /&gt;
| 0xC0221&lt;br /&gt;
|-&lt;br /&gt;
| Keyboard&lt;br /&gt;
| 204&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Brightness Down&lt;br /&gt;
| 224&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Brightness Up&lt;br /&gt;
| 225&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Rewind&lt;br /&gt;
| 168&lt;br /&gt;
| 786612&lt;br /&gt;
| 0xC00B4&lt;br /&gt;
|-&lt;br /&gt;
| Play/Pause&lt;br /&gt;
| 164&lt;br /&gt;
| 786637&lt;br /&gt;
| 0xC00CD&lt;br /&gt;
|-&lt;br /&gt;
| Forward&lt;br /&gt;
| 208&lt;br /&gt;
| 786611&lt;br /&gt;
| 0xC00B3&lt;br /&gt;
|-&lt;br /&gt;
| Mute&lt;br /&gt;
| 113&lt;br /&gt;
| 786658&lt;br /&gt;
| 0xC00E2&lt;br /&gt;
|-&lt;br /&gt;
| Volume Down&lt;br /&gt;
| 114&lt;br /&gt;
| 786666&lt;br /&gt;
| 0xC00EA&lt;br /&gt;
|-&lt;br /&gt;
| Volume Up&lt;br /&gt;
| 115&lt;br /&gt;
| 786665&lt;br /&gt;
| 0xC00E9&lt;br /&gt;
|-&lt;br /&gt;
| Power&lt;br /&gt;
| 142&lt;br /&gt;
| 65666&lt;br /&gt;
| 0x10082&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Using various tools under Ubuntu 11.04, I haven't been able to get info for Keyboard, Brightness Down, and Brightness Up. These keys may need a Touchpad device to get the information for, as the keys are known working there.&lt;br /&gt;
--[[User:SineOtter|SineOtter]] 07:34, 9 September 2011 (UTC)&lt;br /&gt;
&lt;br /&gt;
=== Keyboard layouts ===&lt;br /&gt;
&lt;br /&gt;
The keymaps are located in the /usr/share/qt4/keymaps directory. There are 3 of them: keymap-us.qmap, keymap-de.qmap, keymap-fr.qmap. The keymap is loaded after the keyboard was successfully paired with the touchpad. &lt;br /&gt;
&lt;br /&gt;
kmap2qmap is a tool to generate keymaps in qmap format (http://doc.qt.nokia.com/latest/qt-embedded-kmap2qmap.html). Original kmap2qmap source file was downloaded from http://svn.netlabs.org/repos/qt4/trunk/tools/kmap2qmap/main.cpp, then some changes from http://palm.cdnetworks.net/opensource/3.0.2/qt4-4.7.1-patches.gz were applied.&lt;br /&gt;
Download the patched kmap2qmap.cpp[http://users.openinkpot.org/~lunohod/kmap2qmap.cpp] and compile it:&lt;br /&gt;
&lt;br /&gt;
'''gcc -o kmap2qmap kmap2qmap.cpp -I/usr/include/qt4 -I/usr/include/qt4/QtCore -lQtCore'''&lt;br /&gt;
&lt;br /&gt;
Now grab the kmap[http://users.openinkpot.org/~lunohod/us.kmap] file, modify it if you want and generate the qmap file with:&lt;br /&gt;
&lt;br /&gt;
'''./kmap2qmap us.kmap keymap-us.qmap'''&lt;br /&gt;
&lt;br /&gt;
The us.kmap file was generated with ckbcomp (it's in the console-setup package in Debian) and then the touchpad related keys were added:&lt;br /&gt;
&lt;br /&gt;
'''ckbcomp -keycodes evdev -layout us -compact &amp;gt; us.kmap'''&lt;br /&gt;
&lt;br /&gt;
There is also a modified kmap file[http://users.openinkpot.org/~lunohod/us_modified.kmap] with CapLock changed to Control key, added AltGr and germanic umlauts mapped to AltGr+[aous]. You can take this kmap as a reference or just diff it with the us.kmap to see what should be changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to create new layouts (with dvorak, colemak, cyrillic or whatever you want), but there is still no way to switch layouts on the fly.&lt;/div&gt;</summary>
		<author><name>Lunohod</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Touchpad_Bluetooth_Keyboard&amp;diff=19127</id>
		<title>Touchpad Bluetooth Keyboard</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Touchpad_Bluetooth_Keyboard&amp;diff=19127"/>
		<updated>2011-09-25T19:26:39Z</updated>

		<summary type="html">&lt;p&gt;Lunohod: Describe keyboard layouts&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== HP Touchpad Bluetooth Keyboard ==&lt;br /&gt;
=== Keycode/Scancode for Media/Specialty Keys ===&lt;br /&gt;
Hopefully this information will make it easier to implement support for the HP Touchpad Bluetooth Keyboard on other devices such as a Pre2 or Veer.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key&lt;br /&gt;
! Keycode&lt;br /&gt;
! Scancode (Decimal)&lt;br /&gt;
! Scancode (Hex)&lt;br /&gt;
|-&lt;br /&gt;
| Notifications&lt;br /&gt;
| 1&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Search&lt;br /&gt;
| 217&lt;br /&gt;
| 786977&lt;br /&gt;
| 0xC0221&lt;br /&gt;
|-&lt;br /&gt;
| Keyboard&lt;br /&gt;
| 204&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Brightness Down&lt;br /&gt;
| 224&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Brightness Up&lt;br /&gt;
| 225&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Rewind&lt;br /&gt;
| 168&lt;br /&gt;
| 786612&lt;br /&gt;
| 0xC00B4&lt;br /&gt;
|-&lt;br /&gt;
| Play/Pause&lt;br /&gt;
| 164&lt;br /&gt;
| 786637&lt;br /&gt;
| 0xC00CD&lt;br /&gt;
|-&lt;br /&gt;
| Forward&lt;br /&gt;
| 208&lt;br /&gt;
| 786611&lt;br /&gt;
| 0xC00B3&lt;br /&gt;
|-&lt;br /&gt;
| Mute&lt;br /&gt;
| 113&lt;br /&gt;
| 786658&lt;br /&gt;
| 0xC00E2&lt;br /&gt;
|-&lt;br /&gt;
| Volume Down&lt;br /&gt;
| 114&lt;br /&gt;
| 786666&lt;br /&gt;
| 0xC00EA&lt;br /&gt;
|-&lt;br /&gt;
| Volume Up&lt;br /&gt;
| 115&lt;br /&gt;
| 786665&lt;br /&gt;
| 0xC00E9&lt;br /&gt;
|-&lt;br /&gt;
| Power&lt;br /&gt;
| 142&lt;br /&gt;
| 65666&lt;br /&gt;
| 0x10082&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Using various tools under Ubuntu 11.04, I haven't been able to get info for Keyboard, Brightness Down, and Brightness Up. These keys may need a Touchpad device to get the information for, as the keys are known working there.&lt;br /&gt;
--[[User:SineOtter|SineOtter]] 07:34, 9 September 2011 (UTC)&lt;br /&gt;
&lt;br /&gt;
=== Keyboard layouts ===&lt;br /&gt;
&lt;br /&gt;
The keymaps are located in the /usr/share/qt4/keymaps directory. There are 3 of them: keymap-us.qmap, keymap-de.qmap, keymap-fr.qmap. The keymap is loaded after the keyboard was successfully paired with the touchpad. &lt;br /&gt;
&lt;br /&gt;
kmap2qmap is a tool to generate keymaps in qmap format (http://doc.qt.nokia.com/latest/qt-embedded-kmap2qmap.html). Original kmap2qmap source file was downloaded from http://svn.netlabs.org/repos/qt4/trunk/tools/kmap2qmap/main.cpp, then some changes from http://palm.cdnetworks.net/opensource/3.0.2/qt4-4.7.1-patches.gz were applied.&lt;br /&gt;
Download the patched kmap2qmap.cpp and compile it:&lt;br /&gt;
&lt;br /&gt;
'''gcc -o kmap2qmap kmap2qmap.cpp -I/usr/include/qt4 -I/usr/include/qt4/QtCore -lQtCore'''&lt;br /&gt;
&lt;br /&gt;
Now grab the kmap file, modify it if you want and generate the qmap file with:&lt;br /&gt;
&lt;br /&gt;
'''./kmap2qmap us.kmap keymap-us.qmap'''&lt;br /&gt;
&lt;br /&gt;
The us.kmap file was generated with ckbcomp (it's in the console-setup package in Debian) and then the touchpad related keys were added:&lt;br /&gt;
&lt;br /&gt;
'''ckbcomp -keycodes evdev -layout us -compact &amp;gt; us.kmap'''&lt;br /&gt;
&lt;br /&gt;
There is also a modified kmap file with CapLock changed to Control key, added AltGr and germanic umlauts mapped to AltGr+[aous]. You can take this kmap as a reference or just diff it with the us.kmap to see what should be changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to create new layouts (with dvorak, colemak, cyrillic or whatever you want), but there is still no way to switch layouts on the fly.&lt;/div&gt;</summary>
		<author><name>Lunohod</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Building_Apps_and_Kernels&amp;diff=19055</id>
		<title>Building Apps and Kernels</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Building_Apps_and_Kernels&amp;diff=19055"/>
		<updated>2011-09-23T22:29:40Z</updated>

		<summary type="html">&lt;p&gt;Lunohod: Fixed link to the How_To_Build_Xecutah&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you are looking for instructions for building apps and kernels for WebOS, you have come to the right place.  If you have not run through the [[WebOS Internals PDK]] wiki page, you should start there.&lt;br /&gt;
&lt;br /&gt;
== '''Setup''' ==&lt;br /&gt;
Depending on what you're building you might need some of the prereq's from [[WebOS Internals PDK]] installation.&lt;br /&gt;
&lt;br /&gt;
Create the directory structure for the source:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo mkdir -p /srv/preware&lt;br /&gt;
cd /srv/preware&lt;br /&gt;
sudo chmod 777 .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pull down the app source with git.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone git://git.webos-internals.org/preware/build.git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you have the source, you need to build the toolchain — this can take some time or if you already have the toolchain installed, please see below&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd build&lt;br /&gt;
make toolchain&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please see the notes if you already have the correct toolchain installed and do not want to download it again.&lt;br /&gt;
&lt;br /&gt;
== '''Apps''' ==&lt;br /&gt;
&lt;br /&gt;
Package up preware.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /srv/preware/build/apps/preware&lt;br /&gt;
make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Kernels''' ==&lt;br /&gt;
&lt;br /&gt;
Package up UberKernel.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /srv/preware/build/kernels/uber-kernel-touchpad&lt;br /&gt;
make package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing your kernel&lt;br /&gt;
you will find your kernel in &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
build/src-3.0.2-22/linux-2.6.35/arch/arm/boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
you can boot it using memboot. to do this do the following &amp;lt;br&amp;gt;&lt;br /&gt;
1) turn off the touchpad&amp;lt;br&amp;gt;&lt;br /&gt;
2) connect it to your machine&amp;lt;br&amp;gt;&lt;br /&gt;
3) press the Volume Up key and power on the device, you should see a giant USB logo on the device&amp;lt;br&amp;gt;&lt;br /&gt;
4) novacom boot mem:// &amp;lt; uImage&lt;br /&gt;
&lt;br /&gt;
== '''Libraries''' ==&lt;br /&gt;
Once you have your toolchain configured and you have had a chance to get your SB2 cross compiler working with one of the applications above, you might be looking to add libraries or compile libraries and &amp;quot;stage&amp;quot; them into your cross compiler /usr directory. The /usr directory in your toolchain is the directory that contains the lib files and include files necessary to compile libraries or applications against the toolchain. Since the TouchPad is targeting armv7, we have to compile libraries to target the armv7 architecture and stage them into the architecture's root /usr/lib and include directories.&lt;br /&gt;
&lt;br /&gt;
Don't worry, once you get the hang of it, it's pretty straight forward. You just have to trust that this is the fastest and easiest way to pull down code, compile dependencies, and get the ball rolling on your own library or application.&lt;br /&gt;
&lt;br /&gt;
You might also be interested in using additional libraries in your projects. Your best bet for getting the latest source is to look in the locations of the existing libraries used in other packages.  &lt;br /&gt;
&lt;br /&gt;
It's a good idea to first take a look at the directories for all of the common libraries that were downloaded when you setup your toolchain:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /srv/preware/cross-compile/packages/common/x&lt;br /&gt;
ls&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Each directory here is a separate library. The library folder contains a Makefile, which links to other Makefiles.  The Makefiles download source for the library and compile the various dependencies of the library that kicked off the make command.  &lt;br /&gt;
&lt;br /&gt;
Let's start by simply compiling libxcb and take a look at the different pieces involved in getting the library to compile properly.  If you crack open the Makefile for libxcb:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nano /srv/preware/cross-compile/packages/common/x/libxcb/Makefile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see the name of the project, the version number for libxcb (this is used to download the package from the tar) and the SRC_BZ2 url.  The SRC_BZ2 url can be changed to point to the package that you're looking to compile.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NAME = libxcb&lt;br /&gt;
VERSION = 1.7&lt;br /&gt;
&lt;br /&gt;
DEPENDS = x/xcbproto         \&lt;br /&gt;
                  x/libpthread-stubs \&lt;br /&gt;
                  x/xau&lt;br /&gt;
&lt;br /&gt;
SRC_BZ2 = http://xcb.freedesktop.org/dist/${NAME}-${VERSION}.tar.bz2&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For most instances, the above text is the only text you will need to modify (for most cases where you need to compile your own library folder in the packages directory).  The process is pretty straight forward from here. Keep in mind, any folder you list in the DEPENDS section will need to exist and have a Makefile containing similar logic as the makefile you created for the library that lists it in its Makefile depends section.&lt;br /&gt;
&lt;br /&gt;
If you want to test out compiling and staging (installing the library into your target architecture /usr/lib and include folder like we mention above), just type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make stage package&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''Note:''' some packages might need additional work to compile (e.g. compiling libxcb requires that you create the full path for the documentation before it will install properly /usr/local/share/doc/libxcb/tutorial).&lt;br /&gt;
&lt;br /&gt;
Now when you want to configure your own application or library outside of the toolchain or preware directory (such as a library or application you downloaded or are using Eclipse to develop) simply cd into that source directory and enter the toolchain:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sb2 -M /srv/preware/cross-compile/staging/mapping-armv7&lt;br /&gt;
./configure&lt;br /&gt;
make all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake .&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Making and packaging builds the goods, packages them for you in a neat little ipkg and places the code where it needs to go for other apps and libraries to link to.  That's about all there is to it!&lt;br /&gt;
&lt;br /&gt;
== '''Notes''' ==&lt;br /&gt;
&lt;br /&gt;
If you already have the correct version of the toolchain installed for the device you are targeting you can symlink it to the proper location (e.g. the touchpad needs the Sourcery G++ Lite 2009q1-203 toolchain).&lt;br /&gt;
&lt;br /&gt;
If it is already installed you can symlink it into the build area:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd toolchain/cs09q1armel&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
ln -s &amp;lt;location of toolchain&amp;gt; arm-2009q1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Samples''' ==&lt;br /&gt;
&lt;br /&gt;
After you run through the WIDK and setup your toolchain, take a look at [[How_To_Build_Xecutah]] for details on building X Server and the process for building an application.&lt;/div&gt;</summary>
		<author><name>Lunohod</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Touchpad_Bluetooth_Keyboard&amp;diff=19049</id>
		<title>Touchpad Bluetooth Keyboard</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Touchpad_Bluetooth_Keyboard&amp;diff=19049"/>
		<updated>2011-09-23T21:26:39Z</updated>

		<summary type="html">&lt;p&gt;Lunohod: Add missing keycodes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== HP Touchpad Bluetooth Keyboard ==&lt;br /&gt;
=== Keycode/Scancode for Media/Specialty Keys ===&lt;br /&gt;
Hopefully this information will make it easier to implement support for the HP Touchpad Bluetooth Keyboard on other devices such as a Pre2 or Veer.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Key&lt;br /&gt;
! Keycode&lt;br /&gt;
! Scancode (Decimal)&lt;br /&gt;
! Scancode (Hex)&lt;br /&gt;
|-&lt;br /&gt;
| Notifications&lt;br /&gt;
| 1&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Search&lt;br /&gt;
| 217&lt;br /&gt;
| 786977&lt;br /&gt;
| 0xC0221&lt;br /&gt;
|-&lt;br /&gt;
| Keyboard&lt;br /&gt;
| 204&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Brightness Down&lt;br /&gt;
| 224&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Brightness Up&lt;br /&gt;
| 225&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Rewind&lt;br /&gt;
| 168&lt;br /&gt;
| 786612&lt;br /&gt;
| 0xC00B4&lt;br /&gt;
|-&lt;br /&gt;
| Play/Pause&lt;br /&gt;
| 164&lt;br /&gt;
| 786637&lt;br /&gt;
| 0xC00CD&lt;br /&gt;
|-&lt;br /&gt;
| Forward&lt;br /&gt;
| 208&lt;br /&gt;
| 786611&lt;br /&gt;
| 0xC00B3&lt;br /&gt;
|-&lt;br /&gt;
| Mute&lt;br /&gt;
| 113&lt;br /&gt;
| 786658&lt;br /&gt;
| 0xC00E2&lt;br /&gt;
|-&lt;br /&gt;
| Volume Down&lt;br /&gt;
| 114&lt;br /&gt;
| 786666&lt;br /&gt;
| 0xC00EA&lt;br /&gt;
|-&lt;br /&gt;
| Volume Up&lt;br /&gt;
| 115&lt;br /&gt;
| 786665&lt;br /&gt;
| 0xC00E9&lt;br /&gt;
|-&lt;br /&gt;
| Power&lt;br /&gt;
| 142&lt;br /&gt;
| 65666&lt;br /&gt;
| 0x10082&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Using various tools under Ubuntu 11.04, I haven't been able to get info for Keyboard, Brightness Down, and Brightness Up. These keys may need a Touchpad device to get the information for, as the keys are known working there.&lt;br /&gt;
--[[User:SineOtter|SineOtter]] 07:34, 9 September 2011 (UTC)&lt;/div&gt;</summary>
		<author><name>Lunohod</name></author>
	</entry>
</feed>