[Pkg-utopia-maintainers] Bug#555740: Bug#555740: Bug#555712: Bug#555712: devicekit-power: wrong status for can-hibernate and lid-is-present

Michael Biebl biebl at debian.org
Wed Nov 11 17:08:35 UTC 2009


Yves-Alexis Perez wrote:
> On mer., 2009-11-11 at 16:49 +0100, Michael Biebl wrote:
>> I think only the devices named input* are relevant (9 to go). Then
>> test each of
>> them if it has a capabilities/sw file.
>>
>> What do you get if you run
>> cd /sys/class/input
>> for i in `seq 0 8`; do
>> cat input$i/capabilites/sw
>> done 
> 
> corsac at hidalgo: for i in `seq 0 8`; do
> for> cat input$i/capabilites/sw
> for> done
> cat: input0/capabilites/sw: No such file or directory
> cat: input1/capabilites/sw: No such file or directory
> cat: input2/capabilites/sw: No such file or directory
> cat: input3/capabilites/sw: No such file or directory
> cat: input4/capabilites/sw: No such file or directory
> cat: input5/capabilites/sw: No such file or directory
> cat: input6/capabilites/sw: No such file or directory
> cat: input7/capabilites/sw: No such file or directory
> cat: input8/capabilites/sw: No such file or directory
> corsac at hidalgo: find /sys/class/input -name sw

That won't work as find does not seem to follow symlinks.
find /sys/ -name sw is likely more successfull

> This is on debian 2.6.31:
> Linux hidalgo 2.6.31-1-amd64 #1 SMP Sat Oct 24 17:50:31 UTC 2009 x86_64
> GNU/Linux
> 
> So I guess “something” doesn't report the LID input. What puzzles me is
> that it's a ThinkPad, which is vastly used by Linux people, so I would
> expect that kind of stuff to be present if it's the way to go.
> 
> Though, iirc, LID events are reported using event4:
> 
> /dev/input/event4
>    bustype : BUS_HOST
>    vendor  : 0x0
>    product : 0x5
>    version : 0
>    name    : "Lid Switch"
>    phys    : "PNP0C0D/button/input0"
>    bits ev : EV_SYN EV_SW
> 

I'm honestly not 100% sure if it's a DK-power issue or not. Mind to forward/file
this bug upstream and ask for clarification?
It doesn't look like a Debian specific issue so is best handled upstream anyways.

Cheers,
Michael



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20091111/500c25ad/attachment-0001.pgp>


More information about the Pkg-utopia-maintainers mailing list