天嵌 ARM开发社区

 找回密码
 注册
查看: 7689|回复: 9

android4.0 休眠问题

[复制链接]
fanqiehua 发表于 2013-10-23 09:58:24 | 显示全部楼层 |阅读模式
本帖最后由 fanqiehua 于 2013-11-4 11:07 编辑

现在android4.0休眠后唤醒时,要按两下唤醒键,如果我要改成按一下就唤醒android要改动那里?另外当使用usb的3G的时候,休眠前3G的虚拟串口为ttyusb0,当唤醒时会造成usb的3G设备重新连接,由于以前的ttyusb0还在使用,所以他虚拟成了ttyusb1,同样的usb转串口设备也是一样!这个问题要怎么解决?

OK
##### EmbedSky BIOS for SKY210/TQ210 #####
This Board: SDRAM is 1024MB; LCD display size is: 800X480
Hit any key to stop autoboot:  0
SD Read NG
Fat32 file system initialzation failed!
Start Linux ......NAND read from offset 200000 failed -74
NAND read: device 0 offset 0x500000, size 0x500000

5242880 bytes read: OK
Boot with zImage
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 3.0.8-EmbedSky (root@ubuntu) (gcc version 4.4.6 (for TQ210 EmbedSky Tech) ) #1 PREEMPT Thu Oct 24
S5PC1XX TVOUT Driver, (c) 2009 Samsung Electronics
s5p-tvout s5p-tvout: hpd status is cable removed
yaffs: dev is 32505859 name is "mtdblock3" rw
yaffs: yaffs: Attempting MTD mount of 31.3,"mtdblock3"
option 1-1.4:1.0: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1.4:1.1: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1.4:1.2: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1.4:1.3: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
yaffs: yaffs_read_super: is_checkpointed 1
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 168K
init: /init.rc: 631: invalid option 'setprop'
init: cannot open '/initlogo.rle'
input: Android Temperature Sensor as /devices/virtual/input/input3
rtusb init rt2870 --->
usbcore: registered new interface driver rt2870
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
android_usb: already disabled
/system/bin/sh: No controlling tty (open /dev/tty: No such device or address)
/system/bin/sh: warning: won't have full job control
adb_open
adb_bind_config
android_work: did not send uevent (0 0   (null))
root@android:/ # warning: `rild' uses 32-bit capabilities (legacy support in use)
asoc: wm8960-hifi <-> samsung-i2s.0 mapping ok
asoc: wm8960-hifi <-> samsung-i2s.0 mapping ok
PVR_K:(Warning): SysFinalise: Version string: SGX540 S5PC110 [543, drivers/gpu/pvr/s5pc110/sysconfig.c]
win->id=0, pmem_start=0x4f4a0000
s3cfb s3cfb: [fb0] dma: 0x4f4a0000, cpu: 0xf8000000, size: 0x00465000
s3cfb s3cfb: [fb1] dma: 0x4cc00000, cpu: 0xffa00000, size: 0x002ee000
er.ServerThread (2277): /proc/2263/oom_adj is deprecated, please use /proc/2263/oom_score_adj instead.
request_suspend_state: wakeup (3->0) at 57203821559 (2000-01-01 00:00:56.694782278 UTC)
acc_open
acc_release
request_suspend_state: sleep (0->3) at 74032595471 (2000-01-01 00:01:13.523555829 UTC)
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
s3c_rtc_setalarm: 1, 2000.01.01 22:02:28
setting S3C2410_RTCALM to 00000007
s3c_rtc_setaie: aie=1
wake enabled for irq 32
wake enabled for irq 33
wake enabled for irq 34
wake enabled for irq 35
wake enabled for irq 36
wake enabled for irq 37
option: option_instat_callback: error -2
PM: suspend of devices complete after 618.703 msecs
PM: late suspend of devices complete after 0.822 msecs
PM: early resume of devices complete after 0.852 msecs
s3c-i2c s3c2440-i2c.0: slave address 0x10
s3c-i2c s3c2440-i2c.0: bus frequency set to 378 KHz
s3c-i2c s3c2440-i2c.1: slave address 0x10
s3c-i2c s3c2440-i2c.1: bus frequency set to 65 KHz
s3c-i2c s3c2440-i2c.2: slave address 0x10
s3c-i2c s3c2440-i2c.2: bus frequency set to 65 KHz
s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling
s3c2410-wdt: watchdog disabled
usb usb1: root hub lost power or was reset
usb usb2: root hub lost power or was reset
wakeup wake lock: vbus_present
android_work: did not send uevent (0 0   (null))
wake disabled for irq 32
wake disabled for irq 33
wake disabled for irq 34
wake disabled for irq 35
wake disabled for irq 36
wake disabled for irq 37
usb 1-1: reset high speed USB device number 2 using s5p-ehci
usb 1-1.4: reset high speed USB device number 3 using s5p-ehci
option 1-1.4:1.0: no reset_resume for driver option?
option 1-1.4:1.1: no reset_resume for driver option?
option 1-1.4:1.2: no reset_resume for driver option?
option 1-1.4:1.3: no reset_resume for driver option?
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 1-1.4:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 1-1.4:1.1: device disconnected
option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
option 1-1.4:1.2: device disconnected
option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
option 1-1.4:1.3: device disconnected
PM: resume of devices complete after 893.363 msecs
option 1-1.4:1.0: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1.4:1.1: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1.4:1.2: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
option 1-1.4:1.3: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB4
Restarting tasks ...
wm8960-codec 0-001a: wm8960-codec.0-001a: Failed to add Capture Volume: -16
done.
suspend: exit suspend, ret = 0 (2000-01-01 00:01:34.838162126 UTC)
active wake lock mmc3_detect
active wake lock mmc2_detect
active wake lock mmc1_detect
active wake lock mmc0_detect
active wake lock radio-interface
active wake lock PowerManagerService
request_suspend_state: wakeup (3->0) at 92878433469 (2000-01-01 00:01:34.853277117 UTC)
s3cfb_late_resume is called
FIMD src sclk = 166750000
s3cfb_late_resume is complete
request_suspend_state: sleep (0->3) at 102936496328 (2000-01-01 00:01:44.911339316 UTC)
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)

完整的信息在附件txt上!





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
wbz073 发表于 2013-10-23 15:17:21 | 显示全部楼层
我们 目前的系统就是按一次实现休眠唤醒的。
回复

使用道具 举报

TQ-lkp 发表于 2013-10-23 15:22:41 | 显示全部楼层
3G模块是不会休眠的,把你的串口信息贴上来
回复

使用道具 举报

 楼主| fanqiehua 发表于 2013-10-24 08:39:33 | 显示全部楼层
wbz073 发表于 2013-10-23 15:17
我们 目前的系统就是按一次实现休眠唤醒的。

更新的文档有没有?我在用的系统是要按两次键唤醒的啊!
回复

使用道具 举报

 楼主| fanqiehua 发表于 2013-10-24 10:02:31 | 显示全部楼层
fanqiehua 发表于 2013-10-24 08:39
更新的文档有没有?我在用的系统是要按两次键唤醒的啊!

现在明明是要按两个esc键才能唤醒的!你说的按一次唤醒的是新更新的?
回复

使用道具 举报

 楼主| fanqiehua 发表于 2013-11-4 11:04:45 | 显示全部楼层
TQ-lkp 发表于 2013-10-23 15:22
3G模块是不会休眠的,把你的串口信息贴上来

request_suspend_state: sleep (0->3) at 74032595471 (2000-01-01 00:01:13.523555829 UTC)
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
s3c_rtc_setalarm: 1, 2000.01.01 22:02:28
setting S3C2410_RTCALM to 00000007
s3c_rtc_setaie: aie=1
wake enabled for irq 32
wake enabled for irq 33
wake enabled for irq 34
wake enabled for irq 35
wake enabled for irq 36
wake enabled for irq 37
option: option_instat_callback: error -2
PM: suspend of devices complete after 618.703 msecs
PM: late suspend of devices complete after 0.822 msecs
PM: early resume of devices complete after 0.852 msecs
s3c-i2c s3c2440-i2c.0: slave address 0x10
s3c-i2c s3c2440-i2c.0: bus frequency set to 378 KHz
s3c-i2c s3c2440-i2c.1: slave address 0x10
s3c-i2c s3c2440-i2c.1: bus frequency set to 65 KHz
s3c-i2c s3c2440-i2c.2: slave address 0x10
s3c-i2c s3c2440-i2c.2: bus frequency set to 65 KHz
s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling
s3c2410-wdt: watchdog disabled
usb usb1: root hub lost power or was reset
usb usb2: root hub lost power or was reset
wakeup wake lock: vbus_present
android_work: did not send uevent (0 0   (null))
wake disabled for irq 32
wake disabled for irq 33
wake disabled for irq 34
wake disabled for irq 35
wake disabled for irq 36
wake disabled for irq 37
usb 1-1: reset high speed USB device number 2 using s5p-ehci
usb 1-1.4: reset high speed USB device number 3 using s5p-ehci
option 1-1.4:1.0: no reset_resume for driver option?
option 1-1.4:1.1: no reset_resume for driver option?
option 1-1.4:1.2: no reset_resume for driver option?
option 1-1.4:1.3: no reset_resume for driver option?
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 1-1.4:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 1-1.4:1.1: device disconnected
option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
option 1-1.4:1.2: device disconnected
option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
option 1-1.4:1.3: device disconnected
PM: resume of devices complete after 893.363 msecs
option 1-1.4:1.0: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1.4:1.1: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1.4:1.2: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
option 1-1.4:1.3: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB4
Restarting tasks ...
wm8960-codec 0-001a: wm8960-codec.0-001a: Failed to add Capture Volume: -16
done.
suspend: exit suspend, ret = 0 (2000-01-01 00:01:34.838162126 UTC)
active wake lock mmc3_detect
active wake lock mmc2_detect
active wake lock mmc1_detect
active wake lock mmc0_detect
active wake lock radio-interface
active wake lock PowerManagerService
request_suspend_state: wakeup (3->0) at 92878433469 (2000-01-01 00:01:34.853277117 UTC)
s3cfb_late_resume is called
FIMD src sclk = 166750000
s3cfb_late_resume is complete
request_suspend_state: sleep (0->3) at 102936496328 (2000-01-01 00:01:44.911339316 UTC)
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
回复

使用道具 举报

亚瑟王 发表于 2013-11-4 11:29:40 | 显示全部楼层
fanqiehua 发表于 2013-10-24 10:02
现在明明是要按两个esc键才能唤醒的!你说的按一次唤醒的是新更新的?

按第一下esc的时候已经唤醒了,只是系统唤醒后马上有休眠了。按两下恰好是在第二次休眠前有相应,让系统没法再次休眠。
回复

使用道具 举报

 楼主| fanqiehua 发表于 2013-11-5 10:13:44 | 显示全部楼层
亚瑟王 发表于 2013-11-4 11:29
按第一下esc的时候已经唤醒了,只是系统唤醒后马上有休眠了。按两下恰好是在第二次休眠前有相应,让系统没 ...

如果按下第一次不按第二次屏幕是没有亮起,还没有完全唤醒,要完全按两下才会,这个地方怎么改!还有3G休眠的问题
回复

使用道具 举报

亚瑟王 发表于 2013-11-5 11:53:37 | 显示全部楼层
fanqiehua 发表于 2013-11-5 10:13
如果按下第一次不按第二次屏幕是没有亮起,还没有完全唤醒,要完全按两下才会,这个地方怎么改!还有3G休 ...

目前还没有找到为什么第一次按下后又马上休眠的原因。
至于3G,没有休眠。
回复

使用道具 举报

 楼主| fanqiehua 发表于 2013-11-6 13:27:24 | 显示全部楼层
亚瑟王 发表于 2013-11-5 11:53
目前还没有找到为什么第一次按下后又马上休眠的原因。
至于3G,没有休眠。

option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 1-1.4:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 1-1.4:1.1: device disconnected
option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
option 1-1.4:1.2: device disconnected
option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
option 1-1.4:1.3: device disconnected
PM: resume of devices complete after 893.363 msecs
option 1-1.4:1.0: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1.4:1.1: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1.4:1.2: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
option 1-1.4:1.3: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB4

这个表示在休眠和唤醒的过程当中,连接3G的usb断开重新连接了,造成以前的操作的ttyusb0没有释放,新的连接又变成了ttyusb1,3G连接失败
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-17 09:09 , Processed in 2.036977 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表