Screen can't dpms off/standby/shutdown, wakes instantly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
TL;DR: Whenever the screen tries to dpms off/standby/
- Background:
Whenever the brightness changes, both the hardware/kernel and the software seems to generate a keypress, which in turn triggers a brightness change each and causes them to race. This is tightly related to bug #415023, where the solution so far has been to make changes to the HAL .fdi file for laptop screens to properly signal this by enabling the property laptop_
When the screen tries to DPMS off/standby/
KeyRelease event, serial 34, synthetic NO, window 0x3600001,
root 0xf9, subw 0x0, time 271798228, (55,-14), root:(59,11),
state 0x0, keycode 232 (keysym 0x1008ff03, XF86MonBrightne
Asking Felix Geyer (debfx) whether Powerdevil could be told to ignore the event;
[18:21] <debfx> there is nothing powerdevil can do to prevent key events
[18:23] <debfx> hmm well yeah it could probably ignore them
[18:23] <debfx> i'll have a look at the code
[18:38] <debfx> doesn't seem that easy, by default powerdevil uses the
xsync extension to get notified on user activity
As it happens, this is a netbook (Advent 4211, a rebranded MSI Wind U100), so thankfully I can close the lid. But the screen will never otherwise sleep.
ProblemType: Bug
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xffe00000 irq 16'
Mixer name : 'Realtek ALC1200'
Components : 'HDA:10ec0888,
Controls : 22
Simple ctrls : 14
Date: Sun Nov 15 15:27:45 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=
MachineType: MICRO-STAR INTERNATIONAL CO., LTD U-100
Package: linux-image-
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
RelatedPackageV
linux-
linux-firmware 1.24
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
SourcePackage: linux
Uname: Linux 2.6.31-14-generic i686
dmi.bios.date: 10/06/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.3
dmi.board.
dmi.board.name: U-100
dmi.board.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.board.version: Ver.001
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: U-100
dmi.product.
dmi.sys.vendor: MICRO-STAR INTERNATIONAL CO., LTD
Attaching a short clip showing dbus-monitor as it catches the phantom key events.
When I execute 'xset force dpms off' in the clip, the screen does go black, but as soon as the d-bus call is monitored it wakes and I break the recording. By extension, that's as long as it will sleep when the power manager tells it to sleep after n minutes of user inactivity.
It's short to keep the size down; pause it if you want to read the actual output.