Recently i had problems using LG Magic Remote codes with the X1 remote/hub/app. The arrow keys moved multiple times per keypress, making it -very- difficult to change tv settings using the X1.
Complicating matters, the X1 hub doesn't 'learn' codes from the LG Magic Remote.
Workaround: learn the LG keycodes from some other universal remote. I used a Harmony Elite remote, hub, and IR blaster.
One day after discovering the workaround, Sofabaton informed me that it fixed the database for my LG TV.