merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 25 Apr 2012 21:32:45 +0300
changeset 1264 6fccb9f7cfd8
parent 1263 a35bbaa9c17a (current diff)
parent 1258 5e458103accb (diff)
child 1266 ff1f781e38d3
merged
linux.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.rst	Wed Apr 25 21:32:45 2012 +0300
@@ -0,0 +1,22 @@
+
+================
+ gavenkoa tips.
+================
+.. contents::
+
+About.
+======
+
+Make HTML version.
+==================
+
+Install docutils package::
+
+  $ sudo apt-get install docutils-common   # for Debian
+
+and build::
+
+  $ make html
+  $ sensible-browser tips-html/index.html
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmark.rst	Wed Apr 25 21:32:45 2012 +0300
@@ -0,0 +1,22 @@
+.. -*- coding: utf-8; -*-
+
+============
+ Benchmark.
+============
+.. contents::
+
+CPU.
+====
+
+  http://www.cpubenchmark.net/
+
+Video.
+======
+
+  http://www.videocardbenchmark.net/
+
+Hard drive.
+===========
+
+  http://www.harddrivebenchmark.net/
+
--- a/debian.rst	Wed Apr 25 21:32:32 2012 +0300
+++ b/debian.rst	Wed Apr 25 21:32:45 2012 +0300
@@ -81,7 +81,7 @@
   /dev/sda5       /mnt/music      ntfs    ro,nls=utf8,gid=win,dmask=222,fmask=337  0       0
   /dev/sdd1       /mnt/usb        vfat    rw,shortname=winnt,utf8,quiet,gid=win,dmask=002,fmask=111  0  0
 
-Installing and configuting documentation.
+Installing and configuring documentation.
 =========================================
 
 Documentation packages end with ``-doc`` suffix.
--- a/linux-driver.rst	Wed Apr 25 21:32:32 2012 +0300
+++ b/linux-driver.rst	Wed Apr 25 21:32:45 2012 +0300
@@ -21,6 +21,40 @@
  * http://wiki.debian.org/GraphicsCard#nVidia
  * http://wiki.debian.org/NvidiaGraphicsDrivers
 
+ATI free driver.
+================
+
+  http://wiki.debian.org/AtiHowTo
+                Debian ATI howto.
+
+ATI/AMD proprietary driver.
+===========================
+
+To install driver under Debian run::
+
+  $ sudo apt-get install fglrx-driver
+
+To create simple ``xorg.conf`` file run::
+
+  $ sudo aticonfig --initial --input=/etc/X11/xorg.conf
+
+To check that driver was loaded properly::
+
+  $ fglrxinfo
+  display: :0  screen: 0
+  OpenGL vendor string: Advanced Micro Devices, Inc.
+  OpenGL renderer string: AMD Radeon HD 6900 Series
+  OpenGL version string: 4.2.11566 Compatibility Profile Context
+
+Configure performance in Catalyst Control Center::
+
+  $ amdcccle
+
+  http://wiki.debian.org/ATIProprietary
+                Debian ATI Proprietary Driver Howto
+  https://help.ubuntu.com/community/BinaryDriverHowto/ATI
+                Ubuntu AMD Binary Driver Howto
+
 nouveau video driver.
 =====================
 
--- a/linux.rst	Wed Apr 25 21:32:32 2012 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
--*- mode: outline; coding: utf-8 -*-
-
-* SysRq.
-
-  x86: ALT-SysRq-<command key>
-  SPARC: ALT-STOP-<command key>
-  PPC: ALT - Print Screen (or F13) - <command key>
-
-  'b' - reboot
-  'p' - dump the current registers and flags to your console
-  'r' - take control of keyboard back from X
-  'e' - send SIGTERM to all processes, except for init
-  'i' - send SIGKILL to all processes, except for init
-  's' - attempt to sync all mounted filesystems
-  'u' - remount all filesystems read-only
-
-You can put one of such line:
-
-  $ echo 0 > /proc/sys/kernel/sysrq  # disable
-  $ echo 1 > /proc/sys/kernel/sysrq  # enable
-
-to your /etc/rc.local or alternativaly place under /etc/sysctl:
-
-  kernel.sysrq = 1
-
-  http://www.kernel.org/doc/Documentation/sysrq.txt
-                Linux Magic System Request Key Hacks
--- a/x.rst	Wed Apr 25 21:32:32 2012 +0300
+++ b/x.rst	Wed Apr 25 21:32:45 2012 +0300
@@ -76,6 +76,74 @@
   $ xprop -root
   $ xprop -name bash    # for xterm with running bash inside
 
+Keyboard's keys under X window.
+===============================
+
+  scancodes
+                hardware-dependent codes generated by keystrokes and received by
+                the X server.
+  keycodes
+                Codes sent by the X server to the client indicating which key
+                was pressed. Keycodes by themselves do not indicate what the
+                keystroke means; the client must request that information from
+                the X server.
+  modifiers
+                Flags, such as ``shift'' and ``control,'' that the server sends
+                with each keycode to the client. The client's interpretation of
+                the keycode may depend on the state of the modifiers. For
+                example, the state of the shift modifier determines whether an
+                alphabetic character should be lowercase or uppercase. Because
+                the X server encodes the states of the eight modifiers (shift,
+                lock, control, mod1, mod2, mod3, mod4, and mod5) in a single
+                byte of data, modifiers are often referred to as ``modifier
+                bits.''
+  keysyms
+                codes that specify the glyphs appearing on the keys. The X
+                server also maintains a list of strings that describe the
+                keysyms, such as ``a'', ``B'', and ``Control.''
+
+Find the keycode.
+=================
+
+::
+
+  $ xev
+  $ cat /usr/include/X11/keysymdef.h
+
+Don't run under X::
+
+  $ showkey
+
+To do same under X::
+
+  $ xev | sed -n 's=.*keycode \([0-9]*\).*=\1=p'
+
+List key modifier::
+
+  $ xmodmap -pm
+
+Add keycode to modifier::
+
+  $ xmodmap -e "add shift = Shift_R"
+
+Remove keycode from modifier::
+
+  $ xmodmap -e "remove shift = Shift_L"
+
+Examining the current keymap table::
+
+  $ xmodmap -pk
+
+Changing the keymap table::
+
+  $ xmodmap -e "keycode 34 = bracketleft braceleft"
+  $ xmodmap -e "keysym CapsLock = Control_L"
+
+  https://wiki.ubuntu.com/LaptopTesting/Keycodes
+                Ubuntu Keycodes howto.
+  http://en.gentoo-wiki.com/wiki/Multimedia_Keys
+                Gentoo Multimedia Keys howto.
+
 Making screenshort.
 ===================
 ::
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xkb.rst	Wed Apr 25 21:32:45 2012 +0300
@@ -0,0 +1,24 @@
+
+======
+ xkb.
+======
+.. contents::
+
+List xkb settings.
+==================
+::
+
+  $ setxkbmap -query
+  rules:      evdev
+  model:      pc105
+  layout:     us,ru
+  variant:    ,
+  options:    grp:rwin_toggle,grp_led:scroll
+
+Set en/ru layout.
+=================
+
+Empty ``-option`` reset xkb settings::
+
+  $ setxkbmap -layout us,ru -option '' -option grp:rwin_toggle,grp_led:scroll
+