Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a new ThinkPad X220 Tablet with Kubuntu 12.04. When I rotate the screen 90° with a script, the fonts of all programs that I open after the rotation have ugly huge fonts.




# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation.

rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o  '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"

# Using current screen orientation proceed to rotate screen and input tools.

case "$rotation" in
                # rotate to the left
                xrandr -o right
                xsetwacom set "Wacom ISDv4 E6 Pen stylus" rotate cw
                xsetwacom set "Wacom ISDv4 E6 Finger touch" rotate cw
                xsetwacom set "Wacom ISDv4 E6 Pen eraser" rotate cw
                # rotate to normal
                xrandr -o normal                                                                                                                                                                
                xsetwacom set "Wacom ISDv4 E6 Pen stylus" rotate none                                                                                                                           
                xsetwacom set "Wacom ISDv4 E6 Finger touch" rotate none                                                                                                                         
                xsetwacom set "Wacom ISDv4 E6 Pen eraser" rotate none                                                                                                                           
share|improve this question
I'm not a kubuntu user... but I wonder if this old bug is your issue? ( - if you follow the dupe, the only suggestion is to play with changing the dpi. Can you confirm this is your issue? – fossfreedom Jun 8 '12 at 22:00
Thanks, that helped. If you want, you can make this an answer to get the bounty points. – Martin Ueding Jun 11 '12 at 11:17
up vote 4 down vote accepted

converted comment to answer

Your Question appears to be related closely/or is the same as this old KDE bug-report.

Following the duplicate link it mentions a possible workaround

A possible workaround for the problem:

systemsettings -> appearance -> fonts force dpi to 96

Looking at the man-page for xrandr possibly you could try:

xrandr --dpi [dpi]

or possibly calling in your script xrandr twice, changing the [dpi] to one value, sleep for a second to allow the display to refresh, before calling the same routine again with the final [dpi] value - for example, 96.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.