Active Topics

 


Poll: You want buy?
Poll Options
You want buy?

Reply
Thread Tools
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#71
Originally Posted by Kabouik View Post
Hope you'll get yours soon,
urf, i have to go to do some welding/plasmacutting, so hope diptoh waits me at home when i get there.
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 
Posts: 1,104 | Thanked: 5,652 times | Joined on Feb 2010 @ Holland
#72
Originally Posted by kimmoli View Post
i have to go to do some welding/plasmacutting, so hope diptoh waits me at home when i get there.
what a life!

have some diptohs ready to go at home, but the eeproms need to be programmed before i can send them.

the ones that are sent already are not programmed -my bad- so there will be probably be some instruction here also about how to do that. i guess step 1 will be: download i2ctool! (so you can do that already)
 
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#73
DIPTOH EEPROM Programming instructions:

Read through once before doing.

Warning : Don't do anything else in i2ctool, you may break your device.


1. Install i2ctool from jolla store
2. Attach diptoh to your phone
3. Open terminal
4. Start i2ctool as root devel-su harbour-i2ctool
5. Click enable Vdd button, power indicator should show now ON
6. Click TOH EEPROM button
7. View with lots of FFFF should appear. If not, contact me at freenode (kimmoli) or PM here.
8a. Click on each field to enter following values.



8b. Double check values
9. Click Write button
10. Swipe back to main menu
11. Click again TOH EEPROM button, the values should be there. If you got FFFF contact me.
12. Swipe back to main menu
13. Click disable Vdd button
14. Close i2ctool

That is all for now.
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 

The Following 3 Users Say Thank You to kimmoli For This Useful Post:
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#74
progress...

syys 15 23:42:26 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000000
syys 15 23:42:27 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000001
syys 15 23:42:29 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000011
syys 15 23:42:29 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000111
syys 15 23:42:30 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 001111
syys 15 23:42:30 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 011111
syys 15 23:42:31 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 111111
syys 15 23:42:32 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 011111
syys 15 23:42:32 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000111
syys 15 23:42:33 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000110
syys 15 23:42:33 Jolla harbour-diptoh-daemon[19928]: Dips toggled: 000100
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 

The Following 2 Users Say Thank You to kimmoli For This Useful Post:
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#75
First version 0.1-1 of diptoh-daemon is here:

(Detach and attach diptoh once before installing)

RPM for install: Note Update available. See this post http://talk.maemo.org/showpost.php?p...&postcount=108

pkcon install-local harbour-diptoh-daemon-0.1-1.armv7hl.rpm -y

Installer starts service automatically if you did manage to write EEPROM contents and DIPTOH is attached while installing.

Sourcecode for daemon is here: https://github.com/kimmoli/diptoh-daemon

If something fails: systemctl stop harbour-diptoh-daemon or just rip the diptoh off.

If you want to see what it says, e.g. journalctl -f | grep diptoh

Script files are now in /home/nemo/diptoh/

Currently every script just append $0 to /home/nemo/diplog
you can tail -f /home/nemo/diplog to see is the scripts run.

(dirkvl << I have some mechanical issues, and interrupt seems to generate even when not toggling dips, if i apply pressure to next to flash, they appear only when toggling dipswitch)
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH

Last edited by kimmoli; 2014-09-25 at 20:32.
 

The Following 5 Users Say Thank You to kimmoli For This Useful Post:
Posts: 1,336 | Thanked: 3,932 times | Joined on Jul 2010 @ Brittany, France
#76
Thanks Kimmo! I had to start the service manually even though I did write to the EEPROM successfully and installed the rpm with the diptoh attached, otherwise no diplog was generated when switching the dips.
 

The Following 2 Users Say Thank You to Kabouik For This Useful Post:
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#77
You might need to detach/attach diptoh once after writing eeprom
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH
 
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#78
Examples:

Notes:
  • Scripts are run as root.
  • If you need to run them as normal user, use su - nemo -c "yourcommandhere"
  • If you make a script like rm -rf / don't blame me.

Dipswitch 1 controls bluetooth:

dip1on.sh
Code:
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:true
dip1off.sh
Code:
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:false
Dipswitch 2 controls Flightmode:

dip2on.sh
Code:
dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:0 uint32:1
dip2off.sh
Code:
dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:1 uint32:1
Dipswitch 3 controls display always active:
Note: For this to work you'll need mce-tools installed: pkcon install mce-tools

dip3on.sh
Code:
mcetool --set-demo-mode=on
dip3off.sh
Code:
mcetool --set-demo-mode=off
Dipswitch 4 controls silent profile:

dip4on.sh
Code:
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"silent"
dip4off.sh
Code:
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"general"
Dipswitch 5 toggles flashlight on/off: Thanks Coderus
- Toggling this switch on most probably makes you blind momentarily

dip5on.sh
Code:
su - nemo -c "echo 1 > /sys/kernel/debug/flash_adp1650/mode"
dip5off.sh
Code:
su - nemo -c "echo 0 > /sys/kernel/debug/flash_adp1650/mode"
Dipswitch 6 toggles Android / Aliendalvik on/off: Thanks MemphisX

dip6on.sh
Code:
systemctl start aliendalvik.service
dip6off.sh
Code:
systemctl stop aliendalvik.service

Dipswitch X plays a wav file when toggled on:
(also example how to run command as nemo)

dipXon.sh
Code:
su - nemo -c "/usr/bin/gst-launch-0.10 filesrc location=/home/nemo/Music/crazysoundeffect.wav ! wavparse ! audioconvert ! alsasink"
__________________
TOH ideas, concepts and creations since 2013 toholed tohuart toheink Heebo tohIRi i2ctool tohmm LeTOH FMTOH

Last edited by kimmoli; 2014-09-20 at 08:32.
 

The Following 7 Users Say Thank You to kimmoli For This Useful Post:
Posts: 1,104 | Thanked: 5,652 times | Joined on Feb 2010 @ Holland
#79
initially got some spares of every part, but all went well! so i can make another 6!

the first 6 to mail me (info at funkyotherhalf dotcom) with:
-address
-paypal mail
-preferred colour
will get one

delivery time dependent on shapeways (2-3 weeks or so)


-Klas -> alumide
-
-
-
-
-

Last edited by dirkvl; 2014-09-17 at 08:17.
 
Posts: 1,336 | Thanked: 3,932 times | Joined on Jul 2010 @ Brittany, France
#80
Originally Posted by kimmoli View Post
Examples:
Thanks! The demo-mode is especially useful! I think those functions that are not easily accessible through Control Center (Patchmanager) *or* whose status (on or off) is not easily noticeable with an icon on the homescreen are ideal candidates for dip switches. If you have any other ideas of functions like that, don't keep yourself from posting scripts. :]

Bluetooth is very useful too of course, but it's in the Control center and its status is indicated with an icon, so it won't be my priority on a dip switch if I find 6 other useful functions (yet I will still configure bluetooth on one switch for now, I still find it convenient!).

____

Do we need to start the scripts with #!/bin/bash? Nothing seems to happen for me with demo-mode and Bluetooth, though I did have confirmation the switches were working with the simple echo functions in default scripts. I restarted the Jolla and the service just in case.

Last edited by Kabouik; 2014-09-16 at 22:12.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:46.