OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 882 forks source link

kbd stops working after screen put to sleep #2675

Closed chemstar closed 11 years ago

chemstar commented 11 years ago

using fusion master build my xbmc beheave like here described

http://trac.xbmc.org/ticket/14094

the only suspicious thing in my log i've found

06:05:14 T:140695264311104 ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files

i'm able to navigate using webui or android remote. suspend/wakeup is working fine

from the log: 12:59:26 T:140445973333824 INFO: DPMS: enabled power-saving mode SUSPEND 12:59:47 T:140445973333824 DEBUG: Keyboard: scancode: 0x72, sym: 0x0113, unicode: 0x0000, modifier: 0x0 12:59:47 T:140445973333824 INFO: DPMS: disabled power-saving 12:59:47 T:140445973333824 DEBUG: CAnnouncementManager - Announcement: OnScreensaverDeactivated from xbmc 12:59:47 T:140445973333824 DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverDeactivated 12:59:47 T:140445973333824 DEBUG: OnKey: right (0xf083) pressed, screen saver/dpms woken up

chemstar commented 11 years ago

i make some tests with evtest befor and after screen sleep and all my events from keyboard and remote/flirc arived as aspected. any ideas?

stefansaraev commented 11 years ago

upower error is harmless. @fritsch @sraue xorg/DPMS related ?

@chemstar insane guess. try building xorg-server with --disable-dpms :)

chemstar commented 11 years ago

i just tried to toggle screen after screen sleep with xbmc-send -a ToggleFullScreen and the kbd inputs are there inside of xbmc

maybe something focus related when waking up?

chemstar commented 11 years ago

just found out that after screen sleep my lirc inputs are ok using mce remote. so it seems that only keyboard is affected

jenkins101 commented 11 years ago

you could disable dpms in xorg.conf too... but then you only get a black screen, display will not turn off

chemstar commented 11 years ago

interesting new observation:

after xbmc-send -a ToggleDPMS Sending action: ToggleDPMS

followed by wake up of the screen kbd is still present with 5 fps ;-)

EDIT:

  1. xbmc-send ToggleDPMS results in: 22:23:22 T:139740206044992 INFO: DPMS: enabled power-saving mode SUSPEND
  2. xbmc-send ToggleDPMS results in: 22:23:37 T:139740206044992 INFO: DPMS: disabled power-saving --> XBMC gui with 30 fps

  3. xbmc-send ToggleDPMS results in: 22:23:59 T:139740206044992 INFO: DPMS: enabled power-saving mode SUSPEND
  4. using keyboard to wake screen xbmc gui is shown but with 4,9-5 fps. NO DPMS message about disabled power saving!!!
  5. xbmc-send ToggleDPMS results in: xbmc gui is still shown but now with more than 30 fps and 22:24:37 T:139740206044992 INFO: DPMS: disabled power-saving

sometime NOTICE: ES: Client from 127.0.0.1 timed out appears

stefansaraev commented 11 years ago

forget DPMS. can you try building with WINDOWMANAGER="" instead of ratpoison in projects/*/options

chemstar commented 11 years ago

no ratpoison

860 root 0:00 /usr/bin/xorg-launch-helper vt01 -s 0 -noreset -allowMouseOpenFail 861 root 0:01 /usr/bin/Xorg vt01 -s 0 -noreset -allowMouseOpenFail

all fine now with kbd. thank you stefan!

stefansaraev commented 11 years ago

wait. what happens. all fine without ratpoison?

chemstar commented 11 years ago

yes, i just rebuild it without ratpoison and done an update.

stefansaraev commented 11 years ago

good. thanks for the feedback @chemstar . I'd keep this issue open for now. I believe it affects other people too. @sraue ^^ ratpoison

chemstar commented 11 years ago

is there a specific reason why ratpoison is used. we have seen it is working well without

stefansaraev commented 11 years ago

external stuff like game emulators and browsers.

stefansaraev commented 11 years ago

@chemstar can you try building latest git master but change WINDOWMANAGER to "dwm" ?

chemstar commented 11 years ago

@stefansaraev just made a complete rebuild and till now all ok. tested: dpms, suspend/wake.