Comments (6)
@aconthea, thanks for the feedback.
Currently, there is no way to handle it.
mons based on xrandr's output, I need first to compare the output before and during the sleep mode. But I only see xrandr --auto
(see below) that might block the screen or more precisely it might set the screen settings according to the current one (sleep mode) ad vitam aeternam every second.
This is the script part of the -m
daemon mode option:
if $mFlag ; then
while true; do
if [ "$("${XRANDR}" | grep ' connect' | wc -l)" -eq 1 ]; then
"${XRANDR}" --auto
fi
sleep 1
done
fi
Adding extra parameters to xrandr --auto
can do the job ?
I'm investigating.
from mons.
@Ventto Thanks for clarifying.
I tried to run a quick test with xrandr --auto
; Ran the following script as a foreground process and it doesn't cause any issues.
while true; do xrandr | grep ' connect' 2>&1 >> .log; date >> .log; xrandr --auto 2&>1 >> .log; sleep 2; done
Though when I run mons -m
as foreground process the screen doesn't wake up.
Can you see any difference between ?
from mons.
I am not sure if this helps, bu changing the sleep time to 2 seconds in mons solves the problem. But I am not really sure if screen ever goes to sleep, it keeps coming in about every 10 minutes displaying no signal
. I think it just goes into stand by mode. This is quite confusing.
from mons.
Try until find an empiric value for sleep
.
It might be interesting to verify the screen's status (c.f /sys/class/drm/*
).
Does the sleep mode mean "connected but disabled output" ?
From xrandr's manpage:
--auto For connected but disabled outputs, this will enable them using
their first preferred mode (or, something close to 96dpi if they have
no preferred mode). For disconnected but enabled outputs, this will
disable them.
from mons.
I've re-produced your xset configuration with a VGA monitor.
Indeed, increasing the sleep time solved the problem.
Also, do not perform xrandr command every loop if the state is still the same (nothing happens), avoids to reduce the screen in speed and cause "no signal" message periodically.
After some research, the four DPMS modes are initially specified for CRTs but for LCDs and later there is often no difference between standby, suspend, and off.
from mons.
Hey, sorry for late reply. I see you fixed the issue. Thanks a lot.
from mons.
Related Issues (20)
- Feature Request: Flag to trigger optional rotation HOT 2
- Bug: mons -s works only one time HOT 5
- mons -a; problem going from 4:3 external to 16:9 internal HOT 3
- Unable to install mons HOT 3
- Add mons to the FreeBSD ports HOT 4
- Tagging recent commits
- Please provide examples in --help and README.md HOT 2
- Feature Request: --verbose mode to print all xrandr calls executed, and --dry-run to print but not call
- Feature Request: Ability to supply scale setting for a given monitor
- Mirroring makes primary montior blank
- Feature Request: set refresh rate
- Makefile installs an empty manpage if help2man isn't present
- Daemon mode doesn't work on Ubuntu with dash as /bin/sh
- Is it possible to use 2 monitors in extended mode with a third monitor mirroring one of them?
- Ignore intel VIRTUAL[1-9] outputs HOT 1
- AUR packages outdated / broken HOT 1
- PKGBUILD Arch Linux mons-git "broken"
- Daemon mode fails due to non-existing "/sys/class/drm/*/status"
- ./mons.sh: line 86: fg: no job control HOT 1
- RAM usage goes up when switching i3 workspaces in secondary monitor only mode HOT 1
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 mons.