You are not logged in.

#1 2011-06-12 17:23:20

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

/proc/acpi/button/lid/LID/state sends application to D state...

When an application tries to access  /proc/acpi/button/lid/LID/stated it goes to D state.

Eg. cat /proc/acpi/button/lid/LID/stated

F   UID   PID  PPID PRI  NI    VSZ    RSS  WCHAN  STAT   TTY        TIME    COMMAND
0     0  5625  5574  20   0   3944   224  acpi_e     D    ?        0:00     cat state

2.6.39-ARCH
acpid 2.0.10-2

As result of the above is that my laptop doesn't goes to sleep when closing the lid.

Does anyone else face this issue?


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#2 2011-06-12 18:40:59

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

Re: /proc/acpi/button/lid/LID/state sends application to D state...

I have noticed there is a oops message.

It may have something to do with kworker.

[  600.306724] INFO: task cat:2389 blocked for more than 120 seconds.
[  600.306734] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  600.306742] cat             D caf53a60     0  2389   1076 0x00000000
[  600.306757]  caf53af4 00000086 c11c143f caf53a60 e0843447 caf53a6c 5750ef8e 0000006a
[  600.306776]  caf53a80 e0841e72 caf53a80 e0841a41 00000000 caf53a94 e0844b50 c152c480
[  600.306795]  de69d390 c152c480 df406480 c9694460 df245a40 de37401c 00000000 0001a0d0
[  600.306814] Call Trace:
[  600.306832]  [<c11c143f>] ? __const_udelay+0x1f/0x30
[  600.306877]  [<e0843447>] ? ata_sff_pause+0x17/0x20 [libata]
[  600.306906]  [<e0841e72>] ? ata_bmdma_setup+0x62/0x70 [libata]
[  600.306934]  [<e0841a41>] ? ata_bmdma_start+0x21/0x30 [libata]
[  600.306960]  [<e0844b50>] ? ata_bmdma_qc_issue+0xc0/0x170 [libata]
[  600.306974]  [<c10318eb>] ? cpuacct_charge+0x5b/0x70
[  600.306987]  [<c1009a88>] ? sched_clock+0x8/0x10
[  600.307025]  [<e0a3d332>] ? ext4_ext_map_blocks+0x322/0x2230 [ext4]
[  600.307041]  [<c134a2ed>] __mutex_lock_slowpath+0x10d/0x2b0
[  600.307053]  [<c134a4a0>] mutex_lock+0x10/0x20
[  600.307064]  [<c120c484>] acpi_ec_transaction+0x73/0x1e7
[  600.307076]  [<c11b7d1a>] ? cfq_set_request+0x1da/0x4a0
[  600.307089]  [<c10cf2e3>] ? mempool_alloc_slab+0x13/0x20
[  600.307099]  [<c120c695>] acpi_ec_read+0x43/0x50
[  600.307110]  [<c120c809>] acpi_ec_space_handler+0x83/0xe4
[  600.307125]  [<c1214a13>] acpi_ev_address_space_dispatch+0x16c/0x1b9
[  600.307158]  [<e0843447>] ? ata_sff_pause+0x17/0x20 [libata]
[  600.307185]  [<e0843470>] ? ata_sff_exec_command+0x20/0x30 [libata]
[  600.307212]  [<e0841e72>] ? ata_bmdma_setup+0x62/0x70 [libata]
[  600.307223]  [<c120c786>] ? acpi_ec_burst_disable+0x3d/0x3d
[  600.307235]  [<c121940f>] acpi_ex_access_region+0x20b/0x217
[  600.307246]  [<c10318eb>] ? cpuacct_charge+0x5b/0x70
[  600.307257]  [<c12197fd>] acpi_ex_field_datum_io+0x112/0x1b8
[  600.307269]  [<c1104b41>] ? kmem_cache_alloc+0x121/0x140
[  600.307281]  [<c1219977>] acpi_ex_extract_from_field+0xd4/0x222
[  600.307295]  [<c12290ee>] ? acpi_ut_allocate_object_desc_dbg+0x3b/0x70
[  600.307308]  [<c122918c>] ? acpi_ut_create_internal_object_dbg+0x18/0x70
[  600.307320]  [<c122933d>] ? acpi_ut_create_integer_object+0x2a/0x39
[  600.307332]  [<c12180b6>] acpi_ex_read_data_from_field+0x11a/0x141
[  600.307345]  [<c121d0e7>] acpi_ex_resolve_node_to_value+0x193/0x220
[  600.307357]  [<c1212d05>] ? acpi_ds_create_operand+0x118/0x1e9
[  600.307368]  [<c1218a00>] acpi_ex_resolve_to_value+0x1f0/0x1fc
[  600.307381]  [<c1212f00>] acpi_ds_evaluate_name_path+0x73/0xdf
[  600.307393]  [<c12119a4>] acpi_ds_exec_end_op+0x8c/0x3a4
[  600.307404]  [<c1223c53>] acpi_ps_parse_loop+0x718/0x86d
[  600.307416]  [<c1229474>] ? acpi_ut_create_generic_state+0x32/0x4c
[  600.307428]  [<c122318e>] acpi_ps_parse_aml+0x87/0x241
[  600.307439]  [<c12243f7>] acpi_ps_execute_method+0x1a3/0x238
[  600.307452]  [<c121fccf>] acpi_ns_evaluate+0xcb/0x18d
[  600.307463]  [<c121f37d>] ? acpi_evaluate_object+0x45/0x20f
[  600.307475]  [<c121f458>] acpi_evaluate_object+0x120/0x20f
[  600.307488]  [<c10f2c7c>] ? page_add_new_anon_rmap+0x8c/0xa0
[  600.307508]  [<c120822a>] acpi_evaluate_integer+0x36/0x5a
[  600.307523]  [<e0d7d228>] acpi_button_state_seq_show+0x26/0x5e [button]
[  600.307537]  [<c11317d5>] seq_read+0xf5/0x380
[  600.307548]  [<c11316e0>] ? seq_lseek+0x170/0x170
[  600.307560]  [<c115c693>] proc_reg_read+0x63/0x90
[  600.307571]  [<c1114b38>] vfs_read+0x88/0x160
[  600.307582]  [<c115c630>] ? proc_reg_write+0x90/0x90
[  600.307592]  [<c1114c4d>] sys_read+0x3d/0x70
[  600.307604]  [<c134c11f>] sysenter_do_call+0x12/0x28

Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

Board footer

Powered by FluxBB