# \[PLUGIN\] IR Remote Controller feedback thread

**URL:** <https://community.volumio.com/t/plugin-ir-remote-controller-feedback-thread/6046>\
**Category:** Plugins\
**Created:** [May 17, 2017, 12:23am UTC](https://community.volumio.com/t/plugin-ir-remote-controller-feedback-thread/6046 "2017-05-17T00:23:04Z")\
**Posts on this page:** 3\
**Page:** 25

<div class="post-metadata">

**Author:** ![nerd](https://community.volumio.com/user_avatar/community.volumio.com/nerd/32/23615_2.png) [@nerd](https://community.volumio.com/u/nerd)\
**Post date:** [September 11, 2026, 10:06am UTC](https://community.volumio.com/t/plugin-ir-remote-controller-feedback-thread/6046/484 "2026-09-11T10:06:31Z")

</div>

Hey @SimonE,

Formatted like this?

```auto
#!/bin/bash

# Set XAUTHORITY and DISPLAY environment variables
export XAUTHORITY=~volumio/.Xauthority
export DISPLAY=:0

# Run the xset q command to get DPMS information
output=$(xset q)

# Check each line of the output for DPMS status
if [[$output == *"Monitor is On"*]]; then
     echo "Monitor is ON => Turning OFF"
     xset dpms force off
     uhubctl -p 1 -a off
elif [[$output == *"Monitor is Off"*]]; then
     echo "Monitor is OFF => Turning ON!"
     xset dpms force on
     uhubctl -p 1 -a on
else
     echo "Unable to determine monitor status"
fi

```

Use in between triple back-ticks: ```

Kind Regards,

---

<div class="post-metadata">

**Author:** ![SimonE](https://community.volumio.com/user_avatar/community.volumio.com/simone/32/23792_2.png) [@SimonE](https://community.volumio.com/u/SimonE)\
**Post date:** [September 11, 2026, 10:14am UTC](https://community.volumio.com/t/plugin-ir-remote-controller-feedback-thread/6046/485 "2026-09-11T10:14:30Z")

</div>

Yes, that’s it! This works to wake the USB port and Volumio recognises my DAC straight away.

When I switched from a Pi4 to a Pi5 the original uhubctl command broke. I knew the USB power setup is weird on the Pi5. This version works to wake the USB port and Volumio recognises my DAC straight away.

---

<div class="post-metadata">

**Author:** ![SimonE](https://community.volumio.com/user_avatar/community.volumio.com/simone/32/23792_2.png) [@SimonE](https://community.volumio.com/u/SimonE)\
**Post date:** [September 11, 2026, 10:25am UTC](https://community.volumio.com/t/plugin-ir-remote-controller-feedback-thread/6046/486 "2026-09-11T10:25:02Z")

</div>

Ah no, sorry, that’s the old code I copied! The new (Pi5) version is:

```auto

#!/bin/bash

# Set XAUTHORITY and DISPLAY environment variables
export XAUTHORITY=~volumio/.Xauthority
export DISPLAY=:0

# Run the xset q command to get DPMS information
output=$(xset q)

# Check each line of the output for DPMS status
if [[$output == *"Monitor is On"*]]; then
     echo "Monitor is ON => Turning OFF"
     xset dpms force off
     uhubctl -l 3 -a 0
elif [[$output == *"Monitor is Off"*]]; then
     echo "Monitor is OFF => Turning ON!"
     xset dpms force on
     uhubctl -l 3 -a 1 
else
     echo "Unable to determine monitor status"
fi

```

[Previous page](https://community.volumio.com/t/plugin-ir-remote-controller-feedback-thread/6046.md?page=24)
