Results 1 to 5 of 5

Thread: Command for changing subpixel antialiasing from RGB to VRGB

  1. #1
    Join Date
    Sep 2006
    Location
    Dresden / Germany
    Beans
    41
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Command for changing subpixel antialiasing from RGB to VRGB

    Hi all,

    I have a monitor that can be rotated. I can very quickly rotate the screen settings using the Grandr applet, but I also need to change the subpixel antialiasing from RGB to VRGB or back which is not handled by the applet. The only way I know to do that is clicking my way through the System menu. But this is Linux, and I'm confident there is some console command that does it as well so I can prepare a script that does both rotation (with "xrandr -0 left") and adjust antialiasing.

    I have been torturing Google for hours, but I couldn't find any hint. Can someone help me with this?

    Thomas W.

  2. #2
    Join Date
    Nov 2005
    Location
    Finland, Oulu
    Beans
    1,501
    Distro
    Ubuntu 9.10 Karmic Koala

    Smile Re: Command for changing subpixel antialiasing from RGB to VRGB

    If I am not mistaken this is a gconf setting... if it is... then it is a file... find the file... save it somewhere... then make your change... now all we have to do is make a script to make the file exchange or try to embed it into your rotate. The later would be tough. But I think you could do it.
    I can try to help you... but it will take a while.
    I would also report this to launchpad.net/ubuntu and they can add that feature to the next version of ubuntu. Great feature to add.
    Like my avatar? Help us make more and your own! http://launchpad.net/memaker
    Book of Mormon-MP3 or BOOK
    "Microsoft is open-source friendly in the same way that a butcher is friendly to a cow." -- This Guy

  3. #3
    Join Date
    Sep 2006
    Location
    Dresden / Germany
    Beans
    41
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Command for changing subpixel antialiasing from RGB to VRGB

    Thanks for your reply, encopass! It gave me the hint for solving the problem!

    Quote Originally Posted by encompass View Post
    If I am not mistaken this is a gconf setting... if it is... then it is a file...
    Yes it is! It's here: ~/.gconf/desktop/gnome/font_rendering/%gconf.xml. The Gnome key is /desktop/gnome/font_rendering/rgba_order.

    Quote Originally Posted by encompass View Post
    find the file... save it somewhere... then make your change... now all we have to do is make a script to make the file exchange or try to embed it into your rotate.
    That's not necessary with the great tool I just found: gconftool-2! By typing

    Code:
    gconftool-2 -s /desktop/gnome/font_rendering/rgba_order -t string "vrgb"
    everything is done!

    Thomas W.

    P.S.: How can I mark this thread as solved?

  4. #4
    Join Date
    Sep 2006
    Location
    Dresden / Germany
    Beans
    41
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Lightbulb Re: Command for changing subpixel antialiasing from RGB to VRGB

    I now have two nice icons on my gnome panel (a "normal" screen and an upright screen) with two tiny scripts behind them. To turn the screen upright:

    Code:
    #!/bin/bash
      xrandr -o left
      gconftool-2 -s /desktop/gnome/font_rendering/rgba_order -t string "vrgb"
    done
    and to turn the screen to "normal" position:

    Code:
    #!/bin/bash
      xrandr -o normal
      gconftool-2 -s /desktop/gnome/font_rendering/rgba_order -t string "rgb"
    done
    If someone wants to use the icons, I attached them. They could be more fancyful (with some arrows showing they are for rotation), but they look good enough. (I slightly edited the icon I found at /usr/share/icons/hicolor/scalable/apps/gnome-display-properties.svg.)
    Attached Files Attached Files
    Last edited by tupfzom; May 2nd, 2008 at 05:27 PM.

  5. #5
    Join Date
    Nov 2005
    Location
    Finland, Oulu
    Beans
    1,501
    Distro
    Ubuntu 9.10 Karmic Koala

    Smile Re: Command for changing subpixel antialiasing from RGB to VRGB

    Good job! and thanks for posting your scripts it will help others later.
    And if you like... you can simply make at the beginning that your problem was solved see below, or something similar. Just edit your first post.
    Like my avatar? Help us make more and your own! http://launchpad.net/memaker
    Book of Mormon-MP3 or BOOK
    "Microsoft is open-source friendly in the same way that a butcher is friendly to a cow." -- This Guy

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •