Webconverger / webc

Webconverger's curated chroot from which updates originate
https://webconverger.org/upgrade/
73 stars 37 forks source link

xrandr, script to detect default output device #35

Closed kaihendry closed 12 years ago

kaihendry commented 12 years ago

http://lists.x.org/archives/xorg/2012-April/054494.html

patrickhaller commented 12 years ago

On 2012-05-03 19:37, Kai Hendry wrote:

http://lists.x.org/archives/xorg/2012-April/054494.html

lol. grep connected.

kaihendry commented 12 years ago

yes, yes, I know how to do it. Just filed an issue to remind to do it! :)

kaihendry commented 12 years ago

xrandr=*) xoptions=$( /bin/busybox httpd -d ${x#xrandr=} ) +echo $xoptions | grep -q -- '--output' || +xoptions="--output $(xrandr | grep " connected " | awk '{print $1}') $xoptions" if xrandr $xoptions; then logs "xrandr OK $xoptions"; else logs "xrandr ERR $xoptions"; fi ;;

Above is the patch to .xinitrc, however this style of use is not compatible with xrandr. Seriously. https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/518132

Only xrandr -o right style works with nividia :(

So I am not going to commit this, because of nvidia being kooky.

kaihendry commented 12 years ago

https://github.com/Webconverger/neon-rootfs/commit/378c8b89708feb3a6d88f0f802bef13eb8a97b0a should be committed into webc

kaihendry commented 12 years ago

Fixed in https://github.com/Webconverger/webc/commit/3a311edba9226a6b5271e235c8662f30d2c52b45