Monitor On/Off not working with RaspberryPi 4
horve000 opened this issue · 4 comments
OS
Raspbian Bullseye 64bit
NodeJS Version
16.17.0
MagicMirror Version
2.22.0
Remote Control Version
2.3.6
Did you try using just Remote Control alone with MM?
- I have and the error still happening
Description
I installed MMM-Remote control and everything seems to be working. Except for Monitor ON/OFF.
I think it has to do with the graphics driver that is being installed. vc4-kms-v3d driver
If i try 'tvservice --off && tvservice --status' the following message appears,
"tvservice is not supported when using the vc4-kms-v3d driver."
Expected behavior
Monitor turning ON or OFF
Current behavior
Nothing.
If i send api command by browser it shows monitor turned off. But monitor is still on.
Possible solution
No response
Steps to reproduce
Install Magic Mirror and MMM-Remote control on raspberry pi 4 with raspbian bullseye 64bit installed.
Log
no log
config.js
/* MagicMirror² Config Sample
*
* By Michael Teeuw https://michaelteeuw.nl
* MIT Licensed.
*
* For more information on how you can configure this file
* see https://docs.magicmirror.builders/configuration/introduction.html
* and https://docs.magicmirror.builders/modules/configuration.html
*/
let config = {
address: "0.0.0.0", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out or empty, is "localhost"
port: 8080,
basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
// you must set the sub path here. basePath must end with a /
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:10.0.0.1/120", "10.0.0.1/24"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
useHttps: false, // Support HTTPS or not, default "false" will use HTTP
httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
language: "nl",
locale: "en-US",
logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
timeFormat: 24,
units: "metric",
// serverOnly: true/false/"local" ,
// local for armv6l processors, default
// starts serveronly and then starts chrome browser
// false, default for all NON-armv6l devices
// true, force serveronly mode, because you want to.. no UI on this device
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_center"
},
{
module: "calendar",
header: "Agenda",
position: "top_right",
config: {
maximumNumberOfDays: 14,
calendars: [
{
symbol: "calendar-check",
url: "https://calendar.google.com/calendar/ical/********gmail.com/*****.ics"
}
]
}
},
{
module: "compliments",
position: "bottom_center",
config: {
remoteFile: "https://raw.githubusercontent.com/*************/main/compliments_nl.json"
}
},
{
module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "NOS Journaal",
url: "http://feeds.nos.nl/nosjournaal"
}
],
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
{
module: 'MMM-Buienradar',
position: 'bottom_left',
config: {
lat: **************,
lon: ***********,
forecast: true,
zoom: 3,
interval: 10,
monochrome: false
}
},
{
module: "weather",
position: "top_left",
config: {
weatherProvider: "openweathermap",
type: "current",
location: "Tilburg",
locationID: "2746300", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
apiKey: "*****************************"
}
},
{
module: "weather",
position: "top_left",
header: "Weersverwachting",
config: {
weatherProvider: "openweathermap",
type: "forecast",
location: "Tilburg",
locationID: "2746300", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
apiKey: "*****************************",
maxNumberOfDays: 10,
fadePoint: 0.75,
colored: true
}
},
{
module: "MMM-Spotify",
position: "top_center", // "bottom_bar" or "top_bar" for miniBar
config: {
debug: false, // debug mode
style: "default", // "default" or "mini" available (inactive for miniBar)
moduleWidth: 360, // width of the module in px
control: "hidden", // "default" or "hidden"
showAlbumLabel: true, // if you want to show the label for the current song album
showVolumeLabel: true, // if you want to show the label for the current volume
showAccountName: false, // also show the current account name in the device label; usefull for multi account setup
showAccountButton: true, // if you want to show the "switch account" control button
showDeviceButton: true, // if you want to show the "switch device" control button
useExternalModal: false, // if you want to use MMM-Modal for account and device popup selection instead of the build-in one (which is restricted to the album image size)
updateInterval: 1000, // update interval when playing
idleInterval: 30000, // update interval on idle
defaultAccount: 0, // default account number, attention : 0 is the first account
defaultDevice: null, // optional - if you want the "SPOTIFY_PLAY" notification to also work from "idle" status, you have to define your default device here (by name)
allowDevices: [], //If you want to limit devices to display info, use this. f.e. allowDevices: ["RASPOTIFY", "My Home speaker"],
onStart: null, // disable onStart feature with `null`
// if you want to send custom notifications when suspending the module, f.e. switch MMM-Touch to a different "mode"
notificationsOnSuspend: [
{
notification: "TOUCH_SET_MODE",
payload: "myNormalMode",
},
{
notification: "WHATEVERYOUWANT",
payload: "sendMe",
}
],
// if you want to send custom notifications when resuming the module, f.e. switch MMM-Touch to a different "mode"
notificationsOnResume: [
{
notification: "TOUCH_SET_MODE",
payload: "mySpotifyControlMode",
},
],
deviceDisplay: "Listening on", // text to display in the device block (default style only)
volumeSteps: 5, // in percent, the steps you want to increase or decrese volume when reacting on the "SPOTIFY_VOLUME_{UP,DOWN}" notifications
// miniBar is no longer supported, use at your own "risk". Will be removed in a future version
miniBarConfig: {
album: true, // display Album name in miniBar style
scroll: true, // scroll title / artist / album in miniBar style
logo: false, // display Spotify logo in miniBar style
}
}
},
{
module: 'MMM-WiFiPassword',
position: "bottom_right",
config: {
//See 'Configuration options' for more information.
network: "*******",
password: "***************",
qrSize: 150,
}
},
{
module: 'MMM-Remote-Control',
// uncomment the following line to show the URL of the remote control on the mirror
// position: 'bottom_left',
// you can hide this module afterwards from the remote control itself
config: {
customCommand: {}, // Optional, See "Using Custom Commands" below
showModuleApiMenu: true, // Optional, Enable the Module Controls menu
secureEndpoints: true, // Optional, See API/README.md
// uncomment any of the lines below if you're gonna use it
// customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
apiKey: "***********", // Optional, See API/README.md for details
// classes: {} // Optional, See "Custom Classes" below
}
},
{
module: "MMM-Remote-Control-Repository",
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
Additional info
No response
Thank you for reporting this issue! However, this is not a bug, and it's ever inside our FAQ. Please refer to it for more information.
Hi, I got the same issue. It worked just fine some time ago. Now I cant shut down the monitor
Do I need to chnage the action to "monitorOffCommand"? Please help, I´m pretty new to Raspberry and MagicMirror.ö
notificationExec: {
notification: "REMOTE_ACTION",
payload: {
action: "MONITOROFF",
},