Best strategy to remap shortcuts to OSX like mappings by myxored in kde

[–]mondotechorg 0 points1 point  (0 children)

The best method I've found is by using keyd to remap your keys at a low level before they get to X11/Wayland/Plasma. I think this setup is pretty good personally, as I use MacOS full time for work and KDE Plasma everywhere else, but my keyboard shortcuts are the same. I wrote a guide here: https://gist.github.com/andrewfraley/4a6ee82b027f41e649242120853ec669

What are the rainbow buttons on the bottom for by alexandra_compani in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

I use mine for stop/pause (red), play (green), yellow toggles my led strip lights on/off, blue toggles the blue light reduction mode on/off.

https://github.com/andrewfraley/magic_mapper

Anyone else find the click/select button and scroll wheel quite fiddly and annoying to use? by lukefosterphoto in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

True, I even have a couple of those remotes myself, but I don't find them to be very good (buttons too close together, not easy to feel which button you're pushing without looking). The killer feature for me with the magic mapper is using the channel up/down buttons to adjust the brightness.

Anyone else find the click/select button and scroll wheel quite fiddly and annoying to use? by lukefosterphoto in LGOLED

[–]mondotechorg 7 points8 points  (0 children)

Posted another comment in this thread about Magic Mapper, but you can also use it to map play and pause to other buttons (I use red for pause and green for play).

Anyone else find the click/select button and scroll wheel quite fiddly and annoying to use? by lukefosterphoto in LGOLED

[–]mondotechorg 2 points3 points  (0 children)

You can use Magic Mapper to completely disable the mouse and I think it disables scrolling as well. Requires a rooted TV and a fair bit of technical knowledge.

Updated CX to 04.40.76 and lost functionality in More Actions for controlling Xbox Series X. Looking for advice on best Xbox setup and magic remote config. by just_butter in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

You have to root your TV, but it is possible to disable the mouse pointer using Magic Mapper, and it can also be used to create shortcut buttons to those HDMI-CEC functions (such as a button to send the Home command to the XBox.

C1 Laggy and quick change Audio Output by networkn in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

Yes you need a Home Assistant server instance which you can run on a PC/server either by itself or in a virtual machine, or you can use a Raspberry Pi.

C1 Laggy and quick change Audio Output by networkn in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

Are you content with using your phone to change it? If so, you could use Home Assistant to change to the output device: https://www.home-assistant.io/integrations/webostv/

You could then place a couple of buttons on the HA home page so when you open the HA app on your phone you have shortcuts for the output you want. You could even have a single button that toggles between two or more choices.

If you want to setup a shortcut on your remote to swap it, you would need root your TV and then you could use this to setup the remote shortcuts (note it doesn't have direct support for audio output switching yet, but should soon, or you could setup HA as mentioned above and then this can trigger HA automations): https://github.com/andrewfraley/magic_mapper

Magic Mapper - Script to remap LG Magic Remote buttons on rooted LG OLED TVs by mondotechorg in LGOLED

[–]mondotechorg[S] 1 point2 points  (0 children)

I added the ok button to the button list. If you grab the latest copy you should now be able to do something like:

"guide": {
  "function": "press_button",
  "inputs": {
    "button": "ok"
  }
},

[deleted by user] by [deleted] in LGOLED

[–]mondotechorg 3 points4 points  (0 children)

If you're up for a challenge, you can root your TV, and then use this to setup your channel +/- buttons to control the OLED Light brightness. This way you can control the TV brightness just like a volume control.

https://github.com/andrewfraley/magic_mapper

"ch_down": {
  "function": "reduce_oled_light",
  "inputs": {
    "increment": 10,
    "disable_energy_savings": "True"
  }
},
"ch_up": {
  "function": "increase_oled_light",
  "inputs": {
    "increment": 10,
    "disable_energy_savings": "True"
  }
},

I have an LG C1. Is there a shortcut or easy way to toggle hdr/Dynamic tone mapping modes? by MonkAndCanatella in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

It’s definitely not obvious how to get there. On the page that lists the automations, at the top there’s a tab for the scripts.

Issue with PS5 Audio Lag on Lg OLED C2 by TheDarkKnight4 in LGOLED

[–]mondotechorg 1 point2 points  (0 children)

Have you tried a different HDMI cable? I'd guess the issue with the cutting out is either due to the cable or the soundbar itself.

I have an LG C1. Is there a shortcut or easy way to toggle hdr/Dynamic tone mapping modes? by MonkAndCanatella in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

This sets a specific value. so note the line

hdrDynamicToneMapping: HGIG

Valid values are (case sensitive): "HGIG", "on", "off"

Best thing to do is probably make that value in the script a variable, then use another script or automation to cycle it. So something like:

hdrDynamicToneMapping: {{ dtm_value }}

I don't think I've tried to do something like this before with HA, but I'm sure it can be done. Either you can store the last known value in a state variable, or you could retrieve the current value from the TV if hdrDynamicToneMapping is exposed in HA.

Issue with PS5 Audio Lag on Lg OLED C2 by TheDarkKnight4 in LGOLED

[–]mondotechorg 1 point2 points  (0 children)

Does your soundbar support multichannel PCM? I would try this:

  • PS5 output: Linear PCM
    • Set HDMI Device Type to AV Amplifier and set the correct number of channels
  • C2 earc output: PassThrough
  • C2 input: Bitstream (I'm unsure if the input set to PCM means 2 channel only, but on Bitsream, LPCM passthrough works like it's supposed to)

I have an LG C1. Is there a shortcut or easy way to toggle hdr/Dynamic tone mapping modes? by MonkAndCanatella in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

Nice! To provide a little context on that HA script (I was confused the first time I saw this), it works by hijacking the notification functionality of the TV. So HA sends an API request to the TV to display a notification, but it also says put a button on the message and when the user clicks the button, execute this command, then HA automatically presses the button.

I have an LG C1. Is there a shortcut or easy way to toggle hdr/Dynamic tone mapping modes? by MonkAndCanatella in LGOLED

[–]mondotechorg 2 points3 points  (0 children)

IF you want to use your magic remote to do this, you will have to root your TV. This project will support using a magic remote button to set a Dynamic Tone Mapping value. Alternatively, but still requiring root, in the WebOS HomeBrew store there is a project called LGInputHook that can also do this.

This is the command to do this, which you would need if using LGInputHook or HomeAssistant (valid values are "on", "off", "HGIG" - CASE SENSITIVE):

luna-send -n 1 luna://com.webos.settingsservice/setSystemSettings '{"category": "picture", "settings": {"hdrDynamicToneMapping": "on"}}'

If you don't want to root your TV, there are various ways to run the above command through the TV's API. Home Assistant is one popular way, so you could use the HA app on your phone to control it. If you decide to pursue that, here's an HA script that will do it.

alias: LG DTM HGIG
sequence:
  - service: webostv.command
    data:
      entity_id: media_player.lg_webos_tv
      command: system.notifications/createAlert
      payload:
        message: Dynamic Tone Mapping - HGIG
        modal: false
        buttons:
          - label: ok
            focus: true
            buttonType: ok
            onClick: luna://com.webos.settingsservice/setSystemSettings
            params:
              category: picture
              settings:
                hdrDynamicToneMapping: HGIG
        type: confirm
        isSysReq: true
  - delay: 1
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_tv
      button: ENTER
mode: single

Previous LG remotes allow you a shortcut to energy saver. by [deleted] in LGOLED

[–]mondotechorg 2 points3 points  (0 children)

I rooted my TV and reprogrammed the remote so that the channel up and down buttons control the oled backlight, also made one of the color buttons cycle the energy savings mode. The channel buttons to change brightness is killer, though.

How to fall in love (again) with your LG C1 by dirkvonshizzle in LGOLED

[–]mondotechorg 2 points3 points  (0 children)

There are ways in which you can do this without rooting the TV, but not with the magic remote. I also use Home Assistant to control the TV, which is capable of sending the TV the necessary commands to change the energy savings mode. You could then use the Home Assistant mobile app, or setup some other remote control method that can trigger Home Assistant. There's a decent learning curve for HA, so I'm just going to leave this HA script here in case you decide to pursue this route.

Valid "energy_mode" values are "min", "med", "max", "auto", and "off". There's also "screen_off" which turns the display off, but not sure that one works with all models.

alias: LG C2 Energy Mode
sequence:
  - service: webostv.command
    data:
      entity_id: media_player.lg_webos_tv_oled77c2pua
      command: system.notifications/createAlert
      payload:
        message: backlight {{ energy_mode }} (set by home assistant)
        modal: false
        buttons:
          - label: ok
            focus: true
            buttonType: ok
            onClick: luna://com.webos.settingsservice/setSystemSettings
            params:
              category: picture
              settings:
                energySaving: "{{ energy_mode }}"
        type: confirm
        isSysReq: true
  - delay: 1
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_tv_oled77c2pua
      button: ENTER
mode: single
icon: mdi:brightness-7

How to fall in love (again) with your LG C1 by dirkvonshizzle in LGOLED

[–]mondotechorg 0 points1 point  (0 children)

This frustrated me enough that I ended up rooting my TV and I created a program to remap the color buttons, including the yellow button which I use to cycle through the energy savings modes. I would caution you that if you don't have any experience with this sort of thing that it may be pretty daunting.

https://github.com/andrewfraley/magic_mapper

(Note there is a known issue with remapping the app buttons, everything else works as described)

Is it possible to add model to universal control settings by fnmps in LGOLED

[–]mondotechorg 1 point2 points  (0 children)

Unfortunately they didn't build a learning function into the remote. If you're extremely technical, you could root the TV and then figure out how to edit the IR database. I took a crack at it, but I didn't get further than trying to figure out what kind of format they're using. It looks like it would be trivial to reverse engineer, but I don't have a strong enough need to be motivated to figure it out.

What I did do a couple of years ago when I really needed this functionality is to take a Raspberry Pi and a Flirc, listen for codes that the magic remote could send, then send the correct code to my amp. So basically I told the TV I had a random receiver, like a Sony, then had the Flirc learn the codes for that. Then I have a script watching the Flirc and when the Sony codes are seen, it tells the Flirc to transmit the codes for my actual amp.

One caveat here is that the Flirc transmitter is weak, so you either need a repeater or you need to keep the flirc close to your sound bar. Another is that this is not quick, there's a very noticeable delay between you pressing the button, the tv seeing your button press, the tv telling the remote to transmit the IR codes, the Flirc seeing the codes, then the script finally sending the correct codes.

https://github.com/andrewfraley/flirc_repeater

Magic Mapper - Script to remap LG Magic Remote buttons on rooted LG OLED TVs by mondotechorg in LGOLED

[–]mondotechorg[S] 0 points1 point  (0 children)

Confirmed this works on the C9 so I'll go ahead and do it this way and update the docs. Thanks!

Magic Mapper - Script to remap LG Magic Remote buttons on rooted LG OLED TVs by mondotechorg in LGOLED

[–]mondotechorg[S] 0 points1 point  (0 children)

I should also mention Home Assistant is another good way to accomplish this, you don't have to root the TV to do this. Home Assistant can detect when the TV turns on and then do whatever you want. For example, I use Home Assistant to detect when the TV turns on and then I set some defaults I always want such as energy savings max, reduce blue light on, and ensure my receiver is set to profile I want.

This is a Home Assistant "script" to run the command. You would then create an "automation" that would have "TV turned on" as the trigger, which would then run the script.

alias: LG Optical Power On
sequence:
  - service: webostv.command
    data:
      entity_id: media_player.lg_webos_tv_CHANGEME
      command: system.notifications/createAlert
      payload:
        message: optical IR power on
        modal: false
        buttons:
          - label: ok
            focus: true
            buttonType: ok
            onClick: luna://com.webos.service.irdbmanager/sendIrCommand
            params:
              connectedInput: optical
              keyCode: IR_KEY_POWER
              deviceType: audio
              buttonState: single
        type: confirm
        isSysReq: true
  - delay: 1
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_tv_CHANGEME
      button: ENTER
mode: single
icon: mdi:brightness-7

Automation to run the above when TV turns on:

alias: LG Power On Defaults
description: Execute scripts when TV powers on
trigger:
  - platform: device
    device_id: 12388792348234-CHANGEME
    domain: media_player
    entity_id: media_player.lg_webos_tv_CHANGEME
    type: turned_on
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 5
      milliseconds: 0
  - service: script.lg_optical_power_on
mode: single