Skip to content

Instantly share code, notes, and snippets.

--- TLP 0.9.903 --------------------------------------------
+++ Monitor power supply events -- cancel with ^C
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
UDEV [148959.208821] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 (power_supply)
ACTION=change
DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:18/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
--- TLP 0.9.903 --------------------------------------------
+++ Power supply diagnostic
/sys/class/power_supply/ADP1/type:Mains
/sys/class/power_supply/ADP1/online:1
/sys/class/power_supply/BAT0/type:Battery
/sys/class/power_supply/BAT0/present:1
--- TLP 0.9.903 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
TLP_PERSISTENT_DEFAULT=0
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave
CPU_HWP_ON_AC=balance_performance
Apr 17 17:26:56 arch kernel: BUG: unable to handle kernel paging request at 0000000000002d00
Apr 17 17:26:56 arch kernel: IP: gen8_emit_flush_render+0xba/0x2e0 [i915]
Apr 17 17:26:56 arch kernel: PGD 0
Apr 17 17:26:56 arch kernel:
Apr 17 17:26:56 arch kernel: Oops: 0002 [#1] PREEMPT SMP
Apr 17 17:26:56 arch kernel: Modules linked in: bbswitch(O) msr fuse ctr ccm snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic mousedev ipt_REJECT nf_reject_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter arc4 iwlmvm snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core iTCO_wdt snd_soc_sst_match mac80211 i915 iTCO_vendor_support intel_rapl snd_soc_core x86_pkg_temp_thermal snd_compress snd_pcm_dmaengine drm_kms_helper intel_powerclamp ac97_bus nls_iso8859_1 coretemp iwlwifi nls_cp437 snd_hda_intel snd_hda_codec vfat kvm_intel snd_hda_core fat snd_hwdep cfg80211 drm snd_pcm kvm evdev intel_gtt input_leds snd_timer irqbypass syscopyarea sysfillrect snd intel_c
@tlvince
tlvince / index.html
Created September 12, 2014 22:24
angular-pouchdb example
<html ng-app="app">
<body>
<div ng-controller="AppCtrl">
<button ng-click="add()">Add</button>
<ul>
<li ng-repeat="doc in docs">
<span ng-bind="doc|json"></span>
</li>
</ul>
</div>
@tlvince
tlvince / _README.md
Created April 1, 2016 06:44 — forked from schickling/_README.md
Script to import and export docker-machine configurations to sync between hosts/collaborators

docker-machine import/export

Script to import and export docker-machine configurations to sync between hosts/collaborators

Export (on host A)

$ docker-machine ls
NAME       ACTIVE   DRIVER         STATE     URL                            SWARM   DOCKER    ERRORS
dev        -        digitalocean   Running   tcp://example.com:2376                 v1.10.1
Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
angular.js:10236
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:".
at Window.Function (native)
at getterFn (chrome-extension://fopkonkhmleflobaijjojmnfmmaoiiin/bower_components/angular/angular.js:10236:26)
at Lexer.readIdent (chrome-extension://fopkonkhmleflobaijjojmnfmmaoiiin/bower_components/angular/angular.js:9516:20)
at Lexer.lex (chrome-extension://fopkonkhmleflobaijjojmnfmmaoiiin/bower_components/angular/angular.js:9344:14)
at Parser.parse (chrome-extension://fopkonkhmleflobaijjojmnfmmaoiiin/bower_components/angular/angular.js:9609:30)
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libakonadi-calendar.4.11.1.dylib
/usr/local/lib/libakonadi-contact.4.11.1.dylib
/usr/local/lib/libakonadi-kabc.4.11.1.dylib
/usr/local/lib/libakonadi-kcal.4.11.1.dylib
/usr/local/lib/libakonadi-kde.4.11.1.dylib
--- extra/kipi-plugins/CMakeLists.txt~ 2013-12-17 12:44:51.000000000 +0000
+++ extra/kipi-plugins/CMakeLists.txt 2013-12-17 12:45:05.000000000 +0000
@@ -157,8 +157,8 @@
MACRO_OPTIONAL_FIND_PACKAGE(Gdk) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GLIB2) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GObject) # For ipodexport.
-MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
-MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
+#MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
+#MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).