You are not logged in.

#1 2016-10-24 12:42:06

Drehstromlampe
Member
From: GER
Registered: 2015-07-18
Posts: 45

[sort of SOLVED] Powerdevil, touchpad, lid_close

Hi guys and girls,

so I'm having this weird issue, where my touchpad stops recognizing taps and two-finger scrolling when I close and then reopen the laptop-lid.

Here's what I have configured:
Powerdevil is configured in a way that it won't do anything, when the laptop lid is closed

~/.config/powermanagementprofilesrc

[AC]
icon=battery-charging

[AC][DPMSControl]
idleTime=600

[AC][DimDisplay]
idleTime=300000

[AC][HandleButtonEvents]
lidAction=0
powerButtonAction=1
triggerLidActionWhenExternalMonitorPresent=false

[Battery]
icon=battery-060

[Battery][DPMSControl]
idleTime=300

[Battery][DimDisplay]
idleTime=120000

[Battery][HandleButtonEvents]
lidAction=0
powerButtonAction=1
triggerLidActionWhenExternalMonitorPresent=false

[Battery][SuspendSession]
idleTime=600000
suspendType=1

[LowBattery]
icon=battery-low

[LowBattery][BrightnessControl]
value=30

[LowBattery][DPMSControl]
idleTime=120

[LowBattery][DimDisplay]
idleTime=60000

[LowBattery][HandleButtonEvents]
lidAction=1
powerButtonAction=16
triggerLidActionWhenExternalMonitorPresent=false

[LowBattery][SuspendSession]
idleTime=300000
suspendType=1

Systemd-logind is configured in the same way. I had to do this, because logind somehow sent my notebook to sleep when the lid was closed. This seemed odd because that wasn't necessary in the past.

/etc/systemd/logind.conf

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

I checked for the synaptics parameters that are currently running. When everythings normal, the Parameter

TouchpadOff=0

is set, which is the way it's intended to be. However, when I reopen the lid, this parameter is set to

TouchpadOff=2

2 Means: Only tapping and scrolling is switched off (from manpage)
Now of couse a can exec

$ synclient TouchpadOff=0

And then again, everything works as intended. But if a switch to another virutal desktop, this is reset to 2.

So somethings resetting this parameter. Neither journalctl nor /var/log/xorg.0.log show anything concerning this.

Furthermore, /etc/X11/xorg.conf.d/70-synaptics.conf is configured as

Section "InputClass"
    Identifier "touchpad catchall"
	Driver "synaptics"
	MatchIsTouchpad "on"
	MatchDevicePath "/dev/input/event*"
	Option "HorizTwoFingerScroll" "1"
	Option "CornerCoasting" "0"
	Option "TouchpadOff" "0"
EndSection

As you can see, I made sure that double loading of synaptics won't happen (as described here) https://wiki.archlinux.org/index.php/To … _6003C8.22


Now to the conclusion that this is somehow related with powerdevil:
When I uninstall powerdevil, this problem goes away. But without powerdevil there's no screen brightness control (which obviously s...)
Also, when the lid is closed, journalctl shows this:

Okt 24 14:26:15 user org_kde_powerdevil[797]: powerdevil: Suspend session triggered with QMap(("Explicit", QVariant(bool, true))("Type", QVariant(uint, 0)))

even though powerdevil is configured to do nothing on lid_close. Also, the notebook is NOT suspending.

Rebooting or suspending and resuming bring everything back to normal.


I recently switched the harddrive from another notebook in this new one. With the old one, this problem didn't exist.

So from here on I'm stuck.
Last option seems to be to switch to a differen desktop environment.

Any ideas?

Last edited by Drehstromlampe (2016-10-25 16:26:46)

Offline

#2 2016-10-25 16:26:17

Drehstromlampe
Member
From: GER
Registered: 2015-07-18
Posts: 45

Re: [sort of SOLVED] Powerdevil, touchpad, lid_close

Fixed the issue.

I noticed that after resume from suspend, TouchpadOff=2 was set even though it acted as if it was set to 0.

Appearently the Touchpad background service from Plasma5 tampered with the touchpad configuration. Disabling the service fixed the actual problem. However, TouchpadOff=2 is still being set, for whatever reason.

journalctl still says

Okt 25 18:22:52 user org_kde_powerdevil[786]: powerdevil: Suspend session triggered with QMap(("Explicit", QVariant(bool, true))("Type", QVariant(uint, 0)))

when lid is closed, even though it's not configured to do so.

Extremely weird issue.

Anyhow... my touchpad is now working as intended, despite of the wrong parameters being set.

I'll mark this thread as solved.

Last edited by Drehstromlampe (2016-10-25 16:29:13)

Offline

Board footer

Powered by FluxBB