Przeglądaj źródła

Set theme jekyll-theme-minimal and migrate Page Generator content

Fredrik Svantesson 5 lat temu
rodzic
commit
009a3cdae2
4 zmienionych plików z 110 dodań i 188 usunięć
  1. 8
    0
      _config.yml
  2. 0
    181
      index.html
  3. 102
    0
      index.md
  4. 0
    7
      params.json

+ 8
- 0
_config.yml Wyświetl plik

@@ -0,0 +1,8 @@
1
+title: Light
2
+description: GNU/Linux application to control backlights
3
+google_analytics: 
4
+show_downloads: true
5
+theme: jekyll-theme-minimal
6
+
7
+gems:
8
+  - jekyll-mentions

+ 0
- 181
index.html Wyświetl plik

@@ -1,181 +0,0 @@
1
-<!doctype html>
2
-<html>
3
-  <head>
4
-    <meta charset="utf-8">
5
-    <meta http-equiv="X-UA-Compatible" content="chrome=1">
6
-    <title>Light by haikarainen</title>
7
-
8
-    <link rel="stylesheet" href="stylesheets/styles.css">
9
-    <link rel="stylesheet" href="stylesheets/github-light.css">
10
-    <meta name="viewport" content="width=device-width">
11
-    <!--[if lt IE 9]>
12
-    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
-    <![endif]-->
14
-  </head>
15
-  <body>
16
-    <div class="wrapper">
17
-      <header>
18
-        <h1>Light</h1>
19
-        <p>GNU/Linux application to control backlights</p>
20
-
21
-        <p class="view"><a href="https://github.com/haikarainen/light">View the Project on GitHub <small>haikarainen/light</small></a></p>
22
-
23
-
24
-        <ul>
25
-          <li><a href="https://github.com/haikarainen/light/zipball/master">Download <strong>ZIP File</strong></a></li>
26
-          <li><a href="https://github.com/haikarainen/light/tarball/master">Download <strong>TAR Ball</strong></a></li>
27
-          <li><a href="https://github.com/haikarainen/light">View On <strong>GitHub</strong></a></li>
28
-        </ul>
29
-      </header>
30
-      <section>
31
-        <h1>
32
-<a id="light" class="anchor" href="#light" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Light</h1>
33
-
34
-<p>Copyright (C) 2012 - 2018, Fredrik Haikarainen
35
-This is free software, see the source for copying conditions.  There is NO
36
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE</p>
37
-
38
-<h2>
39
-<a id="description" class="anchor" href="#description" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Description</h2>
40
-
41
-<p>Light is a program to control backlight controllers under GNU/Linux, it is the successor of lightscript, which was a bash script with the same purpose, and tries to maintain the same functionality.</p>
42
-
43
-<h2>
44
-<a id="features" class="anchor" href="#features" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Features</h2>
45
-
46
-<ul>
47
-<li>Works excellent where other software have been proven unusable or problematic, thanks to how it operates internally and the fact that it does not rely on X.</li>
48
-<li>Can automatically figure out the best controller to use, making full use of underlying hardware.</li>
49
-<li>Possibility to set a minimum brightness value, as some controllers set the screen to be pitch black at a vaĺue of 0 (or higher).</li>
50
-</ul>
51
-
52
-<h2>
53
-<a id="installation" class="anchor" href="#installation" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Installation</h2>
54
-
55
-<h3>
56
-<a id="arch-linux" class="anchor" href="#arch-linux" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Arch Linux</h3>
57
-
58
-<p>If you run Arch Linux, there exists 2 packages;</p>
59
-
60
-<ul>
61
-<li>
62
-<a href="https://aur.archlinux.org/packages/light-git">light-git</a> - For the absolutely latest version</li>
63
-<li>
64
-<a href="https://aur.archlinux.org/packages/light">light</a> - For the latest tagged release</li>
65
-</ul>
66
-
67
-<p>I recommend you go with light-git as you might miss important features and bugfixes if you do not.</p>
68
-
69
-<h3>
70
-<a id="manual" class="anchor" href="#manual" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Manual</h3>
71
-<p>We recommended downloading a versioned tarball from the relases page
72
-  on GitHub. Download and untar the archive:
73
-  </p>
74
-<pre>
75
-tar xf light-x.yy.tar.gz
76
-cd light-x.yy/
77
-./configure && make
78
-sudo make install
79
-</pre>
80
-<p>However, should you want to try the latest GitHub source you first
81
-need to clone the repository and run the autogen.sh script. This
82
-requires automake and autoconf to be installed on your system.</p>
83
-<pre>
84
-./autogen.sh
85
-./configure && make
86
-sudo make install
87
-</pre>
88
-<p>The configure script and Makefile.in files are not part of GIT
89
-because they are generated at release time with make release.</p>
90
-
91
-<p><strong>Optional:</strong> If you want to use udev rules instead of suid to manage sysfs permissions, you may skip the <code>make install</code> step and instead add something like the following to <code>/etc/udev/rules.d/90-backlight.rules</code> after copying your binaries:</p>
92
-
93
-<pre><code>ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
94
-ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
95
-</code></pre>
96
-
97
-<h2>
98
-<a id="usage" class="anchor" href="#usage" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Usage</h2>
99
-
100
-<p>This application usually has 4 different criteria on flags to use, which are operation modes, value mode, target and controller mode. Flags from these different modes can never be used in conjunction, but all of them do not always have to be specified (although it is recommended to do so for verbosity).</p>
101
-
102
-<p><strong>Note:</strong> This application will only print errors if you are using it incorrectly. If something goes wrong, and you can't figure out why, try setting the verbosity flag with -v:</p>
103
-
104
-<ul>
105
-<li>0: No debug output</li>
106
-<li>1: Errors</li>
107
-<li>2: Errors, warnings</li>
108
-<li>3: Errors, warnings, notices</li>
109
-</ul>
110
-
111
-<h3>
112
-<a id="operation-modes" class="anchor" href="#operation-modes" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Operation modes</h3>
113
-
114
-<p>The operation modes describe <strong>what</strong> you want to do.</p>
115
-
116
-<ul>
117
-<li>-G: Which <strong>reads/gets</strong> brightness/data from controllers/files</li>
118
-<li>-S: Which <strong>writes/sets</strong> brightness/data to controllers/files</li>
119
-<li>-A: Which does like -S but instead <strong>adds</strong> the value</li>
120
-<li>-U: Which does like -S but instead '<strong>subtracts</strong> the value</li>
121
-<li>-O: Save the current brightness for later use (usually used on shutdown)</li>
122
-<li>-I: Restore the previously saved brightness (usually used on boot)</li>
123
-<li>-L: List the available controllers</li>
124
-</ul>
125
-
126
-<p>When used by themselves operate on the brightness of a controller that is selected automatically. S, A and U needs another argument -- except for the main 4 criteria -- which is the value to set/add/subtract.   This can be specified either in percent or in raw values, but remember to specify the value mode (read below) if you want to write raw values.</p>
127
-
128
-<h3>
129
-<a id="value-modes" class="anchor" href="#value-modes" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Value modes</h3>
130
-
131
-<p>The value mode specify in what unit you want to read or write values in. The default one (if not specified) is in percent, the other one is raw mode and should always be used when you need very precise values (or only have a controller with a very small amount of brightness levels).</p>
132
-
133
-<ul>
134
-<li>-p: Percent</li>
135
-<li>-r: Raw mode</li>
136
-</ul>
137
-
138
-<p>Remember, this is the unit that will be used when you set, get, add or subtract brightness values.</p>
139
-
140
-<h3>
141
-<a id="target" class="anchor" href="#target" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Target</h3>
142
-
143
-<p>As you can not only handle the <strong>brightness</strong> of controllers, you may also specify a target to read/write from/to:</p>
144
-
145
-<ul>
146
-<li>-b: Current brightness of selected controller</li>
147
-<li>-m: Maximum brightness of selected controller</li>
148
-<li>-c: Minimum brightness (cap) of selected controller</li>
149
-</ul>
150
-
151
-<p>The minimum brightness is a feature implemented as some controllers make the screen go pitch black at 0%, if you have a controller like that, it is recommended to set this value (in either percent or in raw mode). These values will be saved in raw mode though, so if you specify it in percent it might not be too accurate depending on your controller.</p>
152
-
153
-<h3>
154
-<a id="controller-modes" class="anchor" href="#controller-modes" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Controller modes</h3>
155
-
156
-<p>Finally, you can either use the built-in controller selection to get the controller with the maximum precision, or you can specify one manually with the -s flag. The -a flag will force automatic mode and is default. Use -L to get a list of controllers to use with the -s flag (to specify which controller to use).</p>
157
-
158
-<h3>
159
-<a id="examples" class="anchor" href="#examples" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Examples</h3>
160
-
161
-<p>Get the current brightness in percent</p>
162
-
163
-<p><code>light -G</code></p>
164
-
165
-<p>Increase brightness by 5 percent</p>
166
-
167
-<p><code>light -A 5</code></p>
168
-
169
-<p>Set the minimum cap to 2 in raw value on the acpi_video0 controller:</p>
170
-
171
-<p><code>light -Scrs "acpi_video0" 2</code></p>
172
-      </section>
173
-      <footer>
174
-        <p>This project is maintained by <a href="https://github.com/haikarainen">haikarainen</a></p>
175
-        <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
176
-      </footer>
177
-    </div>
178
-    <script src="javascripts/scale.fix.js"></script>
179
-    
180
-  </body>
181
-</html>

+ 102
- 0
index.md Wyświetl plik

@@ -0,0 +1,102 @@
1
+# Light
2
+
3
+Copyright (C) 2012 - 2014, Fredrik Haikarainen
4
+This is free software, see the source for copying conditions.  There is NO
5
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
6
+
7
+
8
+## Description
9
+
10
+Light is a program to control backlight controllers under GNU/Linux, it is the successor of lightscript, which was a bash script with the same purpose, and tries to maintain the same functionality.
11
+
12
+
13
+## Features
14
+
15
+* Works excellent where other software have been proven unusable or problematic, thanks to how it operates internally and the fact that it does not rely on X.
16
+* Can automatically figure out the best controller to use, making full use of underlying hardware.
17
+* Possibility to set a minimum brightness value, as some controllers set the screen to be pitch black at a vaĺue of 0 (or higher).
18
+
19
+
20
+## Installation
21
+
22
+### Arch Linux
23
+
24
+If you run Arch Linux, there exists 2 packages;
25
+* [light-git](https://aur.archlinux.org/packages/light-git) - For the absolutely latest version
26
+* [light](https://aur.archlinux.org/packages/light) - For the latest tagged release
27
+
28
+I recommend you go with light-git as you might miss important features and bugfixes if you do not.
29
+
30
+### Manual
31
+
32
+`make && make install`
33
+
34
+**Optional:** If you want to use udev rules instead of suid to manage sysfs permissions, you may skip the `make install` step and instead add something like the following to `/etc/udev/rules.d/90-backlight.rules` after copying your binaries:
35
+```
36
+ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
37
+ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
38
+```
39
+
40
+
41
+## Usage
42
+
43
+This application usually has 4 different criteria on flags to use, which are operation modes, value mode, target and controller mode. Flags from these different modes can never be used in conjunction, but all of them do not always have to be specified (although it is recommended to do so for verbosity).
44
+
45
+**Note:** This application will only print errors if you are using it incorrectly. If something goes wrong, and you can't figure out why, try setting the verbosity flag with -v:
46
+
47
+* 0: No debug output
48
+* 1: Errors
49
+* 2: Errors, warnings
50
+* 3: Errors, warnings, notices
51
+
52
+### Operation modes
53
+
54
+The operation modes describe **what** you want to do.
55
+
56
+* -G: Which **reads/gets** brightness/data from controllers/files
57
+* -S: Which **writes/sets** brightness/data to controllers/files
58
+* -A: Which does like -S but instead **adds** the value
59
+* -U: Which does like -S but instead '**subtracts** the value
60
+* -O: Save the current brightness for later use (usually used on shutdown)
61
+* -I: Restore the previously saved brightness (usually used on boot)
62
+* -L: List the available controllers
63
+
64
+When used by themselves operate on the brightness of a controller that is selected automatically. S, A and U needs another argument -- except for the main 4 criteria -- which is the value to set/add/subtract.   This can be specified either in percent or in raw values, but remember to specify the value mode (read below) if you want to write raw values.
65
+
66
+### Value modes
67
+
68
+The value mode specify in what unit you want to read or write values in. The default one (if not specified) is in percent, the other one is raw mode and should always be used when you need very precise values (or only have a controller with a very small amount of brightness levels).
69
+
70
+* -p: Percent
71
+* -r: Raw mode
72
+
73
+Remember, this is the unit that will be used when you set, get, add or subtract brightness values.
74
+
75
+### Target
76
+
77
+As you can not only handle the **brightness** of controllers, you may also specify a target to read/write from/to:
78
+
79
+* -b: Current brightness of selected controller
80
+* -m: Maximum brightness of selected controller
81
+* -c: Minimum brightness (cap) of selected controller
82
+
83
+The minimum brightness is a feature implemented as some controllers make the screen go pitch black at 0%, if you have a controller like that, it is recommended to set this value (in either percent or in raw mode). These values will be saved in raw mode though, so if you specify it in percent it might not be too accurate depending on your controller.
84
+
85
+### Controller modes
86
+
87
+Finally, you can either use the built-in controller selection to get the controller with the maximum precision, or you can specify one manually with the -s flag. The -a flag will force automatic mode and is default. Use -L to get a list of controllers to use with the -s flag (to specify which controller to use).
88
+
89
+### Examples
90
+
91
+Get the current brightness in percent
92
+
93
+`light -G`
94
+
95
+Increase brightness by 5 percent
96
+
97
+`light -A 5`
98
+
99
+Set the minimum cap to 2 in raw value on the acpi_video0 controller:
100
+
101
+`light -Scrs "acpi_video0" 2`
102
+

+ 0
- 7
params.json
Plik diff jest za duży
Wyświetl plik