index.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <style type="text/css">
  7. @import url('../css/main.css');
  8. </style>
  9. <title>Miscellaneous</title>
  10. </head>
  11. <body>
  12. <div class="section">
  13. <h1 id="pagetop">Miscellaneous</h1>
  14. <p>
  15. Or <a href="../index.html">Back to main index</a>.
  16. </p>
  17. <ul>
  18. <li><a href="#trisquel7_powertop">High Pitched Whining Noise on Idle (how to remove in Trisquel 7)</a></li>
  19. <li><a href="#high_pitch_parabola">High Pitched Whining Noise on Idle (how to remove in Parabola)</a></li>
  20. <li><a href="#serial">X60/T60: Serial port - how to use (for dock owners)</a></li>
  21. <li><a href="#powerbeeps">Power Management Beeps on Thinkpads</a></li>
  22. <li><a href="patch.html">Using diff and patch</a></li>
  23. <li><a href="#get_edid_panelname">Get EDID: Find out the name (model) of your LCD panel</a></li>
  24. </ul>
  25. </div>
  26. <div class="section">
  27. <h1 id="trisquel7_powertop">High Pitched Whining Noise on Idle (how to remove in Trisquel 7)</h1>
  28. <div class="subsection">
  29. <h2 id="trisquel7_powertop_autostart">Start powertop automatically at boot time</h2>
  30. <p>Included with libreboot is a script called 'powertop.trisquel7'. Run this as root and it will setup powertop to run with --auto-tune
  31. at boot time. Load the file in your text editor to see how it does that.</p>
  32. <p>$ <b>sudo ./resources/scripts/misc/powertop.trisquel7</b></p>
  33. </div>
  34. <p><a href="#pagetop">Back to top of page</a></p>
  35. </div>
  36. <div class="section">
  37. <h1 id="high_pitch_parabola">High Pitched Whining Noise on Idle (how to remove in Parabola)</h1>
  38. <p>The following removes most of the noise. It reduces what is a high frequency whine
  39. (that not everyone can hear) to a slight buzz (which most people can't hear or doesn't bother most people).</p>
  40. <p>This is not perfect! The full solution is still not discovered but this is a step towards that.
  41. Also, in some instances you will need to run 'sudo powertop --auto-tune' again.
  42. This needs to be implemented properly in coreboot itself!</p>
  43. <p>On the X60 with coreboot or libreboot, there is a high pitched sound when idle.
  44. So far we have use processor.max_cstate=2 or idle=halt in GRUB.
  45. These consume power. Stop using them! </p>
  46. <p>Be root<br/>
  47. <b>$ su -</b></p>
  48. <p>Installed powertop:<br/>
  49. <b># pacman -S powertop</b></p>
  50. <p>and added the following to /etc/systemd/system/powertop.service :</p>
  51. <pre><i>
  52. [Unit]
  53. Description=Powertop tunings
  54. [Service]
  55. Type=oneshot
  56. RemainAfterExit=no
  57. ExecStart=/usr/bin/powertop --auto-tune
  58. # "powertop --auto-tune" still needs a terminal for some reason. Possibly a bug?
  59. Environment="TERM=xterm"
  60. [Install]
  61. WantedBy=multi-user.target
  62. </i></pre>
  63. <p>Finally, as root do that:<br/>
  64. <b># systemctl enable powertop</b><br/>
  65. <b># systemctl start powertop</b></p>
  66. <p>The next time you boot the system, the buzz will be gone.</p>
  67. <p><a href="#pagetop">Back to top of page</a></p>
  68. </div>
  69. <div class="section">
  70. <h1 id="serial">X60/T60: Serial port - how to use (for dock owners)</h1>
  71. <p>
  72. For the Thinkpad X60 you can use the <b>&quot;UltraBase X6&quot;</b> dock (for the X60 Tablet it is called
  73. X6 Tablet UltraBase). For the ThinkPad T60,
  74. you can use the <b>&quot;Advanced Mini Dock&quot;</b>.
  75. </p>
  76. <p>
  77. If you are using one of the ROM images with 'serial' in the name, then you have serial port enabled in libreboot
  78. and you have memtest86+ included inside the ROM. Connect your null modem cable to the serial port on the dock
  79. and connect the other end to a 2nd system using your USB Serial adapter.
  80. </p>
  81. <p>
  82. On the 2nd system, you can try this (using GNU Screen):<br/>
  83. <b>$ sudo screen /dev/ttyUSB0 115200</b>
  84. </p>
  85. <p>
  86. How to quit GNU Screen: Ctrl+A then release and press K, and then press Y.
  87. </p>
  88. <p>There are also others like Minicom but I like GNU Screen</p>
  89. <p>
  90. By doing this before booting the X60/T60, you will see console output from libreboot. You will also see
  91. GRUB displaying on the serial output, and you will be able to see MemTest86+ on the serial output aswell.
  92. You can also configure your distro so that a terminal (TTY) is accessible from the serial console.
  93. </p>
  94. <p>
  95. The following guide is for Ubuntu, and can be followed for Trisquel 6.0 which is based on Ubuntu 12.04
  96. (should also work in Trisquel 7, based on Ubuntu 14.04) to enable a serial console using GeTTY:<br/>
  97. <a href="https://help.ubuntu.com/community/SerialConsoleHowto">https://help.ubuntu.com/community/SerialConsoleHowto</a>
  98. </p>
  99. <p>
  100. Note: part of the tutorial above requires changing your grub.cfg. Just change the <b>linux</b> line to add instructions for enabling getty.
  101. See <a href="../gnulinux/grub_cbfs.html">../gnulinux/grub_cbfs.html</a>.
  102. </p>
  103. <p><a href="#pagetop">Back to top of page</a>
  104. </div>
  105. <div class="section" id="powerbeeps">
  106. <h1>Power Management Beeps on Thinkpads</h1>
  107. <p>
  108. When disconnecting or connecting the charger, a beep occurs.
  109. When the battery goes to a critically low charge level,
  110. a beep occurs. Nvramtool is included in libreboot, and can
  111. be used to enable or disable this behaviour.
  112. </p>
  113. <p>
  114. Disable or enable beeps when removing/adding the charger:<br/>
  115. $ <b>sudo ./nvramtool -w power_management_beeps=Enable</b><br/>
  116. $ <b>sudo ./nvramtool -w power_management_beeps=Disable</b>
  117. </p>
  118. <p>
  119. Disable or enable beeps when battery is low:<br/>
  120. $ <b>sudo ./nvramtool -w low_battery_beep=Enable</b><br/>
  121. $ <b>sudo ./nvramtool -w low_battery_beep=Disable</b>
  122. </p>
  123. <p>
  124. A reboot is required, for these changes to take effect.
  125. </p>
  126. </div>
  127. <div class="section">
  128. <h1 id="get_edid_panelname">Get EDID: Find out the name (model) of your LCD panel</h1>
  129. <p>
  130. Get the panel name with <b>sudo get-edid | strings</b><br/>
  131. Or look in <b>/sys/class/drm/card0-LVDS-1/edid</b>
  132. </p>
  133. <p>
  134. Alternatively you can use i2cdump. In Trisquel, this is in the package i2c-tools.<br/>
  135. $ <b>sudo modprobe i2c-dev</b><br/>
  136. $ <b>sudo i2cdump -y 5 0x50</b> (you might have to change the value for -y)<br/>
  137. $ <b>sudo rmmod i2c-dev</b><br/>
  138. You'll see the panel name in the output (from the EDID dump).
  139. </p>
  140. <p>
  141. If neither of these options work (or they are unavailable), physically removing the LCD panel is an option.
  142. Usually, there will be information printed on the back.
  143. </p>
  144. <p><a href="#pagetop">Back to top of page.</a></p>
  145. </div>
  146. <div class="section">
  147. <p>
  148. Copyright &copy; 2014, 2015 Francis Rowe &lt;info@gluglug.org.uk&gt;<br/>
  149. Permission is granted to copy, distribute and/or modify this document
  150. under the terms of the GNU Free Documentation License, Version 1.3
  151. or any later version published by the Free Software Foundation;
  152. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  153. A copy of the license can be found at <a href="../gfdl-1.3.txt">../gfdl-1.3.txt</a>
  154. </p>
  155. <p>
  156. Updated versions of the license (when available) can be found at
  157. <a href="https://www.gnu.org/licenses/licenses.html">https://www.gnu.org/licenses/licenses.html</a>
  158. </p>
  159. <p>
  160. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
  161. EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
  162. AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
  163. ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
  164. IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
  165. WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
  166. PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
  167. ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
  168. KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
  169. ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
  170. </p>
  171. <p>
  172. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
  173. TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
  174. NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
  175. INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
  176. COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
  177. USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
  178. ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
  179. DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
  180. IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
  181. </p>
  182. <p>
  183. The disclaimer of warranties and limitation of liability provided
  184. above shall be interpreted in a manner that, to the extent
  185. possible, most closely approximates an absolute disclaimer and
  186. waiver of all liability.
  187. </p>
  188. </div>
  189. </body>
  190. </html>