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

Bug#455225: marked as done (Xserver should allow xrandr to get output info without querying the hardware again)



Your message dated Thu, 22 Jan 2009 01:52:38 +0100
with message-id <20090122005238.GA25207@radis.liafa.jussieu.fr>
and subject line Re: Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection
has caused the Debian Bug report #455225,
regarding Xserver should allow xrandr to get output info without querying the hardware again
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
455225: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455225
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: x11-xserver-utils
Version: 7.3+2
Severity: wishlist
File: /usr/bin/xrandr

Hi,

when invoked, xrandr does detection of hardware capabilities and
connected monitors. This takes a few seconds to complete.

I have a script, xrandrauto, which invokes xrandr multiple times to
create the screen layout that I want to have. However, this script
takes like 30 seconds since xrandr repeats the detection process over
and over.

Please consider adding an option to disable the hardware detection and
to use whatever was detected the last time.

Greetings
Marc


#!/bin/bash

OUTPUTLIST=""
for output in $(xrandr | sed -n '/[^[:space:]]\+ connected/{s/\([^[:space:]]\+\).*/\1/;p;}'); do
  xrandr --output $output --auto
  OUTPUTLIST="$OUTPUTLIST $output"
done
for output in $(xrandr | sed -n '/[^[:space:]]\+ disconnected/{s/\([^[:space:]]\+\).*/\1/;p;}'); do
  xrandr --output $output --auto
done

if [ "$OUTPUTLIST" = " VGA-0 LVDS" ]; then
  xrandr --output VGA-0 --left-of LVDS
elif [ "$OUTPUTLIST" = " LVDS" ]; then
  xrandr --output LVDS --pos 0x0
fi



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.9-scyw00225 (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

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

x11-xserver-utils recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 2:1.5.99.901-1

On Sat, Dec 15, 2007 at 01:05:20AM +0100, Brice Goglin wrote:
> As said by Michel on IRC, the original problem is in the server. It
> should cache output infos and let xrandr retrieve them without querying
> the hardware again. It would be much better than trying to cache things
> in xrandr or so. I am reassigning the bug report accordingly.
> 
randr 1.3 introduces the GetScreenResourcesCurrent request, which
doesn't call back into the driver.  This fixes at least the xserver part
of this bug.

Cheers,
Julien


--- End Message ---

Reply to: