← Back to team overview

touch-packages team mailing list archive

[Bug 1450009] Re: suspends on closed lid, does not recognized external monitors/dock

 

I have the same problem on an HP EliteBook 8560w (with AMD GPU running
fglrx driver) in an HP Docking Station.

In this setup, systemd is unable to determine the docked state. There is
no /sys/class/drm device (because of the fglrx driver) and systemd does
not find the input event source.

When running system in debug mode, I found this in dmesg:

> [   12.740423] systemd-logind[1019]: Watching system buttons on /dev/input/event2 (Power Button)
> [   12.740505] systemd-logind[1019]: Watching system buttons on /dev/input/event4 (Video Bus)
> [   12.740576] systemd-logind[1019]: Watching system buttons on /dev/input/event1 (Lid Switch)
> [   12.740624] systemd-logind[1019]: Watching system buttons on /dev/input/event0 (Sleep Button)

After investigating those event sources, I found that none of them
report the docked state (SW_DOCK event). That event is in my case on
/dev/input/event15 -- the hp_wmi module.

Systemd is not considering that input, because it only scans for udev
input devices that have the 'power-switch' tag.

So, at least for HP Notebook with WMI the workaround is simple, edit
/lib/udev/rules.d/70-power-switch.rules and include the line

  SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="HP WMI hotkeys",
TAG+="power-switch"

and reboot.

I'mnot sure if the udev rule is simply missing or if systemd locking
only for power-switch udev input device is wrong. After all, the WMI
inputs are not power switches.....

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1450009

Title:
  suspends on closed lid, does not recognized external monitors/dock

Status in systemd package in Ubuntu:
  Confirmed

Bug description:
  Using systemd as init system on a HP zbook15 notebook having 2 external monitors connected using a docking station and starting with lid closed the system goes to sleep after successfully booting and starting lightdm greeter. Sometimes there's enough time to enter username and password but system goes to sleep every time after a few seconds.
  The system can be woken up and used after this happens but it will not let me shutdown later.

  The problem is just present in docked situation starting with closed
  lid using systemd a init system.

  If notebook is used in non-docked situation with open lid and systemd
  the problem does not occur.

  Workaround: A switch back to upstart as init system resolves the
  issue.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: systemd-sysv 219-7ubuntu3
  ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
  Uname: Linux 3.19.0-15-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.17.2-0ubuntu1
  Architecture: amd64
  Date: Wed Apr 29 14:46:09 2015
  InstallationDate: Installed on 2015-04-27 (1 days ago)
  InstallationMedia: Xubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422.1)
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1450009/+subscriptions


References