@MichMich yes but the thing i don’t like is that they sell it as their idea.
I also just placed a link to a german blog. here is the original vendor http://www.perseusmirrors.com/
@MichMich yes but the thing i don’t like is that they sell it as their idea.
I also just placed a link to a german blog. here is the original vendor http://www.perseusmirrors.com/
@done as discribed above by @cpramhofer (thanks to you :) ) i created the monitor_on and off.sh script.
With FHEM i’m polling the PIR status and use a DOIF to call on or off. Because my homeautomation depends in FHEM i have much more control instead of using a MM module, i switch much more devices with the PIR as well. I have several Pi’s with FHEM installed so it is also on the PI for the Mirror.
Hi,
for all the people here I wrote it more cleary :D
i had big problems by switching off my screen with the PIR or another module with camera. The problem was not the module itself it is a firmware problem of the PI. I could see the same problem outside of MagicMirror as well by trying different things.
Reported also here:
https://github.com/raspberrypi/linux/issues/487
The symptom is that after a while of switching on and off the screen it remains off.
Dmesg reports the problem:
Nov 1 08:22:00 MagicMirror kernel: [86411.138649] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.138665] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.138670] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.139138] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.139148] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.139152] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140642] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140654] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140659] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140777] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140785] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140789] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140856] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140863] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140868] bcm2708_fb_pan_display(0,0) returns=-22
Nov 1 08:22:00 MagicMirror systemd[1]: Started Getty on tty6.
Nov 1 08:22:00 MagicMirror kernel: [86411.256398] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.256413] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.256418] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.256758] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.256770] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.256775] bcm2708_fb_pan_display(0,0) returns=-22
Nov 1 08:22:00 MagicMirror kernel: [86411.296428] raspberrypi-firmware soc:firmware: Request 0x00040002 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.296455] bcm2708_fb soc:fb: bcm2708_fb_blank(0) failed: -22
Switching off the screen with
/opt/vc/bin/tvservice -o
and on with
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chat 7
does not work reliable! The git issue tells you more about.
The workaround is a not yet described solution inside the config.txt
https://github.com/raspberrypi/documentation/pull/245/files
the option “hdmi_blanking=1” is your friend in this case! :D
Now i’m switching off the screen with
vcgencmd display_power 0
and on with
vcgencmd display_power 1
And it is working now like a charm! Did started to use it one day before this report and it is still working without any issue :)
Honestly speaking i don’t use any MM module for switching off anymore. But maybe my discovered solution will help any other and might be a way to change the module as well.
If you have trouble with on/off as well please check the output of dmesg. If you have the frambuffer problem you can fix it.
My personal solution is to have the PIR state at FHEM and from FHEM i’m using a script to switch the screen. But that’s a special case and for the most people here the usage of a MM Module will be the better way.
regards
Dirk
Hi,
i had big problems by switching off my screen with the PIR or another module with camera. The problem was not the module itself it is a firmware problem of the PI. I could see the same problem outside of MagicMirror as well by trying different things.
Reported also here:
https://github.com/raspberrypi/linux/issues/487
The symptom is that after a while of switching on and off the screen it remains off.
Dmesg reports the problem:
Nov 1 08:22:00 MagicMirror kernel: [86411.138649] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.138665] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.138670] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.139138] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.139148] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.139152] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140642] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140654] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140659] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140777] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140785] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140789] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140856] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140863] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140868] bcm2708_fb_pan_display(0,0) returns=-22
Nov 1 08:22:00 MagicMirror systemd[1]: Started Getty on tty6.
Nov 1 08:22:00 MagicMirror kernel: [86411.256398] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.256413] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.256418] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.256758] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.256770] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.256775] bcm2708_fb_pan_display(0,0) returns=-22
Nov 1 08:22:00 MagicMirror kernel: [86411.296428] raspberrypi-firmware soc:firmware: Request 0x00040002 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.296455] bcm2708_fb soc:fb: bcm2708_fb_blank(0) failed: -22
Switching off the screen with
/opt/vc/bin/tvservice -o
and on with
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chat 7
does not work reliable! The git issue tells you more about.
The workaround is a not yet described solution inside the config.txt
https://github.com/raspberrypi/documentation/pull/245/files
the option “hdmi_blanking=1” is your friend in this case! :D
Now i’m switching off the screen with
vcgencmd display_power 0
and on with
vcgencmd display_power 1
And it is working now like a charm! Did started to use it one day before this report and it is still working without any issue :)
Honestly speaking i don’t use any MM module for switching off anymore. But maybe my discovered solution will help any other and might be a way to change the module as well.
If you have trouble with on/off as well please check the output of dmesg. If you have the frambuffer problem you can fix it.
My personal solution is to have the PIR state at FHEM and from FHEM i’m using a script to switch the screen. But that’s a special case and for the most people here the usage of a MM Module will be the better way.
regards
Dirk
Did you try to use some more modules of FHEM for different device types? It does not work correctly. The fading between the information is not working as i discovered.
Hi i’m Dirk from Germany. I’m 35 years old and an application engineer for laser marking systems in industries.
Collecting a lot of hobbies such as Modding, Networking, Renovation, Garden, building things in general.
It was very nice to get in touch with the Magic Mirror Project and started to build my first. Searched a very long time for a good place that it can be a part of our daily life. Found it a couple of month later and resulted in an InWall Mirror. Will be completed soon! :D
Nice to be here!
regards
Dirk
Yesterday i’ve got the MySpiegel.de mirror. I’m satisfied!
It is still packed in foil because the frame did not arrive, yet. So i will show pictures of it soon.
So here i found a workaround. Maybe it fixes the issue but let’s see. I just modified my test script and need to see it the next hrs/days
That is the reason why my screen doesn’t switch on after a couple of hrs switched off.
Any idea what the cause of unavailable tvservice is?
Testwise i used the scripts reported here before. They where called if a PIR detects motion or no motion.
Nov 1 08:22:00 MagicMirror kernel: [86411.138649] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.138665] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.138670] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.139138] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.139148] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.139152] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140642] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140654] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140659] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140777] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140785] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140789] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.140856] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.140863] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.140868] bcm2708_fb_pan_display(0,0) returns=-22
Nov 1 08:22:00 MagicMirror systemd[1]: Started Getty on tty6.
Nov 1 08:22:00 MagicMirror kernel: [86411.256398] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.256413] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.256418] detected fb_set_par error, error code: -22
Nov 1 08:22:00 MagicMirror kernel: [86411.256758] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.256770] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
Nov 1 08:22:00 MagicMirror kernel: [86411.256775] bcm2708_fb_pan_display(0,0) returns=-22
Nov 1 08:22:00 MagicMirror kernel: [86411.296428] raspberrypi-firmware soc:firmware: Request 0x00040002 returned status 0x80000001
Nov 1 08:22:00 MagicMirror kernel: [86411.296455] bcm2708_fb soc:fb: bcm2708_fb_blank(0) failed: -22
2016.11.01 08:05:04 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_off.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to power off HDMI
Powering off HDMI
2016.11.01 08:05:57 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_on.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to set property 4
2016.11.01 08:07:37 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_off.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to power off HDMI
Powering off HDMI
2016.11.01 08:09:00 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_on.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to set property 4
2016.11.01 08:09:42 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_off.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to power off HDMI
Powering off HDMI
2016.11.01 08:09:59 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_on.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to set property 4
ping: icmp open socket: Operation not permitted
2016.11.01 08:10:41 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_off.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to power off HDMI
Powering off HDMI
ping: icmp open socket: Operation not permitted
2016.11.01 08:21:59 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_on.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to set property 4
2016.11.01 08:22:50 2: KuMagicScreen: {system("sudo /opt/fhem/monitor_off.sh &")}: -1
tvservice-client: Failed to connect to TV service: -1
[E] Failed to power off HDMI
Powering off HDMI
so i can take every icon from here? http://erikflowers.github.io/weather-icons/
Edit: Yeah, works :D
From where did you took the icons? I’m searching under Font Awesome but i couldn’t find them you took within the example?
@MichMich said in Mirror, mirror on the wall. Who has the biggest of them all?:
Please create a separate post for this. Thanks.
The mirror is starting at reboot. So maybe there is a script, i installed it a few month ago, i don’t remember :D
If i’m testing new settings i use pm2 restart mm for example. npm i’m just using to install new modules.
I don’t get the point why myspiegel should not work. I’ve ordered last friday and will get it in this week. I will report.
But myspiegel seems to block each special request. I also asked for painted acryl for my kitchen but with my paint (same as kitchen cabinets) Their answer was in just one sentence: no.
Maybe they don’t like special requests and tell no before thinking about it.
Hi, i had some issues with the PIR module where the screen doesn’t switch on anymore. Now with a original PI Camera i tried this module. Same issue, the screen doesn’t switch on but in this case no motion seems to be detected. (the PIR did detect)
with /opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 7 i can switch on the screen manually.
I followed every tip here in the thread. So i have no idea what is going on :(
mm-0 (out): monitor has been deactivated
mm-0 (out): monitor :state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
mm-0 (out):
That is the only thing i can see in the log.
Hi,
i have some issue with the PIR Module. It worked for testing a couple of month but now under productive operation it doesn’t :(
The Screen is switched off and on correctly but after a unspecified time it doesn’t switch it on anymore, it stays black. Sometimes after an hour sometimes after a couple of minutes.
The PIR itself is working correctly as i discovered, i’m also getting it’s state under FHEM and there i can see the relaible functionality of it. I connected it to the GPIO 21.
As i can see on the screen it doesn’t get any video input anymore. Only rebooting the PI2 will fix it.
I’m not sure where to search :(
Some startup log entrie doesn’t show anything.
> magicmirror@2.0.0 start /home/pi/MagicMirror
> electron js/electron.js
Loading config ...
Loading module helpers ...
Initializing new module helper ...
Initializing new module helper ...
No helper found for module: alert.
No helper found for module: clock.
Initializing new module helper ...
No helper found for module: compliments.
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper ...
All module helpers loaded.
Starting server op port 8080 ...
Server started ...
Connecting socket for: MMM-FHEM
Connecting socket for: MMM-PIR-Sensor
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started ...
Launching application.