{"id":1287,"date":"2010-11-27T19:50:46","date_gmt":"2010-11-28T00:50:46","guid":{"rendered":"http:\/\/droidbasement.com\/db-blog\/?p=1287"},"modified":"2016-11-13T23:42:51","modified_gmt":"2016-11-14T04:42:51","slug":"speaker-led-vision-g2","status":"publish","type":"post","link":"https:\/\/droidbasement.com\/db-blog\/speaker-led-vision-g2\/","title":{"rendered":"Speaker LED &#8211; Vision (G2)"},"content":{"rendered":"<p>Update (11\/27 (re-download and put in place)):<br \/>\n-go back to g_battery and g_notifications (local)<br \/>\n-set battery first in handle_speaker_light_locked condition<br \/>\n-set colorRGB to green only for notifications<\/p>\n<p>&#8230;&#8230;<\/p>\n<p>Update (11\/27 (re-download and put in place)):<br \/>\n-replace g_notification with g_notify<br \/>\n-don&#8217;t explictly set colorRGB to a value and get it from state->color<br \/>\n-make g_battery a proper pointer<br \/>\n-re-order condition (in handle_speaker_light_checked for notifications<br \/>\nto be first, then nest battery underneath<br \/>\n-add &#8216;state&#8217; to function (handle_speaker_light_locked).<\/p>\n<p>&#8230;&#8230;<\/p>\n<p>Update (re-download and put in place):<br \/>\n-set colorRGB to green only when there is a notification<\/p>\n<p>&#8230;&#8230;<\/p>\n<p>This fixes Speaker LED Notifications on CM6.1 for Vision (G2).<\/p>\n<p>Behavior:<br \/>\nIf it is plugged in, the light will stay solid (charging).\u00a0 If a notification comes in with the screen off, it will blink green.\u00a0 If you turn on the screen, the charging light will come on.\u00a0 If you don&#8217;t acknowledge the notification, when the screen turns off it will blink green again.<\/p>\n<p>When it is not plugged in, notifications will blink green only when the screen is off.<\/p>\n<p>Known Issues:<br \/>\n-low battery will blink green instead of amber.<br \/>\n-if you reboot while you are under 10%, low battery state won&#8217;t trigger the LED notification.  The next notification you receive, it will be triggered.<br \/>\n-if you plug it in below 10% and unplug, the amber led will stay lit (solid) until it is over 10%.  you will not receive any notifications to the LED until it is over 10% in this state.<\/p>\n<p>&#8212;&#8212;<\/p>\n<p>Download:<br \/>\n<a href=\"http:\/\/droidbasement.com\/g2\/system\/lights.vision.so\">lights.vision.so<\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p>How-To Install:<br \/>\nMethod 1:<br \/>\nadb remount<br \/>\nadb push lights.vision.so \/system\/lib\/hw\/<br \/>\nadb shell chmod 644 \/system\/lib\/hw\/lights.vision.so<br \/>\nadb shell reboot<\/p>\n<p>Method 2:<br \/>\nOpen a terminal<br \/>\ncd \/sdcard<br \/>\nwget <a href=\"http:\/\/droidbasement.com\/g2\/system\/lights.vision.so\">http:\/\/droidbasement.com\/g2\/system\/lights.vision.so<\/a><br \/>\nsu<br \/>\nmount -o remount,rw \/system<br \/>\ncp lights.vision.so \/system\/lib\/hw\/<br \/>\nchmod 644 \/system\/lib\/hw\/lights.vision.so<br \/>\nreboot<\/p>\n<p>Source:<br \/>\n<a href=\"https:\/\/github.com\/pershoot\/vision-lights\" target=\"_blank\">https:\/\/github.com\/pershoot\/vision-lights<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update (11\/27 (re-download and put in place)): -go back to g_battery and g_notifications (local) -set battery first in handle_speaker_light_locked condition -set colorRGB to green only for notifications &#8230;&#8230; Update (11\/27 (re-download and put in place)): -replace g_notification with g_notify -don&#8217;t explictly set colorRGB to a value and get it from state->color -make g_battery a proper [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1287","post","type-post","status-publish","format-standard","hentry","category-android"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/posts\/1287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/comments?post=1287"}],"version-history":[{"count":22,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/posts\/1287\/revisions"}],"predecessor-version":[{"id":4758,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/posts\/1287\/revisions\/4758"}],"wp:attachment":[{"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/media?parent=1287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/categories?post=1287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/droidbasement.com\/db-blog\/wp-json\/wp\/v2\/tags?post=1287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}