Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
romanempire wrote: > While the volume control works on the Pi its plugged into, pressing the > knob has the effect of pausing everywhere. I just want that control to > work on the player its attached to. So I changed KEY_MUTE to 1 pcp > power. That seemed to have the desired effect. > > Actually, rereading post #2 from 'paul-' implies that the commands go to > LMS which would explain why mute affects the whole system. Whereas I > only want the control to work on the device its plugged into :-) > Actually the- pcp play/stop -etc commands do go to the player. But if your players are synched, play and stop will affect all active synchronized players. 'I also use -pcp power -' (https://forums.slimdevices.com/showthread.php?113605-USB-volume-control-in-PiCorePlayer=1003850=1#post1003850)because I also keep all players synched. The only downside is the brief pause on all players when you resume power to on (they need to resync). If you go to the player setting in LMS (top right menu if you use Material) you can choose how linked players behave. I never used it, but it's also possible to sync volume between players. jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Spoke too soon :eek: While the volume control works on the Pi its plugged into, pressing the knob has the effect of pausing everywhere. I just want that control to work on the player its attached to. So I changed KEY_MUTE to 1 pcp power. That seemed to have the desired effect. Cheers, Paul romanempire's Profile: http://forums.slimdevices.com/member.php?userid=67209 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Finally got it working :D Made use of WinSCP. Makes it much easier to navigate and edit files than wrestling with vi :cool: Thank you everyone for your help and guidance. Just need to sort a suitable housing for the Pi+amp and do something to tone down the mega bright blue LED on the volume control :cool: Cheers, Paul romanempire's Profile: http://forums.slimdevices.com/member.php?userid=67209 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
paul- wrote: > Dont forget to backup PCP BU :p jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
romanempire wrote: > > thd --daemon --triggers media.conf --normalize > /dev/input/event1 > > I assume "media.conf" is the config file? And I need to change it in the > way suggested by Paul Webster in post#10? > Yes, media.conf is in the home directory. Mine looks like this: Code: KEY_VOLUMEUP 1 pcp up KEY_VOLUMEDOWN 1 pcp down KEY_MUTE 1 pcp power (it seems that Triggerhappy doesn't like empty lines, so no linebreak after the last line) The user command I ended up with (in the pCP webinterface, under 'tweaks") is this: -thd --daemon --triggers /home/tc/media.conf /dev/input/event1- My experience though is that the volume change is rather slow... Maybe that's because it's on a Zero. But if the volume doesn't change immediately just wait, don't start spinning the dial. :o jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Yes, you need to create it. You can put it in your home directory, and the tell the daemon where to find it. Dont forget to backup piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
In my post you can see the "vi" command with a full path to the file. I don't know if it is present before editing. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Hi Paul, Thank you for your help and adding TriggerHappy to the repository. I've installed it OK and added the startup command that "Jeroen2" mentioned:- thd --daemon --triggers media.conf --normalize /dev/input/event1 I assume "media.conf" is the config file? And I need to change it in the way suggested by Paul Webster in post#10? So I got PuTTY installed and logged into the particular Pi I'm trying to configure. But I'm struggling to locate the config file so I can modify it as required. :o I'm embarrassed as I know its going to be something simple. Regards, Paul romanempire's Profile: http://forums.slimdevices.com/member.php?userid=67209 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
paul- wrote: > The knob is a usb keyboard. Triggerhappy is a hot key daemon. You can > do what you wish to control volume. Indeed. I attached it to a Zero with HigiBerry Mini Amp. So a very minimal setup (and used in a very small room). Since the player is synched on/off and volume up/down is all I needed. jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
The knob is a usb keyboard. Triggerhappy is a hot key daemon. You can do what you wish to control volume. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
I assume its controlling volume digitally rather than at the analog output stage? PiCorePlayer 6.1 on Allo Digi One Signaturewith (Lounge) PiCorePlayer 6.1 with pi official touchscreen and hifiberry Dig+ (Office) PiCorePlayer 6.1 with pi official touchscreen and hifiberry DAC+(Kitchen) Radio (Bedroom) PiCorePlayer 6.1 with pi official touchscreen and USB DAC (Bedroom) Squeezelite=x (Garage) PiCorePlayer 6.1 with hifiberry AMP+(Patio 2) PiCorePlayer 6.1 with hifiberry AMP+(Patio 2) LMS 8 on DIY Unraid 6 Server (i5) Squeeze user since the SB1 markiii's Profile: http://forums.slimdevices.com/member.php?userid=63801 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
paul- wrote: > Yes, I dont have time to do development on old releases. So its only > been pushed for pCP7. No problem at all. Doing an In Situ update was a surprisingly smooth process. Thanks! jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Yes, I dont have time to do development on old releases. So its only been pushed for pCP7. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Paul Webster wrote: > I just checked and it is listed on my pCP 7 32-bit. > Maybe the time has come to make the leap to the current pCP. Yep, that must be it. Thanks, will do that! jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
I just checked and it is listed on my pCP 7 32-bit. Maybe the time has come to make the leap to the current pCP. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Paul Webster wrote: > Paul- said he would make it available via the built-in pCP Extension > manager. > I dont know if it has been done yet. > Have you checked (see Extensions on main page). Yes, and I noticed it was recently added here: https://repo.picoreplayer.org/repo/12.x/ (Thanks, Paul! :-) ) But: It is not showing up in my list. I'm on pCP 6.1.0, but I also noticed different players seem to list a different number of extensions, so not sure what's going on there.. (One players says "-List of 544 extensions available in the piCorePlayer main repository-" another players says "-List of 518 extensions available in the piCorePlayer main repository-") jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Paul Webster wrote: > > To do the same on pCP simply change the script that is called sp it > becomes something like > Yep, got that. Where I got stuck is on how to install Triggerhappy on pCP...? jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
The post from ronanempire linked to a thread elsewhere that contained an example. It was: Code: $vi /etc/triggerhappy/triggers.d/media.conf KEY_VOLUMEUP 1 /usr/bin/mpc volume +1 KEY_VOLUMEDOWN 1 /usr/bin/mpc volume -1 KEY_MUTE 1 /usr/bin/mpc toggle To do the same on pCP simply change the script that is called sp it becomes something like Code: KEY_VOLUMEUP 1 pcp up KEY_VOLUMEDOWN 1 pcp down KEY_MUTE 1 pcp pause Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
paul- wrote: > > There is an extension page in the pCP web interface that allows you to > download and install packages. > Thanks. I guess that's what I was looking for but couldn't find. What's it called? paul- wrote: > What packages are you looking for besides triggerhappy? I assume Triggerhappy is all I would need to make this USB volume dial work. It gets recognised as a USB keyboard that sends -KEY_VOLUMEUP-, -KEY_VOLUMEDOWN- and -KEY_MUTE-. I would like for those key presses to 'trigger' the commands -pcp up-, -pcp down- and -pcp power-. Unless anyone would have any other suggestions on how to achieve that? (the player runs only Squeezelite, not JiveLite). jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
pCP and piCore does not use apt packaging. It never has. There is an extension page in the pCP web interface that allows you to download and install packages. I have not had a chance to package triggerhappy yet. I can get it this evening. What else might you need? piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
paul- wrote: > Names are fairly close to the application names. i.e. when I upload > triggerhappy, the extension name will be triggerhappy.tcz > A little disappointed because I'm kind of lost already (although I know I managed to solve this once before) because "apt-get" is not included in PCP. And I can't find the extension that installs that (apt-anything) either... Any chance this could be added to the repository? (sorry for being a newby) jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
paul- wrote: > when I upload triggerhappy, the extension name will be triggerhappy.tcz paul- wrote: > Triggerhappy should be the only thing you need, other than making > scripts for trigger happy to call. I ordered one of the USB volume devices and expect to have it before the weekend. I plan to use it on a bare PiZero player with HifiBerry Amp and unpowered speakers. Will let you know if it worked. (Triggerhappy seems pretty straightforward, but curious to see if the power supply holds) jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Names are fairly close to the application names. i.e. when I upload triggerhappy, the extension name will be triggerhappy.tcz There is an info file with each extension. Which can be viewed on the extension page. Triggerhappy should be the only thing you need, other than making scripts for trigger happy to call. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
So what would I need to do to get it working? (On a side note, I wasn't aware of the repository functionality. I've had a look through it but a lot of the names are quite cryptic. Is there a lookup table/listing?) Thanks, P romanempire's Profile: http://forums.slimdevices.com/member.php?userid=67209 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
paul- wrote: > Based on the postings from moode, it should work the same way. > > the triggerhappy extension is floating around somewhere.but its easy > for me to add to our repo too. > > That does look interesting. Would be a really easy way to create some controls for small players. Would indeed be great if this could be added to the repo to make installing a bit easier.. jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] USB volume control in PiCorePlayer
Based on the postings from moode, it should work the same way. the triggerhappy extension is floating around somewhere.but its easy for me to add to our repo too. We have a command line utility to send commands to LMS too. Code: - pcp play : play current track in playlist - pcp stop : stop current track - pcp pause : pause current track - pcp up : volume up - pcp down : volume down - pcp next : next track - pcp prev : previous track - pcp rand : generate random playlist - pcp power [on|off] : software power on or off - pcp volume [0-100] : set volume between 0 to 100 - pcp rescan : look for new and changed media files in connected LMS library - pcp wipecache : clear connected LMS library and rescan - pcp mode : display Squeezelite's current mode Normally we would do a pause instead of just mute. but mute would not be hard to implement either. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
[SlimDevices: Unix] USB volume control in PiCorePlayer
Hi all, Got several RPi's with Justboom DAC's dotted around the house feeding either the hifi or powered speakers. All working great - whole house sound system :D I'm in the process of replacing the RPi/DAC/2.1 powered speaker combo in the bedroom with an RPi/IQaudio DigiAMP+/passive speaker combo. Very impressed with the IQaudio DigiAMP+. Good sound and a surprising amount of power. However, the 2.1 speakers have a useful feature - a remote wired volume control and on/off switch. I'm aware of the possibility of using a suitable rotary encoder but while I was digging around on that topic I came across USB volume controls. So I bought this:- https://www.amazon.co.uk/gp/product/B07Z3DH5PV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8=1 (Other models available.) At the very least I can hack it to use the (smart looking) housing, knob and cable to configure it as a basic rotary encoder. But before I go that route I want to investigate the possibility of using it as-is. I've had a good google around and there are tantalizing hints that it might be possible. Examples:- http://moodeaudio.org/forum/showthread.php?tid=2154 https://nerdhut.de/2018/03/29/arduino-usb-volume-knob/ ... While I'm not adverse to a bit of soldering and hackery this type of device could be a useful solution for a lot of PiCorePlayer users. Any thoughts/suggestions? Cheers, P romanempire's Profile: http://forums.slimdevices.com/member.php?userid=67209 View this thread: http://forums.slimdevices.com/showthread.php?t=113605 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix