Bug 9685 - "cat /sys/devices/.../power/wakeup" is empty if that device can't support wakeup
Summary: "cat /sys/devices/.../power/wakeup" is empty if that device can't support wakeup
Status: REJECTED WILL_NOT_FIX
Alias: None
Product: Power Management
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: power-management_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-04 01:55 UTC by Yi Yang
Modified: 2009-03-24 10:46 UTC (History)
3 users (show)

See Also:
Kernel Version: 2,6.24-rc6
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
This patch changes empty output to "unsupported" if wakeup feature isn't supported by a device (1.00 KB, patch)
2008-01-04 02:06 UTC, Yi Yang
Details | Diff

Description Yi Yang 2008-01-04 01:55:33 UTC
Most recent kernel where this bug did not occur: None
Distribution: FC8
Hardware Environment: All
Software Environment: All
Problem Description: if a device can't support wakeup, its /sys/devices/.../power/wakeup output is empty, this is confusing, a user doesn't know if it support wakeup feature unless he/she read the ralated source code, for this case, it is more reasonable to output "unsupported". Otherwise, no matter what value the user set to /sys/devices/.../power/wakeup, the result is the same:

[root@localhost ~]# echo "enabled" > /sys/devices/platform/i8042/power/wakeup
-bash: echo: write error: Invalid argument
[root@localhost ~]# echo "disabled" > /sys/devices/platform/i8042/power/wakeup
-bash: echo: write error: Invalid argument
[root@localhost ~]# cat /sys/devices/platform/i8042/power/wakeup

[root@localhost ~]#

Steps to reproduce:

[root@localhost ~]# cat /sys/devices/platform/i8042/power/wakeup

[root@localhost ~]# echo "enabled" > /sys/devices/platform/i8042/power/wakeup
-bash: echo: write error: Invalid argument
[root@localhost ~]# echo "disabled" > /sys/devices/platform/i8042/power/wakeup
-bash: echo: write error: Invalid argument
[root@localhost ~]#
Comment 1 Yi Yang 2008-01-04 02:06:29 UTC
Created attachment 14278 [details]
This patch changes empty output to "unsupported" if wakeup feature isn't supported by a device

This patch changes empty output to "unsupported" if wakeup feature isn't supported by a device, please consider to apply, thanks.
Comment 2 Natalie Protasevich 2008-06-05 00:19:38 UTC
Yi, you should probably submit the patch to lkml..
Comment 3 Yi Yang 2008-06-05 00:35:04 UTC
(In reply to comment #2)
> Yi, you should probably submit the patch to lkml..
> 
Yes, i did it that way. :-) But they didn't agree do so.

Note You need to log in before you can comment on or make changes to this bug.