Page 1 of 1
pupx and screensaver
Posted: Wed May 17, 2023 2:18 pm
by Caramel
(EasyOS 5.3)
The deactivation of the screensaver with pupx (in Easy Setup) seems not works (for me).
So I have tested pupx in the terminal.
Outpout after click on button Apply or button OK :
Code: Select all
xset: unknown option rate
usage: xset [-display host:dpy] option ...
To turn bell off:
-b b off b 0
To set bell volume, pitch and duration:
b [vol [pitch [dur]]] b on
To disable bug compatibility mode:
-bc
To enable bug compatibility mode:
bc
To turn keyclick off:
-c c off c 0
To set keyclick volume:
c [0-100] c on
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
To set the font path:
fp= path[,path...]
To restore the default font path:
fp default
To have the server reread font databases:
fp rehash
To remove elements from font path:
-fp path[,path...] fp- path[,path...]
To prepend or append elements to font path:
+fp path[,path...] fp+ path[,path...]
To set LED states off or on:
-led [1-32] led off
led [1-32] led on
To set mouse acceleration and threshold:
m [acc_mult[/acc_div] [thr]] m default
To set pixel colors:
p pixel_value color_name
To turn auto-repeat off or on:
-r [keycode] r off
r [keycode] r on
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
To print version: -version
file /root/.xset.sh invoked in pupx after save settings (settings unmodified) :
Code: Select all
xset m 20/10 4 c off r rate 500 7 s 600 600 s blank s expose
In the man page of xset : https://man.archlinux.org/man/xset.1 , part for the option r :
Code: Select all
If the server supports the XFree86-Misc extension, or the XKB extension, then a parameter of 'rate' is accepted and should be followed by zero, one or two numeric values. The first specifies the delay before autorepeat starts and the second specifies the repeat rate. In the case that the server supports the XKB extension, the delay is the number of milliseconds before autorepeat starts, and the rate is the number of repeats per second. If the rate or delay is not given, it will be set to the default value.
Question : where the parameters choosen with pupx are recorded in easyOS ?
Re: pupx and screensaver
Posted: Wed May 17, 2023 4:54 pm
by Keef
I think it might be .xset.sh in root. It gets created after saving changes and clicking 'apply'.
Re: pupx and screensaver
Posted: Wed May 17, 2023 6:15 pm
by Caramel
Thanks @Keef !
So how to modify the line in .xset.sh
Code: Select all
xset m 20/10 4 c off r rate 500 7 s 600 600 s blank s expose
to disable the screensaver ?
Re: pupx and screensaver
Posted: Wed May 17, 2023 7:03 pm
by Keef
In the following, the first line is when it is ON and the second OFF:
Code: Select all
xset m 20/10 4 c off r rate 500 6 s 0 600 s blank s expose
xset m 20/10 4 c off r rate 500 6 s off -dpms
Hope that helps.
Re: pupx and screensaver
Posted: Thu May 18, 2023 4:22 am
by Caramel
Keef wrote: ↑Wed May 17, 2023 7:03 pm
In the following, the first line is when it is ON and the second OFF:
Code: Select all
xset m 20/10 4 c off r rate 500 6 s 0 600 s blank s expose
xset m 20/10 4 c off r rate 500 6 s off -dpms
Hope that helps.
Don't work for me.
Re: pupx and screensaver
Posted: Thu May 25, 2023 2:14 pm
by Caramel
Work with
Code: Select all
xset m 20/10 4 c off s 0 600 s blank s expose
instead of
Code: Select all
xset m 20/10 4 c off r rate 500 6 s 0 600 s blank s expose
Re: pupx and screensaver
Posted: Fri May 26, 2023 1:26 am
by BarryK
/usr/bin/pupx creates /tmp/pupx_keyboard.sh, I put in an echo:
Code: Select all
pupx_keyboard.sh: LANG=C xset c off r rate 500 6
xset: unknown option rate
From the man page, for the "r" option:
If the server supports the XFree86-Misc extension, or the XKB extension, then a parameter of 'rate' is accepted and should be followed by zero, one or two numeric values. The first specifies the delay before autorepeat starts and the second specifies the repeat rate. In the case that the server supports the XKB extension, the delay is the number of milliseconds before autorepeat starts, and the rate is the number of repeats per second. If the rate or delay is not given, it will be set to the default value.
See:
https://www.systutorials.com/docs/linux/man/3-XF86Misc/
...Easy doesn't have libXxf86misc.so*, but as far as I know does have xkb extension.
Re: pupx and screensaver
Posted: Fri May 26, 2023 1:45 am
by BarryK
Looking at the build recipe in OpenEmbedded:
Code: Select all
require xorg-app-common.inc
SUMMARY = "Utility for setting various user preference options of the display"
DESCRIPTION = "xset is a utility that is used to set various user \
preference options of the display."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=bea81cc9827cdf1af0e12c2b8228cf8d"
DEPENDS += "libxext libxmu libxau"
PE = "1"
SRC_URI += "file://disable-xkb.patch"
SRC_URI[md5sum] = "70ea7bc7bacf1a124b1692605883f620"
SRC_URI[sha256sum] = "e4fd95280df52a88e9b0abc1fee11dcf0f34fc24041b9f45a247e52df941c957"
CFLAGS += "-D_GNU_SOURCE"
EXTRA_OECONF = "--disable-xkb --without-fontcache"
...I wonder why xkb has been disabled?
I will look into it.
Re: pupx and screensaver
Posted: Fri May 26, 2023 1:51 am
by BarryK
libxxf86misc has been removed from OpenEmbedded:
https://www.openembedded.org/pipermail/ ... 85310.html
Seems that it is a deprecated thing.
OK, will recompile xset with xkb enabled. I do wonder though, why they disabled it.
Re: pupx and screensaver
Posted: Fri May 26, 2023 9:56 am
by BarryK