Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

normal

rotated

#!/bin/sh

# 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
        normal)
                # 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
                ;;
        right)
                # 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                                                                                                                           
                ;;                                                                                                                                                                              
esac  
share|improve this question
2  
I'm not a kubuntu user... but I wonder if this old bug is your issue? (bugs.kde.org/show_bug.cgi?id=184488) - 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. –  queueoverflow Jun 11 '12 at 11:17
add comment

1 Answer

up vote 4 down vote accepted
+100

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
add comment

Your Answer

 
discard

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.