Processed: Re: Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection
Processing commands for [EMAIL PROTECTED]: > reassign 455225 xserver-xorg-core Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection Bug reassigned from package `x11-xserver-utils' to `xserver-xorg-core'. > retitle 455225 Xserver should allow xrandr to get output info without > querying the hardware again Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection Changed Bug title to `Xserver should allow xrandr to get output info without querying the hardware again' from `/usr/bin/xrandr: please consider possibility to disable hardware detection'. > thank you Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection
reassign 455225 xserver-xorg-core retitle 455225 Xserver should allow xrandr to get output info without querying the hardware again thank you Marc Haber wrote: > On Tue, Dec 11, 2007 at 08:44:04AM +0100, Marc Haber wrote: > >> How would that call look like? >> >> xrandr --output VGA-0 --auto --left-of LVDS --output LVDS --auto? >> > > It looks like an output can only be mentioned once, so > > xrandr --output VGA-0 --auto --output LVDS --auto --output VGA-0 --left-of > LVDS > > won't work. So, a little more command line processing is necessary. > Right, I fixed this in the upstream xrandr git. It will work in the next release. I also clarified the manpage about the ability to manage multiple outputs at the same time with a single command line. 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. Brice -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection
On Tue, Dec 11, 2007 at 08:44:04AM +0100, Marc Haber wrote: > How would that call look like? > > xrandr --output VGA-0 --auto --left-of LVDS --output LVDS --auto? It looks like an output can only be mentioned once, so xrandr --output VGA-0 --auto --output LVDS --auto --output VGA-0 --left-of LVDS won't work. So, a little more command line processing is necessary. For the record, here my current script: $ cat .my/bin/xrandrauto #!/bin/bash if ! TMPFILE=$(tempfile --prefix xrandr); then echo >2 "ERR: cannot create tempfile" exit 1 fi xrandr > $TMPFILE CONOUTPUTLIST="" OUTPUTLIST="" OPTIONS="" for output in $(< $TMPFILE sed -n '/[^[:space:]]\+ connected/{s/\([^[:space:]]\+\).*/\1/;p;}'); do CONOUTPUTLIST="$CONOUTPUTLIST $output" OUTPUTLIST="$OUTPUTLIST $output" OPTIONS="$OPTIONS --output $output --auto" done for output in $(xrandr | sed -n '/[^[:space:]]\+ disconnected/{s/\([^[:space:]]\+\).*/\1/;p;}'); do OUTPUTLIST="$OUTPUTLIST $output" OPTIONS="$OPTIONS --output $output --auto" done if [ "$CONOUTPUTLIST" = " VGA-0 LVDS" ]; then OPTIONS="$(echo $OPTIONS | sed "s/\(--output VGA-0\)/\1 --left-of LVDS/")" elif [ "$OUTPUTLIST" = " LVDS" ]; then OPTIONS="$(echo $OPTIONS | sed "s/\(--output LVDS\)/\1 --pos 0x0/")" fi xrandr $OPTIONS rm -f $TMPFILE [5/[EMAIL PROTECTED]:~$ Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection
Marc Haber wrote: You should be able to call xrandr only twice here. One to get the output and save it (and apply sed multiple times to compute OUTPUTLIST), and one to pass --auto for all outputs and set their position. How would that call look like? xrandr --output VGA-0 --auto --left-of LVDS --output LVDS --auto? Yes you can probably do something like that. At least, I know that xrandr --output LVDS --off --output TMDS-1 --rotate left --auto does what I want on Intel (disable LVDS and set TMDS to preferred mode rotated to left) Also, --auto seems to work with and without a --output specified earlier. So you should be able to do xrandr --auto --output VGA-0 --left-of LVDS If so, this possibility should be mentioned in the manual page. Right, it is not really explicitly explained in the manpage, I'll try to improve it. Brice -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection
On Sun, Dec 09, 2007 at 06:48:53PM +0100, Brice Goglin wrote: > Of course, patches would be wellcome :) Unfortunately, my programming skills are not enough to do this. > You should be able to call xrandr only twice here. One to get the output > and save it (and apply sed multiple times to compute OUTPUTLIST), and > one to pass --auto for all outputs and set their position. How would that call look like? xrandr --output VGA-0 --auto --left-of LVDS --output LVDS --auto? If so, this possibility should be mentioned in the manual page. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection
Marc Haber wrote: > 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. > Right, it would be nice, especially when calling xrandr blanks the screen during a second or so. Of course, patches would be wellcome :) > 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 > You should be able to call xrandr only twice here. One to get the output and save it (and apply sed multiple times to compute OUTPUTLIST), and one to pass --auto for all outputs and set their position. Brice -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#455225: /usr/bin/xrandr: please consider possibility to disable hardware detection
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-6The GNU C preprocessor (cpp) ii libc6 2.7-4GNU C Library: Shared libraries ii libice6 2:1.0.4-1X11 Inter-Client Exchange library ii libsm6 2:1.0.3-1+b1 X11 Session Management library ii libx11-62:1.0.3-7X11 client-side library ii libxau6 1:1.0.3-2X11 authorisation library ii libxaw7 2:1.0.4-1X11 Athena Widget library ii libxext61:1.0.3-2X11 miscellaneous extension librar ii libxi6 2:1.1.3-1X11 Input extension library ii libxmu6 1:1.0.3-1X11 miscellaneous utility library ii libxmuu11:1.0.3-1X11 miscellaneous micro-utility li ii libxrandr2 2:1.2.2-1X11 RandR extension library ii libxrender1 1:0.9.4-1X Rendering Extension client libra ii libxt6 1:1.0.5-3X11 toolkit intrinsics library ii libxtrap6 1:1.0.0-4X11 event trapping extension libra ii libxxf86misc1 1:1.0.1-2X11 XFree86 miscellaneous extensio ii libxxf86vm1 1:1.0.1-2X11 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]