![]() |
Re: DIP_TOH -- lots of toggles! -- orders 14/19
Umm, seems like something is not working. I made the i2c tinkering stuff succesfully and installed the rpm and the daemon is running.
But, the dips seem unresponsive. tail -f /home/nemo/diplog just gives me: /home/nemo/diptoh/dip4on.sh /home/nemo/diptoh/dip5off.sh No matter what switches I dip. And journalctl -f | grep diptoh doesn't give me any print. I tried reattaching the oh but without any success. |
Re: DIP_TOH -- lots of toggles! -- orders 14/19
journalctl as root.
Something has happened atleast, maybe. Today i did use diptoh whole day without issues. The gpio-expander is tricky, as it looses its config if it looses power. I had to add some paper (2 layers of 80g) under the pcb (between 3dprint and pcb) for reliable contact. (<< dirkvl FYI) If fails, just lift the toh few mm from the bottom left corner, to make the microswitch toggle. |
Re: DIP_TOH -- lots of toggles! -- orders 14/19
will adjust design
|
Re: DIP_TOH -- lots of toggles! -- orders 14/19
Quote:
|
Re: DIP_TOH -- lots of toggles! -- orders 14/19
I've received mine a few days ago but it was quite a busy week so I didn't have enough time to play with it. First impressions: toh is great, the whole finish seems really professional (thanks so much dirk) and kimmoli's work on the software side is just genious (just in the thought that with the press of a dip switch I can run my custom bash scripts...)
I had a few problems with the stability of it and it seems that somehow occasionally the pins lose contact with the board (or something else is happening) and so I have to take off toh and put it back again. After removing the board from toh and putting some stickers between (following the advice of paper suggested above by kimmoli) the issue seems to be appearing less frequently. I have noticed though that sometimes after turning on the first dip it works but any other change won't until I refit toh. From the example scripts provided by kimmoli those for display do not work simply because there is no mcetool in my jolla (fixed by installing it with pkcon: "pkcon install mce-tools") instead I added a simple script for enabling/unmasking disabling/masking aliendalvik which is extremely handy: For Masking/disabling: Code:
systemctl stop aliendalvik.serviceCode:
systemctl unmask aliendalvik.serviceNow I wish I knew of a way for enabling/disabling the led flashlight from the command line.... Question: Do we need to keep i2ctool installed after we finish the initial process of setting up the diptoh? |
Re: DIP_TOH -- lots of toggles! -- orders 14/19
Quote:
Also included aliendalvik sample (w/o masking) there. thanks. Quote:
|
Re: DIP_TOH -- lots of toggles! -- orders 12/12
excellent, thanks for the examples Kimmo.
I will look and try to make a script to enable/disable wifi - will post it here if successfull. |
Re: DIP_TOH -- lots of toggles! -- orders 12/12
Quote:
PreferredTechnologies = bluetooth,wifi,cellular code for on: Code:
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/wifi net.connman.Technology.SetProperty string:"Powered" variant:boolean:trueCode:
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/wifi net.connman.Technology.SetProperty string:"Powered" variant:boolean:false |
Re: DIP_TOH -- lots of toggles! -- orders 12/12
Now what I'm looking for is a way to have a switch which says:
"On => switch radio to 4G" "Off => switch radio to 2G" That way I can have 2G when not using the screen, and when using the screen, I manually switch to 3G or 4G. |
Re: DIP_TOH -- lots of toggles! -- orders 14/19
Code:
dbus-send --system --print-reply --dest=org.ofono /ril_0 org.ofono.RadioSettings.SetProperty string:"TechnologyPreference" variant:string:"umts""umts" for 3G "gsm" for 2G |
| All times are GMT. The time now is 15:35. |
vBulletin® Version 3.8.8