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

Yves-Alexis Perez corsac at debian.org
Wed Nov 11 16:10:34 UTC 2009


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

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

Cheers,

-- 
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20091111/30ea6ed3/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list