Add IR remote control using Flirc USB in SnakeOil
|
Posts: 822
Threads: 46
Joined: Mar 2019
Reputation:
233
Location: Melbourne, Australia
28-May-2025, 07:07 AM
(This post was last modified: 29-May-2025, 08:16 PM by Snoopy8.)
For a long time, I have been wondering how to add infrared (IR) remote controls to SnakeOil. The computers we use have no IR receivers and I was not keen to solder an IR receiver and then play with low level IR codes in Linux.
Like many of you, I have a remote to control the volume and mute my system. And have to use my phone to skip to next song, skip back, pause etc. Well, I can now do all of the above basic playback controls using only my IR remote.
It was quite a challenge to learn how to control LMS with a keyboard and how to use the Flirc USB IR receiver. Not helped when the LMS documentation is difficult to learn from. While the Flirc USB is very capable, key information was scattered. Had to do things by trial and error, with no response from the manufacturer, despite many attempts. And of course, I had to pick a remote that Flirc struggled with and chose the hardest player LMS.
I have now consolidated all of this in the wiki making it much easier for others to replicate what I have done. And the approach will work for MPD and other players.
https://www.snakeoil-os.net/reference/ad...-ir-remote
Posts: 822
Threads: 46
Joined: Mar 2019
Reputation:
233
Location: Melbourne, Australia
Yesterday, 12:08 PM
(This post was last modified: Yesterday, 01:29 PM by Snoopy8.)
I have now been using the IR remote for a few days, but found inconsistent response in my large room. I am sitting 4m away in a bright room and it sometimes required several presses and sometimes produced only partial keystrokes. The 10m range in the Flirc USB specs is misleading, probably for a perfect environment. What is holding it back is likely the small surface area, compared with other IR gear. Tried shorter macros, using a USB A extension cable.
Problem mostly solved by a paper cone wrapped around Flirc USB. Yes, A4 paper rolled up!  . Have added this tip to wiki.
Posts: 3,018
Threads: 193
Joined: Feb 2016
Reputation:
701
Location: Perth, WA
(Yesterday, 12:08 PM)Snoopy8 Wrote: I have now been using the IR remote for a few days, but found inconsistent response in my large room. I am sitting 4m away in a bright room and it sometimes required several presses and sometimes produced only partial keystrokes. The 10m range in the Flirc USB specs is misleading, probably for a perfect environment. What is holding it back is likely the small surface area, compared with other IR gear. Tried shorter macros, using a USB A extension cable.
Problem mostly solved by a paper cone wrapped around Flirc USB. Yes, A4 paper rolled up! . Have added this tip to wiki.
Use a radio remote (RF) if you can, so it does not require line of sight. I know it lirc has the name infra red in the name, but it does support HID RF devices. Once you get the input device setup it's a matter of tweaking the repeat value and remapping keystrokes to event, you'll be all set.
Snakeoil Operating System - Music, your way!
Posts: 822
Threads: 46
Joined: Mar 2019
Reputation:
233
Location: Melbourne, Australia
(Yesterday, 03:17 PM)agent_kith Wrote: Use a radio remote (RF) if you can, so it does not require line of sight. I know it lirc has the name infra red in the name, but it does support HID RF devices. Once you get the input device setup it's a matter of tweaking the repeat value and remapping keystrokes to event, you'll be all set. But most Hifi gear are controlled using an IR remote, which was the motivation and driver behind this. I am probably old fashioned as well. And it is working well enough.
The ideal is to mix both IR and BT in the same remote, with IR for the Hifi and BT to control SnakeOil music player. Maybe my next project ?
Posts: 3,018
Threads: 193
Joined: Feb 2016
Reputation:
701
Location: Perth, WA
(Yesterday, 03:30 PM)Snoopy8 Wrote: But most Hifi gear are controlled using an IR remote, which was the motivation and driver behind this. I am probably old fashioned as well. And it is working well enough.
The ideal is to mix both IR and BT in the same remote, with IR for the Hifi and BT to control SnakeOil music player. Maybe my next project ? Logitech used to make very good IR and RF/IR+bridge remotes. Their IR remote has a very wide beam which is really good to use. Unfortunately Logitech decided to can this product (along with LMS).
RF to a IR sender/blaster is probably the better way as it does not require line of sight, like this one.
Or you can DIY a solution using a Broadlink (I have the pro and it's a pretty good IR blaster, works with RF too).
Snakeoil Operating System - Music, your way!
Posts: 822
Threads: 46
Joined: Mar 2019
Reputation:
233
Location: Melbourne, Australia
(Yesterday, 04:16 PM)agent_kith Wrote: Logitech used to make very good IR and RF/IR+bridge remotes. Their IR remote has a very wide beam which is really good to use. Unfortunately Logitech decided to can this product (along with LMS). I did my earlier test with an Arcam IR remote but I still have my Logitech Harmony 650 (& a spare!). Agree they have a much better IR signal. And of course, the life expectancy is highly dependent on Logitech continuing to keep their website operational for changes etc.
(Yesterday, 04:16 PM)agent_kith Wrote: RF to a IR sender/blaster is probably the better way as it does not require line of sight, like this one. The X1 is the old model. The new one is X1S which is reported to be much better, but while my Harmony still works, I'll hold off from getting the X1S.
|
Users browsing this thread: |
1 Guest(s)
|
|
Welcome
|
You have to register before you can post on our site.
|
Latest Threads
|
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
Today 07:04 PM
» Replies: 11
» Views: 271
|
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
Today 03:50 PM
» Replies: 5
» Views: 75
|
Android Firefox issues with forum
Last Post: agent_kith
Today 09:13 AM
» Replies: 13
» Views: 121
|
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 1297
|
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 1673
|
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 6882
|
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 876
|
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 206
|
Add to SO backup & restore
Last Post: agent_kith
15-May-2025 09:58 AM
» Replies: 1
» Views: 59
|
Snakeoil 1.4.3 (High End U3)
Last Post: agent_kith
12-May-2025 04:04 PM
» Replies: 65
» Views: 3219
|
SnakeoilOS Mission Statement
|
Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.
SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.
If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.
|
|
|