פורסם: 23/04/2014 - 20:05
נושא ההודעה: log-out - כיבוי מסך
|
הפצה LMDE Mate - Mdm
חצי שעה אחרי שאני מבצע log out המסך נכבה.
אני רוצה שהמסך יכבה אחרי זמן קצר יותר,
היכן נמצא קובץ הקוגפיגורציה או הסקריפט או...? שמטפל בזה?
תודה
|
|
חזרה לתוכן הדיון |
פורסם: 24/04/2014 - 18:01
נושא ההודעה:
|
1.
האם יש לך גישה ל Preferences>Screensaver Preferences ?
2.
לגבי סקריפט:
מה התוכן של הקובץ xinitrc./~ ?
|
|
חזרה לתוכן הדיון |
פורסם: 24/04/2014 - 20:26
נושא ההודעה:
|
אין לי אפשרות לשלוט במסך כפי שאני מעונין, דרך השומר מסך / מנהל הכוח.
גם אין לי את "xinitrc"
נראה לי שמופעל פה איזה סקריפט, אבל אני לא מצליח למצוא מהו.
|
|
חזרה לתוכן הדיון |
פורסם: 24/04/2014 - 23:01
נושא ההודעה:
|
יש
קוד: | #!/bin/sh
# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)
# invoke global X session script
. /etc/X11/Xsession |
=> קוד: | #!/bin/sh
#
# /etc/X11/Xsession
#
# global Xsession file -- used by display managers and xinit (startx)
# $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $
set -e
PROGNAME=Xsession
message () {
# pretty-print messages of arbitrary length; use xmessage if it
# is available and $DISPLAY is set
MESSAGE="$PROGNAME: $*"
echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2
if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then
echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file -
fi
}
message_nonl () {
# pretty-print messages of arbitrary length (no trailing newline); use
# xmessage if it is available and $DISPLAY is set
MESSAGE="$PROGNAME: $*"
echo -n "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2;
if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then
echo -n "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file -
fi
}
errormsg () {
# exit script with error
message "$*"
exit 1
}
internal_errormsg () {
# exit script with error; essentially a "THIS SHOULD NEVER HAPPEN" message
# One big call to message() for the sake of xmessage; if we had two then
# the user would have dismissed the error we want reported before seeing the
# request to report it.
errormsg "$*" \
"Please report the installed version of the \"x11-common\"" \
"package and the complete text of this error message to" \
"<debian-x@lists.debian.org>."
}
# initialize variables for use by all session scripts
OPTIONFILE=/etc/X11/Xsession.options
SYSRESOURCES=/etc/X11/Xresources
USRRESOURCES=$HOME/.Xresources
SYSSESSIONDIR=/etc/X11/Xsession.d
USERXSESSION=$HOME/.xsession
USERXSESSIONRC=$HOME/.xsessionrc
ALTUSERXSESSION=$HOME/.Xsession
ERRFILE=$HOME/.xsession-errors
# attempt to create an error file; abort if we cannot
if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] &&
[ ! -L "$ERRFILE" ]; then
chmod 600 "$ERRFILE"
elif ERRFILE=$(tempfile 2> /dev/null); then
if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then
message "warning: unable to symlink \"$TMPDIR/xsession-$USER\" to" \
"\"$ERRFILE\"; look for session log/errors in" \
"\"$TMPDIR/xsession-$USER\"."
fi
else
errormsg "unable to create X session log/error file; aborting."
fi
exec >>"$ERRFILE" 2>&1
echo "$PROGNAME: X session started for $LOGNAME at $(date)"
# sanity check; is our session script directory present?
if [ ! -d "$SYSSESSIONDIR" ]; then
errormsg "no \"$SYSSESSIONDIR\" directory found; aborting."
fi
# Attempt to create a file of non-zero length in /tmp; a full filesystem can
# cause mysterious X session failures. We do not use touch, :, or test -w
# because they won't actually create a file with contents. We also let standard
# error from tempfile and echo go to the error file to aid the user in
# determining what went wrong.
WRITE_TEST=$(tempfile)
if ! echo "*" >>"$WRITE_TEST"; then
message "warning: unable to write to ${WRITE_TEST%/*}; X session may exit" \
"with an error"
fi
rm -f "$WRITE_TEST"
# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to each
# other
SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
if [ -n "$SESSIONFILES" ]; then
set +e
for SESSIONFILE in $SESSIONFILES; do
. $SESSIONFILE
done
set -e
fi
exit 0
# vim:set ai et sts=2 sw=2 tw=80: |
מה?
|
|
חזרה לתוכן הדיון |
פורסם: 25/04/2014 - 12:18
נושא ההודעה:
|
במחשבה שניה, בוא ננסה תחילה פתרונות אחרים, פשוטים יותר.
אם הם לא יעבדו, נפתור דרך הסקריפט.
תוריד את החבילה הזו
http://pkgs.org/lmde/mint-upstream-i386/mate-power-manager_1.6.2-2+lmde_i386.deb.html
שים לב להוראות ההתקנה שבסוף העמוד.
אם אתה נדרש להוריד חבילות נוספות, שים לב שאתה מוריד את הגירסה המתקדמת (כפי שמפורט בדרישות).
לאחר ההתקנה, תראה אם אתה מצליח לתפעל את החבילה.
ובהמשך, תראה אם אכן אתה מצליח לשלוט בעזרתה על כיבוי המסך.
|
|
חזרה לתוכן הדיון |
פורסם: 25/04/2014 - 14:26
נושא ההודעה:
|
החבילה הזו כבר מותקנת לי. היא מגיעה עם ה- ISO.
אם יש אפשרות לבצע שינוי קל בסקריפט הייתי מעדיף את הפתרון הזה.
תודה
|
|
חזרה לתוכן הדיון |
פורסם: 25/04/2014 - 15:18
נושא ההודעה:
|
זה בטח קשור ל- power management במינט בכל מקרה זה לא קשור ל - xinitrc
mdm מטפל כבר בהתחלת X וכ'ו
על כל למקרה במקום לעשות לוגאוט כדי לנעול את המחשב תשתמש בשומר מסך
עושה את אותה עבודה (אם זאת המטרה כמובן)
דבר שני לא ציינת אם אתה משתמש בלפטופ? או במחשב נייח?
|
|
חזרה לתוכן הדיון |
פורסם: 25/04/2014 - 15:36
נושא ההודעה:
|
המחשב הוא נייח. המסך הוא crt.
כשאני עוזב את המחשב לפרק זמן ממושך, אני מעדיף לבצע log out ורוצה שהמסך יכבה אחרי שתי דקות.
אני יכול לכבות את המסך עם "xset dpms force off". הבעיה שאחרי זמן קצר הוא נדלק שוב על דעת עצמו.
השאלה היא,
איפה נמצא הטימר הזה שמכבה את המסך לאחר חצי שעה של log out?
אולי בתוך קובץ בינרי? אם כן, אז חבל על הזמן... אני יורד מהעניין.
|
|
חזרה לתוכן הדיון |
פורסם: 25/04/2014 - 18:56
נושא ההודעה:
|
בלינוקס ניתן לבצע כמעט כל דבר בכמה אופנים.
תמשיך לעקוב אחרי השרשור הזה.
בהמשך אני כנראה אנסה עוד פתרון פשוט יחסית, במימשק גרפי.
אם גם הוא לא יעבוד, הפתרון יהיה להוסיף כמה שורות בסקריפט.
לעצם השאלה שלך:
כמו שזה נראה, הפרמטר שמכבה את המסך אחרי חצי שעה מזמן ה- log out, נקבע כברירת מחדל על ידי החבילה הזו שכבר מותקנת אצלך, או חבילה דומה אחרת.
הבעיה הזו בלינוקס מינט, של הקושי לשנות את הפרמטר הזה דרך המימשק הגרפי, מוכרת וידועה.
אני לא עובד בשבת.
יש לי גם התחייבויות אחרות.
מעט סבלנות, ואני מאמין שבמהלך השבוע הבא יימצא פתרון לבעיה שהעלית.
|
|
חזרה לתוכן הדיון |
פורסם: 29/04/2014 - 04:19
נושא ההודעה:
|
1.
תוריד את החבילה הבאה:
https://packages.debian.org/sid/i386/xscreensaver/download
(דף מידע על החבילה, תלויות וכו': https://packages.debian.org/unstable/x11/xscreensaver )
כאן
http://www.jwz.org/xscreensaver/man1.html
יש קטע שכותרתו היא POWER MANAGEMENT .
תקרא, ותנסה ליישם.
2.
תעדכן אם הצלחת לפתור את הבעיה שהעלית.
אם לא, ננסה לפתור דרך הסקריפט.
|
|
חזרה לתוכן הדיון |
פורסם: 29/04/2014 - 16:02
נושא ההודעה:
|
תודה לך על העזרה
אני לא ממש מעוניין להתקין חבילות נוספות בשביל דבר יחסית פעוט. אין לי עניין וצורך בחבילה עם 200 שומרי מסך. יכול להיות שזה יעבוד עם ההתקנה שהצעת, אבל לא זו הדרך שאני מעוניין בה.
תודה שוב
|
|
חזרה לתוכן הדיון |
פורסם: 29/04/2014 - 18:37
נושא ההודעה:
|
xsecreensaver הוא שומר מסך. הוא כמובן חבילה שקיימת בכל הפצה סבירה. מי שמחליט להפעיל אותו הוא X. לכן מיותר להתקין את החבילה הזו רק בשביל זה.
מכיוון שהפנו אותך כבר לפקודה xset, הנה קצת ממה שהיא מספרת על עצמה:
קוד: |
$ xset
usage: xset [-display host:dpy] option ...
...
To control Energy Star (DPMS) features:
-dpms Energy Star features off
+dpms Energy Star features on
dpms [standby [suspend [off]]]
force standby
force suspend
force off
force on
(also implicitly enables DPMS features)
a timeout value of zero disables the mode
...
For screen-saver control:
s [timeout [cycle]] s default s on
s blank s noblank s off
s expose s noexpose
s activate s reset
For status information: q
|
זוהי השורה שצריך להוסיף לסקריפט.
|
|
חזרה לתוכן הדיון |
|