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 ~]#
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.
Yi, you should probably submit the patch to lkml..
(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.