Warning: Parameter 1 to ace_where() expected to be a reference, value given in /home/mitrox/akamit.com/blog/wp-includes/plugin.php on line 166

Warning: Parameter 1 to ace_join() expected to be a reference, value given in /home/mitrox/akamit.com/blog/wp-includes/plugin.php on line 166
Openmoko | Akamit Blog

Akamit Blog

Enterprise sysadmin's blog

  • You are here: 
  • Home
  • Openmoko

How to delete SMS messages from SIM card with SHR, freesmartphone.org, GTA02

Posted on November 6th, 2012

Once you get a message that your SMS storage on SIM is full and you can’t receive any messages. So, you have to clear your SIM from old messages.
In this example we are using GTA02 device with SHR as of 20120730233813.
First, we open a freesmartphone docs on SIM API and have some fun.

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.SIM.GetSimInfo
({'slots': <20>, 'imsi': <'XXXXXXXXXXXX'>, 'issuer': <'unknown'>, 'used': <20>, 'phonebooks': <'emergency aux:BD fixed aux:DC dialed received aux:LR aux:MT aux:AD contacts aux:SD missed aux:LM aux:AF own aux:UD'>},)

So, we are going to purge 20 messages as we have used 20 of 20 slots.
But if you want to read them first, issue the command

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.RetrieveMessage 1
('read', '1095', 'this is a private sms message', {'pid': <byte 0x00>, 'sri': <false>, 'rp': <false>, 'udhi': <false>, 'mms': <false>, 'dcs': <byte 0x01>, 'udl': <byte 0x46>, 'timestamp': <'12/11/06,16:16:24+16'>})

When done, delete it.

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.SIM.DeleteMessage 1
()
root@om-gta02:~#

Next call to GetSimInfo wil show ‘used’: <19>.

Filed under Openmoko | No Comments »

How to delete SIM messages w SHR

Posted on November 6th, 2012

Once you get a message that your SMS storage on SIM is full and you can’t receive any messages. So, you have to clear your SIM from old messages.
In this example we are using GTA02 device with SHR as of 20120730233813.
First, we open a freesmartphone docs on SIM API and have some fun.

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.SIM.GetSimInfo
({'slots': <20>, 'imsi': <'XXXXXXXXXXXX'>, 'issuer': <'unknown'>, 'used': <20>, 'phonebooks': <'emergency aux:BD fixed aux:DC dialed received aux:LR aux:MT aux:AD contacts aux:SD missed aux:LM aux:AF own aux:UD'>},)

So, we are going to purge 20 messages as we have used 20 of 20 slots.
But if you want to read them first, issue the command

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.SIM.RetrieveMessage 1
('read', '1095', 'this is a private sms message', {'pid': <byte 0x00>, 'sri': <false>, 'rp': <false>, 'udhi': <false>, 'mms': <false>, 'dcs': <byte 0x01>, 'udl': <byte 0x46>, 'timestamp': <'12/11/06,16:16:24+16'>})

When done, delete it.

root@om-gta02:~# mdbus2 -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device  org.freesmartphone.GSM.SIM.DeleteMessage 1
()
root@om-gta02:~#

Next call to GetSimInfo wil show ‘used’: <19>.

Filed under Uncategorized | No Comments »

Monitoring HP SmartArray 6i in OpenBSD 5.1

Posted on October 8th, 2012

Its done simply by looking at sysctl hw.sensors variables

bash-4.2# sysctl hw.sensors
hw.sensors.acpitz0.temp0=8.30 degC (zone temperature)
hw.sensors.ciss0.drive0=online (sd0), OK
bash-4.2#

Filed under OpenBSD | No Comments »

Monitoring HP SmartArray 6i in OpenBSD 5.1

Posted on October 8th, 2012

Its done simply by looking at sysctl hw.sensors variables

bash-4.2# sysctl hw.sensors
hw.sensors.acpitz0.temp0=8.30 degC (zone temperature)
hw.sensors.ciss0.drive0=online (sd0), OK
bash-4.2#

Filed under Uncategorized | No Comments »

Monitoring HP SmartArray 6i in OpenBSD 5.1

Posted on October 8th, 2012

Its done simply by looking at sysctl hw.sensors variables

bash-4.2# sysctl hw.sensors
hw.sensors.acpitz0.temp0=8.30 degC (zone temperature)
hw.sensors.ciss0.drive0=online (sd0), OK
bash-4.2#

Filed under Uncategorized | No Comments »

How to manually turn on/off Xorg screen

Posted on May 2nd, 2012

It can be useful for example if you have a display that you need to be on for a period of time from 9-00 to 18-00 when you on desk.
I use that feature for Nagios management station which is running all the time but turn head display only when I’m on duty and can see what is on it.

nagios@nms-host$ crontab -l
0 18 * * * DISPLAY=:0 xset dpms force off
0 9 * * * DISPLAY=:0 xset dpms force on

Filed under Misc, Nagios | No Comments »