Opened 7 years ago

Closed 7 years ago

#1261 closed defect (fixed)

GPS broken after suspend, works after reboot

Reported by: lxoliva Owned by: mrmoku
Priority: major Milestone:
Component: SHR Image Version: SHR-unstable
Keywords: Cc:

Description

The GPS on the FreeRunner? works fine after a reboot, but if the phone suspends, after it comes back the Settings -> Position screen won't get any further information, and tangogps will claim there's no GPS any more.

The following command on the first boot up appears to fix the problem:

echo 1 > /sys/bus/platform/devices/*gps*/keep_on_in_suspend

(I tested something similar to this on -unstable, but I only tested it in this form on -testing)

Change History (4)

comment:1 Changed 7 years ago by Davide

Are you using u-boot?

It happens the same to me with u-boot. It works OK with Qi.

comment:2 Changed 7 years ago by lxoliva

Yep, I haven't installed Qi, so I think u-boot it is.

But... how? is the boot-loader even involved in sleep/suspend/resume? I thought it would only, like, load and boot up the kernel, then get out of the way. Does sleeping or suspending involve booting up again? Or could it be some difference in the “initial” state that u-boot and Qi present to the kernel?

comment:3 Changed 7 years ago by Davide

I thought exactly the same as you, but it's a known problem.

I don't understand technical details, but there's a patch for u-boot and kernel [1].

You need to flash that u-boot (or flash Qi). Kernel patch is already applied in latest SHR/QTmoko kernels

[1] http://www.mail-archive.com/openmoko-kernel@lists.openmoko.org/msg10843.html

comment:4 Changed 7 years ago by jama

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.