View Single Post
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#1
unrestricted-system-ui required!

MT-Toggles is a toggles platform for Harmattan. After installing it, you can install extra toggles (the base package comes with no toggles) that'll show up in it.

Developers can implement their own toggles by subclassing MTAbstractToggle, a class provided by the -dev package, https://github.com/harmattan/mt-togg...stracttoggle.h

Example plugins (for developers) https://github.com/harmattan/mt-togg...master/plugins

Please be cautious with MT-Toggles, the toggles I've provided below have been tested for a week, and they haven't caused any problems, a faulty toggle can segfault the status menu, 3 quick segfaults in a row and you'll get a MALF that you'll have to fix manually, so please, keep backups.



To install MT-Toggles (platform)
Code:
devel-su # enter root pass
wget http://mohammadag.xceleo.org/public/Harmattan/mt-toggles/mt-toggles_0.0.1_armel.deb
dpkg -i mt-toggles_0.0.1_armel.deb
You'll need to install actual toggles, some of which require inception/open mode.

Toggles that require inception/open mode:
Flight mode toggle (requires inception/open mode): http://mohammadag.xceleo.org/public/....0.1_armel.deb
Power Saving Mode toggle: http://mohammadag.xceleo.org/public/....0.1_armel.deb

Toggles that are to be installed with normal dpkg -i mech:
Flashlight toggle: http://mohammadag.xceleo.org/public/....0.1_armel.deb
Bluetooth toggle: http://mohammadag.xceleo.org/public/....0.1_armel.deb

To install a toggle that needs inception:
Code:
wget LINK_HERE
/usr/sbin/incept package_name_here # for example /usr/sbin/incept psm-toggle_0.0.1_armel.deb
killall sysuid
To install a toggle that doesn't require inception/open mode:
Code:
devel-su #enter root pass
wget LINK_HERE
dpkg -i package_name # for example dpkg -i bluetooth-toggle_0.0.1_armel.deb
stop xsession/sysuid
start xsession/sysuid
 

The Following 92 Users Say Thank You to MohammadAG For This Useful Post:
achilles333, afaq, Arie, baem90, banong, BlackMamba24, Boemien, Boxeri, Brew, brkn, caio2k, celebrant, ceroberts75, Ch.Saqib, ck2nb, clovis86, Dousan, Dr.Heyde, Dragoss91, Drekkie, eccenux, Eminem, ersanpermana, et3rnal, F2thaK, fw190, godofwar424, guija45, guillermorojaz, Hacker, HtheB, Hurrian, ibrakalifa, Iryus, jalyst, jaymzzz, jcharpak, jhwan, Kenny.Vo, kfahoo, khan.orak, kiiwii, krogulec, late88, LavaCroft, lebanez, lkravovicz, localhost, Loginin, longcat, LouisDK, Lucazz990, MaKenZi, Manatus, Mark Twain, MartinK, mike_shenoda, mikhail_ramalho, minipac, MINKIN2, mrsellout, Nosph3ratu, optimaxxx, Ossession, OVK, p0pa, Patola, Rogatti, Rusnak-COBRA, Salmi, Schturman, shanttu, slarti, smoothc, sprawl11, TeHeR, The Wizard of Huz, thedead1440, thp, ThraxZzz, TMavica, Transcend, ttt0600, turbovomit, vds, whayong, Wikiwide, wow23, yves_s, zamorph, ZogG