-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
** Fix: can't use dpms ** Add: support of bookwarn ** Add: warn for restart OS
- Loading branch information
Showing
1 changed file
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a4b66fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the wayfire.ini on my pi5 doesn't have anything about dpms in it.
a4b66fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from there
that why i search to add this:
a4b66fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after (manual) modification of
wayfire.ini
file (pi4)mine is now this:
With this modification, we are able to use dpms for turn off screen and disable timeout
But we have to check
idle
section (exist or not)dpms_timeout=0
[idle]
section AND adddpms_timeout=0
a4b66fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I didn't get that Info from your prior message.
will examine this afternoon
have grandsons this morning
a4b66fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with these two searches we can find if and where each line is
idle
dpms
if wc -l >0 then that search found something
if both are >0 then we found both
echo result | awk -F: '{print $1}'
will give us the line number for each
if dpms line number is > idle line number its is after
and diff of line numbers tells us how far apart they are
thinking they should be together
grep -A1 "[idle]" .config/wayfire.ini
could give us the 2 lines, from the [idle\ line plus 1
grep -B1 -i dpms .config/wayfire.ini
will do the same from the dpms line back 1
if neither is present add both
if idle is present add dpms on line after idle
if dpms present add [idle] on line before dpms
if both present, then change dpms value ?????
is that right?
a4b66fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should never happen except... user forget to add
[idle]
sectionin this case maybe ... copy the dpms value into the proper section ?
if you add directly [idle] section one line defore dpms, it's dangerous... because other values (if exist) will be in
[idle]
sectionOther is fine :)