Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
tips_and_tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips_and_tricks [2012/02/13 22:10] – Add a link to powertop-for-arm paulftips_and_tricks [2013/02/15 17:13] (current) – [Using side LEDs and WiFi LED] turbooster
Line 8: Line 8:
 ===== Lid and jack insertion events ===== ===== Lid and jack insertion events =====
 You can use a lightweight https://github.com/gandro/input-event-daemon, it should listen on ''/dev/input/event4'' for ''LID:0'' and ''LID:1'' events. You can use a lightweight https://github.com/gandro/input-event-daemon, it should listen on ''/dev/input/event4'' for ''LID:0'' and ''LID:1'' events.
 +
 +===== Using side LEDs and WiFi LED =====
 +(This is for the 12.04 kernel)
 +The LEDs on the side can be triggered by echoing values between 0 and 7 to
 +  echo 7 > /sys/devices/platform/nvec.0/nvec-leds.0/leds/nvec-led/brightness
 +for different blinking-patterns (need to be root). Try
 +  echo 0 > brightness ; sleep 1 ; echo 7 > brightness ; sleep .2;echo 1 > brightness
 +to 'allways-on' the side LEDs
 +
 +You can also set different triggers for the WiFi LED. To see the available options do
 +  cat /sys/devices/platform/nvec.0/leds-gpio/leds/wifi-led/trigger
 +then to change the trigger (temporarily) do for example
 +  echo mmc0 > /sys/devices/platform/nvec.0/leds-gpio/leds/wifi-led/trigger
 +to get eMMC activity.
 +
  
 ===== Video playback ===== ===== Video playback =====
Line 105: Line 120:
                         "" ABORT ERROR ""                               \                         "" ABORT ERROR ""                               \
                         AT*ENAPDBG=1 OK                                 \                         AT*ENAPDBG=1 OK                                 \
 +                        'AT+CGDCONT=1,"IP","internet.beeline.ru"' OK    \
                         "AT*ENAP=1,1" "*ENAPDBG: 1,1"-"AT*ENAP=1,1"-"*ENAPDBG: 1,1" < /dev/ttyACM1 > /dev/ttyACM1 || \                         "AT*ENAP=1,1" "*ENAPDBG: 1,1"-"AT*ENAP=1,1"-"*ENAPDBG: 1,1" < /dev/ttyACM1 > /dev/ttyACM1 || \
                                  ! chat -v "" AT*E2RESET < /dev/ttyACM1 > /dev/ttyACM1                                  ! chat -v "" AT*E2RESET < /dev/ttyACM1 > /dev/ttyACM1
Line 110: Line 126:
 </code> </code>
  
-This assumes your card has PIN disabled, if it's not, you should be able to add ''AT+CPIN="abcde"'' command where appropriate. If you hot-swap the SIM card you might need to issue the ''AT*E2RESET'' command manually. The modem supports messaging via SMS and USSD requests, e.g. this works with Beeline to see the amount of money left:+This assumes your card has PIN disabled, if it's not, you should be able to add ''AT+CPIN="abcde"'' command where appropriate. If you hot-swap the SIM card you might need to issue the ''AT*E2RESET'' command manually (or do ''ifup wwan0'' twice). The modem supports messaging via SMS and USSD requests, e.g. this works with Beeline to see the amount of money left:
 <code> <code>
 #!/bin/sh #!/bin/sh
 /usr/sbin/chat -vs "" "AT+CUSD=1,\"*102#\",15" "OK" < /dev/ttyACM1 > /dev/ttyACM1  /usr/sbin/chat -vs "" "AT+CUSD=1,\"*102#\",15" "OK" < /dev/ttyACM1 > /dev/ttyACM1 
 </code> </code>
tips_and_tricks.txt · Last modified: 2013/02/15 17:13 by turbooster · Currently locked by: 172.20.0.5,124.243.132.91