[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#996417: xset: handle absence of DPMS support in the X server more gracefully



Package: x11-xserver-utils
Version: 7.7+8
Severity: normal
Tags: upstream
X-Debbugs-Cc: tg@mirbsd.de

My ~/.xsessionrc has:

	xset dpms 0 0 0

With a regular X11 session, this works, but in an xrdp+xorgxrdp session,
it fails because the server lacks DPMS support. But then, once having
failed on the dpms keywords, it interprets the 0 as another argument,
instead of first parsing the "dpms [standby [suspend [off]]]" then exiting
as there are no further arguments:


server does not have extension for dpms option
xset:  unknown option 0

usage:  xset [-display host:dpy] option ...
    To turn bell off:
        -b                b off               b 0
[…]


This is, of course, both suboptimal and avoidable by moving the parsing
of the dpms-related options to before the check for its presence.

-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'oldstable-updates'), (500, 'oldoldstable'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-9-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages x11-xserver-utils depends on:
ii  cpp          4:10.2.1-1
ii  libc6        2.31-13+deb11u2
ii  libice6      2:1.0.10-1
ii  libx11-6     2:1.7.2-1
ii  libxaw7      2:1.0.13-1.1
ii  libxcursor1  1:1.2.0-2
ii  libxext6     2:1.3.3-1.1
ii  libxi6       2:1.7.10-1
ii  libxmu6      2:1.1.2-2+b3
ii  libxmuu1     2:1.1.2-2+b3
ii  libxrandr2   2:1.5.1-1
ii  libxrender1  1:0.9.10-1
ii  libxt6       1:1.2.0-1
ii  libxxf86vm1  1:1.1.4-1+b2

x11-xserver-utils recommends no packages.

Versions of packages x11-xserver-utils suggests:
pn  cairo-5c        <none>
pn  nickle          <none>
pn  xorg-docs-core  <none>

-- no debconf information

Reply to: