OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Connman not saving passphrases, How to ensure Gemini (Debian) can reconnect after rebooting
skodaczar
post Jul 3 2018, 03:23 AM
Post #1





Group: Members
Posts: 1
Joined: 2-July 18
Member No.: 825,380



Hello all,

Possibly clueless newbie question spoiler alert...

I have flashed my wifi-only Gemini to dual-boot and am generally loving it. One niggle is that Conmann doesn't remember my network and passphrase/password after I reboot, meaning I need to enable network access, find my network and type in my passphrase whenever I switch from Android to Debian.

How can I make Connman remember my network and passphrase and, ideally, reconnect whenever I reboot?

Thanks for your patience with a new user.
Go to the top of the page
 
+Quote Post
DonOregano
post Jul 3 2018, 05:17 AM
Post #2





Group: Members
Posts: 24
Joined: 26-June 18
Member No.: 825,047



Well, strangely enough I had the same problem while I had my Gemini flashed without a proper NVRAM (as described in https://www.oesf.org/forum/index.php?showto...p;#entry288378). When I reflashed with my backed up NVRAM passwords got saved correctly again.

Most likely that is not your issue, though. But I thought it worth mentioning anyway...
Go to the top of the page
 
+Quote Post
SNi
post Jul 4 2018, 02:13 PM
Post #3





Group: Members
Posts: 105
Joined: 14-June 04
From: Cincinnati, OH, USA
Member No.: 3,682



Mine keeps my WiFi password, etc. and other setups, EXCEPT every time I switch to Debian it doesn't retain the time zone..
Go to the top of the page
 
+Quote Post
epertinez
post Jul 11 2018, 11:28 PM
Post #4





Group: Members
Posts: 7
Joined: 11-July 18
Member No.: 825,907



Did anybody figure out how to solve it? Where is the data supposed to be stored? It happens to me both with Connman and with Synergy. Did anybody found a workaround? Having to activate Wifi, choose Wifi spot and Passphrase makes the system little usable.
Go to the top of the page
 
+Quote Post
Adam Boardman
post Jul 12 2018, 02:16 AM
Post #5





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



I only ever had issues with connman storing passwords with the very first DebianTP1 and after an apt upgrade etc it has since worked fine. Whilst it was refusing to remember anything it was also getting a new IP address from my router via DHCP which indicates that its reading/setting of the MAC address was also confused.
Go to the top of the page
 
+Quote Post
tuk0z
post Jul 4 2019, 06:27 AM
Post #6





Group: Members
Posts: 45
Joined: 18-February 18
Member No.: 817,984



Same issue with Connman forgetting my WiFi network and passphrase everytime I reboot.
Have a Gemini WiFi flashed with Flashtool and images from 2019-06. Gemian is up-to-date, no other sources added than Debian backports (problem pre-existed).
Go to the top of the page
 
+Quote Post
mithrandir
post Jul 5 2019, 02:28 AM
Post #7





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997




Recently there has been reported an issue with the new firmware. The mac id changed on reboot. Conman stores the keys per mac id, thus the saved one from the boot before is not being used.
@see: https://www.oesf.org/forum/index.php?showto...35793&st=45

The
chattr +i /nvdata/APCFG/APRDEB/WIFI
part seems to have done the trick.
Go to the top of the page
 
+Quote Post
pbek
post Jul 24 2019, 10:39 PM
Post #8





Group: Members
Posts: 3
Joined: 20-July 19
From: Austria
Member No.: 852,409



Since Android is generating a new mac address for your wifi interface at every reboot and Connman is storing the mac address in its services you would need to enter your wifi passwords every time you reboot.

Fortunately there is a way to lock the mac address.

1) install hexedit:
CODE
sudo apt install hexedit


2)
CODE
sudo hexedit /nvdata/APCFG/APRDEB/WIFI
and set a mac address in bytes 04-09 (mind that the base is 0, so it starts at the 5th byte) of the first row (0)

3) set the i attr on the file:
CODE
sudo chattr +i /nvdata/APCFG/APRDEB/WIFI


This will lock down the mac address.

I've updated DebianTP3 Wiki and other wiki entries.
Go to the top of the page
 
+Quote Post
Thiago Alves
post Jul 25 2019, 04:39 AM
Post #9





Group: Members
Posts: 11
Joined: 20-July 19
Member No.: 852,376



QUOTE(pbek @ Jul 25 2019, 01:39 AM) *
2)
CODE
sudo hexedit /nvdata/APCFG/APRDEB/WIFI
and set a mac address in bytes 04-09 (mind that the base is 0, so it starts at the 5th byte) of the first row (0)

It doesn't let me write to the file, even on root. I tried changing permissions but it also failed:
CODE
sudo chmod +w /nvdata/APCFG/APRDEB/WIFI
chmod: changing permissions of '/nvdata/APCFG/APRDEB/WIFI': Operation not permitted

Go to the top of the page
 
+Quote Post
bled82
post Sep 11 2019, 06:36 PM
Post #10





Group: Members
Posts: 27
Joined: 25-June 18
Member No.: 825,020



any idea where or what the file name is in sailfish ? trying to run sailfish only .
Go to the top of the page
 
+Quote Post
n3w_b00n
post Oct 6 2019, 06:22 AM
Post #11





Group: Members
Posts: 1
Joined: 5-October 19
Member No.: 856,737



QUOTE(pbek @ Jul 25 2019, 08:39 AM) *
Fortunately there is a way to lock the mac address.

1) install hexedit:
CODE
sudo apt install hexedit


2)
CODE
sudo hexedit /nvdata/APCFG/APRDEB/WIFI
and set a mac address in bytes 04-09 (mind that the base is 0, so it starts at the 5th byte) of the first row (0)

3) set the i attr on the file:
CODE
sudo chattr +i /nvdata/APCFG/APRDEB/WIFI

Hello.

I have executed these steps several times with hexedit and the i attr, but unfortunately they have no effect. Every time I reboot, the mac address in the file /nvdata/APCFG/APRDEB/WIFI is changed back to the old one and I need to reconnect the wireless network. What am I doing wrong? Did I miss something?

I'm not sure if I made the correct input, so I added a picture. My Gemini PDA runs Android 8.1 and Debian.
Attached thumbnail(s)
Attached Image
 
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th November 2019 - 01:56 PM