Opened 15 years ago

Closed 15 years ago

#5929 closed defect (duplicate)

Patch to support lirc reconnect

Reported by: anonymous Owned by: danielk
Priority: minor Milestone: 0.21.1
Component: mythtv Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I use mythtv with lirc and an imon remote. The drive doesn't support acpi suspend. When I suspend the computer, I have to unload lirc modules and stop lircd.

When I wake up the computer, il load the modules again et start lircd. The point is that mythtv lose its connection to lircd and doesn't reconnect to the new server. I can no longer use my remote.

So I have patched mythtv to be able to reconnect to lircd whe mythtv receive a signal USR2. When I wake up the computer, I send USR2 to mythfrontend, it reconnects to lircd and the remote works again.

Summary of changes


In libmythui : mode the code to launch the lirc thread to an independant method called at init and when necessary In mythfrontend : create and bind a function to manage the signal USR2. It calls the libmythui function to launch a new lirc thread. In the Lirc code : modify the init of the class to first deinit lirc and close previous sessions (to prevent segfaults after multiple USR2).

Version concerned


mythtv 0.21_p19046 (gentoo version)

Attachments (1)

mythtv-0.21-lirc.patch.zip (1.3 KB) - added by myth at grevrend.com 15 years ago.

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by myth at grevrend.com

Attachment: mythtv-0.21-lirc.patch.zip added

comment:1 Changed 15 years ago by danielk

Owner: changed from Isaac Richards to danielk
Status: newassigned

comment:2 Changed 15 years ago by danielk

Resolution: duplicate
Status: assignedclosed

I incorporated this functionality into my patch for [5583], making this ticket redundant.

Note: See TracTickets for help on using tickets.