nathanramanoodles / backlight_dimmer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dougielawson/backlight_dimmer
Control the backlight on the official RPF display based on a touch event.
This project forked from dougielawson/backlight_dimmer
Control the backlight on the official RPF display based on a touch event.
Dear @nathanRamaNoodles,
your backlight_dimmer fork is a great idea, so I appreciate it!
I'am trying to integrate it on my raspberry pi 3b+ with the official 7inch touch display running in kiosk-mode with FullPageOS distro (version 2019-12-01_2019-09-26-fullpageos-no-acceleration-buster-lite-0.11.0.zip) with no success.
After installation, when I fire the command 'sudo ./timeout pi 30 event0 event1' nothing happening.
Do you think my problem it will be the input device?
hi nathan,
i'm trying to get this working with dietpi on my raspi 4 with 7 inch touch screen.
when i'm trying to start it it get "display-manager.service not found". i don't know if the cause is dietpi or backlight_dimmer... can you help me on that ?
best regards
two questions i hope you can answer:
1st:
will your modified backlight_dimmer program work also with a touchscreen hooked up via hdmi (picture) + usb (touch input) ?
2nd:
do you know if it's possible to combine your modified backlight_dimmer program with the pi camera motion detection described here: https://www.youtube.com/watch?v=PGxpndmnYyY
(= wake on motion)
i'm planning to use your script for another pi hooked up to big touchscreen (hdmi + usb) and want to use the pi camera for motion detection. if a motion is detected the screen should wake up and go to sleep after a defined time ...
Hi @nathanRamaNoodles ,
your backlight_dimmer works great. Appreciate it.
However, is it possible to make the screen stay on when a video is playing in chrome or kodi is running with a video or slideshow ?
Actually screen will get turned off, no matter if any media is playing or shown...
$ make cc -c -o timeout.o timeout.c timeout.c: In function ‘increase_brightness’: timeout.c:299:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (uint16_t i = 0; i <= max_brightness-fade_amount; i++) { ^ timeout.c:299:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code timeout.c:313:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (uint16_t i = max_brightness; i > 0 + fade_amount; i--) { ^ timeout.c: In function ‘main’: timeout.c:355:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (uint16_t i = 0; i < tlen; i++) { ^ timeout.c:365:17: error: redefinition of ‘i’ for (uint16_t i = 0; i < num_dev; i++) { ^ timeout.c:355:17: note: previous definition of ‘i’ was here for (uint16_t i = 0; i < tlen; i++) { ^ timeout.c:365:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (uint16_t i = 0; i < num_dev; i++) { ^ timeout.c:379:17: error: redefinition of ‘i’ for (uint16_t i = 0; i < num_dev; i++) { ^ timeout.c:365:17: note: previous definition of ‘i’ was here for (uint16_t i = 0; i < num_dev; i++) { ^ timeout.c:379:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (uint16_t i = 0; i < num_dev; i++) { ^ timeout.c:422:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (uint16_t i = 0; i < num_dev; i++) { ^ timeout.c:437:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (uint16_t i = 0; i < num_dev; i++) { ^ : recipe for target 'timeout.o' failed make: *** [timeout.o] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.