Hardware - neilstockbridge/debian-phone GitHub Wiki

Battery level

cat /sys/class/power_supply/battery/level

Display brightness

echo 128 > /sys/class/leds/lcd-backlight/brightness

0 turns the backlight off and 255 is full brightness, although the perceived brightness is not linear between 0 and 255.

Buttons brightness

echo 255 > /sys/class/leds/button-backlight/brightness

255 is on and any other value is off for the u8120.

/dev/smd0

Play with this device by invoking: screen /dev/smd0 ( assuming that you have GNU screen installed).

command effect
AT+CLAC list supported commands
ATD<num>; begin voice call
AT+CHUP hang up
AT+CMGF=1 use TEXT mode
AT+CNMI=2,1 request unsolicited notifications that look like +CMTI: "SM",6
AT+CMGL="ALL" list messages
AT+CMGS="<num>" send message
AT+CMGR=6 read message 6
AT+CPMS="SM" set preferred msg storage to SIM - not sure if required although I did it during testing
AT+CMGD=4 delete message 4
AT+CSQ signal quality

"send message" responds with "\r\n> ". You can write your message and then finish with ^Z.

"signal quality" says +CSQ: 5,99 where the first digit means -113+2*x dBm ( x <= 31) or 99 for unknown.

⚠️ **GitHub.com Fallback** ⚠️