[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with systemd-sleep in Jessie



On 10/24/2014 10:23 AM, Michael Biebl wrote:
> I extracted the lid state switch into a small test program.
> Can you compile the attach test program (make switch). I hard-coded the
> lid switch button to /dev/input/input1. You'll need to change that if
> that's different on your system (check with evtest). You need to run
> that binary as root.
> 
> What do you get if your that program when your lid is closed/opened?
> 
> It should return 0 if the lid is open and 1 if closed.

I can confirm this. I ran:
$(for i in {0..100}; do ./a.out; sleep 1; done)

I get 0 when the laptop lid is open and 1 when it is closed.





Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: