Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] acpid and elogind don't play well with suspend
@ 2020-04-09  7:20 keshto
  2020-04-09  7:23 ` keshto
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: keshto @ 2020-04-09  7:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]

New issue by keshto on void-packages repository

https://github.com/void-linux/void-packages/issues/20780

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  *output of ``xuname`` (part of xtools)*
`Void 5.6.2_1 x86_64 GenuineIntel uptodate rFF`
* package:  
  *affected package(s) including the version*
```
elogind  (243.4_2)  [elogind-243.4_2]
libelogind  (243.4_2)  [libelogind-243.4_2]
acpid  (2.0.32_1)  [acpid-2.0.32_1]
```

### Expected behavior
Opening the laptop lid resumes the system
### Actual behavior
It wakes, but then suspends again almost instantly
### Steps to reproduce the behavior
There is a conflict between acpid and elogind. In /etc/acpi/handler.sh if we comment out the `zzz` things work as expected.
```
...
    button/lid)
        case "$3" in
                close)
                        # suspend-to-ram
                        logger "LID closed, suspending..."
                        #zzz
                        ;;
                open)   logger "LID opened" ;;
                *) logger "ACPI action undefined (LID): $2";;
        esac
        ;;
    *)
...
```
It seems that elogind (guessing from dmesg messages) is suspending before `zzz` is called and then when the lid opens `zzz` gets executed resulting in the suspend.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: acpid and elogind don't play well with suspend
  2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
@ 2020-04-09  7:23 ` keshto
  2020-04-09  7:26 ` xtraeme
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: keshto @ 2020-04-09  7:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

New comment by keshto on void-packages repository

https://github.com/void-linux/void-packages/issues/20780#issuecomment-611374138

Comment:
@xtraeme pinging you in

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: acpid and elogind don't play well with suspend
  2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
  2020-04-09  7:23 ` keshto
@ 2020-04-09  7:26 ` xtraeme
  2020-04-09 19:16 ` keshto
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: xtraeme @ 2020-04-09  7:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

New comment by xtraeme on void-packages repository

https://github.com/void-linux/void-packages/issues/20780#issuecomment-611375500

Comment:
There's no issue here, elogind provides the acpid functionality... you shouldn't have both services enabled at the same time.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: acpid and elogind don't play well with suspend
  2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
  2020-04-09  7:23 ` keshto
  2020-04-09  7:26 ` xtraeme
@ 2020-04-09 19:16 ` keshto
  2020-04-09 22:01 ` keshto
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: keshto @ 2020-04-09 19:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 468 bytes --]

New comment by keshto on void-packages repository

https://github.com/void-linux/void-packages/issues/20780#issuecomment-611706594

Comment:
Only had acpid enabled, but I guess elogind gets started by something else. Removing acpid and adding elogind does indeed fix the conflict, but now suspend takes a good 10+seconds after the lid is closed to kick in and I will debug that further. Maybe there should be a conflict warning in elogind if acpid is enabled/running?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: acpid and elogind don't play well with suspend
  2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
                   ` (2 preceding siblings ...)
  2020-04-09 19:16 ` keshto
@ 2020-04-09 22:01 ` keshto
  2020-04-09 22:01 ` [ISSUE] [CLOSED] " keshto
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: keshto @ 2020-04-09 22:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

New comment by keshto on void-packages repository

https://github.com/void-linux/void-packages/issues/20780#issuecomment-611774035

Comment:
Closing as this is a documentation/user error/packaging request. Let me know if there is anything I can do to make this clearer.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] acpid and elogind don't play well with suspend
  2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
                   ` (3 preceding siblings ...)
  2020-04-09 22:01 ` keshto
@ 2020-04-09 22:01 ` keshto
  2020-04-10  7:11 ` travankor
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: keshto @ 2020-04-09 22:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]

Closed issue by keshto on void-packages repository

https://github.com/void-linux/void-packages/issues/20780

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  *output of ``xuname`` (part of xtools)*
`Void 5.6.2_1 x86_64 GenuineIntel uptodate rFF`
* package:  
  *affected package(s) including the version*
```
elogind  (243.4_2)  [elogind-243.4_2]
libelogind  (243.4_2)  [libelogind-243.4_2]
acpid  (2.0.32_1)  [acpid-2.0.32_1]
```

### Expected behavior
Opening the laptop lid resumes the system
### Actual behavior
It wakes, but then suspends again almost instantly
### Steps to reproduce the behavior
There is a conflict between acpid and elogind. In /etc/acpi/handler.sh if we comment out the `zzz` things work as expected.
```
...
    button/lid)
        case "$3" in
                close)
                        # suspend-to-ram
                        logger "LID closed, suspending..."
                        #zzz
                        ;;
                open)   logger "LID opened" ;;
                *) logger "ACPI action undefined (LID): $2";;
        esac
        ;;
    *)
...
```
It seems that elogind (guessing from dmesg messages) is suspending before `zzz` is called and then when the lid opens `zzz` gets executed resulting in the suspend.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: acpid and elogind don't play well with suspend
  2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
                   ` (4 preceding siblings ...)
  2020-04-09 22:01 ` [ISSUE] [CLOSED] " keshto
@ 2020-04-10  7:11 ` travankor
  2020-04-22 17:32 ` ericonr
  2020-04-22 21:36 ` keshto
  7 siblings, 0 replies; 9+ messages in thread
From: travankor @ 2020-04-10  7:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]

New comment by travankor on void-packages repository

https://github.com/void-linux/void-packages/issues/20780#issuecomment-611911347

Comment:
void-docs is the right place to open an issue... btw the long suspend time with logind affects all systemd distros if you do some searching.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: acpid and elogind don't play well with suspend
  2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
                   ` (5 preceding siblings ...)
  2020-04-10  7:11 ` travankor
@ 2020-04-22 17:32 ` ericonr
  2020-04-22 21:36 ` keshto
  7 siblings, 0 replies; 9+ messages in thread
From: ericonr @ 2020-04-22 17:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/20780#issuecomment-617923204

Comment:
@travankor do you think this could be documented in the session management part?

@keshto can you open an issue for it?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: acpid and elogind don't play well with suspend
  2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
                   ` (6 preceding siblings ...)
  2020-04-22 17:32 ` ericonr
@ 2020-04-22 21:36 ` keshto
  7 siblings, 0 replies; 9+ messages in thread
From: keshto @ 2020-04-22 21:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

New comment by keshto on void-packages repository

https://github.com/void-linux/void-packages/issues/20780#issuecomment-618053714

Comment:
@ericonr https://github.com/void-linux/void-docs/pull/210

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-04-22 21:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09  7:20 [ISSUE] acpid and elogind don't play well with suspend keshto
2020-04-09  7:23 ` keshto
2020-04-09  7:26 ` xtraeme
2020-04-09 19:16 ` keshto
2020-04-09 22:01 ` keshto
2020-04-09 22:01 ` [ISSUE] [CLOSED] " keshto
2020-04-10  7:11 ` travankor
2020-04-22 17:32 ` ericonr
2020-04-22 21:36 ` keshto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).