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

Bug#544518: A way for --prop to not take half a second



Package: x11-xserver-utils
Version: 7.4+2
Severity: wishlist
File: /usr/bin/xrandr

Hi,

wouter@celtic:~$ time xrandr --prop
[...xrandr output snipped...]
real	0m0.444s
user	0m0.004s
sys	0m0.008s

I currently have a shell script that does the following:

  BL=$(xrandr --prop|awk '/BACKLIGHT:/{print $2}')

with the intention of then being able to use that to compute stuff and
set the new value, and hook that to the XF86MonBrightnessDown and ...Up
keys as a hotkey.

However, due to the fact that xrandr spends almost half a second waiting
on the X server for information that I don't need, and combined with the
fact that I don't see any way for me to change the set of data that
xrandr requests from the X server, this script is nearly unusable.

There could be alternate solutions to this wishlist item; e.g., it would
help if I would be able to tell xrandr that the X server has to increase
the value of a property relative to its current value with a value
relative to its valid range, or some such (say, a command similar to
'increase the value of the BACKLIGHT property on the LVDS output by 10%
of the total range).

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages x11-xserver-utils depends on:
ii  cpp                           4:4.3.3-9  The GNU C preprocessor (cpp)
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  libice6                       2:1.0.5-1  X11 Inter-Client Exchange library
ii  libsm6                        2:1.1.1-1  X11 Session Management library
ii  libx11-6                      2:1.2.2-1  X11 client-side library
ii  libxau6                       1:1.0.4-2  X11 authorisation library
ii  libxaw7                       2:1.0.6-1  X11 Athena Widget library
ii  libxext6                      2:1.0.4-1  X11 miscellaneous extension librar
ii  libxi6                        2:1.2.1-2  X11 Input extension library
ii  libxmu6                       2:1.0.4-2  X11 miscellaneous utility library
ii  libxmuu1                      2:1.0.4-2  X11 miscellaneous micro-utility li
ii  libxrandr2                    2:1.3.0-2  X11 RandR extension library
ii  libxrender1                   1:0.9.4-2  X Rendering Extension client libra
ii  libxt6                        1:1.0.6-1  X11 toolkit intrinsics library
ii  libxtrap6                     2:1.0.0-5  X11 event trapping extension libra
ii  libxxf86misc1                 1:1.0.1-3  X11 XFree86 miscellaneous extensio
ii  libxxf86vm1                   1:1.0.2-1  X11 XFree86 video mode extension l
ii  x11-common                    1:7.4+4    X Window System (X.Org) infrastruc

x11-xserver-utils recommends no packages.

Versions of packages x11-xserver-utils suggests:
pn  cairo-5c                      <none>     (no description available)
pn  nickle                        <none>     (no description available)

-- no debconf information



Reply to: