suddenly "Lock" #678
Replies: 7 comments 10 replies
-
After poking around at things quite a bit, it seems the touch screen isn't actually disabled. It more like that AA screen which should replace the main menu screen just isn't showing up. If I turn on debug mode, touches on the screen show up as deep down as the aasdk logging. My interpretation, which could be really off-base, is that my phone thinks the crankshaft screen is displaying the projected AA display, and aasdk is sending those touch events down to the phone. I also turned on debugging on the phone side of AA, but there is so much stuff in the resulting logcat that I am not quite sure what is significant and what is not. Does anyone here already have any familiarity with looking at the phone logcat for troubleshooting cranskshaft situations? (or any other suggestions, of course) |
Beta Was this translation helpful? Give feedback.
-
So we know now that the wifi service is somehow causing this issue. I have made a patched version of |
Beta Was this translation helpful? Give feedback.
-
Agreed. If you/we aren't able to figure out a fix, maybe implementing a config to optionally disable/enable the wifi service would be a useful stop-gap. |
Beta Was this translation helpful? Give feedback.
-
Ok, I believe I have figured out why the wifi service was causing Android Auto to lock up and I will make a change for that shortly. In the course of figuring it out, I realized that the wifi and bluetooth services in openauto don't actually do much. They seem to be unfinished implementations, perhaps of the wireless AA protocol? They don't seem to have anything to do with the wireless AA that crankshaft supports, which is done via the head unit server from the phone. It also seems like some of the protobufs in aasdk are not correct. It seems like the ones documented online by milek7 are more accurate, so I will try to reconcile the two at some point. |
Beta Was this translation helpful? Give feedback.
-
I have uploaded new |
Beta Was this translation helpful? Give feedback.
-
Pretty cool @SonOfGib. I hope to get a.xhance to test it some this weekend. Does this have wi-fi service back to being enabled or still disabled? |
Beta Was this translation helpful? Give feedback.
-
@SonOfGib I only had a limited amount of time, but your unofficial release worked for me (RPi 3, Pixel 6a, USB stick instead of sdcard). There was something weird that I still don't understand. The first couple of times I booted it, the openauto interface did not come up. In fact, it didn't get far enough to even bring up the wired network interface. While I was contemplating how I might be able to get logs, etc, with no connectivity, another boot was successful and the AA experience went as desired. Later reboots were also good. The only thing I can guess is that some first-time-boot stuff was taking way longer than I expected. I waited at least 5 minutes. (I had done the rootfs resize outside of the CS environment, so it shouldn't be that.) Anyhow, if nobody else reports anything, I'm OK with it being "just one of those things". 😸 As usual, thanks again for your work on this that benefits all of us |
Beta Was this translation helpful? Give feedback.
-
I started tinkering with CS about a month or so back. I fired it up and used my mouse to operate it while displaying over HDMI. Everything looked pretty cool and stable. I got a nice touchscreen, bolted my RPi 3B+ to it and repeated the experiment. It worked great, and the touchscreen stuff worked just dandy. I plugged in my phone (Pixel 6a) and up came AA. It behaved the way I expected.
Time went by while I was waiting for additional mail order parts, 3D printing a case, and doing unrelated things. With everything in hand a couple days ago, I repeated my experiments, including plugging in my phone for the first time in a few weeks. CS reacted by throwing up the word "Lock" in the upper left corner and ignoring touches or mouse clicks on the screen. When I unplug my phone, CS goes back to its normal responsive self.
Thinking I might have tweaked something the wrong way, I started over with a freshly downloaded image file. Same "Lock" symptoms. I also locally built the image and got the same "Lock" symptoms. I know the generic advice is to check my USB cable. I've tried about a half dozen different cables between my phone and CS, but I don't really think that's the problem.
I'm just starting my spelunking in the source code, but I wonder if someone has already been down this path and figured it out. (I'm not providing any logs at the moment because I don't want to bother someone into spending time on this unless it's something they already have ideas about. I can provide them if desired.) My hypothesis at the moment is something changed in an Android monthly update, and now the handshaking between my phone and CS is getting something confused. Things definitely get as far as CS recording my phone info into the /tmp/android_device file.
Beta Was this translation helpful? Give feedback.
All reactions