Skip to content

Instantly share code, notes, and snippets.

View laurentdinclaux's full-sized avatar

Laurent Dinclaux laurentdinclaux

  • Gecka
  • Kanaky New Caledonia
View GitHub Profile
@laurentdinclaux
laurentdinclaux / bumblebee-testing.systemd
Created September 20, 2016 02:32
Bumblebee journalctl -b -u bumblebeed (with --debug)
-- Logs begin at mar. 2016-09-20 13:15:23 NCT, end at mar. 2016-09-20 13:18:47 NCT. --
sept. 20 13:15:26 nautile systemd[1]: Started Bumblebee C Daemon.
sept. 20 13:15:26 nautile bumblebeed[1492]: [ 10.481622] [DEBUG]Found card: 01:00.0 (discrete)
sept. 20 13:15:26 nautile bumblebeed[1492]: [ 10.481635] [DEBUG]Found card: 00:02.0 (integrated)
sept. 20 13:15:26 nautile bumblebeed[1492]: [ 10.482129] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
sept. 20 13:15:26 nautile bumblebeed[1492]: [ 10.483512] [INFO]Configured driver: nvidia
sept. 20 13:15:26 nautile bumblebeed[1492]: [ 10.483524] [DEBUG]Skipping auto-detection, using configured driver 'nvidia'
sept. 20 13:15:26 nautile bumblebeed[1492]: [ 10.483593] [INFO]Loading driver 'bbswitch' (module 'bbswitch')
sept. 20 13:15:26 nautile bumblebeed[1492]: [ 10.483619] [DEBUG]Loading module 'bbswitch'.
sept. 20 13:15:26 nautile bumblebeed[1492]: [ 10.485329] [DEBUG]successfully loaded bbswitch
@laurentdinclaux
laurentdinclaux / bumblebee-testing.syslog
Created September 20, 2016 02:31
Bumblebee Syslog (with --debug) Raw
Sep 20 13:17:42 nautile bumblebeed[1492]: [ 146.636496] [DEBUG]Accepted new connection
Sep 20 13:17:42 nautile bumblebeed[1492]: [ 146.637051] [INFO]Switching dedicated card ON [bbswitch]
Sep 20 13:17:42 nautile bumblebeed[1492]: [ 146.973277] [INFO]Loading driver 'nvidia' (module 'nvidia-370')
Sep 20 13:17:42 nautile bumblebeed[1492]: [ 146.973316] [DEBUG]Loading module 'nvidia_370'.
Sep 20 13:17:42 nautile bumblebeed[1492]: [ 146.984352] [INFO]Starting X server on display :8.
Sep 20 13:17:42 nautile bumblebeed[1492]: [ 146.984362] [DEBUG]X server command line:[ 146.984364] [DEBUG] /usr/lib/xorg/Xorg[ 146.984366] [DEBUG] :8[ 146.984367] [DEBUG] -config[ 146.984369] [DEBUG] /etc/bumblebee/xorg.conf.nvidia[ 146.984370] [DEBUG] -configdir[ 146.984372] [DEBUG] /etc/bumblebee/xorg.conf.d[ 146.984374] [DEBUG] -sharevts[ 146.984375] [DEBUG] -nolisten[ 146.984378] [DEBUG] tcp[ 146.984379] [DEBUG] -noreset[ 146.984381] [DEBUG] -verbose[ 146.984383] [DEBUG] 3[ 146.984384] [DEBUG] -isolateDevice[ 14
Sep 20 13:01:15 nautile bumblebeed[1515]: [ 359.487168] [WARN]Received Terminated signal.
Sep 20 13:01:15 nautile bumblebeed[6532]: [ 359.503902] [INFO]/usr/sbin/bumblebeed 3.2.1 started
Sep 20 13:01:18 nautile bumblebeed[6532]: [ 362.510191] [ERROR]Unloading nvidia driver timed out.
Sep 20 13:01:24 nautile bumblebeed[6532]: [ 368.014907] [WARN]Received Terminated signal.
Sep 20 13:01:24 nautile bumblebeed[6585]: [ 368.046475] [DEBUG]bbswitch has been detected.
Sep 20 13:01:24 nautile bumblebeed[6585]: [ 368.046511] [INFO]Switching method 'bbswitch' is available and will be used.
Sep 20 13:01:24 nautile bumblebeed[6585]: [ 368.046516] [DEBUG]Active configuration:
Sep 20 13:01:24 nautile bumblebeed[6585]: [ 368.046518] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
Sep 20 13:01:24 nautile bumblebeed[6585]: [ 368.046520] [DEBUG] X display: :8
Sep 20 13:01:24 nautile bumblebeed[6585]: [ 368.046523] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-370:/usr/lib32/nvidia-370
@laurentdinclaux
laurentdinclaux / bumblebee.systemd
Created September 19, 2016 23:56
Bumblebee journalctl -b -u bumblebeed (with --debug)
-- Logs begin at lun. 2016-09-19 06:56:03 NCT, end at mar. 2016-09-20 10:50:00 NCT. --
sept. 19 06:56:07 nautile systemd[1]: Started Bumblebee C Daemon.
sept. 19 06:56:07 nautile bumblebeed[3707]: [ 13.093022] [INFO]/usr/sbin/bumblebeed 3.2.1 started
sept. 19 06:56:10 nautile bumblebeed[3707]: [ 16.100102] [ERROR]Unloading nvidia driver timed out.
sept. 20 10:37:06 nautile bumblebeed[3707]: [44332.738905] [WARN][XORG] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere.
sept. 20 10:37:06 nautile bumblebeed[3707]: [44332.738916] [WARN][XORG] (WW) Warning, couldn't open module mouse
sept. 20 10:37:06 nautile bumblebeed[3707]: [44332.738933] [ERROR][XORG] (EE) Failed to load module "mouse" (module does not exist, 0)
sept. 20 10:37:06 nautile bumblebeed[3707]: [44332.738939] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
sept. 20 10:37:06 nautile bumblebeed[3707]: [44332.738942] [WARN][XORG] (WW) Warning, couldn't open module mouse
sept. 20 10:
@laurentdinclaux
laurentdinclaux / bumblebee.syslog
Created September 19, 2016 23:54
Bumblebee Syslog (with --debug)
Sep 20 10:46:44 nautile bumblebeed[14373]: [44910.747967] [WARN]Received Terminated signal.
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110638] [DEBUG]bbswitch has been detected.
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110654] [INFO]Switching method 'bbswitch' is available and will be used.
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110667] [DEBUG]Active configuration:
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110670] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110673] [DEBUG] X display: :8
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110675] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-370:/usr/lib32/nvidia-370
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110678] [DEBUG] Socket path: /var/run/bumblebee.socket
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110681] [DEBUG] pidfile: /var/run/bumblebeed.pid
Sep 20 10:46:44 nautile bumblebeed[14477]: [44911.110683] [DEBUG] xorg.conf file: /etc/bumblebee/xor
@laurentdinclaux
laurentdinclaux / SassMeister-input.scss
Created May 10, 2016 10:03
Precise control over responsive typography for Sass
// ----
// libsass (v3.3.2)
// ----
// =========================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------
// Indrek Paas @indrekpaas
//
SELECT SQL_CALC_FOUND_ROWS ID, post_title, SUM(weight) as total_weight FROM (
SELECT wp_posts.ID, wp_posts.post_title,
IF(wp_posts.post_title LIKE 'cancer boule', 100, IF(wp_posts.post_title LIKE 'cancer boule%', 90, IF(wp_posts.post_title LIKE '%cancer boule', 80, IF(wp_posts.post_title LIKE '%cancer boule%', 70, 0)))) +
IF(CAST(wp_postmeta.meta_value AS CHAR) LIKE 'cancer boule', 60, IF(CAST(wp_postmeta.meta_value AS CHAR) LIKE 'cancer boule%', 50, IF(CAST(wp_postmeta.meta_value AS CHAR) LIKE '%cancer boule', 40, IF(CAST(wp_postmeta.meta_value AS CHAR) LIKE '%cancer boule%', 30, 0)))) +
IF(wp_posts.post_title LIKE 'cancer', 20, IF(wp_posts.post_title LIKE 'cancer%', 9, IF(wp_posts.post_title LIKE '%cancer', 8, IF(wp_posts.post_title LIKE '%cancer%', 7, 0)))) +
IF(CAST(wp_postmeta.meta_value AS CHAR) LIKE 'cancer', 10, IF(CAST(wp_postmeta.meta_value AS CHAR) LIKE 'cancer%', 5, IF(CAST(wp_postmeta.meta_value AS CHAR) LIKE '%canc