Re: Problem with systemd-sleep in Jessie

2014-10-25 Thread Ben Hutchings
On Sat, 2014-10-25 at 23:34 +0200, Michael Biebl wrote: > Am 25.10.2014 um 23:12 schrieb ~Stack~: > > On 10/25/2014 04:01 PM, ~Stack~ wrote: > >> On 10/24/2014 10:55 AM, Michael Biebl wrote: > >>> Am 24.10.2014 um 17:23 schrieb Michael Biebl: > What do you get if your that program when your li

Re: Problem with systemd-sleep in Jessie

2014-10-25 Thread Michael Biebl
Am 25.10.2014 um 23:12 schrieb ~Stack~: > On 10/25/2014 04:01 PM, ~Stack~ wrote: >> On 10/24/2014 10:55 AM, Michael Biebl wrote: >>> Am 24.10.2014 um 17:23 schrieb Michael Biebl: What do you get if your that program when your lid is closed/opened? >>> >>> The output of >>> $ cat /proc/acpi/but

Re: Problem with systemd-sleep in Jessie

2014-10-25 Thread ~Stack~
On 10/25/2014 04:01 PM, ~Stack~ wrote: > On 10/24/2014 10:55 AM, Michael Biebl wrote: >> Am 24.10.2014 um 17:23 schrieb Michael Biebl: >>> What do you get if your that program when your lid is closed/opened? >> >> The output of >> $ cat /proc/acpi/button/lid/LID/state >> when lid is closed / open w

Re: Problem with systemd-sleep in Jessie

2014-10-25 Thread ~Stack~
On 10/24/2014 10:55 AM, Michael Biebl wrote: > Am 24.10.2014 um 17:23 schrieb Michael Biebl: >> What do you get if your that program when your lid is closed/opened? > > The output of > $ cat /proc/acpi/button/lid/LID/state > when lid is closed / open would be helpful as well. > > If you don't hav

Re: Problem with systemd-sleep in Jessie

2014-10-25 Thread ~Stack~
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

Re: Problem with systemd-sleep in Jessie

2014-10-24 Thread Michael Biebl
Am 24.10.2014 um 17:23 schrieb Michael Biebl: > What do you get if your that program when your lid is closed/opened? The output of $ cat /proc/acpi/button/lid/LID/state when lid is closed / open would be helpful as well. If you don't have an external monitor, you can run sleep 30 && cat /proc/ac

Re: Problem with systemd-sleep in Jessie

2014-10-24 Thread Michael Biebl
Am 24.10.2014 um 14:46 schrieb ~Stack~: > On 10/23/2014 11:06 PM, Michael Biebl wrote: >> That looks all fine. >> Can you remove the settings again from logind.conf and restart >> systemd-logind while monitoring what evtest logs and and also what >> systemd-logind logs. >> For the latter, you can e

Re: Problem with systemd-sleep in Jessie

2014-10-24 Thread ~Stack~
On 10/23/2014 09:36 PM, ~Stack~ wrote: > On 10/23/2014 08:29 PM, Don Armstrong wrote: >> You can also change /etc/systemd/logind.conf, and change the >> HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, >> HandleLidSwitch= all to ignore temporarily. > > Done. That seems to work! The laptop

Re: Problem with systemd-sleep in Jessie

2014-10-24 Thread ~Stack~
On 10/23/2014 11:06 PM, Michael Biebl wrote: > That looks all fine. > Can you remove the settings again from logind.conf and restart > systemd-logind while monitoring what evtest logs and and also what > systemd-logind logs. > For the latter, you can either run systemd-logind in the foreground (as

Re: Problem with systemd-sleep in Jessie

2014-10-24 Thread ~Stack~
On 10/23/2014 11:19 PM, Ric Moore wrote: > > To the OP: Stack. THANK YOU for starting an intelligent systemd Q&A. I have voiced my systemd concerns before. At this time, I am simply tying to figure out what is wrong with my laptop. Should systemd be the default/only init system when Jessie releas

Re: Problem with systemd-sleep in Jessie

2014-10-24 Thread ~Stack~
On 10/23/2014 10:25 PM, Michael Biebl wrote: > Am 24.10.2014 um 04:58 schrieb Michael Biebl: >> Am 24.10.2014 um 04:19 schrieb Michael Biebl: >> >>> For some reason, you seem to be getting acpi events which trigger the >>> suspend request in logind. This might be a buggy ACPI implementation >>> lik

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Ric Moore
To the OP: Stack. THANK YOU for starting an intelligent systemd Q&A. One feature I read about is that systemd will shut down under various conditions that would also prevent exhausting the battery on a laptop. I don't suppose there is anyway to install fresh to get rid of old cruft?? I'm of no

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Michael Biebl
Am 24.10.2014 um 05:39 schrieb ~Stack~: > Sure. I am not familiar with this tool so I am not sure what I am > looking at currently. Thus, here is what I did: > * I tested the Lid Switch by closing and opening the lid; the screen > turns off then back on again. > * I tested the Sleep Button; nothing

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread ~Stack~
On 10/23/2014 09:58 PM, Michael Biebl wrote: > Am 24.10.2014 um 04:19 schrieb Michael Biebl: > >> For some reason, you seem to be getting acpi events which trigger the >> suspend request in logind. This might be a buggy ACPI implementation >> like in [1]. > > To further debug this, you might inst

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Joey Hess
Try running this: journalctl -u systemd-logind -f That will show messages logged by logind, for example: Oct 23 23:30:10 darkstar systemd-logind[733]: Lid closed. Oct 23 23:30:12 darkstar systemd-logind[733]: Lid opened. It should also log if it thinks a suspend key is being pressed. It's possi

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread ~Stack~
On 10/23/2014 10:01 PM, Michael Biebl wrote: > Am 24.10.2014 um 04:36 schrieb ~Stack~: > >> So while I was waiting on a response, I copied off the syslog to another >> box to examine it (in only 3 tries! :-). There is a re-occuring theme >> and it does look like I may have just missed the info pre

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Michael Biebl
Am 24.10.2014 um 04:58 schrieb Michael Biebl: > Am 24.10.2014 um 04:19 schrieb Michael Biebl: > >> For some reason, you seem to be getting acpi events which trigger the >> suspend request in logind. This might be a buggy ACPI implementation >> like in [1]. > > To further debug this, you might ins

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Michael Biebl
Am 24.10.2014 um 04:36 schrieb ~Stack~: > So while I was waiting on a response, I copied off the syslog to another > box to examine it (in only 3 tries! :-). There is a re-occuring theme > and it does look like I may have just missed the info previous to the > systemd-sleep. See snippet below. The

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Michael Biebl
Am 24.10.2014 um 04:19 schrieb Michael Biebl: > For some reason, you seem to be getting acpi events which trigger the > suspend request in logind. This might be a buggy ACPI implementation > like in [1]. To further debug this, you might install the "evtest" package and run the evtest binary as ro

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread ~Stack~
On 10/23/2014 09:19 PM, Michael Biebl wrote: > Hi, > > Am 24.10.2014 um 02:40 schrieb ~Stack~: >> I think I last booted/updated this laptop last weekend. I booted it up >> tonight to mess around on it and the first thing, as always, was to run >> updates. A bunch of systemd stuff updated. Now the

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Michael Biebl
Am 24.10.2014 um 04:19 schrieb Michael Biebl: > Once you're logged in, run "systemd-inhibit --what=sleep /bin/sleep > 3600" [1]. This should block any suspend requests for one hour. Hm, actually, it's probably better to block the handling of the lid-switch, power and suspend/hibernate keys. Plea

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread ~Stack~
On 10/23/2014 08:29 PM, Don Armstrong wrote: > On Thu, 23 Oct 2014, ~Stack~ wrote: >> It boots and it will sit at the log in screen for quite some time like >> everything is good and happy. If I log in either via GUI (LXDE) or via >> command line, the laptop goes to sleep anywhere between 2 and 15

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Michael Biebl
Hi, Am 24.10.2014 um 02:40 schrieb ~Stack~: > I think I last booted/updated this laptop last weekend. I booted it up > tonight to mess around on it and the first thing, as always, was to run > updates. A bunch of systemd stuff updated. Now the laptop is dang near > unusable. Could you please chec

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread ~Stack~
On 10/23/2014 08:32 PM, Joel Rees wrote: > 2014/10/24 9:57 "~Stack~" >: >> It boots and it will sit at the log in screen for quite some time like >> everything is good and happy. If I log in either via GUI (LXDE) or via >> command line, the laptop goes to sleep anywhe

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Don Armstrong
On Thu, 23 Oct 2014, ~Stack~ wrote: > It boots and it will sit at the log in screen for quite some time like > everything is good and happy. If I log in either via GUI (LXDE) or via > command line, the laptop goes to sleep anywhere between 2 and 15 > seconds later. I have to hit the power button (n

Re: Problem with systemd-sleep in Jessie

2014-10-23 Thread Joel Rees
2014/10/24 9:57 "~Stack~" : > > Greetings, > > I have been running Jessie i386 on a spare laptop just so I can see how > all the big changes that are coming will impact me. For the last few > months, nothing too big has really hit me (at least none that don't have > a bug filed already). Well, that

Problem with systemd-sleep in Jessie

2014-10-23 Thread ~Stack~
Greetings, I have been running Jessie i386 on a spare laptop just so I can see how all the big changes that are coming will impact me. For the last few months, nothing too big has really hit me (at least none that don't have a bug filed already). Well, that is until now. I think I last booted/upd