Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12435 closed Bug Report - General (fixed)

lirc doesn't work after 35564d70e7 commit.

Reported by: yiannividalis@… Owned by: Stuart Auchterlonie
Priority: major Milestone: 0.28
Component: MythTV - General Version: Master Head
Severity: medium Keywords: lirc
Cc: Ticket locked: no

Description

Hi, I am running master on opensuse, and use icewm. Lirc buttons don't work on my hauppauge remote, although I see the receiver blinking.

I performed a git bisect which if was done properly blames the commit on the title.

> git bisect log
# bad: [ea183d42851f85914b96807fd437a03c24b68d4a] Refs #12416. Changeset 1b99b21615 broke symbol hiding on debian based systems
# good: [2864a79b78335e899e00e49d5b76e4f7d13f0f13] Update Greek MythFrontend, MythMusic, MythNetvision and MythZoneMinder translation from Yianni Vidalis
git bisect start 'ea183d4' '2864a79'
# good: [72c4abdc6a80add3035be8bdb1f31e20c4cc3b28] Network control: Handle "space" key properly.
git bisect good 72c4abdc6a80add3035be8bdb1f31e20c4cc3b28
# skip: [cf4da125a78bde32fb309fbddfc557993d4045fe] Ensure RecordingFile object is loaded when we call RI::GetFilesize()
git bisect skip cf4da125a78bde32fb309fbddfc557993d4045fe
# good: [31da15ad7b55cd203f0f9d86b68de4aae089b317] HACK fix for build. Refs #12290
git bisect good 31da15ad7b55cd203f0f9d86b68de4aae089b317
# bad: [eb68676d8ea4dae3cc2d823d2ba10183b00a4680] Attempt to use 4 different known screensaver dbus services
git bisect bad eb68676d8ea4dae3cc2d823d2ba10183b00a4680
# bad: [38007babce9d97b7a230fd33597115f61b62730d] Merge remote-tracking branch 'origin/master' into devel/dbus-screensaver
git bisect bad 38007babce9d97b7a230fd33597115f61b62730d
# bad: [35564d70e71ee0fe3ccea7dfa53a1ffa21117057] Initial version of dbus based screensaver
git bisect bad 35564d70e71ee0fe3ccea7dfa53a1ffa21117057
# first bad commit: [35564d70e71ee0fe3ccea7dfa53a1ffa21117057] Initial version of dbus based screensaver

I had to skip one step because it wouldn't build. I have the same setup on two pcs, both using icewm and lirc on opensuse. I've tried running both mythwelcome (which I normally use) and only mythfrontend, with the same results.

mythfrontend log shows nothing:

2015-04-22 21:22:40.340124 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Διακοπή handler
2015-04-22 21:22:40.340309 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Τερματίστηκε handler
2015-04-22 21:22:40.340363 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Σφάλμα κατάτμησης (segmentation fault) handler
2015-04-22 21:22:40.340412 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Ακυρώθηκε handler
2015-04-22 21:22:40.340459 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Σφάλμα στον δίαυλο(bus) handler
2015-04-22 21:22:40.340508 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Εξαίρεση κινητής υποδιαστολής handler
2015-04-22 21:22:40.340555 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Ακατάλληλη εντολή handler
2015-04-22 21:22:40.340612 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Σήμα πραγματικού-χρόνου 0 handler
2015-04-22 21:22:40.340670 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Καθοριζόμενο από τον χρήστη σήμα 1 handler
2015-04-22 21:22:40.340718 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Καθοριζόμενο από τον χρήστη σήμα 2 handler
2015-04-22 21:22:40.341185 C [11766/11766] thread_unknown mythcommandlineparser.cpp:2595 (ConfigureLogging) - mythfrontend version: (no branch, bisect started on master) [v0.28-pre-2774-g35564d7] www.mythtv.org
2015-04-22 21:22:40.341227 C [11766/11766] thread_unknown mythcommandlineparser.cpp:2597 (ConfigureLogging) - Qt version: compile: 5.4.1, runtime: 5.4.1
2015-04-22 21:22:40.341247 N [11766/11766] thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) - Enabled verbose msgs:  general
2015-04-22 21:22:40.341710 N [11766/11766] thread_unknown logging.cpp:910 (logStart) - Setting Log Level to LOG_INFO
2015-04-22 21:22:40.354144 N [11766/11766] thread_unknown mythdirs.cpp:123 (InitializeMythDirs) - Using runtime prefix = /usr
2015-04-22 21:22:40.354179 N [11766/11766] thread_unknown mythdirs.cpp:125 (InitializeMythDirs) - Using configuration directory = /home/mythtv/.mythtv
2015-04-22 21:22:40.354197 I [11766/11770] Logger logging.cpp:307 (run) - Added logging to the console
2015-04-22 21:22:40.354488 I [11766/11766] CoreContext mythcorecontext.cpp:266 (Init) - Assumed character encoding: el_GR.UTF-8
2015-04-22 21:22:40.356712 I [11766/11766] CoreContext mythcontext.cpp:513 (LoadDatabaseSettings) - Using localhost value of bedroom
2015-04-22 21:22:40.396142 I [11766/11766] CoreContext mythcontext.cpp:694 (TestDBconnection) - Testing network connectivity to '192.168.13.100'
2015-04-22 21:22:40.397369 I [11766/11771] SystemManager mythsystemunix.cpp:276 (run) - Starting process manager
2015-04-22 21:22:40.397661 I [11766/11772] SystemSignalManager mythsystemunix.cpp:511 (run) - Starting process signal handler
2015-04-22 21:22:40.399674 I [11766/11774] SystemIOHandlerW mythsystemunix.cpp:92 (run) - Starting IO manager (write)
2015-04-22 21:22:40.406116 I [11766/11773] SystemIOHandlerR mythsystemunix.cpp:92 (run) - Starting IO manager (read)
2015-04-22 21:22:40.456222 I [11766/11769] LogForward loggingserver.cpp:142 (FileLogger) - Added logging to /var/log/mythtv/mythfrontend.20150422182240.11766.log
2015-04-22 21:22:40.507257 N [11766/11766] CoreContext mythcorecontext.cpp:1662 (InitLocale) - Setting QT default locale to el_GR
2015-04-22 21:22:40.507335 I [11766/11766] CoreContext mythcorecontext.cpp:1695 (SaveLocaleDefaults) - Current locale el_GR
2015-04-22 21:22:40.507550 N [11766/11766] CoreContext mythlocale.cpp:123 (LoadDefaultsFromXML) - Reading locale defaults from /usr/share/mythtv//locales/el_gr.xml
2015-04-22 21:22:40.544512 E [11766/11766] CoreContext screensaver-dbus.cpp:35 (ScreenSaverDBusPrivate) - ScreenSaverDBus: Could not connect to dbus: The name org.freedesktop.ScreenSaver was not provided by any .service files
2015-04-22 21:22:40.791064 N [11766/11766] CoreContext DisplayRes.cpp:64 (Initialize) - Desktop video mode: 1920x1080 59.934 Hz
2015-04-22 21:22:40.877735 I [11766/11766] CoreContext serverpool.cpp:406 (listen) - Listening on TCP 127.0.0.1:6547
2015-04-22 21:22:40.878120 I [11766/11766] CoreContext serverpool.cpp:406 (listen) - Listening on TCP 192.168.13.70:6547
2015-04-22 21:22:42.063374 I [11766/11766] CoreContext mythtranslation.cpp:73 (load) - Loading el translation for module mythfrontend
2015-04-22 21:22:42.069118 N [11766/11766] CoreContext DisplayRes.cpp:64 (Initialize) - Desktop video mode: 1920x1080 59.934 Hz
2015-04-22 21:22:42.172058 I [11766/11766] CoreContext DisplayRes.cpp:208 (SwitchToGUI) - Using 1920x1080 59.934 Hz
2015-04-22 21:22:42.172058 I [11766/11766] CoreContext DisplayRes.cpp:208 (SwitchToGUI) - Using 1920x1080 59.934 Hz
2015-04-22 21:22:40.340124 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Διακοπή handler
2015-04-22 21:22:40.340309 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Τερματίστηκε handler
2015-04-22 21:22:40.340363 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Σφάλμα κατάτμησης (segmentation fault) handler
2015-04-22 21:22:40.340412 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Ακυρώθηκε handler
2015-04-22 21:22:40.340459 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Σφάλμα στον δίαυλο(bus) handler
2015-04-22 21:22:40.340508 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Εξαίρεση κινητής υποδιαστολής handler
2015-04-22 21:22:40.340555 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Ακατάλληλη εντολή handler
2015-04-22 21:22:40.340612 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Σήμα πραγματικού-χρόνου 0 handler
2015-04-22 21:22:40.340670 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Καθοριζόμενο από τον χρήστη σήμα 1 handler
2015-04-22 21:22:40.340718 I [11766/11766] thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) - Setup Καθοριζόμενο από τον χρήστη σήμα 2 handler
2015-04-22 21:22:40.341185 C [11766/11766] thread_unknown mythcommandlineparser.cpp:2595 (ConfigureLogging) - mythfrontend version: (no branch, bisect started on master) [v0.28-
pre-2774-g35564d7] www.mythtv.org
2015-04-22 21:22:40.341227 C [11766/11766] thread_unknown mythcommandlineparser.cpp:2597 (ConfigureLogging) - Qt version: compile: 5.4.1, runtime: 5.4.1
2015-04-22 21:22:40.341247 N [11766/11766] thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) - Enabled verbose msgs:  general
2015-04-22 21:22:40.341710 N [11766/11766] thread_unknown logging.cpp:910 (logStart) - Setting Log Level to LOG_INFO
2015-04-22 21:22:40.354144 N [11766/11766] thread_unknown mythdirs.cpp:123 (InitializeMythDirs) - Using runtime prefix = /usr
2015-04-22 21:22:40.354179 N [11766/11766] thread_unknown mythdirs.cpp:125 (InitializeMythDirs) - Using configuration directory = /home/mythtv/.mythtv
2015-04-22 21:22:40.354197 I [11766/11770] Logger logging.cpp:307 (run) - Added logging to the console
2015-04-22 21:22:40.354488 I [11766/11766] CoreContext mythcorecontext.cpp:266 (Init) - Assumed character encoding: el_GR.UTF-8
2015-04-22 21:22:40.356712 I [11766/11766] CoreContext mythcontext.cpp:513 (LoadDatabaseSettings) - Using localhost value of bedroom
2015-04-22 21:22:40.396142 I [11766/11766] CoreContext mythcontext.cpp:694 (TestDBconnection) - Testing network connectivity to '192.168.13.100'
2015-04-22 21:22:40.397369 I [11766/11771] SystemManager mythsystemunix.cpp:276 (run) - Starting process manager
2015-04-22 21:22:40.397661 I [11766/11772] SystemSignalManager mythsystemunix.cpp:511 (run) - Starting process signal handler
2015-04-22 21:22:40.399674 I [11766/11774] SystemIOHandlerW mythsystemunix.cpp:92 (run) - Starting IO manager (write)
2015-04-22 21:22:40.406116 I [11766/11773] SystemIOHandlerR mythsystemunix.cpp:92 (run) - Starting IO manager (read)
2015-04-22 21:22:40.456222 I [11766/11769] LogForward loggingserver.cpp:142 (FileLogger) - Added logging to /var/log/mythtv/mythfrontend.20150422182240.11766.log
2015-04-22 21:22:40.507257 N [11766/11766] CoreContext mythcorecontext.cpp:1662 (InitLocale) - Setting QT default locale to el_GR
2015-04-22 21:22:40.507335 I [11766/11766] CoreContext mythcorecontext.cpp:1695 (SaveLocaleDefaults) - Current locale el_GR
2015-04-22 21:22:40.507550 N [11766/11766] CoreContext mythlocale.cpp:123 (LoadDefaultsFromXML) - Reading locale defaults from /usr/share/mythtv//locales/el_gr.xml
2015-04-22 21:22:40.544512 E [11766/11766] CoreContext screensaver-dbus.cpp:35 (ScreenSaverDBusPrivate) - ScreenSaverDBus: Could not connect to dbus: The name org.freedesktop.Sc
reenSaver was not provided by any .service files
2015-04-22 21:22:40.791064 N [11766/11766] CoreContext DisplayRes.cpp:64 (Initialize) - Desktop video mode: 1920x1080 59.934 Hz
2015-04-22 21:22:40.877735 I [11766/11766] CoreContext serverpool.cpp:406 (listen) - Listening on TCP 127.0.0.1:6547
2015-04-22 21:22:40.878120 I [11766/11766] CoreContext serverpool.cpp:406 (listen) - Listening on TCP 192.168.13.70:6547
2015-04-22 21:22:42.063374 I [11766/11766] CoreContext mythtranslation.cpp:73 (load) - Loading el translation for module mythfrontend
2015-04-22 21:22:42.069118 N [11766/11766] CoreContext DisplayRes.cpp:64 (Initialize) - Desktop video mode: 1920x1080 59.934 Hz
2015-04-22 21:22:42.172058 I [11766/11766] CoreContext DisplayRes.cpp:208 (SwitchToGUI) - Using 1920x1080 59.934 Hz
2015-04-22 21:22:42.172116 I [11766/11766] CoreContext DisplayRes.cpp:225 (SwitchToGUI) - SwitchToGUI: Switched to 1920x1080 59.934 Hz
2015-04-22 21:22:42.208579 I [11766/11766] CoreContext lirc.cpp:320 (Init) - LIRC: Successfully initialized '/var/run/lirc/lircd' using '/home/mythtv/.lircrc' config
2015-04-22 21:22:42.208921 I [11766/11766] CoreContext mythudplistener.cpp:32 (Enable) - UDPListener: Enabling
2015-04-22 21:22:42.211292 I [11766/11766] CoreContext serverpool.cpp:507 (bind) - Binding to UDP 127.0.0.1:6948
2015-04-22 21:22:42.211483 I [11766/11766] CoreContext serverpool.cpp:507 (bind) - Binding to UDP 192.168.13.70:6948
2015-04-22 21:22:42.211666 I [11766/11766] CoreContext serverpool.cpp:507 (bind) - Binding to UDP 192.168.13.255:6948
2015-04-22 21:22:42.322563 I [11766/11766] CoreContext mythmainwindow.cpp:997 (Init) - Using Frameless Window
2015-04-22 21:22:42.322586 I [11766/11766] CoreContext mythmainwindow.cpp:1008 (Init) - Using Full Screen Window
2015-04-22 21:22:42.371964 I [11766/11766] CoreContext mythmainwindow.cpp:1035 (Init) - UI Screen Resolution: 1920 x 1080
2015-04-22 21:22:42.813684 I [11766/11766] CoreContext mythrender_opengl.cpp:77 (Create) - OpenGL: Sync to VBlank is enabled (good!)
2015-04-22 21:22:42.967828 I [11766/11766] CoreContext mythrender_opengl.cpp:122 (Create) - Trying the OpenGL 1.2 render
2015-04-22 21:22:42.995077 I [11766/11766] CoreContext mythrender_opengl1.cpp:77 (InitFeatures) - OpenGL1: Fragment program support available
2015-04-22 21:22:42.995236 I [11766/11766] CoreContext mythrender_opengl.cpp:973 (InitFeatures) - OpenGL: OpenGL vendor  : NVIDIA Corporation
2015-04-22 21:22:42.995256 I [11766/11766] CoreContext mythrender_opengl.cpp:975 (InitFeatures) - OpenGL: OpenGL renderer: ION/integrated/SSE2
2015-04-22 21:22:42.995273 I [11766/11766] CoreContext mythrender_opengl.cpp:977 (InitFeatures) - OpenGL: OpenGL version : 3.3.0 NVIDIA 340.76
2015-04-22 21:22:42.995300 I [11766/11766] CoreContext mythrender_opengl.cpp:979 (InitFeatures) - OpenGL: Max texture size: 8192 x 8192
2015-04-22 21:22:42.995320 I [11766/11766] CoreContext mythrender_opengl.cpp:981 (InitFeatures) - OpenGL: Max texture units: 4
2015-04-22 21:22:42.995371 I [11766/11766] CoreContext mythrender_opengl.cpp:983 (InitFeatures) - OpenGL: Direct rendering: Yes
2015-04-22 21:22:42.995388 I [11766/11766] CoreContext mythrender_opengl.cpp:990 (InitFeatures) - OpenGL: PixelBufferObject support available
2015-04-22 21:22:42.995404 I [11766/11766] CoreContext mythrender_opengl.cpp:157 (Init) - OpenGL: Initialised MythRenderOpenGL
2015-04-22 21:22:46.054716 E [11766/11766] CoreContext mythuitext.cpp:1641 (Finalize) - 'description' (base.xml:1865): <scroll> and <cutdown> are not combinable.
2015-04-22 21:22:46.217547 I [11766/11786] SendMessage mythcorecontext.cpp:436 (ConnectCommandSocket) - MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.13.100:6543 (try 1 of 21)
2015-04-22 21:22:46.237549 I [11766/11786] SendMessage mythcorecontext.cpp:1575 (CheckProtoVersion) - MythCoreContext::CheckProtoVersion(): Using protocol version 85
2015-04-22 21:22:47.024791 I [11766/11766] CoreContext mythuiwebbrowser.cpp:1080 (LoadUserStyleSheet) - MythUIWebBrowser: Loading css from - file:///usr/share/mythtv/themes/default/htmls/mythbrowser.css
2015-04-22 21:22:47.033456 I [11766/11766] CoreContext mythuiwebbrowser.cpp:993 (Init) - MythUIWebBrowser: enabling plugins
2015-04-22 21:22:47.131222 I [11766/11766] CoreContext schemawizard.cpp:120 (Compare) - Current MythTV Schema Version (DBSchemaVer): 1339
2015-04-22 21:22:48.117412 W [11766/11766] CoreContext mythmainwindow.cpp:1747 (BindKey) - Key P,Π is bound to multiple actions in context Images.
2015-04-22 21:22:48.365840 N [11766/11766] CoreContext mythmainwindow.cpp:2007 (RegisterMediaPlugin) - Registering Internal as a media playback plugin.
2015-04-22 21:22:48.414154 W [11766/11766] CoreContext mythplugin.cpp:143 (MythPluginManager) - No plugins directory /usr/lib/mythtv/plugins
2015-04-22 21:22:48.418370 I [11766/11766] CoreContext serverpool.cpp:406 (listen) - Listening on TCP 127.0.0.1:6546
2015-04-22 21:22:48.418538 I [11766/11766] CoreContext serverpool.cpp:406 (listen) - Listening on TCP 192.168.13.70:6546
2015-04-22 21:22:48.442015 N [11766/11766] CoreContext main.cpp:1080 (RunMenu) - Found mainmenu.xml for theme 'Steppes'
2015-04-22 21:22:48.451212 I [11766/11766] CoreContext housekeeper.cpp:633 (RegisterTask) - Registering HouseKeeperTask 'HardwareProfiler'.
2015-04-22 21:22:48.455147 I [11766/11766] CoreContext housekeeper.cpp:706 (Start) - Starting HouseKeeper.

Please let me know if I can provide more info.

Change History (7)

comment:1 Changed 9 years ago by Jim Stichnoth

This has us stumped as well at the moment. Happens to me also with Ubuntu 14.04.

In the meantime, you can get lirc back by adding --disable-qtdbus to your configure command.

comment:2 Changed 9 years ago by Stuart Auchterlonie

Milestone: unknown0.28
Owner: set to Stuart Auchterlonie
Priority: minormajor
Status: newassigned

I'll take this as i wrote the dbus screensaver code. As Jim says, it has us stumped, because all the code actually does, is connect to the sessionbus and request the screensaver be inhibited when watching tv.

comment:3 Changed 9 years ago by gemma.daan@…

comment:4 Changed 9 years ago by gemma.daan@…

Caffeine switched to xdb-screensaver, but it is unclear to me exactly why, but it might be related to the DBus bug.

http://bazaar.launchpad.net/~caffeine-developers/caffeine/main/revision/601

comment:5 Changed 9 years ago by Stuart Auchterlonie <stuarta@…>

Resolution: fixed
Status: assignedclosed

In 70ae25deab026238250cbe0ca108fb6ceb41e188/mythtv:

Fix lirc being ignored after dbus screen saver changes.

If the Screensaver is Asleep() we ignore all keypresses
generated via the remote. This is clearly so that a button
pressed on the remote while the screen is asleep only wakes
up the screen, rather than triggering an action.

This swaps the logic around in the dbus screensaver so that
it satisfies the Asleep() check.

We may need to revist this in the future if we find that
when using the dbus screensaver we are not ignoring the
remote keypress which is used to bring us out of screensave.

Fixes #12435
Refs #12414

comment:6 Changed 9 years ago by Yianni Vidalis <yiannividalis@…>

Thank you for the commit, it fixed lirc, but it doesn't wake up the tv from dpms off. As I said in the first post, I use icewm, but I just use the xorg dpms feature, no screensaver. After this commit (70ae25deab), if I let the frontend to blank the screen I can see the hd led blink while I press buttons on the remote (I suppose it refreshes the themecache images) but the monitor is black. I have to use the keyboard to get a picture on it, and then I can use the remote normally.

Even more importantly, when the default dpms timeout passes, the tv turns black even while navigating in the menus.

comment:7 Changed 9 years ago by Stuart Auchterlonie

The dpms work is being tracked in #12438. That is next on my todo list.

Note: See TracTickets for help on using tickets.