I run homebridge as a service, just the standard way to install it, except I have no homebridge user (it uses the renamed pi user that I use for everything). The same Pi also runs my Magic Mirror, and I'd like it to turn on and off from the Home app. The commands I use are tvservice -o and tvservice -p & sudo chvt 6 & sudo chvt 7. If I log in over ssh and issue these commands, it works as expected. If I run homebridge from that same console, the cmdswitch works as well. However, if Homebridge is running as a service, chvt does not work. Its output is chvt: ioctl VT_ACTIVATE: operation not permitted. The same output is printed when I type these commands into the console of the web UI of homebridge.
So it seems to be a permission issue with the homebridge service. What do I need to do to get this plugin to have the missing permissions?
Hello :)
I run homebridge as a service, just the standard way to install it, except I have no homebridge user (it uses the renamed pi user that I use for everything). The same Pi also runs my Magic Mirror, and I'd like it to turn on and off from the Home app. The commands I use are
tvservice -o
andtvservice -p & sudo chvt 6 & sudo chvt 7
. If I log in over ssh and issue these commands, it works as expected. If I run homebridge from that same console, the cmdswitch works as well. However, if Homebridge is running as a service, chvt does not work. Its output ischvt: ioctl VT_ACTIVATE: operation not permitted
. The same output is printed when I type these commands into the console of the web UI of homebridge.So it seems to be a permission issue with the homebridge service. What do I need to do to get this plugin to have the missing permissions?
Best :)