Comments (4)
I went down a rabbit hole trying to figure it out, but eventually I just decided it was simpler to use the instructions in caffeine's README for checking whether it's enabled or not, and running a script every minute to set the DPMS values if caffeine is disabled. So now when I turn on caffeine, DPMS is set to all 0's (disabled), and when I disable it, within a minute they'll get set back. So I can save some power by turning off my monitors and help save the planet. :)
STATE=`gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ get org.gnome.shell.extensions.caffeine toggle-state`
if [ "$STATE" == "false" ]; then
xset dpms 300 600 900
fi
from gnome-shell-extension-caffeine.
Since Caffeine doesn't directly modify DPMS values, I feel like this should be reported elsewhere as well.
As for the scripts, this seems like a bit of a hacky fix that doesn't belong here. I don't feel like that should be implemented, but that depends on what the other maintainers think too.
from gnome-shell-extension-caffeine.
The script thing was just something I threw out there, figured maybe it could be generalized for other things people might need to run when enabling/disabling. I created a short movie clip that shows (via xset q|grep display
) that the DPMS settings go to 0 when I click Caffeine on. Could GNOME be doing this when it gets the inhibit signal from Caffeine? I wonder how to get it to restore them then...
https://github.com/eonpatapon/gnome-shell-extension-caffeine/assets/1655942/17d1f9dd-7a04-4a1a-832f-75cea9ccf1bb
from gnome-shell-extension-caffeine.
I'm not super familiar with how GNOME, DBus and systemd handle inhibitors, but I'd assume at some point in that stack it changes the DPMS values when an inhibitor is added.
from gnome-shell-extension-caffeine.
Related Issues (20)
- only apply to the active display HOT 2
- FYI: Are you sure to use "Gdk.SHIFT_MASK" in generalPage.js HOT 6
- Small question HOT 2
- Fullscreen inhibit gets stuck due to a race condition HOT 5
- GNOME 45 Support HOT 8
- longer timers HOT 10
- Mistakenly made issue - please delete
- gschemas.compiled is deleted by `make clean` but not recompiled by `make build` HOT 6
- Wrong v51 release (Gnome 44) & versioning issue HOT 5
- ALLOW BLANK SCREEN - option gnome 45 HOT 5
- Feature Request: Allow Screen Blanking except for a specific application HOT 1
- Support listening on D-BUS to MPRIS implementation to trigger caffeine HOT 2
- Symbolic icon doesn't quite respect shell light style HOT 4
- Doesn't work on Fedora 39 HOT 5
- Caffeine RPM is not importing its Gschema to /usr/share/glib-2.0/schemas HOT 2
- Not working with Gnome version 45.3 HOT 1
- Adding AppImage type app to the auto-set Caffeine list doesnt work HOT 2
- Minor issue on GNOME 46 HOT 2
- Add gnome 46 support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-shell-extension-caffeine.