View Single Post
Old 10-18-2012, 01:25 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post Buildroot - Things added for the kindle

This is a quickie list to remind me of the things I am adding to buildroot.
Specifically software packages.

I will probably update this top-post to be a how to at some point.

The list will grow as and when.
Things added to buildroot

AALIB (and aafire)

Spoiler:
Quote:
[root@kindle us]# aafire --help
-driver select driver
available drivers:linux curses stdout stderr
-kbddriver select keyboard driver
available drivers:curses stdin
-mousedriver select mouse driver
available drivers:cursesdos

Size options:
-width set width
-height set height
-minwidth set minimal width
-minheight set minimal height
-maxwidth set maximal width
-maxheight set maximal height
-recwidth set recomended width
-recheight set recomended height

Attributes:
-dim enable usage of dim (half bright) attribute
-bold enable usage of bold (double bright) attribute
-reverse enable usage of reverse attribute
-normal enable usage of normal attribute
-boldfont enable usage of boldfont attrubute
-no<attr> disable (i.e -nobold)

Font rendering options:
-extended use all 256 characters
-eight use eight bit ascii
-font <font> select font(This option have effect just on hardwares
where aalib is unable to determine current font
available fonts:vga8 vga9 mda14 vga14 X8x13 X8x16
X8x13bold vgagl8 line

Rendering options:
-inverse enable inverse rendering
-noinverse disable inverse rendering
-bright <val> set bright (0-255)
-contrast <val>set contrast (0-255)
-gamma <val> set gamma correction value(0-1)

Ditherng options:
-nodither disable dithering
-floyd_steinberg floyd steinberg dithering
-error_distribution error distribution dithering
-random <val> set random dithering value(0-inf)
Monitor parameters:
-dimmul <val> multiply factor for dim color (5.3)
-boldmul <val> multiply factor for dim color (2.7)
The default parameters are set to fit my monitor (15" goldstar)
With contrast set to maximum and bright set to make black black
This values depends at quality of your monitor (and setting of controls
Defaultd settings should be OK for most PC monitors. But ideal monitor
Needs dimmul=1.71 boldmul=1.43. For example monitor used by SGI is very close to this values. Also old 14" vga monitors needs higher values.


WMCTL http://tomas.styblo.name/wmctrl

Spoiler:
Quote:
[root@kindle us]# wmctrl --help
wmctrl 1.07
Usage: wmctrl [OPTION]...
Actions:
-m Show information about the window manager and
about the environment.
-l List windows managed by the window manager.
-d List desktops. The current desktop is marked
with an asterisk.
-s <DESK> Switch to the specified desktop.
-a <WIN> Activate the window by switching to its desktop and
raising it.
-c <WIN> Close the window gracefully.
-R <WIN> Move the window to the current desktop and
activate it.
-r <WIN> -t <DESK> Move the window to the specified desktop.
-r <WIN> -e <MVARG> Resize and move the window around the desktop.
The format of the <MVARG> argument is described below.
-r <WIN> -b <STARG> Change the state of the window. Using this option it's
possible for example to make the window maximized,
minimized or fullscreen. The format of the <STARG>
argument and list of possible states is given below.
-r <WIN> -N <STR> Set the name (long title) of the window.
-r <WIN> -I <STR> Set the icon name (short title) of the window.
-r <WIN> -T <STR> Set both the name and the icon name of the window.
-k (on|off) Activate or deactivate window manager's
"showing the desktop" mode. Many window managers
do not implement this mode.
-o <X>,<Y> Change the viewport for the current desktop.
The X and Y values are separated with a comma.
They define the top left corner of the viewport.
The window manager may ignore the request.
-n <NUM> Change number of desktops.
The window manager may ignore the request.
-g <W>,<H> Change geometry (common size) of all desktops.
The window manager may ignore the request.
-h Print help.

Options:
-i Interpret <WIN> as a numerical window ID.
-p Include PIDs in the window list. Very few
X applications support this feature.
-G Include geometry in the window list.
-x Include WM_CLASS in the window list or
interpret <WIN> as the WM_CLASS name.
-u Override auto-detection and force UTF-8 mode.
-F Modifies the behavior of the window title matching
algorithm. It will match only the full window title
instead of a substring, when this option is used.
Furthermore it makes the matching case sensitive.
-v Be verbose. Useful for debugging.
-w <WA> Use a workaround. The option may appear multiple
times. List of available workarounds is given below.

Arguments:
<WIN> This argument specifies the window. By default it's
interpreted as a string. The string is matched
against the window titles and the first matching
window is used. The matching isn't case sensitive
and the string may appear in any position
of the title.

The -i option may be used to interpret the argument
as a numerical window ID represented as a decimal
number. If it starts with "0x", then
it will be interpreted as a hexadecimal number.

The -x option may be used to interpret the argument
as a string, which is matched against the window's
class name (WM_CLASS property). Th first matching
window is used. The matching isn't case sensitive
and the string may appear in any position
of the class name. So it's recommended to always use
the -F option in conjunction with the -x option.

The special string ":SELECT:" (without the quotes)
may be used to instruct wmctrl to let you select the
window by clicking on it.

The special string ":ACTIVE:" (without the quotes)
may be used to instruct wmctrl to use the currently
active window for the action.

<DESK> A desktop number. Desktops are counted from zero.

<MVARG> Specifies a change to the position and size
of the window. The format of the argument is:

<G>,<X>,<Y>,<W>,<H>

<G>: Gravity specified as a number. The numbers are
defined in the EWMH specification. The value of
zero is particularly useful, it means "use the
default gravity of the window".
<X>,<Y>: Coordinates of new position of the window.
<W>,<H>: New width and height of the window.

The value of -1 may appear in place of
any of the <X>, <Y>, <W> and <H> properties
to left the property unchanged.

<STARG> Specifies a change to the state of the window
by the means of _NET_WM_STATE request.
This option allows two properties to be changed
simultaneously, specifically to allow both
horizontal and vertical maximization to be
altered together.

The format of the argument is:

(remove|add|toggle),<PROP1>[,<PROP2>]

The EWMH specification defines the
following properties:

modal, sticky, maximized_vert, maximized_horz,
shaded, skip_taskbar, skip_pager, hidden,
fullscreen, above, below

Workarounds:

DESKTOP_TITLES_INVALID_UTF8 Print non-ASCII desktop titles correctly
when using Window Maker.

The format of the window list:

<window ID> <desktop ID> <client machine> <window title>

The format of the desktop list:

<desktop ID> [-*] <geometry> <viewport> <workarea> <title>


Author, current maintainer: Tomas Styblo <tripie@cpan.org>
Released under the GNU General Public License.
Copyright (C) 2003


SDL (mutex tweaks) - aalib support

LBREAKOUT2

Other stuff I can't remember hence this list...

Re-added basic Xephyr building back into the xserver-xorg build.
Quote:
Config: select BR2_PACKAGE_XLIB_LIBXV
mk: --enable-xephyr
[root@kindle us]# mntroot rw
system: I mntroot:def:Making root filesystem writeable
[root@kindle /]# cd /; ln -s /mnt/us/usr mntususr
[root@kindle /]# sed -i 's_${prefix}_/mntususr_g' /mnt/us/usr/bin/Xephyr
[root@kindle us]# mntroot ro
system: I mntroot:def:Making root filesystem read-only

[root@kindle /]# Xephyr :1 -title "L:A_N:application_ID:xephyr_O:R_PC:N" -screen
800x600 -cc 4 -dpi 135


TBC


This list will not aim to exhaustively encompass the other changes such as
Custom Kernel build, Custom Busybox, CTNG Config for the 5, Kindle specific filesystem skeleton, etc.

Last edited by twobob; 11-18-2012 at 10:59 PM. Reason: info, Xephyr
twobob is offline   Reply With Quote